rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
configfilename =os.path.join(filepath,"SMP.cfg")
configfilename =os.path.join(filepath,"smp.conf")
def config(self): user=os.path.expanduser("~") filepath="%s/.spectromicroscopy/"%(user) configfilename =os.path.join(filepath,"SMP.cfg") self.configfile=configfilename if not os.path.isdir(filepath): os.mkdir(filepath) if os.path.isfile(configfilename): config = ConfigObj(configfilename) else: s = codecs.open(configfil...
14aed16dbafd5eaccab13f02d114f9b737fccc8f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14949/14aed16dbafd5eaccab13f02d114f9b737fccc8f/XpGui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 642, 12, 2890, 4672, 729, 33, 538, 18, 803, 18, 12320, 1355, 2932, 98, 7923, 3608, 11613, 87, 15865, 13234, 520, 4616, 1017, 1101, 4898, 17105, 1355, 13, 642, 3459, 273, 538, 18, 803, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 642, 12, 2890, 4672, 729, 33, 538, 18, 803, 18, 12320, 1355, 2932, 98, 7923, 3608, 11613, 87, 15865, 13234, 520, 4616, 1017, 1101, 4898, 17105, 1355, 13, 642, 3459, 273, 538, 18, 803, ...
def handle_log_view_notify_model (self, view, gparam): log_model = view.props.model if log_model is None: return line_model = LineViewLogModel (log_model) self.line_view.props.model = line_model
def handle_line_view_row_activated (self, view, path, column):
10e3fc489ba276a6d19ca633159bb353ce440945 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12310/10e3fc489ba276a6d19ca633159bb353ce440945/GUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 1369, 67, 1945, 67, 492, 67, 18836, 261, 2890, 16, 1476, 16, 589, 16, 1057, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 1369, 67, 1945, 67, 492, 67, 18836, 261, 2890, 16, 1476, 16, 589, 16, 1057, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
\item u = input_box(default, label, type=None)
\item u = input_box(default=None, label=None, type=None)
... def _(a=(1,4), b=(0,10)):
8bb5659036389379aa2e526b349beae86c987b03 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/8bb5659036389379aa2e526b349beae86c987b03/interact.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 1652, 389, 12, 69, 28657, 21, 16, 24, 3631, 324, 28657, 20, 16, 2163, 3719, 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, ...
[ 1, 1, 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, 1372, 1652, 389, 12, 69, 28657, 21, 16, 24, 3631, 324, 28657, 20, 16, 2163, 3719, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
host = urlparse.urlparse(req.get_full_url())[1]
host = req.get_host()
def do_open(self, http_class, req): host = urlparse.urlparse(req.get_full_url())[1] if not host: raise URLError('no host given')
66d4ca0fbaaf910c72f9acfe51c930967217c3e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/66d4ca0fbaaf910c72f9acfe51c930967217c3e9/urllib2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 3190, 12, 2890, 16, 1062, 67, 1106, 16, 1111, 4672, 1479, 273, 1111, 18, 588, 67, 2564, 1435, 309, 486, 1479, 30, 1002, 1976, 668, 2668, 2135, 1479, 864, 6134, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3190, 12, 2890, 16, 1062, 67, 1106, 16, 1111, 4672, 1479, 273, 1111, 18, 588, 67, 2564, 1435, 309, 486, 1479, 30, 1002, 1976, 668, 2668, 2135, 1479, 864, 6134, 2, -100, -100, ...
if (( cmpstr1[i1] == '\n' or cmpstr1[i1] == '\r' ) and ( cmpstr2[i2] == '\n' or cmpstr2[i2] == '\r' )):
if ( ( cmpstr1[i1] == '\n' or cmpstr1[i1] == '\r' ) and ( cmpstr2[i2] == '\n' or cmpstr2[i2] == '\r' ) ):
def __compare_node( self, node1, node2, callback ): """Compare two nodes."""
45baf7d2aaa614a5e0533f85af0f2b815f01c8ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13212/45baf7d2aaa614a5e0533f85af0f2b815f01c8ee/diff.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9877, 67, 2159, 12, 365, 16, 756, 21, 16, 756, 22, 16, 1348, 262, 30, 3536, 8583, 2795, 2199, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9877, 67, 2159, 12, 365, 16, 756, 21, 16, 756, 22, 16, 1348, 262, 30, 3536, 8583, 2795, 2199, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
replacement = {'<p>': '', '</p>': '', '\n': '', '> ': '>'}
replacement = {'\n': '', '> ': '>'}
def fixup_wiki_formatting(self, text): replacement = {'<p>': '', '</p>': '', '\n': '', '> ': '>'} for src, dst in replacement.items(): text = text.replace(src, dst) # Everything seems to have a space ending the text block. We want to # get rid of this if text and text[-1] == ' ': text = text[:-1] return text
c372b755e2ad96ec67377f97a2bfe92329268062 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/c372b755e2ad96ec67377f97a2bfe92329268062/text_rst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 416, 67, 13044, 67, 2139, 1787, 12, 2890, 16, 977, 4672, 6060, 273, 288, 8314, 82, 4278, 10226, 11279, 4290, 7481, 97, 364, 1705, 16, 3046, 316, 6060, 18, 3319, 13332, 977, 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, 2917, 416, 67, 13044, 67, 2139, 1787, 12, 2890, 16, 977, 4672, 6060, 273, 288, 8314, 82, 4278, 10226, 11279, 4290, 7481, 97, 364, 1705, 16, 3046, 316, 6060, 18, 3319, 13332, 977, 273, ...
if code == ['stq', 'frr',]:
if code in ['stq', 'frr',]:
def _altlang(code): """Define fallback languages for particular languages. If no translation is available to a specified language, translate() will try each of the specified fallback languages, in order, until it finds one with a translation, or '_default' as a last resort. """ #Amharic if code in ['aa', 'om']: retur...
e14afefe1f7afc249ef4c930e516e9b95cbf19e1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9005/e14afefe1f7afc249ef4c930e516e9b95cbf19e1/textlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2390, 4936, 12, 710, 4672, 3536, 11644, 5922, 8191, 364, 6826, 8191, 18, 225, 971, 1158, 4794, 353, 2319, 358, 279, 1269, 2653, 16, 4204, 1435, 903, 775, 1517, 434, 326, 1269, 5922,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2390, 4936, 12, 710, 4672, 3536, 11644, 5922, 8191, 364, 6826, 8191, 18, 225, 971, 1158, 4794, 353, 2319, 358, 279, 1269, 2653, 16, 4204, 1435, 903, 775, 1517, 434, 326, 1269, 5922,...
This path is by default <mfm_lib_path>/../data/ in trunk and /usr/share/mfm in an installed version but this path
This path is by default <otrverwaltung_lib_path>/../data/ in trunk and /usr/share/otrverwaltung in an installed version but this path
def getdatapath(*args): """Retrieve otrverwaltung data path This path is by default <mfm_lib_path>/../data/ in trunk and /usr/share/mfm in an installed version but this path is specified at installation time. """ return os.path.join(os.path.dirname(__file__), data_dir, *args)
c5db042b0f3a8def985930d720d6c9e7b8ee0837 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11048/c5db042b0f3a8def985930d720d6c9e7b8ee0837/path.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 892, 803, 30857, 1968, 4672, 3536, 5767, 320, 313, 502, 91, 2390, 20651, 501, 589, 225, 1220, 589, 353, 635, 805, 411, 83, 313, 502, 91, 2390, 20651, 67, 2941, 67, 803, 16893, 621...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 892, 803, 30857, 1968, 4672, 3536, 5767, 320, 313, 502, 91, 2390, 20651, 501, 589, 225, 1220, 589, 353, 635, 805, 411, 83, 313, 502, 91, 2390, 20651, 67, 2941, 67, 803, 16893, 621...
if 0 : buildPackage( "speex",
if 1 : buildPackage( "speex",
def buildPackage(name, uri, checkVersion, downloadUri, tarballName, buildCommand, srcdir=None, deps="", pinnedVersion = None, ) : print "Module:", name subst = dict( sandbox = sandbox, prefix = prefix, target = target, sfmirror = sfmirror, apachemirror = apachemirror, name = name, pinned = pinnedVersion if pinnedVersio...
9516624bdaf457fb48cb287da6115af5d509bbca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1456/9516624bdaf457fb48cb287da6115af5d509bbca/setup_mingw.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 2261, 12, 529, 16, 2003, 16, 866, 1444, 16, 4224, 3006, 16, 29441, 461, 16, 1361, 2189, 16, 1705, 1214, 33, 7036, 16, 8740, 1546, 3113, 26193, 1444, 273, 599, 16, 262, 294, 1172,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 2261, 12, 529, 16, 2003, 16, 866, 1444, 16, 4224, 3006, 16, 29441, 461, 16, 1361, 2189, 16, 1705, 1214, 33, 7036, 16, 8740, 1546, 3113, 26193, 1444, 273, 599, 16, 262, 294, 1172,...
daysToWait = self.dayOfWeek - day - 1
daysToWait = self.dayOfWeek - day
def __init__(self, filename, when='h', interval=1, backupCount=0, encoding=None): BaseRotatingHandler.__init__(self, filename, 'a', encoding) self.when = string.upper(when) self.backupCount = backupCount # Calculate the real rollover interval, which is just the number of # seconds between rollovers. Also set the filen...
69fbf11577f9dd78d97c2e64d558b5482edf4707 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/69fbf11577f9dd78d97c2e64d558b5482edf4707/handlers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1544, 16, 1347, 2218, 76, 2187, 3673, 33, 21, 16, 5114, 1380, 33, 20, 16, 2688, 33, 7036, 4672, 3360, 8570, 1776, 1503, 16186, 2738, 972, 12, 2890, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1544, 16, 1347, 2218, 76, 2187, 3673, 33, 21, 16, 5114, 1380, 33, 20, 16, 2688, 33, 7036, 4672, 3360, 8570, 1776, 1503, 16186, 2738, 972, 12, 2890, 16, ...
req.hdf['report.message'] = 'Report failed: %s' % e return info = self.get_info(db, id, args) if not info: return title, description, sql = info
raise TracError, 'Report failed: %s' % e title, description, sql = self.get_info(db, id, args)
def _render_view(self, req, db, id): """ uses a user specified sql query to extract some information from the database and presents it as a html table. """ actions = {'create': perm.REPORT_CREATE, 'delete': perm.REPORT_DELETE, 'modify': perm.REPORT_MODIFY} for action in [k for k,v in actions.items() if req.perm.has_per...
307cca27280ff520714d778fa2f6ddee39de7045 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/307cca27280ff520714d778fa2f6ddee39de7045/Report.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5902, 67, 1945, 12, 2890, 16, 1111, 16, 1319, 16, 612, 4672, 3536, 4692, 279, 729, 1269, 1847, 843, 358, 2608, 2690, 1779, 628, 326, 2063, 471, 3430, 87, 518, 487, 279, 1729, 1014...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5902, 67, 1945, 12, 2890, 16, 1111, 16, 1319, 16, 612, 4672, 3536, 4692, 279, 729, 1269, 1847, 843, 358, 2608, 2690, 1779, 628, 326, 2063, 471, 3430, 87, 518, 487, 279, 1729, 1014...
r += "[+ = \"" + group + "\" +]" + closure()
r += "[+ = \"" + group + "\" +]" + snippet_if if snippet_else != None: r += "[+ * +]" + snippet_if
def if_platform_tagged(platform, tag, closure, c2=None): r = "" r += "[+ IF " + tag + " defined +]" r += "[+ FOR " + tag + " +][+ CASE " + tag + " +]" for group in RMAP[platform]: r += "[+ = \"" + group + "\" +]" + closure() r += "[+ ESAC +][+ ENDFOR +]" if c2 == None: r += "[+ ENDIF +]" return r r += "[+ ELSE +]" + ...
c8d22d34fb910911782f3cb62d58a3495edc8286 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9475/c8d22d34fb910911782f3cb62d58a3495edc8286/gentpl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 309, 67, 9898, 67, 23023, 12, 9898, 16, 1047, 16, 7213, 16, 276, 22, 33, 7036, 4672, 436, 273, 1408, 436, 1011, 5158, 15, 11083, 315, 397, 1047, 397, 315, 2553, 397, 4279, 436, 1011, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 309, 67, 9898, 67, 23023, 12, 9898, 16, 1047, 16, 7213, 16, 276, 22, 33, 7036, 4672, 436, 273, 1408, 436, 1011, 5158, 15, 11083, 315, 397, 1047, 397, 315, 2553, 397, 4279, 436, 1011, ...
string[matchend:][endmatch.end(1):], [], endmatch.group(1))
string[textend:], [], endmatch.group(1))
def inline_obj(self, match, lineno, pattern, nodeclass, restore_backslashes=0): string = match.string matchstart = match.start('start') matchend = match.end('start') if self.quoted_start(match): return (string[:matchend], [], string[matchend:], [], '') endmatch = pattern.search(string[matchend:]) if endmatch and endmat...
a5c0eb6861885d1f50c31667ba475c9c99a4acf6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/a5c0eb6861885d1f50c31667ba475c9c99a4acf6/states.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6370, 67, 2603, 12, 2890, 16, 845, 16, 7586, 16, 1936, 16, 756, 1106, 16, 5217, 67, 823, 13675, 33, 20, 4672, 533, 273, 845, 18, 1080, 845, 1937, 273, 845, 18, 1937, 2668, 1937, 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, 6370, 67, 2603, 12, 2890, 16, 845, 16, 7586, 16, 1936, 16, 756, 1106, 16, 5217, 67, 823, 13675, 33, 20, 4672, 533, 273, 845, 18, 1080, 845, 1937, 273, 845, 18, 1937, 2668, 1937, 6134...
except CifFile.CifError:
except StarFile.StarLengthError:
def testBadAddToLoop(self): """Test incorrect loop addition""" adddict = {'_address':['1 high street','2 high street','3 high street'], '_address2':['Ecuador','Bolivia','Colombia']} try: self.cf.AddToLoop('_no_item',adddict) except KeyError: pass else: self.Fail() try: self.cf.AddToLoop('_item_name#2',adddict) except C...
a65d099e46f5afda94b5df0a69c7bb8d7605c42c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3057/a65d099e46f5afda94b5df0a69c7bb8d7605c42c/TestPyCifRW.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 6434, 986, 774, 6452, 12, 2890, 4672, 3536, 4709, 11332, 2798, 2719, 8395, 527, 1576, 273, 13666, 67, 2867, 4278, 3292, 21, 3551, 19382, 17023, 22, 3551, 19382, 17023, 23, 3551, 1938...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6434, 986, 774, 6452, 12, 2890, 4672, 3536, 4709, 11332, 2798, 2719, 8395, 527, 1576, 273, 13666, 67, 2867, 4278, 3292, 21, 3551, 19382, 17023, 22, 3551, 19382, 17023, 23, 3551, 1938...
(ename, email) = rfc822.parseaddr(node.astext())
(ename, email) = rfc822.parseaddr(node[1].astext())
def visit_field(self, node): if isinstance(node.parent, nodes.docinfo): name = node[0].astext().lower().replace(" ","") if name == "moduleauthor": (ename, email) = rfc822.parseaddr(node[1].astext()) self.docinfo["moduleauthor"] = ename self.docinfo["moduleauthoremail"] = email elif name in ("author", "sectionauthor") :...
e1383d726548c9267e8db29b43419eac2c22cfdc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/e1383d726548c9267e8db29b43419eac2c22cfdc/mkpydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 1518, 12, 2890, 16, 756, 4672, 309, 1549, 12, 2159, 18, 2938, 16, 2199, 18, 2434, 1376, 4672, 508, 273, 756, 63, 20, 8009, 689, 408, 7675, 8167, 7675, 2079, 2932, 3104, 3660,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3757, 67, 1518, 12, 2890, 16, 756, 4672, 309, 1549, 12, 2159, 18, 2938, 16, 2199, 18, 2434, 1376, 4672, 508, 273, 756, 63, 20, 8009, 689, 408, 7675, 8167, 7675, 2079, 2932, 3104, 3660,...
print "[NodeManager] Node Manager memory usage is unussually low."
print "[NodeManager] Node Manager memory usage is unusually low."
def nmclient_rawsay(nmip, nmport, *args): fullresponse = nmclient_rawcommunicate(nmip, nmport, *args) try: (response, status) = fullresponse.rsplit('\n',1) except KeyError: raise NMClientException, "Communication error '"+fullresponse+"'" if status == 'Success': return response elif status == 'Error': raise NMClientE...
575ba8ec5ea5c5c357035abee00c944e7edf2048 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/575ba8ec5ea5c5c357035abee00c944e7edf2048/testprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8442, 2625, 67, 1899, 87, 528, 12, 15094, 625, 16, 8442, 655, 16, 380, 1968, 4672, 1983, 2740, 273, 8442, 2625, 67, 1899, 5702, 318, 2659, 12, 15094, 625, 16, 8442, 655, 16, 380, 1968,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8442, 2625, 67, 1899, 87, 528, 12, 15094, 625, 16, 8442, 655, 16, 380, 1968, 4672, 1983, 2740, 273, 8442, 2625, 67, 1899, 5702, 318, 2659, 12, 15094, 625, 16, 8442, 655, 16, 380, 1968,...
self.gridlayout40.addWidget(self.saved_height_lineedit,1,2,1,1)
self.gridlayout36.addWidget(self.saved_height_lineedit,1,2,1,1)
def setupUi(self, UserPrefsDialog): UserPrefsDialog.setObjectName("UserPrefsDialog") UserPrefsDialog.resize(QtCore.QSize(QtCore.QRect(0,0,917,661).size()).expandedTo(UserPrefsDialog.minimumSizeHint()))
752b48c67dcf97437d2cb83fa267b09487665da0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/752b48c67dcf97437d2cb83fa267b09487665da0/UserPrefsDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 2177, 1386, 2556, 6353, 4672, 2177, 1386, 2556, 6353, 18, 542, 16707, 2932, 1299, 1386, 2556, 6353, 7923, 2177, 1386, 2556, 6353, 18, 15169, 12, 23310, 4670, 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, 3875, 13943, 12, 2890, 16, 2177, 1386, 2556, 6353, 4672, 2177, 1386, 2556, 6353, 18, 542, 16707, 2932, 1299, 1386, 2556, 6353, 7923, 2177, 1386, 2556, 6353, 18, 15169, 12, 23310, 4670, 18,...
class BeforeHeadPhase(Phase): def __init__(self, parser, tree): Phase.__init__(self, parser, tree) self.startTagHandler = utils.MethodDispatcher([ ("html", self.startTagHtml), ("head", self.startTagHead) ]) self.startTagHandler.default = self.startTagOther self.endTagHandler = utils.MethodDispatcher([ (("head", "bod...
def endTagOther(self, token): self.parser.parseError("end-tag-after-implied-root", {"name": token["name"]}) class InHeadPhase(Phase): def __init__(self, parser, tree): Phase.__init__(self, parser, tree) self.startTagHandler = utils.MethodDispatcher([ ("html", self.startTagHtml), ("title", self.startTagTitle), (("nos...
def processEndTag(self, token): if token["name"] not in ("head", "body", "html", "br"): self.parser.parseError("unexpected-end-tag-before-html", {"name": token["name"]}) else: self.insertHtmlElement() self.parser.phase.processEndTag(token)
7b800000ab5eed9d02fde3c4b884769a0bfbf17a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4487/7b800000ab5eed9d02fde3c4b884769a0bfbf17a/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 25633, 12, 2890, 16, 1147, 4672, 309, 1147, 9614, 529, 11929, 486, 316, 7566, 1978, 3113, 315, 3432, 3113, 315, 2620, 3113, 315, 2848, 6, 4672, 365, 18, 4288, 18, 2670, 668, 2932, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25633, 12, 2890, 16, 1147, 4672, 309, 1147, 9614, 529, 11929, 486, 316, 7566, 1978, 3113, 315, 3432, 3113, 315, 2620, 3113, 315, 2848, 6, 4672, 365, 18, 4288, 18, 2670, 668, 2932, ...
type = None
rtype = None
def rebin_monitor(obj1, obj2, **kwargs): """ This function takes objects (1st is the monitor, 2nd is the detector data) and rebins the data for obj1 onto the axis provided by obj2. The pixel ID can be transferred as the pixel ID of the rebinned monitor histogram. A prefix is placed on the bank ID to dilineate that this...
bbfa4f6aa6e8c2caf972878eed3bcef594b43d30 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/763/bbfa4f6aa6e8c2caf972878eed3bcef594b43d30/hlr_rebin_monitor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 283, 4757, 67, 10259, 12, 2603, 21, 16, 1081, 22, 16, 2826, 4333, 4672, 3536, 1220, 445, 5530, 2184, 261, 21, 334, 353, 326, 6438, 16, 576, 4880, 353, 326, 13826, 501, 13, 471, 283, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 283, 4757, 67, 10259, 12, 2603, 21, 16, 1081, 22, 16, 2826, 4333, 4672, 3536, 1220, 445, 5530, 2184, 261, 21, 334, 353, 326, 6438, 16, 576, 4880, 353, 326, 13826, 501, 13, 471, 283, ...
s = _center(`year`, colwidth * 3 + c * 2).rstrip() + '\n' * l
s = `year`.center(colwidth * 3 + c * 2).rstrip() + '\n' * l
def calendar(year, w=0, l=0, c=_spacing): """Returns a year's calendar as a multi-line string.""" w = max(2, w) l = max(1, l) c = max(2, c) colwidth = (w + 1) * 7 - 1 s = _center(`year`, colwidth * 3 + c * 2).rstrip() + '\n' * l header = weekheader(w) header = format3cstring(header, header, header, colwidth, c).rstrip(...
d2d800fb29679682849d3738eb4ac96334ec33e7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/d2d800fb29679682849d3738eb4ac96334ec33e7/calendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5686, 12, 6874, 16, 341, 33, 20, 16, 328, 33, 20, 16, 276, 33, 67, 14080, 4672, 3536, 1356, 279, 3286, 1807, 5686, 487, 279, 3309, 17, 1369, 533, 12123, 341, 273, 943, 12, 22, 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, 5686, 12, 6874, 16, 341, 33, 20, 16, 328, 33, 20, 16, 276, 33, 67, 14080, 4672, 3536, 1356, 279, 3286, 1807, 5686, 487, 279, 3309, 17, 1369, 533, 12123, 341, 273, 943, 12, 22, 16, ...
s.appendExten("s","Set(TIMEOUT(absolute)=%s)" % self.timeout, self.pbx)
s.appendExten("s","Set(TIMEOUT(absolute)=%s)" % self.timeout, context)
def createAsteriskConfig(self): s = AstConf("extensions.conf") s.setSection(self.name) if self.pbx: pbx = self.pbx else: pbx = "phones" s.append("include=%s" % pbx) s.appendExten("s","Set(TIMEOUT(digit)=%d)" % self.digittimeout, self.pbx) if self.moh: s.appendExten("s","Setmusiconhold(%s)" % self.moh, self.pbx) s.appen...
e581660927aebaacc03692e1a06a4d11542ff6a3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2627/e581660927aebaacc03692e1a06a4d11542ff6a3/cfg_ivr_treenode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 37, 8190, 10175, 809, 12, 2890, 4672, 272, 273, 16614, 3976, 2932, 9489, 18, 3923, 7923, 272, 18, 542, 5285, 12, 2890, 18, 529, 13, 309, 365, 18, 5733, 92, 30, 6386, 92, 273, 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, 752, 37, 8190, 10175, 809, 12, 2890, 4672, 272, 273, 16614, 3976, 2932, 9489, 18, 3923, 7923, 272, 18, 542, 5285, 12, 2890, 18, 529, 13, 309, 365, 18, 5733, 92, 30, 6386, 92, 273, 36...
if node.op == op: q.append(node)
if node is not current_node: if node.op == op: q.append(node)
def importer(node): if node.op == op: q.append(node)
60e767c2b1160c3b17b8f008c8a8922c290b215d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/60e767c2b1160c3b17b8f008c8a8922c290b215d/opt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15198, 12, 2159, 4672, 309, 756, 18, 556, 422, 1061, 30, 1043, 18, 6923, 12, 2159, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15198, 12, 2159, 4672, 309, 756, 18, 556, 422, 1061, 30, 1043, 18, 6923, 12, 2159, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
value |= parent.stream.readBits(addr, 8, LITTLE_ENDIAN) << (8*i)
value |= (parent.stream.readBits(addr, 8, LITTLE_ENDIAN) << (8*i))
def __init__(self, parent, name, max_size=None, description=None): Field.__init__(self, parent, name, size=8, description=description) value = 0 addr = self.absolute_address mask = 0x80 firstByte = parent.stream.readBits(addr, 8, LITTLE_ENDIAN) for i in xrange(8): if not (firstByte & mask): value += ((firstByte & (mask...
b4c2f8e4923f171866d7b1e3baacbcfb958f1557 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/b4c2f8e4923f171866d7b1e3baacbcfb958f1557/sevenzip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 508, 16, 943, 67, 1467, 33, 7036, 16, 2477, 33, 7036, 4672, 2286, 16186, 2738, 972, 12, 2890, 16, 982, 16, 508, 16, 963, 33, 28, 16, 2477, 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, 1001, 2738, 972, 12, 2890, 16, 982, 16, 508, 16, 943, 67, 1467, 33, 7036, 16, 2477, 33, 7036, 4672, 2286, 16186, 2738, 972, 12, 2890, 16, 982, 16, 508, 16, 963, 33, 28, 16, 2477, 3...
error = True
def download_file_urls(urllist, local_file, size=0, checksums={}, force = False, handler = None, segmented = SEGMENTED, chunksums = {}, chunk_size = None): ''' Download a file. First parameter, file to download, URL or file path to download from Second parameter, file path to save to Third parameter, optional, expected...
e80d7a3e15473362950460609f4ebc6ff6269f95 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6425/e80d7a3e15473362950460609f4ebc6ff6269f95/download.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4224, 67, 768, 67, 10518, 12, 718, 1098, 16, 1191, 67, 768, 16, 963, 33, 20, 16, 26829, 28793, 2944, 273, 1083, 16, 1838, 273, 599, 16, 3267, 329, 273, 26167, 16196, 6404, 16, 2441, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4224, 67, 768, 67, 10518, 12, 718, 1098, 16, 1191, 67, 768, 16, 963, 33, 20, 16, 26829, 28793, 2944, 273, 1083, 16, 1838, 273, 599, 16, 3267, 329, 273, 26167, 16196, 6404, 16, 2441, ...
"""Create a bar graph of card scheduling statistics"""
"""Create a bar graph of card scheduling statistics."""
def generate_figure(self):
d6e8b77cac22d29f35100ef3ed53b5d521ff6a9a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1240/d6e8b77cac22d29f35100ef3ed53b5d521ff6a9a/statistics_dlg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 19675, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 2103, 67, 19675, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
val = new.instancemethod(val, None, cls)
val = getattr(cls, field)
def __init__(self, cls, verbosity=0): self._tmp_ivar = {} self._tmp_cvar = {} self._tmp_type = {} ObjDoc.__init__(self, cls, verbosity)
199a1499cbe7b366d012321bbc145a7b8eafcbce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/199a1499cbe7b366d012321bbc145a7b8eafcbce/objdoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2028, 16, 11561, 33, 20, 4672, 365, 6315, 5645, 67, 22647, 273, 2618, 365, 6315, 5645, 67, 71, 1401, 273, 2618, 365, 6315, 5645, 67, 723, 273, 2618, 1876...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2028, 16, 11561, 33, 20, 4672, 365, 6315, 5645, 67, 22647, 273, 2618, 365, 6315, 5645, 67, 71, 1401, 273, 2618, 365, 6315, 5645, 67, 723, 273, 2618, 1876...
ce = m.group(1) availableCEs.append(ce)
ce = m.group(1) if not re.search('^https',ce): availableCEs.append(ce)
def __listMatchJob(self, job, jdlFile): """ Get available gLite CEs for Pilot Job """ self.log.info( '--- Executing edg-job-list-match for %s' % job )
9103cb8e39499a91fadc1ad48ccbd334ad12b322 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/9103cb8e39499a91fadc1ad48ccbd334ad12b322/gLitePilotDirector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1098, 2060, 2278, 12, 2890, 16, 1719, 16, 525, 5761, 812, 4672, 3536, 968, 2319, 314, 20291, 385, 6705, 364, 453, 22797, 3956, 3536, 365, 18, 1330, 18, 1376, 12, 3534, 17, 3889, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1098, 2060, 2278, 12, 2890, 16, 1719, 16, 525, 5761, 812, 4672, 3536, 968, 2319, 314, 20291, 385, 6705, 364, 453, 22797, 3956, 3536, 365, 18, 1330, 18, 1376, 12, 3534, 17, 3889, ...
print -("Error while renaming %s to %s! -> %s already exists!") % (ori, new, new)
print _("Error while renaming %s to %s! -> %s already exists!") % (ori, new, new)
def rename_file(ori, new): """ Change filename with the new one """ if ori == new: return True # We don't need to rename the file, but don't show error message if os.path.exists(new): print -("Error while renaming %s to %s! -> %s already exists!") % (ori, new, new) return False try: os.rename(ori, new) print "Ren...
aa6169e5fb47656a50f1e16c305dbcd4825f580e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/735/aa6169e5fb47656a50f1e16c305dbcd4825f580e/pyrenamerfilefuncs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6472, 67, 768, 12, 280, 77, 16, 394, 4672, 3536, 7576, 1544, 598, 326, 394, 1245, 3536, 225, 309, 28361, 422, 394, 30, 327, 1053, 565, 468, 1660, 2727, 1404, 1608, 358, 6472, 326, 585,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6472, 67, 768, 12, 280, 77, 16, 394, 4672, 3536, 7576, 1544, 598, 326, 394, 1245, 3536, 225, 309, 28361, 422, 394, 30, 327, 1053, 565, 468, 1660, 2727, 1404, 1608, 358, 6472, 326, 585,...
if exit_status == False:
if exit_status == True: log.verbose("%s copied from cache-dir %s.\n" % (sFile, cache)) log.debug("%s copied from cache-dir %s.\n" % (sFile, cache)) else: log.debug("%s not available in local cache %s\n" % (sFile, cache))
def run(request, response, func=copy_first_match): '''Get items from the request Queue, process them with func(), put the results along with the Thread's name into the response Queue. Stop running once an item is None.''' while 1: item = request.get() if item is None: break (sUrl, sFile, download_size, checksum) = st...
b8e894b2e6e1e7f672d95da72ee9cabedb9e55db /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12499/b8e894b2e6e1e7f672d95da72ee9cabedb9e55db/pypt_core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2293, 16, 766, 16, 1326, 33, 3530, 67, 3645, 67, 1916, 4672, 9163, 967, 1516, 628, 326, 590, 7530, 16, 1207, 2182, 598, 1326, 9334, 1378, 326, 1686, 7563, 598, 326, 4884, 180...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2293, 16, 766, 16, 1326, 33, 3530, 67, 3645, 67, 1916, 4672, 9163, 967, 1516, 628, 326, 590, 7530, 16, 1207, 2182, 598, 1326, 9334, 1378, 326, 1686, 7563, 598, 326, 4884, 180...
ps.Publisher().sendMessage('Update window and level text',\ "WL: %d WW: %d"%(proj.level, proj.window))
ps.Publisher().sendMessage('Update window and level text',\ "WL: %d WW: %d"%(proj.level, proj.window))
def EnableText(self): if not (self.text): text = self.text = vtku.Text() self.ren.AddActor(text.actor) proj = project.Project()
4aeae2b97f3e254534e833dc54d734d2db1ea61a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10228/4aeae2b97f3e254534e833dc54d734d2db1ea61a/viewer_slice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9677, 1528, 12, 2890, 4672, 309, 486, 261, 2890, 18, 955, 4672, 977, 273, 365, 18, 955, 273, 13659, 89, 18, 1528, 1435, 365, 18, 1187, 18, 986, 17876, 12, 955, 18, 3362, 13, 10296, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9677, 1528, 12, 2890, 4672, 309, 486, 261, 2890, 18, 955, 4672, 977, 273, 365, 18, 955, 273, 13659, 89, 18, 1528, 1435, 365, 18, 1187, 18, 986, 17876, 12, 955, 18, 3362, 13, 10296, 2...
print "No Large Cover, Checking Small Cover..."
def cover_search_file(self, arg=None, menuw=None): """ search imdb for this item """ import amazon
eb2d9ec3b72b6a3ab66bd58d8190aeee919eb939 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/eb2d9ec3b72b6a3ab66bd58d8190aeee919eb939/coversearch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5590, 67, 3072, 67, 768, 12, 2890, 16, 1501, 33, 7036, 16, 3824, 91, 33, 7036, 4672, 3536, 1623, 709, 1966, 364, 333, 761, 3536, 1930, 3750, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5590, 67, 3072, 67, 768, 12, 2890, 16, 1501, 33, 7036, 16, 3824, 91, 33, 7036, 4672, 3536, 1623, 709, 1966, 364, 333, 761, 3536, 1930, 3750, 2, -100, -100, -100, -100, -100, -100, -100...
"""
"""
def fl_set_dirlist_sort(method): """ fl_set_dirlist_sort(method) -> num. """ retval = _fl_set_dirlist_sort(method) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 542, 67, 1214, 1098, 67, 3804, 12, 2039, 4672, 3536, 1183, 67, 542, 67, 1214, 1098, 67, 3804, 12, 2039, 13, 317, 818, 18, 3536, 225, 5221, 273, 389, 2242, 67, 542, 67, 1214...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 542, 67, 1214, 1098, 67, 3804, 12, 2039, 4672, 3536, 1183, 67, 542, 67, 1214, 1098, 67, 3804, 12, 2039, 13, 317, 818, 18, 3536, 225, 5221, 273, 389, 2242, 67, 542, 67, 1214...
self.icecast-pid = os.spawnl(os.P_NOWAIT, config.ICECAST_CMD, mycmd, '-d', config.ICECAST_CONF_DIR)
self.icecast_pid = os.spawnl(os.P_NOWAIT, config.ICECAST_CMD, mycmd, '-d', config.ICECAST_CONF_DIR)
def __init__(self): plugin.DaemonPlugin.__init__(self) self.icecast-pid = None self.ices-pid = None
2a4eae4274dce5e14a939bcb47532fac62e58608 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/2a4eae4274dce5e14a939bcb47532fac62e58608/icecast.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 1909, 18, 12858, 3773, 16186, 2738, 972, 12, 2890, 13, 365, 18, 1812, 4155, 17, 6610, 273, 599, 365, 18, 1242, 17, 6610, 273, 599, 2, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 1909, 18, 12858, 3773, 16186, 2738, 972, 12, 2890, 13, 365, 18, 1812, 4155, 17, 6610, 273, 599, 365, 18, 1242, 17, 6610, 273, 599, 2, -100, -100, -100,...
pattern_keys = [r'(.*)_([0-9]*)\.(.*)', r'([^\.]*)\.([0-9]+)',
pattern_keys = [r'([^\.]*)\.([0-9]+)', r'(.*)_([0-9]*)\.(.*)',
def image2image(filename): '''Return an integer for the template to match this filename.''' # check that the file name doesn't contain anything mysterious if filename.count('#'): raise RuntimeError, '# characters in filename' # the patterns in the order I want to test them pattern_keys = [r'(.*)_([0-9]*)\.(.*)', r'(...
1c4943d902d9054aa693637949c54b1cb8ca8dda /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3290/1c4943d902d9054aa693637949c54b1cb8ca8dda/FindImages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1316, 22, 2730, 12, 3459, 4672, 9163, 990, 392, 3571, 364, 326, 1542, 358, 845, 333, 1544, 1093, 6309, 225, 468, 866, 716, 326, 585, 508, 3302, 1404, 912, 6967, 312, 1094, 264, 22774, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1316, 22, 2730, 12, 3459, 4672, 9163, 990, 392, 3571, 364, 326, 1542, 358, 845, 333, 1544, 1093, 6309, 225, 468, 866, 716, 326, 585, 508, 3302, 1404, 912, 6967, 312, 1094, 264, 22774, ...
mainloop.run ()
mainloop.run()
def on_progress (self): print self.oper.progress return True
016aec4a85d3438c0d49f1f8b2012e23eb7805ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2207/016aec4a85d3438c0d49f1f8b2012e23eb7805ec/audio.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 8298, 261, 2890, 4672, 1172, 365, 18, 4063, 18, 8298, 327, 1053, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 603, 67, 8298, 261, 2890, 4672, 1172, 365, 18, 4063, 18, 8298, 327, 1053, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
name=string.strip(name) if len(name)==0: name = socket.gethostname() try: name = socket.gethostbyaddr(name)[0] except socket.error: pass self.putcmd("helo",name)
self.putcmd("helo", _get_fqdn_hostname(name))
def helo(self, name=''): """SMTP 'helo' command. Hostname to send for this command defaults to the FQDN of the local host. """ name=string.strip(name) if len(name)==0: name = socket.gethostname() try: name = socket.gethostbyaddr(name)[0] except socket.error: pass self.putcmd("helo",name) (code,msg)=self.getreply() self...
71b3000f471aadb3a6f155ad3890b0ce3be25d5b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/71b3000f471aadb3a6f155ad3890b0ce3be25d5b/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13150, 83, 12, 2890, 16, 508, 2218, 11, 4672, 3536, 55, 14636, 296, 76, 24214, 11, 1296, 18, 17423, 358, 1366, 364, 333, 1296, 3467, 358, 326, 23127, 8609, 434, 326, 1191, 1479, 18, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13150, 83, 12, 2890, 16, 508, 2218, 11, 4672, 3536, 55, 14636, 296, 76, 24214, 11, 1296, 18, 17423, 358, 1366, 364, 333, 1296, 3467, 358, 326, 23127, 8609, 434, 326, 1191, 1479, 18, 35...
trigparamlist = [] for ifo in ifolist: trigparam.append(getattr(trig,ifo).get_effective_snr()) trigparam.append(getattr(trig,ifo).mchirp) trigparam.append(getattr(trig,ifo).eff_distance) trigparam = numpy.asarray(trigparamlist) candparam = numpy.asarray([1.0]) dsquared.append( numpy.sum( numpy.power( \ (candparam...
for ifo1 in ifolist: c_lambda = getattr(candidate,ifo1).get_effective_snr() t_lambda = getattr(trig,ifo1).get_effective_snr() tmp_d_squared += ( 1.0 - t_lambda / c_lambda )**2 param_counter += 1 c_lambda = getattr(candidate,ifo1).eff_distance t_lambda = getattr(trig,ifo1).eff_distance tmp_d_squared += ( 1.0 - ...
def improvedMetricHistogram(self, candidate): """ Return distance squared between candidate and coincident triggers using the following metric
81fded991cfe26bbc80ae463cf2c61f6ded3e2e1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/81fded991cfe26bbc80ae463cf2c61f6ded3e2e1/CoincInspiralUtils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13069, 2155, 5396, 12874, 12, 2890, 16, 5500, 4672, 3536, 2000, 3888, 21778, 3086, 5500, 471, 13170, 71, 6392, 11752, 1450, 326, 3751, 3999, 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, 0, 0, 0, 0, 0, 0, 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, 13069, 2155, 5396, 12874, 12, 2890, 16, 5500, 4672, 3536, 2000, 3888, 21778, 3086, 5500, 471, 13170, 71, 6392, 11752, 1450, 326, 3751, 3999, 2, -100, -100, -100, -100, -100, -100, -100, -1...
if out: print out
if stdout: print stdout if stderr: print >>sys.stderr, stderr
def work(): # A worker thread. try: while True: try: test, args_tuple = pending.popleft() except IndexError: output.put((None, None, None)) return if not quiet: print test sys.stdout.flush() # -E is needed by some tests, e.g. test_import popen = Popen([sys.executable, '-E', '-m', 'test.regrtest', '--slaveargs', json.du...
282396f27addf4ae6586865ccf449f60753a106c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/282396f27addf4ae6586865ccf449f60753a106c/regrtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1440, 13332, 468, 432, 4322, 2650, 18, 775, 30, 1323, 1053, 30, 775, 30, 1842, 16, 833, 67, 8052, 273, 4634, 18, 5120, 4482, 1435, 1335, 10195, 30, 876, 18, 458, 12443, 7036, 16, 599, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1440, 13332, 468, 432, 4322, 2650, 18, 775, 30, 1323, 1053, 30, 775, 30, 1842, 16, 833, 67, 8052, 273, 4634, 18, 5120, 4482, 1435, 1335, 10195, 30, 876, 18, 458, 12443, 7036, 16, 599, ...
share = float( self.defaultGroupShare[ userGroup ] )
share = float( defaultGroupShare )
def recalculateTQSharesForEntity( self, userDN, userGroup, connObj = False ): """ Recalculate the shares for a userDN/userGroup combo """ self.log.info( "Recalculating shares for %s@%s TQs" % ( userDN, userGroup ) ) if userGroup in self.__groupShares: share = self.__groupShares[ userGroup ] else: share = float( self.de...
7f59a876ce8b7a49ff02a35f2a400254a7b7fb1a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/7f59a876ce8b7a49ff02a35f2a400254a7b7fb1a/TaskQueueDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26657, 56, 53, 24051, 1290, 1943, 12, 365, 16, 729, 8609, 16, 26205, 16, 1487, 2675, 273, 1083, 262, 30, 3536, 868, 11162, 326, 24123, 364, 279, 729, 8609, 19, 1355, 1114, 16778, 3536, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26657, 56, 53, 24051, 1290, 1943, 12, 365, 16, 729, 8609, 16, 26205, 16, 1487, 2675, 273, 1083, 262, 30, 3536, 868, 11162, 326, 24123, 364, 279, 729, 8609, 19, 1355, 1114, 16778, 3536, ...
if have_numpy: if self.BitsAllocated not in self.NumpyPixelFormats: raise NotImplementedError, "Do not have NumPy dtype for BitsAllocated=%d, please update Dataset.NumpyPixelFormats" % self.BitsAllocated numpy_format = self.NumpyPixelFormats[self.BitsAllocated] arr = numpy.fromstring(self.PixelData, numpy_format) if n...
format_str = '%sint%d' % (('u', '')[self.PixelRepresentation], self.BitsAllocated) try: numpy_format = numpy.dtype(format_str) except TypeError: raise TypeError("Data type not understood by NumPy: " "format='%s', PixelRepresentation=%d, BitsAllocated=%d" % ( numpy_format, self.PixelRepresentation, self.BitsAllocate...
def _PixelDataNumpy(self): """Return a NumPy array of the pixel data.
09329d16b9b771ea319954495fb4a0a801589aa7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8419/09329d16b9b771ea319954495fb4a0a801589aa7/dataset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9037, 751, 2578, 2074, 12, 2890, 4672, 3536, 990, 279, 6805, 9413, 526, 434, 326, 4957, 501, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9037, 751, 2578, 2074, 12, 2890, 4672, 3536, 990, 279, 6805, 9413, 526, 434, 326, 4957, 501, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
vm.monitor.cmd("cont") dest_vm.destroy(gracefully=False) return vm else: wait_for_migration() if stable_check: save_path = None or "/tmp" save1 = os.path.join(save_path, "src") save2 = os.path.join(save_path, "dst") vm.save_to_file(save1) dest_vm.save_to_file(save2) md5_save1 = utils.hash_file(save1) md5_save2 = uti...
vm.monitor.cmd("stop") vm.monitor.migrate(uri) if mig_cancel: time.sleep(2) vm.monitor.cmd("migrate_cancel") if not kvm_utils.wait_for(mig_cancelled, 60, 2, 2, "Waiting for migration " "cancellation"): raise error.TestFail("Failed to cancel migration") if offline: vm.monitor.cmd("cont") dest_vm.destroy(gracefully=Fals...
def wait_for_migration(): if not kvm_utils.wait_for(mig_finished, mig_timeout, 2, 2, "Waiting for migration to finish..."): raise error.TestFail("Timeout expired while waiting for migration " "to finish")
2204ad57b32138a75dcae79b5823dcce12b9f261 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10349/2204ad57b32138a75dcae79b5823dcce12b9f261/kvm_test_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 67, 1884, 67, 15746, 13332, 309, 486, 417, 3489, 67, 5471, 18, 7048, 67, 1884, 12, 81, 360, 67, 13527, 16, 312, 360, 67, 4538, 16, 576, 16, 576, 16, 315, 15946, 364, 6333, 358,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 67, 1884, 67, 15746, 13332, 309, 486, 417, 3489, 67, 5471, 18, 7048, 67, 1884, 12, 81, 360, 67, 13527, 16, 312, 360, 67, 4538, 16, 576, 16, 576, 16, 315, 15946, 364, 6333, 358,...
if self.watchedTime is None or not self.isDownloaded():
if self.getWatchedTime() is None or not self.isDownloaded():
def getExpirationTime(self): """Get the time when this item will expire. Returns a datetime object, or None if it doesn't expire. """
24dd8471153678d63c514e17b00e2f125f6edf8f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/24dd8471153678d63c514e17b00e2f125f6edf8f/item.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12028, 950, 12, 2890, 4672, 3536, 967, 326, 813, 1347, 333, 761, 903, 6930, 18, 2860, 279, 3314, 733, 16, 225, 578, 599, 309, 518, 3302, 1404, 6930, 18, 3536, 2, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12028, 950, 12, 2890, 4672, 3536, 967, 326, 813, 1347, 333, 761, 903, 6930, 18, 2860, 279, 3314, 733, 16, 225, 578, 599, 309, 518, 3302, 1404, 6930, 18, 3536, 2, -100, -100, -100,...
display = "none"
display = "display: none; "
def render_list(ids, links): states = load_customlink_states() n = 0 for entry in links: n += 1 try: if type(entry[1]) == type(True): idss = ids + [str(n)] if states.get(''.join(idss), entry[1] and 'on' or 'off') == 'on': # open display = "" img = "link_folder_open.gif" else: display = "none" img = "link_folder.gif" ht...
9a6f13d2760a7889b4a7653562ef4a409ff00c36 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5589/9a6f13d2760a7889b4a7653562ef4a409ff00c36/shipped.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 1098, 12, 2232, 16, 4716, 4672, 5493, 273, 1262, 67, 3662, 1232, 67, 7992, 1435, 290, 273, 374, 364, 1241, 316, 4716, 30, 290, 1011, 404, 775, 30, 309, 618, 12, 4099, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 1098, 12, 2232, 16, 4716, 4672, 5493, 273, 1262, 67, 3662, 1232, 67, 7992, 1435, 290, 273, 374, 364, 1241, 316, 4716, 30, 290, 1011, 404, 775, 30, 309, 618, 12, 4099, 63, 2...
return False
return False
def SignalJob(webtlsmdd, job_id): """Causes a job stuck on a certain task to skip that step and move on to the next step. It will eventually have a state "warnings" """ ## Christoph Champ, 2008-04-10 if not webtlsmdd.jobdb.job_exists(job_id): return False job_dir = webtlsmdd.job_get_job_dir(job_id) if job_dir and job...
0049fea0a8babe00b08f3932abf09fa0bc010db6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10674/0049fea0a8babe00b08f3932abf09fa0bc010db6/webtlsmdd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12032, 2278, 12, 4875, 17116, 81, 449, 16, 1719, 67, 350, 4672, 3536, 39, 9608, 279, 1719, 384, 9031, 603, 279, 8626, 1562, 358, 2488, 716, 2235, 471, 3635, 603, 358, 326, 1024, 2235, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12032, 2278, 12, 4875, 17116, 81, 449, 16, 1719, 67, 350, 4672, 3536, 39, 9608, 279, 1719, 384, 9031, 603, 279, 8626, 1562, 358, 2488, 716, 2235, 471, 3635, 603, 358, 326, 1024, 2235, ...
story.append(Paragraph('Imported modules', h2))
story.append(Paragraph('Imported modules', self.makeHeadingStyle(self.indentLevel + 1)))
def beginModule(self, name, doc, imported): story = self.story h1, h2, h3, bt = self.h1, self.h2, self.h3, self.bt styleSheet = getSampleStyleSheet() bt1 = styleSheet['BodyText']
15568142376de73fc69361e70bbe3d4f6cf69325 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/15568142376de73fc69361e70bbe3d4f6cf69325/docpy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2376, 3120, 12, 2890, 16, 508, 16, 997, 16, 9101, 4672, 17285, 273, 365, 18, 31131, 366, 21, 16, 366, 22, 16, 366, 23, 16, 10921, 273, 365, 18, 76, 21, 16, 365, 18, 76, 22, 16, 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, 2376, 3120, 12, 2890, 16, 508, 16, 997, 16, 9101, 4672, 17285, 273, 365, 18, 31131, 366, 21, 16, 366, 22, 16, 366, 23, 16, 10921, 273, 365, 18, 76, 21, 16, 365, 18, 76, 22, 16, 3...
return request.form.get(name, [default])[0]
value = request.form.get(name, [default])[0] if escaped: value = wikiutil.escape(value, quote=True) return value
def form_get(request, name, default=''): """ Fetches a form field @param request: current request @param name: name of the field @keyword default: value if not present (default: '') """ return request.form.get(name, [default])[0]
64bbbaa35e708345ab13c5f9e67c9054fad53cc7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/64bbbaa35e708345ab13c5f9e67c9054fad53cc7/AdvancedSearch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 646, 67, 588, 12, 2293, 16, 508, 16, 805, 2218, 11, 4672, 3536, 8065, 281, 279, 646, 652, 225, 632, 891, 590, 30, 783, 590, 632, 891, 508, 30, 508, 434, 326, 652, 632, 11041, 805, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 646, 67, 588, 12, 2293, 16, 508, 16, 805, 2218, 11, 4672, 3536, 8065, 281, 279, 646, 652, 225, 632, 891, 590, 30, 783, 590, 632, 891, 508, 30, 508, 434, 326, 652, 632, 11041, 805, ...
FL_Coord, STRING],
FL_Coord, STRING],
def fl_add_bitmapbutton(type, x, y, w, h, label): """ fl_add_bitmapbutton(type, x, y, w, h, label) -> object """ retval = _fl_add_bitmapbutton(type, x, y, w, h, label) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 1289, 67, 3682, 1458, 5391, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 4672, 3536, 1183, 67, 1289, 67, 3682, 1458, 5391, 12, 723, 16, 619, 16, 677, 16, 341, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 1289, 67, 3682, 1458, 5391, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 4672, 3536, 1183, 67, 1289, 67, 3682, 1458, 5391, 12, 723, 16, 619, 16, 677, 16, 341, 1...
mod = i * 5
mod = (i * 5 + currminutes + minpadding) % 1440
def mod_start_time(self, arg=None, menuw=None): items = []
351f380253190e7f3760a69b48020bab4efdd85b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/351f380253190e7f3760a69b48020bab4efdd85b/manual_record.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 681, 67, 1937, 67, 957, 12, 2890, 16, 1501, 33, 7036, 16, 3824, 91, 33, 7036, 4672, 1516, 273, 5378, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 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, 681, 67, 1937, 67, 957, 12, 2890, 16, 1501, 33, 7036, 16, 3824, 91, 33, 7036, 4672, 1516, 273, 5378, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
'''HTML-quote the supplied text.'''
"""HTML-quote the supplied text."""
def html_quote(self, html): '''HTML-quote the supplied text.''' return cgi.escape(html)
16a3ebf380b95607b344181655488d818a27791f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1906/16a3ebf380b95607b344181655488d818a27791f/templating.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 67, 6889, 12, 2890, 16, 1729, 4672, 3536, 4870, 17, 6889, 326, 4580, 977, 12123, 327, 276, 10052, 18, 6939, 12, 2620, 13, 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, 1729, 67, 6889, 12, 2890, 16, 1729, 4672, 3536, 4870, 17, 6889, 326, 4580, 977, 12123, 327, 276, 10052, 18, 6939, 12, 2620, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
print "JDBG:", repo, cost, len(orepos)
def costExcludePackages(self): """ Create an excluder for repos. with higher cost. Eg. repo-A:cost=1 repo-B:cost=2 ... here we setup an excluder on repo-B that looks for pkgs in repo-B.""" # if all the repo.costs are equal then don't bother running things costs = {} for r in self.repos.listEnabled(): costs.setdefault(...
4bcff25dcb098ae7ccff6cfb639cca8f17656ce7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5445/4bcff25dcb098ae7ccff6cfb639cca8f17656ce7/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6991, 12689, 11425, 12, 2890, 4672, 3536, 1788, 392, 4687, 89, 765, 364, 13686, 18, 598, 10478, 6991, 18, 512, 75, 18, 3538, 17, 37, 30, 12398, 33, 21, 3538, 17, 38, 30, 12398, 33, 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, 6991, 12689, 11425, 12, 2890, 4672, 3536, 1788, 392, 4687, 89, 765, 364, 13686, 18, 598, 10478, 6991, 18, 512, 75, 18, 3538, 17, 37, 30, 12398, 33, 21, 3538, 17, 38, 30, 12398, 33, 2...
last_column_number = parser.current_column
def get_last_column(previous_xml_filename): print "Going to load '%s'" % (previous_xml_filename) doc = libxml2.parseFile(previous_xml_filename) a = doc.xpathEval('//@colnum') last_column = None for e in a: c = e.content if c and re.match('^\d+$',c): last_column = c if last_column: return int(last_column,10) else: retur...
afa10808c735fe43318a2856f3a993afbab25469 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8428/afa10808c735fe43318a2856f3a993afbab25469/parse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2722, 67, 2827, 12, 11515, 67, 2902, 67, 3459, 4672, 1172, 315, 5741, 310, 358, 1262, 1995, 87, 4970, 738, 261, 11515, 67, 2902, 67, 3459, 13, 997, 273, 16394, 22, 18, 2670, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2722, 67, 2827, 12, 11515, 67, 2902, 67, 3459, 4672, 1172, 315, 5741, 310, 358, 1262, 1995, 87, 4970, 738, 261, 11515, 67, 2902, 67, 3459, 13, 997, 273, 16394, 22, 18, 2670, ...
target = getattr(target, 'description', target)
target = target if isinstance(target, katpoint.Target) else katpoint.Target(target)
def track(self, target, duration=20.0, drive_strategy='longest-track', label='track', announce=True): """Track a target.
1b053c3924c04c0452ec43ad2db5d36f09608efb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5243/1b053c3924c04c0452ec43ad2db5d36f09608efb/observe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3298, 12, 2890, 16, 1018, 16, 3734, 33, 3462, 18, 20, 16, 14316, 67, 14914, 2218, 5748, 395, 17, 4101, 2187, 1433, 2218, 4101, 2187, 14281, 33, 5510, 4672, 3536, 4402, 279, 1018, 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, 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, 3298, 12, 2890, 16, 1018, 16, 3734, 33, 3462, 18, 20, 16, 14316, 67, 14914, 2218, 5748, 395, 17, 4101, 2187, 1433, 2218, 4101, 2187, 14281, 33, 5510, 4672, 3536, 4402, 279, 1018, 18, 2...
def insertSomething(self,user,files):
def insertSomething(self,user,files):
def insertSomething(self,user,files): req = "INSERT INTO userAccount (userName,numOfFiles) VALUES ('%s',%d)" % (user,files) res = self._update(req) if not res['OK']: gLogger.error("Failed to insert user files",res['Message']) else: gLogger.info("Succesfully inserted %d files" % res['Value']) return res
7ba732407a38eca2a7461ca8c31a54fcaaefbdaa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/7ba732407a38eca2a7461ca8c31a54fcaaefbdaa/testDMSDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 24332, 12, 2890, 16, 1355, 16, 2354, 4672, 1111, 273, 315, 11356, 12421, 729, 3032, 261, 1355, 461, 16, 2107, 951, 2697, 13, 13477, 7707, 9, 87, 2187, 9, 72, 2225, 738, 261, 1355...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2243, 24332, 12, 2890, 16, 1355, 16, 2354, 4672, 1111, 273, 315, 11356, 12421, 729, 3032, 261, 1355, 461, 16, 2107, 951, 2697, 13, 13477, 7707, 9, 87, 2187, 9, 72, 2225, 738, 261, 1355...
launch_success = editor.isAlive()
def launch(self): """Launch external editor""" use_locks = int(self.options.get('use_locks', 0)) if use_locks and self.metadata.get('lock-token'): # A lock token came down with the data, so the object is # already locked, see if we can borrow the lock if (int(self.options.get('always_borrow_locks', 0)) or self.metadata...
ddc7f847cd4cd585db51d7eeb441919cede7359b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/ddc7f847cd4cd585db51d7eeb441919cede7359b/zopeedit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8037, 12, 2890, 4672, 3536, 9569, 3903, 4858, 8395, 999, 67, 23581, 273, 509, 12, 2890, 18, 2116, 18, 588, 2668, 1202, 67, 23581, 2187, 374, 3719, 309, 999, 67, 23581, 471, 365, 18, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8037, 12, 2890, 4672, 3536, 9569, 3903, 4858, 8395, 999, 67, 23581, 273, 509, 12, 2890, 18, 2116, 18, 588, 2668, 1202, 67, 23581, 2187, 374, 3719, 309, 999, 67, 23581, 471, 365, 18, 41...
self._console.debug("Processing locale: %s" % entry) data[entry] = cldr.parseCldrFile(os.path.join(root, "%s.xml" % entry))
self._console.debug("Processing locale: %s" % locale) data[entry] = cldr.parseCldrFile(os.path.join(root, "%s.xml" % locale))
def getLocalizationData(self, locales): self._console.debug("Generating localization data...") self._console.indent()
d690c9cca9806dd762666bc034c439f443e90bf0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5718/d690c9cca9806dd762666bc034c439f443e90bf0/Locale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6993, 1588, 751, 12, 2890, 16, 6922, 4672, 365, 6315, 8698, 18, 4148, 2932, 21755, 17981, 501, 7070, 13, 365, 6315, 8698, 18, 9355, 1435, 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, 0, 0, 0, 0, 0, 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, 6993, 1588, 751, 12, 2890, 16, 6922, 4672, 365, 6315, 8698, 18, 4148, 2932, 21755, 17981, 501, 7070, 13, 365, 6315, 8698, 18, 9355, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -10...
class InterruptableThread(TrackableThread): """ A thread class that supports raising exception in the thread from another thread. """
class TaskThreadException(Exception): """ Base class for task-specific exceptions to be raised in a task thread. """ pass class TimeoutException(TaskThreadException): """ Exception to interrupt a task with a time out. """ pass class CancelException(TaskThreadException): """ Exception to interrupt a task with a ca...
def _raise_exception_in_thread(tid, exc_type): """ Raises an exception in the threads with id tid. """ assert inspect.isclass(exc_type) # NOTE this returns the number of threads that it modified, which should # only be 1 or 0 (if the thread id wasn't found) long_tid = ctypes.c_long(tid) exc_ptr = ctypes.py_object(exc_t...
797b61863875d6c3189f29d19a7a94cb785840bf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10692/797b61863875d6c3189f29d19a7a94cb785840bf/thread.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11628, 67, 4064, 67, 267, 67, 5930, 12, 18081, 16, 3533, 67, 723, 4672, 3536, 20497, 392, 1520, 316, 326, 7403, 598, 612, 11594, 18, 3536, 1815, 5334, 18, 291, 1106, 12, 10075, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11628, 67, 4064, 67, 267, 67, 5930, 12, 18081, 16, 3533, 67, 723, 4672, 3536, 20497, 392, 1520, 316, 326, 7403, 598, 612, 11594, 18, 3536, 1815, 5334, 18, 291, 1106, 12, 10075, 67...
return zmachine.ZMachine(story_image)
ui = trivialzui.create_zui() return zmachine.ZMachine(story_image, ui)
def make_zmachine(): # We use Graham Nelson's 'curses' game for our unittests. story_image = file("stories/curses.z5").read() return zmachine.ZMachine(story_image)
35c0b271ab1dcf8e97663a9bbfa1272f843e9280 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2052/35c0b271ab1dcf8e97663a9bbfa1272f843e9280/quetzal_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 94, 9149, 13332, 468, 1660, 999, 10812, 31698, 423, 292, 816, 1807, 296, 1397, 2420, 11, 7920, 364, 3134, 2836, 16341, 18, 17285, 67, 2730, 273, 585, 2932, 334, 2401, 19, 1397,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 94, 9149, 13332, 468, 1660, 999, 10812, 31698, 423, 292, 816, 1807, 296, 1397, 2420, 11, 7920, 364, 3134, 2836, 16341, 18, 17285, 67, 2730, 273, 585, 2932, 334, 2401, 19, 1397,...
if self.debuglevel > 0: print>>stderr, 'connect:', (host, port)
if self.debuglevel > 0: print>>stderr, 'connect:', sa
def connect(self, host='localhost', port = 0): """Connect to a host on a given port.
cebcc443ebb563ac6721add4cdb287d512a39013 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/cebcc443ebb563ac6721add4cdb287d512a39013/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 12, 2890, 16, 1479, 2218, 13014, 2187, 1756, 273, 374, 4672, 3536, 5215, 358, 279, 1479, 603, 279, 864, 1756, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 12, 2890, 16, 1479, 2218, 13014, 2187, 1756, 273, 374, 4672, 3536, 5215, 358, 279, 1479, 603, 279, 864, 1756, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if not modname:
if not modname or '.' in modname:
def search_function(encoding): # Cache lookup entry = _cache.get(encoding, _unknown) if entry is not _unknown: return entry # Import the module: # # First try to find an alias for the normalized encoding # name and lookup the module using the aliased name, then try to # lookup the module using the standard import sch...
a92979a1db11ca42e78390fead218afbefb61587 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a92979a1db11ca42e78390fead218afbefb61587/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 915, 12, 5999, 4672, 225, 468, 4379, 3689, 1241, 273, 389, 2493, 18, 588, 12, 5999, 16, 389, 8172, 13, 309, 1241, 353, 486, 389, 8172, 30, 327, 1241, 225, 468, 6164, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 915, 12, 5999, 4672, 225, 468, 4379, 3689, 1241, 273, 389, 2493, 18, 588, 12, 5999, 16, 389, 8172, 13, 309, 1241, 353, 486, 389, 8172, 30, 327, 1241, 225, 468, 6164, 326, 1...
if not os.path.exists(self.filename):
if os.path.exists(self.filename):
def err_dialog(msg): dialog = gtk.MessageDialog(self.main_dialog, gtk.DIALOG_MODAL, gtk.MESSAGE_ERROR, gtk.BUTTONS_OK, msg) dialog.set_property('use-markup', True) dialog.run() dialog.hide_all()
1e10a47170a9c2d49ddea1232387f5ffff4f3f75 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8416/1e10a47170a9c2d49ddea1232387f5ffff4f3f75/awnLauncherEditor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 393, 67, 12730, 12, 3576, 4672, 6176, 273, 22718, 18, 1079, 6353, 12, 2890, 18, 5254, 67, 12730, 16, 22718, 18, 2565, 18683, 67, 6720, 1013, 16, 22718, 18, 8723, 67, 3589, 16, 22718, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 393, 67, 12730, 12, 3576, 4672, 6176, 273, 22718, 18, 1079, 6353, 12, 2890, 18, 5254, 67, 12730, 16, 22718, 18, 2565, 18683, 67, 6720, 1013, 16, 22718, 18, 8723, 67, 3589, 16, 22718, 1...
syms[nm] = var(nm)
res = re.match(nm + '\s*\(.*\)', s) if res: syms[nm] = function(nm) else: syms[nm] = var(nm)
def symbolic_expression_from_maxima_string(x, equals_sub=False, maxima=maxima): syms = dict(_syms) if len(x) == 0: raise RuntimeError, "invalid symbolic expression -- ''" maxima.set('_tmp_',x) # This is inefficient since it so rarely is needed: #r = maxima._eval_line('listofvars(_tmp_);')[1:-1] s = maxima._eval_line...
c39ffe36b2e4daf584eba30df0235bfe46d74a4e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/c39ffe36b2e4daf584eba30df0235bfe46d74a4e/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16754, 67, 8692, 67, 2080, 67, 1896, 13888, 67, 1080, 12, 92, 16, 1606, 67, 1717, 33, 8381, 16, 943, 13888, 33, 1896, 13888, 4672, 24367, 273, 2065, 24899, 9009, 959, 13, 225, 309, 562...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16754, 67, 8692, 67, 2080, 67, 1896, 13888, 67, 1080, 12, 92, 16, 1606, 67, 1717, 33, 8381, 16, 943, 13888, 33, 1896, 13888, 4672, 24367, 273, 2065, 24899, 9009, 959, 13, 225, 309, 562...
self.session.clear() c = self.session.get(PasswordResetConfirmation, cid)
self.objectstore.clear() c = self.objectstore.get(PasswordResetConfirmation, cid)
def test_confirm_old_url_hash(self): """Test that old url_hashes are caught""" email = 'testguy@example.org' stamp = datetime.datetime.now() - datetime.timedelta(24, 0, 1) c = PasswordResetConfirmation(email_address=email) c.timestamp = stamp self.session.save(c) self.session.flush() cid = c.id
6464a88622de6213e0c72b0c4204ad3f2f8d3651 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12856/6464a88622de6213e0c72b0c4204ad3f2f8d3651/test_account.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 10927, 67, 1673, 67, 718, 67, 2816, 12, 2890, 4672, 3536, 4709, 716, 1592, 880, 67, 17612, 854, 13537, 8395, 2699, 273, 296, 3813, 6891, 93, 36, 8236, 18, 3341, 11, 14429, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10927, 67, 1673, 67, 718, 67, 2816, 12, 2890, 4672, 3536, 4709, 716, 1592, 880, 67, 17612, 854, 13537, 8395, 2699, 273, 296, 3813, 6891, 93, 36, 8236, 18, 3341, 11, 14429, 27...
JOBS_KEY = "jobs"
def __init_fname(self, fname): obj = open(fname) jsonstr = obj.read() jsonstr = self._stripComments(jsonstr) data = simplejson.loads(jsonstr) obj.close()
fa1b779963fdf60a0bb8ea6b13002f7b358bcdec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5718/fa1b779963fdf60a0bb8ea6b13002f7b358bcdec/Config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 67, 12749, 12, 2890, 16, 5299, 4672, 1081, 273, 1696, 12, 12749, 13, 1163, 701, 273, 1081, 18, 896, 1435, 1163, 701, 273, 365, 6315, 6406, 9051, 12, 1977, 701, 13, 501, 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, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 67, 12749, 12, 2890, 16, 5299, 4672, 1081, 273, 1696, 12, 12749, 13, 1163, 701, 273, 1081, 18, 896, 1435, 1163, 701, 273, 365, 6315, 6406, 9051, 12, 1977, 701, 13, 501, 273...
cluster = Cluster(self, count, args, expect=expect, wait=wait, cluster2=cluster2)
cluster = Cluster(self, count, args, expect=expect, wait=wait)
def cluster(self, count=0, args=[], expect=EXPECT_RUNNING, wait=True, cluster2=False): """Create and return a cluster ready for use""" cluster = Cluster(self, count, args, expect=expect, wait=wait, cluster2=cluster2) return cluster
c74103f6c4dcedbe7807c70b819b1eea2a59bdcb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/197/c74103f6c4dcedbe7807c70b819b1eea2a59bdcb/brokertest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2855, 12, 2890, 16, 1056, 33, 20, 16, 833, 22850, 6487, 4489, 33, 2294, 1423, 1268, 67, 29358, 16, 2529, 33, 5510, 16, 2855, 22, 33, 8381, 4672, 3536, 1684, 471, 327, 279, 2855, 5695, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2855, 12, 2890, 16, 1056, 33, 20, 16, 833, 22850, 6487, 4489, 33, 2294, 1423, 1268, 67, 29358, 16, 2529, 33, 5510, 16, 2855, 22, 33, 8381, 4672, 3536, 1684, 471, 327, 279, 2855, 5695, ...
""" EXAMPLES:: sage: sage.symbolic.units.Units(sage.symbolic.units.unitdict, 'all units') Collection all units of units: acceleration ... volume """ self.__name = name self.__data = data self.__units = {}
""" EXAMPLES:: sage: sage.symbolic.units.Units(sage.symbolic.units.unitdict, 'all units') Collection all units of units: acceleration ... volume """ self.__name = name self.__data = data self.__units = {}
def __init__(self, data, name=''):
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 501, 16, 508, 2218, 11, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 501, 16, 508, 2218, 11, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
for text in selectedTextList: if len(text)==1:
if not generalize: for text in selectedTextList: if len(text)==1: text=processSymbol(text) speakMessage(_("selecting %s")%text) elif len(selectedTextList)>0: text=newInfo.text if len(text)==1:
def speakSelectionChange(oldInfo,newInfo,speakSelected=True,speakUnselected=True,speakSelectionDeleted=True): selectedTextList=[] unselectedTextList=[] if newInfo.isCollapsed and oldInfo.isCollapsed: return if newInfo.compareEndPoints(oldInfo,"startToEnd")>=0 or newInfo.compareEndPoints(oldInfo,"endToStart")<=0: if spe...
3917512516550c18d6e13529c8dc07ea6ec0508e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9340/3917512516550c18d6e13529c8dc07ea6ec0508e/speech.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 10244, 6233, 3043, 12, 1673, 966, 16, 2704, 966, 16, 87, 10244, 7416, 33, 5510, 16, 87, 10244, 984, 8109, 33, 5510, 16, 87, 10244, 6233, 7977, 33, 5510, 4672, 3170, 1528, 682, 33,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 272, 10244, 6233, 3043, 12, 1673, 966, 16, 2704, 966, 16, 87, 10244, 7416, 33, 5510, 16, 87, 10244, 984, 8109, 33, 5510, 16, 87, 10244, 6233, 7977, 33, 5510, 4672, 3170, 1528, 682, 33,...
if not self.fd: raise portNotOpenError
if self.fd is None: raise portNotOpenError
def getCD(self): """Read terminal status line: Carrier Detect""" if not self.fd: raise portNotOpenError s = fcntl.ioctl(self.fd, TIOCMGET, TIOCM_zero_str) return struct.unpack('I',s)[0] & TIOCM_CD != 0
6703dd57e00b40856ca1df829ded7447ef32bc2e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10955/6703dd57e00b40856ca1df829ded7447ef32bc2e/serialposix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1927, 40, 12, 2890, 4672, 3536, 1994, 8651, 1267, 980, 30, 23672, 10342, 13796, 8395, 309, 365, 18, 8313, 353, 599, 30, 1002, 1756, 1248, 3678, 668, 272, 273, 30894, 18, 1594, 12930, 12,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1927, 40, 12, 2890, 4672, 3536, 1994, 8651, 1267, 980, 30, 23672, 10342, 13796, 8395, 309, 365, 18, 8313, 353, 599, 30, 1002, 1756, 1248, 3678, 668, 272, 273, 30894, 18, 1594, 12930, 12,...
kernel32 = ctypes.windll.kernel32 buf = ctypes.create_string_buffer("", 100) if kernel32.GetVolumeInformationA(root, None, 0, None, None, None, buf, len(buf)):
from ctypes.wintypes import LPCWSTR, LPWSTR, DWORD LPDWORD = ctypes.POINTER(DWORD) f = ctypes.windll.kernel32.GetVolumeInformationW f.argtypes = (LPCWSTR, LPWSTR, DWORD, LPDWORD, LPDWORD, LPDWORD, LPWSTR, DWORD) buf = ctypes.create_unicode_buffer("", 100) if f(root, None, 0, None, None, None, buf, len(buf)):
def get_file_system(path): import os root = os.path.splitdrive(os.path.realpath("."))[0] + '\\' import ctypes kernel32 = ctypes.windll.kernel32 buf = ctypes.create_string_buffer("", 100) if kernel32.GetVolumeInformationA(root, None, 0, None, None, None, buf, len(buf)): return buf.value
256baf85a336d94a50e942bf57384751b9226079 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/256baf85a336d94a50e942bf57384751b9226079/test_os.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 768, 67, 4299, 12, 803, 4672, 1930, 1140, 1365, 273, 1140, 18, 803, 18, 4939, 25431, 12, 538, 18, 803, 18, 7688, 803, 2932, 1199, 3719, 63, 20, 65, 397, 5282, 1930, 6983, 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, 336, 67, 768, 67, 4299, 12, 803, 4672, 1930, 1140, 1365, 273, 1140, 18, 803, 18, 4939, 25431, 12, 538, 18, 803, 18, 7688, 803, 2932, 1199, 3719, 63, 20, 65, 397, 5282, 1930, 6983, 62...
ComponentMeta._registry.setdefault(interface, []).append(new_class)
registry.setdefault(interface, []).append(new_class)
def maybe_init(self, compmgr, init=init, cls=new_class): if cls not in compmgr.components: compmgr.components[cls] = self if init: init(self)
16ce1ac0eac15917384332e8d3858788cafa50e4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9317/16ce1ac0eac15917384332e8d3858788cafa50e4/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6944, 67, 2738, 12, 2890, 16, 1161, 13552, 16, 1208, 33, 2738, 16, 2028, 33, 2704, 67, 1106, 4672, 309, 2028, 486, 316, 1161, 13552, 18, 8119, 30, 1161, 13552, 18, 8119, 63, 6429, 65, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6944, 67, 2738, 12, 2890, 16, 1161, 13552, 16, 1208, 33, 2738, 16, 2028, 33, 2704, 67, 1106, 4672, 309, 2028, 486, 316, 1161, 13552, 18, 8119, 30, 1161, 13552, 18, 8119, 63, 6429, 65, ...
self.connection.bm.connect("boardUpdate", self.__boardUpdate) self.connection.om.connect("onOfferAdd", self.__onOfferAdd) self.connection.om.connect("onOfferRemove", self.__onOfferRemove) self.connection.cm.connect("privateMessage", self.__onPrivateMessage)
self.conids = {} self.conids["boardUpdate"] = self.connection.bm.connect("boardUpdate", self.__boardUpdate) self.conids["onOfferAdd"] = self.connection.om.connect("onOfferAdd", self.__onOfferAdd) self.conids["onOfferRemove"] = self.connection.om.connect("onOfferRemove", self.__onOfferRemove) self.conids["privateMessage...
def __init__ (self, gamemodel, name, gameno, color): Player.__init__(self) self.queue = Queue() self.okqueue = Queue() self.name = name self.color = color self.gameno = gameno self.gamemodel = gamemodel self.connection = self.gamemodel.connection self.connection.bm.connect("boardUpdate", self.__boardUpdate) self.con...
96e2540234c53c62cb272af37667df8a6992eb5c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5339/96e2540234c53c62cb272af37667df8a6992eb5c/ICPlayer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 7920, 2284, 16, 508, 16, 23411, 5764, 16, 2036, 4672, 19185, 16186, 2738, 972, 12, 2890, 13, 225, 365, 18, 4000, 273, 7530, 1435, 365, 18, 601, 4000, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 261, 2890, 16, 7920, 2284, 16, 508, 16, 23411, 5764, 16, 2036, 4672, 19185, 16186, 2738, 972, 12, 2890, 13, 225, 365, 18, 4000, 273, 7530, 1435, 365, 18, 601, 4000, 27...
wikipedia.output(u'%i %s' % (response.status, response.reason))
wikipedia.output(u'%i %s' % (response.code, response.reason))
def _uploadImageOld(self, debug=False): if not hasattr(self,'_contents'): self.read_file_content() filename = self.process_filename() # Convert the filename (currently Unicode) to the encoding used on the # target wiki encodedFilename = filename.encode(self.targetSite.encoding())
62b5dd5a3a6cfc6d1e2631dd0640730878216e8c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/62b5dd5a3a6cfc6d1e2631dd0640730878216e8c/upload.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6327, 2040, 7617, 12, 2890, 16, 1198, 33, 8381, 4672, 309, 486, 3859, 12, 2890, 11189, 67, 3980, 11, 4672, 365, 18, 896, 67, 768, 67, 1745, 1435, 225, 1544, 273, 365, 18, 2567, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6327, 2040, 7617, 12, 2890, 16, 1198, 33, 8381, 4672, 309, 486, 3859, 12, 2890, 11189, 67, 3980, 11, 4672, 365, 18, 896, 67, 768, 67, 1745, 1435, 225, 1544, 273, 365, 18, 2567, ...
if self.disp.format == 'mono': nline = (len(data)*8)/self.vw elif self.disp.format == 'grey2': nline = (len(data)*4)/self.vw elif self.disp.format == 'grey4': nline = (len(data)*2)/self.vw else: nline = len(data)/self.vw if nline*self.vw <> len(data): print 'Incorrect-sized video fragment ignored' return
nline = len(data)/self.linewidth() if nline*self.linewidth() <> len(data): print 'Incorrect-sized video fragment ignored' return
def putnextpacket(self, pos, data): if self.disp.format == 'mono': # Unfortunately size-check is difficult for # packed video nline = (len(data)*8)/self.vw elif self.disp.format == 'grey2': nline = (len(data)*4)/self.vw elif self.disp.format == 'grey4': nline = (len(data)*2)/self.vw else: nline = len(data)/self.vw if n...
981033811dd0e249df778aa39cb0869527a2e198 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/981033811dd0e249df778aa39cb0869527a2e198/LiveVideoOut.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1378, 4285, 11482, 12, 2890, 16, 949, 16, 501, 4672, 309, 365, 18, 25453, 18, 2139, 422, 296, 2586, 83, 4278, 468, 1351, 24233, 963, 17, 1893, 353, 3122, 17551, 364, 468, 12456, 6191, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1378, 4285, 11482, 12, 2890, 16, 949, 16, 501, 4672, 309, 365, 18, 25453, 18, 2139, 422, 296, 2586, 83, 4278, 468, 1351, 24233, 963, 17, 1893, 353, 3122, 17551, 364, 468, 12456, 6191, ...
summary.write(plusMinus+'</td>')
summary.write('<td>'+plusMinus+'</td>')
def writeReport(content, allParam, results): ''' write a HTML file. The parts for each population has been written but we need a summary table. ''' print "Writing a report (saved in summary.htm )" try: summary = open(outputDir + "/summary.htm", 'w') except: raise exceptions.IOError("Can not open a summary file : " + ou...
38652794248d6f9c5f20e2bc4e7e7d850fd5fa1d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/401/38652794248d6f9c5f20e2bc4e7e7d850fd5fa1d/simuComplexDisease.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 4820, 12, 1745, 16, 777, 786, 16, 1686, 4672, 9163, 1045, 279, 3982, 585, 18, 1021, 2140, 364, 1517, 11209, 711, 2118, 5941, 1496, 732, 1608, 279, 4916, 1014, 18, 9163, 1172, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 4820, 12, 1745, 16, 777, 786, 16, 1686, 4672, 9163, 1045, 279, 3982, 585, 18, 1021, 2140, 364, 1517, 11209, 711, 2118, 5941, 1496, 732, 1608, 279, 4916, 1014, 18, 9163, 1172, 315, ...
data = array('B')
data = array('B')
def write(self, outfile, scanlines, interlaced=False): """ Write a PNG image to the output file. """ # http://www.w3.org/TR/PNG/#5PNG-file-signature outfile.write(struct.pack("8B", 137, 80, 78, 71, 13, 10, 26, 10))
0d1839c40429dcbe26e57d271f91362c3df6a221 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3111/0d1839c40429dcbe26e57d271f91362c3df6a221/png.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 8756, 16, 4135, 3548, 16, 1554, 80, 623, 72, 33, 8381, 4672, 3536, 2598, 279, 22476, 1316, 358, 326, 876, 585, 18, 3536, 468, 1062, 2207, 5591, 18, 91, 23, 18, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 8756, 16, 4135, 3548, 16, 1554, 80, 623, 72, 33, 8381, 4672, 3536, 2598, 279, 22476, 1316, 358, 326, 876, 585, 18, 3536, 468, 1062, 2207, 5591, 18, 91, 23, 18, 33...
if sw in ( 'd', 'dir' ):
if sw in ( 'D', 'Dir' ):
def usage(): print 'Usage: %s <JobID> |[<JobID>]' %(Script.scriptName) DIRAC.exit(2)
8d9b6348fddbbc1a2fddadc7613ba5f16821c4b0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/8d9b6348fddbbc1a2fddadc7613ba5f16821c4b0/dirac-wms-job-get-output.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 296, 5357, 30, 738, 87, 411, 2278, 734, 34, 571, 63, 32, 2278, 734, 34, 3864, 8975, 3651, 18, 4263, 461, 13, 18544, 2226, 18, 8593, 12, 22, 13, 225, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1172, 296, 5357, 30, 738, 87, 411, 2278, 734, 34, 571, 63, 32, 2278, 734, 34, 3864, 8975, 3651, 18, 4263, 461, 13, 18544, 2226, 18, 8593, 12, 22, 13, 225, 2, -100, -100,...
maxVal = max(maxVal, max([max(val) for val in self.domainContingency[attr].values()]))
maxVal = max(maxVal, max([max(val or [1]) for val in self.domainContingency[attr].values()] or [1]))
def showDistributionValues(self, validData, indices): # create color table clsCount = len(self.dataDomain.classVar.values) #if clsCount < 1: clsCount = 1.0
bc9e139c21a36be52ebd0ef26c9cc51dfa68968a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/bc9e139c21a36be52ebd0ef26c9cc51dfa68968a/OWParallelGraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 9003, 1972, 12, 2890, 16, 923, 751, 16, 4295, 4672, 468, 752, 2036, 1014, 2028, 1380, 273, 562, 12, 2890, 18, 892, 3748, 18, 1106, 1537, 18, 2372, 13, 468, 430, 2028, 1380, 411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 9003, 1972, 12, 2890, 16, 923, 751, 16, 4295, 4672, 468, 752, 2036, 1014, 2028, 1380, 273, 562, 12, 2890, 18, 892, 3748, 18, 1106, 1537, 18, 2372, 13, 468, 430, 2028, 1380, 411, ...
HemispherePanel.className_ = _moose.cvar.HemispherePanel_className_
def getType(*args): """getType(self) -> string""" return _moose.HemispherePanel_getType(*args)
1961c35f540060f41023dcf804a850794a39f350 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2961/1961c35f540060f41023dcf804a850794a39f350/moose.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3130, 30857, 1968, 4672, 3536, 588, 559, 12, 2890, 13, 317, 533, 8395, 327, 389, 8683, 2584, 18, 44, 351, 291, 9346, 5537, 67, 588, 559, 30857, 1968, 13, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 3130, 30857, 1968, 4672, 3536, 588, 559, 12, 2890, 13, 317, 533, 8395, 327, 389, 8683, 2584, 18, 44, 351, 291, 9346, 5537, 67, 588, 559, 30857, 1968, 13, 2, -100, -100, -100, -100, -10...
if not os.path.isdir(os.path.join(margdir,'/')): os.mkdir(margdir)
if not os.path.isdir(margdir): os.makedirs(margdir)
def cbcBayesSkyRes(outdir,data,oneDMenu,twoDGreedyMenu,GreedyRes,confidence_levels,twoDplots,injfile=None,eventnum=None,skyres=None): if eventnum is not None and injfile is None: print "You specified an event number but no injection file. Ignoring!" if data is None: print 'You must specify an input data file' exit(1)...
34fbcdab39b5dd64eb9436e33810d3417fa9ff0a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/34fbcdab39b5dd64eb9436e33810d3417fa9ff0a/cbcBayesSkyRes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2875, 71, 38, 528, 281, 5925, 93, 607, 12, 659, 1214, 16, 892, 16, 476, 40, 4599, 16, 15415, 40, 43, 15656, 93, 4599, 16, 43, 15656, 93, 607, 16, 27911, 67, 12095, 16, 15415, 40, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2875, 71, 38, 528, 281, 5925, 93, 607, 12, 659, 1214, 16, 892, 16, 476, 40, 4599, 16, 15415, 40, 43, 15656, 93, 4599, 16, 43, 15656, 93, 607, 16, 27911, 67, 12095, 16, 15415, 40, 1...
map_so = hlr_utils.get_map_so(obj1,None,i)
map_so = hlr_utils.get_map_so(obj1, None, i)
def sumw_ncerr(obj1, obj2, **kwargs): """ This function sums by weighting errors of two objects (SOM or SO) and returns the result of that action in an SOM. The function does not handle the cases of SOM+tuple, SO+tuple or tuple+tuple. Parameters: ---------- -> obj1 First object in the weighted sum -> obj2 Second obj...
85cc7e7c2541b0f953aede5d627795f8cf921461 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/85cc7e7c2541b0f953aede5d627795f8cf921461/hlr_sumw_ncerr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2142, 91, 67, 14202, 370, 12, 2603, 21, 16, 1081, 22, 16, 2826, 4333, 4672, 3536, 1220, 445, 26608, 635, 3119, 310, 1334, 434, 2795, 2184, 261, 55, 1872, 578, 7460, 13, 471, 1135, 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, 2142, 91, 67, 14202, 370, 12, 2603, 21, 16, 1081, 22, 16, 2826, 4333, 4672, 3536, 1220, 445, 26608, 635, 3119, 310, 1334, 434, 2795, 2184, 261, 55, 1872, 578, 7460, 13, 471, 1135, 326,...
if pkg["name"] != "gpg-pubkey" and \ arch_hash.get(pkg["arch"], 999) == 999:
if (pkg["name"] != "gpg-pubkey" and arch_hash.get(pkg["arch"]) == None):
def readRpmdb(dbpath, distroverpkg, releasever, configfiles, buildroot, arch, verbose, checkfileconflicts, reposdirs): from binascii import b2a_hex if verbose: print "Reading rpmdb, this can take some time..." print "Reading %sPackages..." % dbpath if verbose > 2: time1 = time.clock() (packages, keyring, maxtid, pkgdat...
427871e48b993cbe1bec0e26f0693386c8014c95 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/427871e48b993cbe1bec0e26f0693386c8014c95/oldpyrpm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 54, 84, 27574, 12, 1966, 803, 16, 27450, 502, 10657, 16, 3992, 502, 16, 642, 2354, 16, 1361, 3085, 16, 6637, 16, 3988, 16, 866, 768, 20340, 87, 16, 13686, 8291, 4672, 628, 28222, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 54, 84, 27574, 12, 1966, 803, 16, 27450, 502, 10657, 16, 3992, 502, 16, 642, 2354, 16, 1361, 3085, 16, 6637, 16, 3988, 16, 866, 768, 20340, 87, 16, 13686, 8291, 4672, 628, 28222, ...
count_no_tags = len(self.req.get_active_tasks_list(notag_only=True,\ workable=True))
count_no_tags = len( self.req.get_active_tasks_list(notag_only=True, workable=True))
def refresh_tags(self): select = self.tag_tview.get_selection() t_path = None if select: t_model, t_path = select.get_selected_rows() #pylint: disable-msg=W0612 self.tag_ts.clear() alltag = self.req.get_alltag_tag() notag = self.req.get_notag_tag() if self.workview: count_all_task = len(self.req.get_active_tasks_list(w...
fac54dcba973acc5967f43b60fb540659a1a87a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8234/fac54dcba973acc5967f43b60fb540659a1a87a8/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4460, 67, 4156, 12, 2890, 4672, 2027, 273, 365, 18, 2692, 67, 88, 1945, 18, 588, 67, 10705, 1435, 268, 67, 803, 273, 599, 309, 2027, 30, 268, 67, 2284, 16, 268, 67, 803, 273, 2027, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4460, 67, 4156, 12, 2890, 4672, 2027, 273, 365, 18, 2692, 67, 88, 1945, 18, 588, 67, 10705, 1435, 268, 67, 803, 273, 599, 309, 2027, 30, 268, 67, 2284, 16, 268, 67, 803, 273, 2027, ...
return direct_to_template(request,ltemplate, template_dict, template_dict)
return direct_to_template(request,ltemplate, template_dict)
def show_login(request, ltemplate, template_dict, form = None): if form == None: # initial page load form = AuthenticationForm() # set test cookie, but only once -- remove it on login #if not request.session.test_cookie_worked(): request.session.set_test_cookie() template_dict['form'] = form return direct_to_template(r...
5f5edfeadf38febff3879c7783d6d1ca63cdb289 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/5f5edfeadf38febff3879c7783d6d1ca63cdb289/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 5819, 12, 2293, 16, 328, 3202, 16, 1542, 67, 1576, 16, 646, 273, 599, 4672, 309, 646, 422, 599, 30, 468, 2172, 1363, 1262, 646, 273, 8665, 1204, 1435, 468, 444, 1842, 3878, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2405, 67, 5819, 12, 2293, 16, 328, 3202, 16, 1542, 67, 1576, 16, 646, 273, 599, 4672, 309, 646, 422, 599, 30, 468, 2172, 1363, 1262, 646, 273, 8665, 1204, 1435, 468, 444, 1842, 3878, ...
self.sendLine("INF %s" % self._nextTransactionID()) def handle_INF(self, params): try: mechanism = params[1] except IndexError: raise MSNProtocolError, "Invalid auth mechanism supplied by server" if mechanism.upper() != "MD5": raise MSNProtocolError, "Invalid auth mechanism supplied by server" self.sendLine("USR %s MD...
self.sendLine("CVR %s %s %s" % (self._nextTransactionID(), MSN_CVR_STR, self.factory.userHandle)) def handle_CVR(self, params): self.sendLine("USR %s TWN I %s" % (self._nextTransactionID(), self.factory.userHandle))
def handle_VER(self, params): versions = params[1:] if versions is None or versions[0] != MSN_PROTOCOL_VERSION: self.transport.loseConnection() raise MSNProtocolError, "Invalid version response" self.sendLine("INF %s" % self._nextTransactionID())
9b2b7163e441396d9e5e7f46775cd7809b4655be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/9b2b7163e441396d9e5e7f46775cd7809b4655be/msn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 2204, 12, 2890, 16, 859, 4672, 5244, 273, 859, 63, 21, 26894, 309, 5244, 353, 599, 578, 5244, 63, 20, 65, 480, 9238, 50, 67, 16850, 67, 5757, 30, 365, 18, 13049, 18, 2061, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 2204, 12, 2890, 16, 859, 4672, 5244, 273, 859, 63, 21, 26894, 309, 5244, 353, 599, 578, 5244, 63, 20, 65, 480, 9238, 50, 67, 16850, 67, 5757, 30, 365, 18, 13049, 18, 2061, ...
handlers.default = self.endTagOther handlers[name](name)
self.processEndTagHandler.default = self.endTagOther def addFormattingElement(self, name, attributes): self.parser.insertElement(name, attributes) self.parser.activeFormattingElements.append( self.parser.openElements[-1]) def processNonSpaceCharacters(self, data): self.parser.reconstructActiveFormattingElements()...
def processEndTag(self, name): handlers = utils.MethodDispatcher([ ("p",self.endTagP), ("body",self.endTagBody), ("html",self.endTagHtml), (("address", "blockquote", "center", "div", "dl", "fieldset", "listing", "menu", "ol", "pre", "ul"), self.endTagBlock), ("form", self.endTagForm), (("dd", "dt", "li"), self.endTagLi...
e76992502a06e3254c04377efec13b885cb74faa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4487/e76992502a06e3254c04377efec13b885cb74faa/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 25633, 12, 2890, 16, 508, 4672, 4919, 273, 2990, 18, 1305, 6681, 3816, 7566, 84, 3113, 2890, 18, 409, 1805, 52, 3631, 7566, 3432, 3113, 2890, 18, 409, 1805, 2250, 3631, 7566, 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, 1207, 25633, 12, 2890, 16, 508, 4672, 4919, 273, 2990, 18, 1305, 6681, 3816, 7566, 84, 3113, 2890, 18, 409, 1805, 52, 3631, 7566, 3432, 3113, 2890, 18, 409, 1805, 2250, 3631, 7566, 2620,...
self.logger.exception( '' )
def _connect( self ): """ open connection to MySQL DB and put Connection into Queue set connected flag to True and return S_OK return S_ERROR upon failure """ self.logger.verbose( '_connect:', self._connected ) if self._connected: return S_OK()
dbbfc2e9691b79636765e7ead3e5df27861504bc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/dbbfc2e9691b79636765e7ead3e5df27861504bc/MySQL.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3612, 12, 365, 262, 30, 3536, 1696, 1459, 358, 13485, 2383, 471, 1378, 4050, 1368, 7530, 444, 5840, 2982, 358, 1053, 471, 327, 348, 67, 3141, 327, 348, 67, 3589, 12318, 5166, 3536, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3612, 12, 365, 262, 30, 3536, 1696, 1459, 358, 13485, 2383, 471, 1378, 4050, 1368, 7530, 444, 5840, 2982, 358, 1053, 471, 327, 348, 67, 3141, 327, 348, 67, 3589, 12318, 5166, 3536, ...
if __name__ == "__main__":
def main():
def main(instr_path, dir_to_clean): # First, get the required files and the files to be deleted (req_files, del_files) = parse_instructions(instr_path) req_files_found = [False for i in range(len(req_files))] unrecognized_files = [] if not os.path.exists(dir_to_clean): raise IllegalArgError("Given directory does not ex...
88ea2e701d142effa344a8ae5d4a46364a17cbf6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7263/88ea2e701d142effa344a8ae5d4a46364a17cbf6/clean_folder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 267, 701, 67, 803, 16, 1577, 67, 869, 67, 6200, 4672, 468, 5783, 16, 336, 326, 1931, 1390, 471, 326, 1390, 358, 506, 4282, 261, 3658, 67, 2354, 16, 1464, 67, 2354, 13, 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, 2774, 12, 267, 701, 67, 803, 16, 1577, 67, 869, 67, 6200, 4672, 468, 5783, 16, 336, 326, 1931, 1390, 471, 326, 1390, 358, 506, 4282, 261, 3658, 67, 2354, 16, 1464, 67, 2354, 13, 273,...
ret = self._escapeString(jobID)
ret = self._escapeString( jobID )
def setJobOptParameter(self,jobID,name,value): """ Set an optimzer parameter specified by name,value pair for the job JobID """ ret = self._escapeString(jobID) if not ret['OK']: return ret e_jobID = ret['Value']
99c1bc850ba087890925b3180df206f65bb1d4b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/99c1bc850ba087890925b3180df206f65bb1d4b3/JobDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 2278, 6179, 1662, 12, 2890, 16, 4688, 734, 16, 529, 16, 1132, 4672, 3536, 1000, 392, 5213, 24355, 1569, 1269, 635, 508, 16, 1132, 3082, 364, 326, 1719, 22137, 3536, 325, 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, 444, 2278, 6179, 1662, 12, 2890, 16, 4688, 734, 16, 529, 16, 1132, 4672, 3536, 1000, 392, 5213, 24355, 1569, 1269, 635, 508, 16, 1132, 3082, 364, 326, 1719, 22137, 3536, 325, 273, 365, ...
self.configuration = self.gui.configuration
def render_GET(self, request): """ Handle GET requests for screenshot
a433ab10a7a5d1f53797a7f7645ef40560f88a68 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/943/a433ab10a7a5d1f53797a7f7645ef40560f88a68/server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 3264, 12, 2890, 16, 590, 4672, 3536, 5004, 4978, 3285, 364, 17179, 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, 1743, 67, 3264, 12, 2890, 16, 590, 4672, 3536, 5004, 4978, 3285, 364, 17179, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if type( name) == types.StringType:
if type( name) == types.StringType or type( name) == types.UnicodeType:
def write_to_file( self, name): if type( name) == types.StringType: file = open( name, 'w') else: file = name tr = invert_coords( self.molecule) oasa_bridge.write_molfile( self.molecule, file) invert_coords( self.molecule)
04935b6919d22226c044ab24c386531a4976d429 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4298/04935b6919d22226c044ab24c386531a4976d429/molfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 869, 67, 768, 12, 365, 16, 508, 4672, 309, 618, 12, 508, 13, 422, 1953, 18, 780, 559, 578, 618, 12, 508, 13, 422, 1953, 18, 16532, 559, 30, 585, 273, 1696, 12, 508, 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, 1045, 67, 869, 67, 768, 12, 365, 16, 508, 4672, 309, 618, 12, 508, 13, 422, 1953, 18, 780, 559, 578, 618, 12, 508, 13, 422, 1953, 18, 16532, 559, 30, 585, 273, 1696, 12, 508, 16, ...
if os.path.isdir(dir) and dir not in dirlist:
if dir is not None and os.path.isdir(dir) and dir not in dirlist:
def add_dir_to_list(dirlist, dir): """Add the directory 'dir' to the list 'dirlist' (at the front) if 1) 'dir' is not already in 'dirlist' 2) 'dir' actually exists, and is a directory.""" if os.path.isdir(dir) and dir not in dirlist: dirlist.insert(0, dir)
0c0dd4bf44a5c1beef2034eb1ffd78f19e5aac1e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0c0dd4bf44a5c1beef2034eb1ffd78f19e5aac1e/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 1214, 67, 869, 67, 1098, 12, 1214, 1098, 16, 1577, 4672, 3536, 986, 326, 1867, 296, 1214, 11, 358, 326, 666, 296, 1214, 1098, 11, 261, 270, 326, 6641, 13, 309, 404, 13, 296,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 1214, 67, 869, 67, 1098, 12, 1214, 1098, 16, 1577, 4672, 3536, 986, 326, 1867, 296, 1214, 11, 358, 326, 666, 296, 1214, 1098, 11, 261, 270, 326, 6641, 13, 309, 404, 13, 296,...
self._base_ring = GF(q)
self._base_ring = GF(q, name=name)
def __init__(self, n, q): """ INPUT: n -- positive integer; the degree q -- prime power; the size of the ground field
f5e431c71f8b59df3f8c5c258afa59632134296c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/f5e431c71f8b59df3f8c5c258afa59632134296c/permgroup_named.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 290, 16, 1043, 4672, 3536, 12943, 30, 290, 1493, 6895, 3571, 31, 326, 10782, 1043, 1493, 17014, 7212, 31, 326, 963, 434, 326, 19209, 652, 2, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 290, 16, 1043, 4672, 3536, 12943, 30, 290, 1493, 6895, 3571, 31, 326, 10782, 1043, 1493, 17014, 7212, 31, 326, 963, 434, 326, 19209, 652, 2, -100, -100, ...
nodeList = self.findEntry(self.doc, door, "nodeList")
nodeList = self.findEntry(door, "nodeList")
def parseLdif(self): xml = addChild(self.doc, self.doc, "xml") for entry in self.entries: dn = list(entry.dn) stanza_type = dn[0].split("=")[0]
fb367b6d1622b9e4151697d07ba739634657ef9d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12088/fb367b6d1622b9e4151697d07ba739634657ef9d/pretty_gip_info.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 48, 11593, 12, 2890, 4672, 2025, 273, 7384, 12, 2890, 18, 2434, 16, 365, 18, 2434, 16, 315, 2902, 7923, 364, 1241, 316, 365, 18, 8219, 30, 8800, 273, 666, 12, 4099, 18, 5176, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1109, 48, 11593, 12, 2890, 4672, 2025, 273, 7384, 12, 2890, 18, 2434, 16, 365, 18, 2434, 16, 315, 2902, 7923, 364, 1241, 316, 365, 18, 8219, 30, 8800, 273, 666, 12, 4099, 18, 5176, 1...
relativePath = '.'
return '.'
def toRelativePath(self, panelObjectPath): """ regenerate panelObjectPath, make it a relative path. path may be relative to this contentpanels or relate to the portal. - if panelObjectPath == '.', it means contentpanels it self - if panelObjectPath start with './', it means relative to the folderish context of this con...
b06b78d6dda51dc140dfa22f80cbceaa4cdf5dfd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/b06b78d6dda51dc140dfa22f80cbceaa4cdf5dfd/ContentPanels.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 16519, 12, 2890, 16, 6594, 921, 743, 4672, 3536, 20821, 6594, 921, 743, 16, 1221, 518, 279, 3632, 589, 18, 589, 2026, 506, 3632, 358, 333, 913, 7355, 10558, 578, 1279, 340, 358, 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, 358, 16519, 12, 2890, 16, 6594, 921, 743, 4672, 3536, 20821, 6594, 921, 743, 16, 1221, 518, 279, 3632, 589, 18, 589, 2026, 506, 3632, 358, 333, 913, 7355, 10558, 578, 1279, 340, 358, 3...
elif 'save' in req.args:
elif 'save' in req.args:
def process_admin_request(self, req, cat, page, config_name): data = {}
118e21a1ce99bb8955d9c561f20f188dcea67061 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4547/118e21a1ce99bb8955d9c561f20f188dcea67061/admin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 3666, 67, 2293, 12, 2890, 16, 1111, 16, 6573, 16, 1363, 16, 642, 67, 529, 4672, 501, 273, 2618, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 3666, 67, 2293, 12, 2890, 16, 1111, 16, 6573, 16, 1363, 16, 642, 67, 529, 4672, 501, 273, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
data = { 'urls': json.dumps(urls) , } resp = self.getRespFromUri('index.php/rest/items' , data) return getItemsFromResp(resp , self , parent)
numUrls = len(urls) start = 0 increment = 25 ret = [] while start < numUrls: data = { 'urls': json.dumps(urls[start:start+increment]) , 'num': str(increment) , 'start': str(start) , } resp = self.getRespFromUri('index.php/rest/items' , data) ret.extend(getItemsFromResp(resp , self , parent)) start += increment return r...
def getItemsForUrls(self , urls , parent=None): """ This retrieves an item for each url specified in the urls list
2da7ef0a18e8ad9acaa41350110771200174f82b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13485/2da7ef0a18e8ad9acaa41350110771200174f82b/Gallery3.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15515, 1290, 10509, 12, 2890, 269, 6903, 269, 982, 33, 7036, 4672, 3536, 1220, 9023, 392, 761, 364, 1517, 880, 1269, 316, 326, 6903, 666, 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, 0, 0, 0, 0, 0, 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, 15515, 1290, 10509, 12, 2890, 269, 6903, 269, 982, 33, 7036, 4672, 3536, 1220, 9023, 392, 761, 364, 1517, 880, 1269, 316, 326, 6903, 666, 2, -100, -100, -100, -100, -100, -100, -100, -10...
if self.args.has_key('updatetickets'): self.env.log.info('Updating milestone field of all tickets ' 'associated with milestone %s' % id) cursor.execute ('UPDATE ticket SET milestone = %s ' 'WHERE milestone = %s', name, id)
self.env.log.info('Updating milestone field of all tickets ' 'associated with milestone %s' % id) cursor.execute ('UPDATE ticket SET milestone = %s ' 'WHERE milestone = %s', name, id)
def update_milestone(self, id, name, date, descr): self.perm.assert_permission(perm.MILESTONE_MODIFY) cursor = self.db.cursor() self.env.log.debug("Updating milestone '%s'" % id) if self.args.has_key('save'): if self.args.has_key('updatetickets'): self.env.log.info('Updating milestone field of all tickets ' 'associated...
dbab6945adc1ef41daef75001d99e77505c284f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/dbab6945adc1ef41daef75001d99e77505c284f2/Milestone.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 81, 18270, 12, 2890, 16, 612, 16, 508, 16, 1509, 16, 18426, 4672, 365, 18, 12160, 18, 11231, 67, 9827, 12, 12160, 18, 7492, 900, 882, 5998, 67, 6720, 12096, 13, 3347, 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, 1089, 67, 81, 18270, 12, 2890, 16, 612, 16, 508, 16, 1509, 16, 18426, 4672, 365, 18, 12160, 18, 11231, 67, 9827, 12, 12160, 18, 7492, 900, 882, 5998, 67, 6720, 12096, 13, 3347, 273, ...
if len(u'\U00012345') == 2: _unichr = unichr def unichr(v): if v >= 0x10000: return _unichr(0xd800 + ((v - 0x10000) >> 10)) + \ _unichr(0xdc00 + ((v - 0x10000) & 0x3ff)) else: return _unichr(v) _ord = ord def ord(c): if len(c) == 2: return 0x10000 + ((_ord(c[0]) - 0xd800) << 10) + \ (ord(c[1]) - 0xdc00) else: return _o...
def test_streamwriter(self): readfuncs = ('read', 'readline', 'readlines') UTF8Reader = codecs.getreader('utf-8') for name in readfuncs: for sizehint in [None] + range(1, 33) + \ [64, 128, 256, 512, 1024]: istream = UTF8Reader(StringIO(self.tstring[1])) ostream = self.writer(StringIO()) func = getattr(istream, name) wh...
be8c2b1ca7ddbcf50ff59e6a5d63ff9b620d174c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/be8c2b1ca7ddbcf50ff59e6a5d63ff9b620d174c/test_multibytecodec_support.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3256, 6299, 12, 2890, 4672, 855, 17728, 273, 7707, 896, 2187, 296, 896, 1369, 2187, 296, 896, 3548, 6134, 6380, 28, 2514, 273, 17437, 18, 588, 10530, 2668, 3158, 17, 28, 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, 1842, 67, 3256, 6299, 12, 2890, 4672, 855, 17728, 273, 7707, 896, 2187, 296, 896, 1369, 2187, 296, 896, 3548, 6134, 6380, 28, 2514, 273, 17437, 18, 588, 10530, 2668, 3158, 17, 28, 6134, ...
if not which("pkg-dmg"):
if not which(options.pkg_dmg):
def repackBuild(self): zip_cmd = "7za a \"%s\" nonlocalized" % self.build shellCommand(zip_cmd)
d0f9ca8b1b49555604e4d5183d003d16db4dc89b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10262/d0f9ca8b1b49555604e4d5183d003d16db4dc89b/partner-repacks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2071, 484, 3116, 12, 2890, 4672, 3144, 67, 4172, 273, 315, 27, 11939, 279, 22049, 87, 2412, 1661, 3729, 1235, 6, 738, 365, 18, 3510, 5972, 2189, 12, 4450, 67, 4172, 13, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2071, 484, 3116, 12, 2890, 4672, 3144, 67, 4172, 273, 315, 27, 11939, 279, 22049, 87, 2412, 1661, 3729, 1235, 6, 738, 365, 18, 3510, 5972, 2189, 12, 4450, 67, 4172, 13, 2, -100, -100, ...
if len(runicode.UNICHR(0x10000)) == 2:
if runicode.MAXUNICODE != sys.maxunicode:
def setup_class(cls): if len(runicode.UNICHR(0x10000)) == 2: py.test.skip("these tests cannot run on the llinterp")
d4ad759505a8dae04f57b71a64c196327b20be3d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/d4ad759505a8dae04f57b71a64c196327b20be3d/test_runicode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 1106, 12, 6429, 4672, 309, 1086, 3487, 18, 6694, 26642, 480, 2589, 18, 1896, 9124, 30, 2395, 18, 3813, 18, 7457, 2932, 451, 3392, 7434, 2780, 1086, 603, 326, 6579, 24940, 7923,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3875, 67, 1106, 12, 6429, 4672, 309, 1086, 3487, 18, 6694, 26642, 480, 2589, 18, 1896, 9124, 30, 2395, 18, 3813, 18, 7457, 2932, 451, 3392, 7434, 2780, 1086, 603, 326, 6579, 24940, 7923,...
successful[lfn]['CreationDate'] = fromEpoch(fstat.ctime) successful[lfn]['ModificationDate'] = fromEpoch(fstat.mtime)
successful[lfn]['CreationDate'] = fromEpoch( fstat.ctime ) successful[lfn]['ModificationDate'] = fromEpoch( fstat.mtime )
def getFileMetadata(self,lfn,ownership=False): """ Returns the file metadata associated to a supplied LFN """ res = self.__checkArgumentFormat(lfn) if not res['OK']: return res lfns = res['Value'] # If we have less than three lfns to query a session doesn't make sense created = self.__openSession() failed = {} successf...
6280f3782654b93320f684f56a83a6624459bcec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/6280f3782654b93320f684f56a83a6624459bcec/LcgFileCatalogClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6034, 2277, 12, 2890, 16, 80, 4293, 16, 995, 12565, 33, 8381, 4672, 3536, 2860, 326, 585, 1982, 3627, 358, 279, 4580, 18803, 50, 3536, 400, 273, 365, 16186, 1893, 1379, 1630, 12, 80, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6034, 2277, 12, 2890, 16, 80, 4293, 16, 995, 12565, 33, 8381, 4672, 3536, 2860, 326, 585, 1982, 3627, 358, 279, 4580, 18803, 50, 3536, 400, 273, 365, 16186, 1893, 1379, 1630, 12, 80, 4...