rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
sw.show_all()
def __init__(self, activator, Kind=SearchBar): gtk.Window.__init__(self) self.set_border_width(12) self.set_title(_("Library Browser")) icon_theme = gtk.icon_theme_get_default() self.set_icon(icon_theme.load_icon( const.ICON, 64, gtk.ICON_LOOKUP_USE_BUILTIN))
f1bdc25eef59b94c1e9407c010ba679e8aa77ae5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/f1bdc25eef59b94c1e9407c010ba679e8aa77ae5/widgets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5981, 639, 16, 5851, 33, 2979, 5190, 4672, 22718, 18, 3829, 16186, 2738, 972, 12, 2890, 13, 365, 18, 542, 67, 8815, 67, 2819, 12, 2138, 13, 365, 18, 54...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5981, 639, 16, 5851, 33, 2979, 5190, 4672, 22718, 18, 3829, 16186, 2738, 972, 12, 2890, 13, 365, 18, 542, 67, 8815, 67, 2819, 12, 2138, 13, 365, 18, 54...
assert not is_string(paths),`paths`
assert not is_string(paths),repr(paths)
def _fix_paths(paths,local_path,include_non_existing): assert is_sequence(paths), repr(type(paths)) new_paths = [] assert not is_string(paths),`paths` for n in paths: if is_string(n): if '*' in n or '?' in n: p = glob.glob(n) p2 = glob.glob(njoin(local_path,n)) if p2: new_paths.extend(p2) elif p: new_paths.extend(p) el...
c85421c3b85e794d07e8de0304136c068c7f2e17 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/c85421c3b85e794d07e8de0304136c068c7f2e17/misc_util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 904, 67, 4481, 12, 4481, 16, 3729, 67, 803, 16, 6702, 67, 5836, 67, 11711, 4672, 1815, 353, 67, 6178, 12, 4481, 3631, 8480, 12, 723, 12, 4481, 3719, 394, 67, 4481, 273, 5378, 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, 389, 904, 67, 4481, 12, 4481, 16, 3729, 67, 803, 16, 6702, 67, 5836, 67, 11711, 4672, 1815, 353, 67, 6178, 12, 4481, 3631, 8480, 12, 723, 12, 4481, 3719, 394, 67, 4481, 273, 5378, 18...
def OnTextEnter(self, event):
def SaveItem(self):
def OnTextEnter(self, event): if self.item != None: self.item.displayName = self.GetValue() self.Hide() event.Skip()
198f845fb11f76a42bb0d89843db2f2bc3f2808d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/198f845fb11f76a42bb0d89843db2f2bc3f2808d/CalendarCanvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7074, 1180, 12, 2890, 4672, 309, 365, 18, 1726, 480, 599, 30, 365, 18, 1726, 18, 5417, 461, 273, 365, 18, 967, 620, 1435, 365, 18, 15690, 1435, 871, 18, 6368, 1435, 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, 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, 7074, 1180, 12, 2890, 4672, 309, 365, 18, 1726, 480, 599, 30, 365, 18, 1726, 18, 5417, 461, 273, 365, 18, 967, 620, 1435, 365, 18, 15690, 1435, 871, 18, 6368, 1435, 2, -100, -100, -1...
iwreq = iwstruct.pack("ihBB", -1, 0, 0, pythonwifi.flags.IW_FREQ_AUTO)
iwreq = iwstruct.pack(format, -1, 0, 0, pythonwifi.flags.IW_FREQ_AUTO)
def setFrequency(self, freq): """ Sets the frequency on the card.
48c1d48d2846ae641db4bc5778937b0ba4d0dd0a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3159/48c1d48d2846ae641db4bc5778937b0ba4d0dd0a/iwlibs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 13865, 12, 2890, 16, 7684, 4672, 3536, 11511, 326, 8670, 603, 326, 5270, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 13865, 12, 2890, 16, 7684, 4672, 3536, 11511, 326, 8670, 603, 326, 5270, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
t=valu.split(" ") opt=t[0] key=t[1]
opt, key, action, param=valu.split(None,3)
def e17_keys(): try: import pyetun_keys keys=pyetun_keys.get_KEYS() mod=pyetun_keys.get_MODIFIERS() action=pyetun_keys.get_ACTION() par=pyetun_keys.get_PARAMS() for index,i in enumerate(keys): print bold("[MODIFIER+KEY] "), print mod[index],"+",i, print bold(" [ACTION] "), print action[index], print bold(" [ACTION PA...
ed8ecddeb585ef604137d25f0a0389c26533b33a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2281/ed8ecddeb585ef604137d25f0a0389c26533b33a/pyetun.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 425, 4033, 67, 2452, 13332, 775, 30, 1930, 2395, 278, 318, 67, 2452, 1311, 33, 2074, 278, 318, 67, 2452, 18, 588, 67, 16333, 1435, 681, 33, 2074, 278, 318, 67, 2452, 18, 588, 67, 672...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 425, 4033, 67, 2452, 13332, 775, 30, 1930, 2395, 278, 318, 67, 2452, 1311, 33, 2074, 278, 318, 67, 2452, 18, 588, 67, 16333, 1435, 681, 33, 2074, 278, 318, 67, 2452, 18, 588, 67, 672...
keyword.
keyword. In case the value is not found, -1 is returned. The given list is never altered by this keyword.
def get_index_from_list(self, L, value, start=0, end=None): """Returns the index of the first occurrence of the value on the list.
9e3b0b6f2f5e1229f613f2fc11d15a4072f9d6db /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6988/9e3b0b6f2f5e1229f613f2fc11d15a4072f9d6db/Collections.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1615, 67, 2080, 67, 1098, 12, 2890, 16, 511, 16, 460, 16, 787, 33, 20, 16, 679, 33, 7036, 4672, 3536, 1356, 326, 770, 434, 326, 1122, 13083, 434, 326, 460, 603, 326, 666, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1615, 67, 2080, 67, 1098, 12, 2890, 16, 511, 16, 460, 16, 787, 33, 20, 16, 679, 33, 7036, 4672, 3536, 1356, 326, 770, 434, 326, 1122, 13083, 434, 326, 460, 603, 326, 666, ...
checkupdates = tmpprefs.get('CheckForUpdates') locale = tmpprefs.get('locale')
try: checkupdates = tmpprefs.get('CheckForUpdates') locale = tmpprefs.get('locale') except: pass
def init2(self): Damnlog('Starting DamnMainFrame init stage 2.') if os.path.exists(DV.conf_file_directory + 'lastversion.damnvid'): lastversion = DamnOpenFile(DV.conf_file_directory + 'lastversion.damnvid', 'r') dvversion = lastversion.readline().strip() lastversion.close() del lastversion Damnlog('Version file found; ...
b7d25df46cda9abe5d9a3b14b5e4ff8eca58617b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11142/b7d25df46cda9abe5d9a3b14b5e4ff8eca58617b/DamnVid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 22, 12, 2890, 4672, 463, 301, 82, 1330, 2668, 11715, 463, 301, 82, 6376, 3219, 1208, 6009, 576, 1093, 13, 309, 1140, 18, 803, 18, 1808, 12, 30199, 18, 3923, 67, 768, 67, 5149, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 22, 12, 2890, 4672, 463, 301, 82, 1330, 2668, 11715, 463, 301, 82, 6376, 3219, 1208, 6009, 576, 1093, 13, 309, 1140, 18, 803, 18, 1808, 12, 30199, 18, 3923, 67, 768, 67, 5149, ...
code1 = _fixescape(this, 1)
code1 = _class_escape(source, this)
def _parse(source, pattern, flags=()): # parse regular expression pattern into an operator list. subpattern = SubPattern(pattern) this = None while 1: if str(source.next) in ("|", ")"): break # end of subpattern this = source.get() if this is None: break # end of pattern if this and this[0] not in SPECIAL_CHARS: ...
d46b2a42eda94cbac3b610e36d5f97230d629068 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d46b2a42eda94cbac3b610e36d5f97230d629068/sre_parse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 12, 3168, 16, 1936, 16, 2943, 33, 1435, 4672, 225, 468, 1109, 6736, 2652, 1936, 1368, 392, 3726, 666, 18, 225, 720, 4951, 273, 2592, 3234, 12, 4951, 13, 225, 333, 273, 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, 389, 2670, 12, 3168, 16, 1936, 16, 2943, 33, 1435, 4672, 225, 468, 1109, 6736, 2652, 1936, 1368, 392, 3726, 666, 18, 225, 720, 4951, 273, 2592, 3234, 12, 4951, 13, 225, 333, 273, 599, ...
p = [0]*G.num_verts()
p = [None]*G.num_verts()
def blocks_and_cut_vertices(self): """ Computes the blocks and cut vertices of the graph. In the case of a digraph, this computation is done on the underlying graph.
592545f3bcbdce40614121ff33879bf7c4995e08 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/592545f3bcbdce40614121ff33879bf7c4995e08/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4398, 67, 464, 67, 5150, 67, 17476, 12, 2890, 4672, 3536, 14169, 281, 326, 4398, 471, 6391, 6928, 434, 326, 2667, 18, 657, 326, 648, 434, 279, 3097, 1483, 16, 333, 16039, 353, 2731, 60...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4398, 67, 464, 67, 5150, 67, 17476, 12, 2890, 4672, 3536, 14169, 281, 326, 4398, 471, 6391, 6928, 434, 326, 2667, 18, 657, 326, 648, 434, 279, 3097, 1483, 16, 333, 16039, 353, 2731, 60...
return h.digest()
if suffix: return h.digest()[:-len(suffix)] + suffix else: return h.digest()
def newID(): """Get a new pseudorandom globally unique hash string.""" h = sha() h.update(urandom(HASH_LENGTH)) return h.digest()
dead3eff408396611d9f0dd7f8a3fc09cc097ae8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/665/dead3eff408396611d9f0dd7f8a3fc09cc097ae8/khash.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 734, 13332, 3536, 967, 279, 394, 29606, 280, 2111, 25654, 3089, 1651, 533, 12123, 366, 273, 6056, 1435, 366, 18, 2725, 12, 295, 2111, 12, 15920, 67, 7096, 3719, 309, 3758, 30, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 394, 734, 13332, 3536, 967, 279, 394, 29606, 280, 2111, 25654, 3089, 1651, 533, 12123, 366, 273, 6056, 1435, 366, 18, 2725, 12, 295, 2111, 12, 15920, 67, 7096, 3719, 309, 3758, 30, 327, ...
default_minilay_paths = [os.path.join(self._prefix,'minilays', minilay)\
default_minilays_pathes_urls = [(os.path.join(self._prefix,'minilays', minilay), '/'.join((urlbase, minilay)))\
def _sync(self): """Sync or install our minilays.""" # install our default minilays self.logger.info('Syncing minilays') default_minilays = [s.strip() \ for s in self._config._sections\ .get('minimerge', {})\ .get('default_minilays','')\ .split('\n')] minimerge_section = self._config._sections.get('minimerge', {}) urlb...
76d5bf95735327499584c9cda2384ba15a856ab6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9393/76d5bf95735327499584c9cda2384ba15a856ab6/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8389, 12, 2890, 4672, 3536, 4047, 578, 3799, 3134, 1131, 330, 8271, 12123, 468, 3799, 3134, 805, 1131, 330, 8271, 365, 18, 4901, 18, 1376, 2668, 4047, 310, 1131, 330, 8271, 6134, 80...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8389, 12, 2890, 4672, 3536, 4047, 578, 3799, 3134, 1131, 330, 8271, 12123, 468, 3799, 3134, 805, 1131, 330, 8271, 365, 18, 4901, 18, 1376, 2668, 4047, 310, 1131, 330, 8271, 6134, 80...
return self.no == other.no and self.setting == other.setting
if isinstance(other, int): return self.no == other elif isinstance(other, str): return self.symbol == other else: return self.no == other.no and self.setting == other.setting
def __eq__(self, other): """Chech whether *self* and *other* refer to the same spacegroup number and setting.""" return self.no == other.no and self.setting == other.setting
e6b43a282e4f374086d16b913744056243256848 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5735/e6b43a282e4f374086d16b913744056243256848/spacegroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 11253, 972, 12, 2890, 16, 1308, 4672, 3536, 39, 580, 343, 2856, 380, 2890, 14, 471, 380, 3011, 14, 8884, 358, 326, 1967, 3476, 1655, 1300, 471, 3637, 12123, 327, 365, 18, 2135, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 11253, 972, 12, 2890, 16, 1308, 4672, 3536, 39, 580, 343, 2856, 380, 2890, 14, 471, 380, 3011, 14, 8884, 358, 326, 1967, 3476, 1655, 1300, 471, 3637, 12123, 327, 365, 18, 2135, 4...
"access" : ACCESS_TRANSLATE[values["subindexes"][subindex]["ACCESSTYPE"]],
"access" : ACCESS_TRANSLATE[values["subindexes"][subindex]["ACCESSTYPE"].upper()],
def GenerateNode(filepath, nodeID = 0): global Node # Create a new node Node = node.Node(id = nodeID) try: # Parse file and extract dictionary of EDS entry eds_dict = ParseEDSFile(filepath) # Extract Profile Number from Device Type entry ProfileNb = eds_dict[0x1000]["DEFAULTVALUE"] & 0x0000ffff # If profile is not DS-3...
377e3b02a272798306727eecf174777a489d3f3d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/116/377e3b02a272798306727eecf174777a489d3f3d/eds_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6654, 907, 12, 10561, 16, 14871, 273, 374, 4672, 2552, 2029, 468, 1788, 279, 394, 756, 2029, 273, 756, 18, 907, 12, 350, 273, 14871, 13, 775, 30, 468, 2884, 585, 471, 2608, 3880, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6654, 907, 12, 10561, 16, 14871, 273, 374, 4672, 2552, 2029, 468, 1788, 279, 394, 756, 2029, 273, 756, 18, 907, 12, 350, 273, 14871, 13, 775, 30, 468, 2884, 585, 471, 2608, 3880, 434, ...
_rcsid="$Id: fitting_toolkit.py,v 1.7 2003-05-30 13:31:55 mendenhall Exp $"
_rcsid="$Id: fitting_toolkit.py,v 1.8 2003-07-03 14:17:50 mendenhall Exp $"
def derivs(self): #analytic derivatives for a 2-d gaussian #z0+a*exp( -(x-xmu)**2/(2*xsig**2) -(y-ymu)**2/(2.0*ysig**2)) z0, a, xmu, xsigma, ymu, ysigma = self.funcparams n=self.pointcount x=self.xarray[0,:n] y=self.xarray[1,:n] xsigi=-1.0/(2.0*xsigma**2) ysigi=-1.0/(2.0*ysigma**2) dx=x-xmu dx2=dx*dx dy=y-ymu dy2=dy*dy...
4d44ea8ac114ba81a7fea75d025f5d3b975b2f1e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6028/4d44ea8ac114ba81a7fea75d025f5d3b975b2f1e/fitting_toolkit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9630, 87, 12, 2890, 4672, 468, 304, 7834, 335, 9630, 8785, 364, 279, 576, 17, 72, 21490, 468, 94, 20, 15, 69, 14, 2749, 12, 300, 12, 92, 17, 92, 13297, 13, 636, 22, 19, 12, 22, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9630, 87, 12, 2890, 4672, 468, 304, 7834, 335, 9630, 8785, 364, 279, 576, 17, 72, 21490, 468, 94, 20, 15, 69, 14, 2749, 12, 300, 12, 92, 17, 92, 13297, 13, 636, 22, 19, 12, 22, 1...
classAdAgent = ClassAd("["+resourceJDL+"]")
classAdAgent = ClassAd(resourceJDL)
def selectJob(self, resourceJDL): """ Main job selection function to find the highest priority job matching the resource capacity """
efa72d039ea8335d5706043f0e4af017355dbdd3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/efa72d039ea8335d5706043f0e4af017355dbdd3/MatcherHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 2278, 12, 2890, 16, 1058, 46, 8914, 4672, 3536, 12740, 1719, 4421, 445, 358, 1104, 326, 9742, 4394, 1719, 3607, 326, 1058, 7519, 3536, 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, 2027, 2278, 12, 2890, 16, 1058, 46, 8914, 4672, 3536, 12740, 1719, 4421, 445, 358, 1104, 326, 9742, 4394, 1719, 3607, 326, 1058, 7519, 3536, 2, -100, -100, -100, -100, -100, -100, -100, ...
assert not gc.garbage, 'uncollectable garbage left over from previous tests'
check_garbage()
def leakTest_generic(func): print 'memory leak test', func.__name__ assert not gc.garbage, 'uncollectable garbage left over from previous tests' doc = document.Document() #gc.set_debug(gc.DEBUG_LEAK) m = [] N = 20 for i in range(N): func(doc, i) m2 = mem() m.append(m2) print 'iteration %02d/%02d: %d pages used' % (i+...
e9401ce8fa849433b139b4ec9499bfad444e6a21 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7129/e9401ce8fa849433b139b4ec9499bfad444e6a21/test_mypaintlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20891, 4709, 67, 13540, 12, 644, 4672, 1172, 296, 7858, 20891, 1842, 2187, 1326, 16186, 529, 972, 866, 67, 75, 12332, 1435, 225, 997, 273, 1668, 18, 2519, 1435, 468, 13241, 18, 542, 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, 20891, 4709, 67, 13540, 12, 644, 4672, 1172, 296, 7858, 20891, 1842, 2187, 1326, 16186, 529, 972, 866, 67, 75, 12332, 1435, 225, 997, 273, 1668, 18, 2519, 1435, 468, 13241, 18, 542, 67, ...
[(-5 : 6 : 1), (-4 : 5 : 1), (-3 : 4 : 1), (-2 : 3 : 1), (-3/2 : 5/2 : 1), (-1 : 1 : 0), (-1 : 2 : 1), (-2/3 : 5/3 : 1), (-1/2 : 3/2 : 1), (-1/3 : 4/3 : 1), (-1/4 : 5/4 : 1), (-1/5 : 6/5 : 1), (0 : 1 : 1), (1/6 : 5/6 : 1), (1/5 : 4/5 : 1), (1/4 : 3/4 : 1), (1/3 : 2/3 : 1), (2/5 : 3/5 : 1), (1/2 : 1/2 : 1), (3/5 : 2/5 :...
[(-5 : 6 : 1), (-4 : 5 : 1), (-3 : 4 : 1), (-2 : 3 : 1), (-3/2 : 5/2 : 1), (-1 : 1 : 0), (-1 : 2 : 1), (-2/3 : 5/3 : 1), (-1/2 : 3/2 : 1), (-1/3 : 4/3 : 1), (-1/4 : 5/4 : 1), (-1/5 : 6/5 : 1), (0 : 1 : 1), (1/6 : 5/6 : 1), (1/5 : 4/5 : 1), (1/4 : 3/4 : 1), (1/3 : 2/3 : 1), (2/5 : 3/5 : 1), (1/2 : 1/2 : 1), (3/5 : 2/5 :...
def enum_projective_rational_field(X,B): """ Enumerates projective, rational points on scheme X of height up to bound B. INPUT: - ``X`` - a scheme or set of abstract rational points of a scheme. - ``B`` - a positive integer bound OUTPUT: - a list containing the projective points of X of height up to B, sorted. E...
7437114fd97818d63a9f0b766fecf0fb34f4f16c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/7437114fd97818d63a9f0b766fecf0fb34f4f16c/rational_point.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2792, 67, 4406, 688, 67, 7034, 287, 67, 1518, 12, 60, 16, 38, 4672, 3536, 6057, 264, 815, 1984, 688, 16, 436, 8371, 3143, 603, 4355, 1139, 434, 2072, 731, 358, 2489, 605, 18, 225, 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, 2792, 67, 4406, 688, 67, 7034, 287, 67, 1518, 12, 60, 16, 38, 4672, 3536, 6057, 264, 815, 1984, 688, 16, 436, 8371, 3143, 603, 4355, 1139, 434, 2072, 731, 358, 2489, 605, 18, 225, 12...
self.failedDown.append( FailedItem( link, threadName, itemNode, failureDownDict ) )
self.failedDown.append( FailedItem( link, threadName, itemNode, failureDownDict ) )
def load(self): u"""take care of conversion from older versions here, then call save to store updates, then continue with loading.""" f = open(self.saveFileName, 'rb') saveFile = pickle.load(f) if 'version' not in saveFile: self.version = u'0.2.4' else: self.version = saveFile['version'] self.lastChecked = saveFile['la...
633e00b171a777d923e4aead2f2717108d53a3b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/633e00b171a777d923e4aead2f2717108d53a3b9/rssdler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 12, 2890, 4672, 582, 8395, 22188, 7671, 434, 4105, 628, 12156, 5244, 2674, 16, 1508, 745, 1923, 358, 1707, 4533, 16, 1508, 1324, 598, 7153, 12123, 284, 273, 1696, 12, 2890, 18, 568...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1262, 12, 2890, 4672, 582, 8395, 22188, 7671, 434, 4105, 628, 12156, 5244, 2674, 16, 1508, 745, 1923, 358, 1707, 4533, 16, 1508, 1324, 598, 7153, 12123, 284, 273, 1696, 12, 2890, 18, 568...
returns 'modelRoot' NOTE: returns parts of first LOD"""
returns 'modelRoot' NOTE: returns parts of arbitrary LOD"""
def getPartNames(self): """getPartNames(self): Return list of Actor part names. If not an multipart actor, returns 'modelRoot' NOTE: returns parts of first LOD""" return self.__partBundleDict.values()[0].keys()
f3ecd1b3be1dfb26d71ee04e5cafdbea5f5b53a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/f3ecd1b3be1dfb26d71ee04e5cafdbea5f5b53a9/Actor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13657, 1557, 12, 2890, 4672, 3536, 588, 1988, 1557, 12, 2890, 4672, 2000, 666, 434, 21142, 1087, 1257, 18, 971, 486, 392, 10263, 8327, 16, 1135, 296, 2284, 2375, 11, 5219, 30, 1135, 2140...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13657, 1557, 12, 2890, 4672, 3536, 588, 1988, 1557, 12, 2890, 4672, 2000, 666, 434, 21142, 1087, 1257, 18, 971, 486, 392, 10263, 8327, 16, 1135, 296, 2284, 2375, 11, 5219, 30, 1135, 2140...
table.addElement(ecs.Tr().addElement(td)) if f.description: tr.addElement(ecs.Td().addElement(f.description)) tr.addElement(ecs.Td().addElement(f.getView())) else: td=ecs.Td().addElement(f.getView()).setAttribute('colspan', '2')
def handleField(self, f, tr, table): msg=self.errors.get(f) if msg: em=ecs.Em(msg).setAttribute('class', 'form_error') td=ecs.Td(em).setAttribute('colspan', '2') table.addElement(ecs.Tr().addElement(td))
dd3fcaae83881277e9cf6cdf57b1d04d852ed615 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5832/dd3fcaae83881277e9cf6cdf57b1d04d852ed615/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 974, 12, 2890, 16, 284, 16, 433, 16, 1014, 4672, 1234, 33, 2890, 18, 4324, 18, 588, 12, 74, 13, 309, 1234, 30, 801, 33, 557, 87, 18, 1514, 12, 3576, 2934, 542, 1499, 2668, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 974, 12, 2890, 16, 284, 16, 433, 16, 1014, 4672, 1234, 33, 2890, 18, 4324, 18, 588, 12, 74, 13, 309, 1234, 30, 801, 33, 557, 87, 18, 1514, 12, 3576, 2934, 542, 1499, 2668, 11...
popen([python, '-c', cmd])
p = popen([python, '-c', cmd], stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.PIPE) p.stdout.close() p.stdin.close() p.stderr.close()
def run(self, job_id, func, args=[], kwdargs={}, monitor=True): ''' Run a job in a separate process. @param job_id: A unique (per server) identifier @param func: One of C{PARALLEL_FUNCS.keys()} @param args: A list of arguments to pass of C{func} @param kwdargs: A dictionary of keyword arguments to pass to C{func} @para...
fb805aa4ece85e6e4fde23ade4d93233e714387f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/fb805aa4ece85e6e4fde23ade4d93233e714387f/parallel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 1719, 67, 350, 16, 1326, 16, 833, 22850, 6487, 417, 3623, 1968, 28793, 6438, 33, 5510, 4672, 9163, 1939, 279, 1719, 316, 279, 9004, 1207, 18, 632, 891, 1719, 67, 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, 1086, 12, 2890, 16, 1719, 67, 350, 16, 1326, 16, 833, 22850, 6487, 417, 3623, 1968, 28793, 6438, 33, 5510, 4672, 9163, 1939, 279, 1719, 316, 279, 9004, 1207, 18, 632, 891, 1719, 67, 35...
audio.cancel() audio.speakMessage(str(self.dom.frames.item(frameNum).document.readyState))
if winUser.isDescendantWindow(self.NVDAObject.windowHandle,api.getFocusObject().windowHandle): audio.cancel() audio.speakMessage(str(self.dom.frames.item(frameNum).document.readyState))
def isDocumentComplete(self): documentComplete=True if self.dom.readyState!="complete": audio.cancel() audio.speakMessage(str(self.dom.readyState)) documentComplete=False for frameNum in range(self.dom.frames.length): try: if self.dom.frames.item(frameNum).document.readyState!="complete": audio.cancel() audio.speakMess...
2ccbd29a498b50e15a00cf571a2d239c140eb639 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/2ccbd29a498b50e15a00cf571a2d239c140eb639/MSHTML.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 2519, 6322, 12, 2890, 4672, 1668, 6322, 33, 5510, 309, 365, 18, 9859, 18, 1672, 1119, 5, 1546, 6226, 6877, 7447, 18, 10996, 1435, 7447, 18, 87, 10244, 1079, 12, 701, 12, 2890, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 2519, 6322, 12, 2890, 4672, 1668, 6322, 33, 5510, 309, 365, 18, 9859, 18, 1672, 1119, 5, 1546, 6226, 6877, 7447, 18, 10996, 1435, 7447, 18, 87, 10244, 1079, 12, 701, 12, 2890, 18,...
path = self._find_file(self.main_module) fp = open(path, 'r') source = fp.read() fp.close()
def _regenerate(self): if self._dependencies: for name, mtime in self._dependencies.items(): path = self._find_file(name) if not path or os.path.getmtime(path) != mtime: # Just recompile everything self._dependencies = {} break else: # No changes return
d81888e767010d1d117a8a8eb85fb468a070a307 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11828/d81888e767010d1d117a8a8eb85fb468a070a307/sass.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1574, 14681, 12, 2890, 4672, 309, 365, 6315, 11037, 30, 364, 508, 16, 13158, 316, 365, 6315, 11037, 18, 3319, 13332, 589, 273, 365, 6315, 4720, 67, 768, 12, 529, 13, 309, 486, 589...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1574, 14681, 12, 2890, 4672, 309, 365, 6315, 11037, 30, 364, 508, 16, 13158, 316, 365, 6315, 11037, 18, 3319, 13332, 589, 273, 365, 6315, 4720, 67, 768, 12, 529, 13, 309, 486, 589...
map = socket_map
map = self._map
def del_channel(self, map=None): fd = self._fileno if map is None: map = socket_map if map.has_key(fd): #self.log_info('closing channel %d:%s' % (fd, self)) del map[fd]
f9ca40929241fa83c4fc7a8f2ba6c334286e5e16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f9ca40929241fa83c4fc7a8f2ba6c334286e5e16/asyncore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1464, 67, 4327, 12, 2890, 16, 852, 33, 7036, 4672, 5194, 273, 365, 6315, 7540, 5764, 309, 852, 353, 599, 30, 852, 273, 365, 6315, 1458, 309, 852, 18, 5332, 67, 856, 12, 8313, 4672, 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, 1464, 67, 4327, 12, 2890, 16, 852, 33, 7036, 4672, 5194, 273, 365, 6315, 7540, 5764, 309, 852, 353, 599, 30, 852, 273, 365, 6315, 1458, 309, 852, 18, 5332, 67, 856, 12, 8313, 4672, 4...
addFilter('E: emacs.*el|xemacs.*el no-dependency-on locales-el')
addFilter('E: emacs.*-el|xemacs.*-el no-dependency-on locales-el')
def isFiltered(s): global _filters if not no_exception: for f in _filters: if f.search(s): return 1 return 0
5755bb2e69569c1758ae9432582bc9f3efd9d7cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3346/5755bb2e69569c1758ae9432582bc9f3efd9d7cd/Config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 14478, 12, 87, 4672, 2552, 389, 6348, 225, 309, 486, 1158, 67, 4064, 30, 364, 284, 316, 389, 6348, 30, 309, 284, 18, 3072, 12, 87, 4672, 327, 404, 327, 374, 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, 353, 14478, 12, 87, 4672, 2552, 389, 6348, 225, 309, 486, 1158, 67, 4064, 30, 364, 284, 316, 389, 6348, 30, 309, 284, 18, 3072, 12, 87, 4672, 327, 404, 327, 374, 225, 2, -100, -100, ...
qscanList = stfu_pipe.getParamsFromCache(eval("opts.qscan_cache_" + type_string),type)
qscanList = getParamsFromCache(eval("opts.qscan_cache_" + type_string),type)
def getQscanTable(opts,type): summary = readSummaryFiles() if "FG" in type: type_string = "foreground" elif "BG" in type: type_string = "background" if eval("opts.qscan_cache_" + type_string): qscanList = stfu_pipe.getParamsFromCache(eval("opts.qscan_cache_" + type_string),type) else: try: inputPath = eval("opts." +...
6c15368b6ad90ea664a08bf234347a0623f88dd1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/6c15368b6ad90ea664a08bf234347a0623f88dd1/analyseQscan.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23413, 9871, 1388, 12, 4952, 16, 723, 4672, 225, 4916, 273, 855, 4733, 2697, 1435, 225, 309, 315, 42, 43, 6, 316, 618, 30, 618, 67, 1080, 273, 315, 1405, 2915, 6, 1327, 315, 30098, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23413, 9871, 1388, 12, 4952, 16, 723, 4672, 225, 4916, 273, 855, 4733, 2697, 1435, 225, 309, 315, 42, 43, 6, 316, 618, 30, 618, 67, 1080, 273, 315, 1405, 2915, 6, 1327, 315, 30098, 6...
except ImportError:
gzip.GzipFile except (ImportError, AttributeError):
def gzopen(cls, name, mode="r", fileobj=None, compresslevel=9): """Open gzip compressed tar archive name for reading or writing. Appending is not allowed. """ if len(mode) > 1 or mode not in "rw": raise ValueError, "mode must be 'r' or 'w'"
dfaef169347f31b7cfb56d0efdf0f53c2ff1dd24 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/dfaef169347f31b7cfb56d0efdf0f53c2ff1dd24/tarfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14136, 3190, 12, 6429, 16, 508, 16, 1965, 1546, 86, 3113, 17041, 33, 7036, 16, 8099, 2815, 33, 29, 4672, 3536, 3678, 10331, 8968, 8232, 5052, 508, 364, 6453, 578, 7410, 18, 6181, 310, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14136, 3190, 12, 6429, 16, 508, 16, 1965, 1546, 86, 3113, 17041, 33, 7036, 16, 8099, 2815, 33, 29, 4672, 3536, 3678, 10331, 8968, 8232, 5052, 508, 364, 6453, 578, 7410, 18, 6181, 310, ...
handleStatus_200 = lambda *args: None
def handleStatus_200(self): self.factory.gotHeaders(self.headers)
1e191aa32d1fc9299221c26afe945b16e55bccfc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/1e191aa32d1fc9299221c26afe945b16e55bccfc/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 1482, 67, 6976, 12, 2890, 4672, 365, 18, 6848, 18, 13212, 3121, 12, 2890, 18, 2485, 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,...
[ 1, 1, 1, 1, 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, 1482, 67, 6976, 12, 2890, 4672, 365, 18, 6848, 18, 13212, 3121, 12, 2890, 18, 2485, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if 'gzip' not in environ.get('HTTP_ACCEPT_ENCODING'):
if 'gzip' not in environ.get('HTTP_ACCEPT_ENCODING', ''):
def __call__(self, environ, start_response): if 'gzip' not in environ.get('HTTP_ACCEPT_ENCODING'): # nothing for us to do, so this middleware will # be a no-op: return self.application(environ, start_response) response = GzipResponse(start_response, self.compress_level) app_iter = self.application(environ, response.gzi...
b122f389283fa3b627d3c4d1bc51706be175567a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2097/b122f389283fa3b627d3c4d1bc51706be175567a/gzipper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 5473, 16, 787, 67, 2740, 4672, 309, 296, 17380, 11, 486, 316, 5473, 18, 588, 2668, 3693, 67, 21417, 67, 14672, 2187, 875, 4672, 468, 5083, 364, 584, 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, 1001, 1991, 972, 12, 2890, 16, 5473, 16, 787, 67, 2740, 4672, 309, 296, 17380, 11, 486, 316, 5473, 18, 588, 2668, 3693, 67, 21417, 67, 14672, 2187, 875, 4672, 468, 5083, 364, 584, 358,...
for child in obj.children: if child.name not in exported_children: writeObject(scene, path, child, current_pass, write) exported_children.append(child.name)
writeChildren()
def writeObject(path, obj, current_pass, write, scene): if obj.type == 'MESH': if check_visible(obj, scene): print("write "+obj.name) mat = obj.active_material write("\nAttributeBegin\n") write('Attribute "identifier" "name" ["'+obj.name+'"]\n') write_attrs_or_opts(obj.renderman[current_pass.name].attribute_groups, w...
36e719e8947fc0f79b6d39a93ad6ee903a8f98de /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14285/36e719e8947fc0f79b6d39a93ad6ee903a8f98de/export_renderman.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16306, 12, 803, 16, 1081, 16, 783, 67, 5466, 16, 1045, 16, 9065, 4672, 309, 1081, 18, 723, 422, 296, 958, 2664, 4278, 309, 866, 67, 8613, 12, 2603, 16, 9065, 4672, 1172, 2932, 2626, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16306, 12, 803, 16, 1081, 16, 783, 67, 5466, 16, 1045, 16, 9065, 4672, 309, 1081, 18, 723, 422, 296, 958, 2664, 4278, 309, 866, 67, 8613, 12, 2603, 16, 9065, 4672, 1172, 2932, 2626, ...
try: class C(bool): pass except TypeError: pass else: raise TestFailed, "bool should not be subclassable" try: int.__new__(bool, 0) except TypeError: pass else: raise TestFailed, "should not be able to create new bool instances" fo = open(TESTFN, "wb") print >> fo, False, True fo.close() fo = open(TESTFN, "rb") vere...
class BoolTest(unittest.TestCase): def assertIs(self, a, b): self.assert_(a is b) def assertIsNot(self, a, b): self.assert_(a is not b) def test_subclass(self): try: class C(bool): pass except TypeError: pass else: self.fail("bool should not be subclassable") self.assertRaises(TypeError, int.__new__, bool, 0) def ...
def verisnot(a, b): if a is b: raise TestFailed, "%r is %r" % (a, b)
dbcede5d66aee2999c16367fd4a2529fe77e91ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dbcede5d66aee2999c16367fd4a2529fe77e91ae/test_bool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1924, 291, 902, 12, 69, 16, 324, 4672, 309, 279, 353, 324, 30, 1002, 7766, 2925, 16, 2213, 86, 353, 738, 86, 6, 738, 261, 69, 16, 324, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1924, 291, 902, 12, 69, 16, 324, 4672, 309, 279, 353, 324, 30, 1002, 7766, 2925, 16, 2213, 86, 353, 738, 86, 6, 738, 261, 69, 16, 324, 13, 225, 2, -100, -100, -100, -100, -100, -10...
cty.c_int, [cty.POINTER(FL_OBJECT)],
cty.c_int, [cty.POINTER(FL_OBJECT)],
def fl_set_input_xoffset(ob, xoff): """ fl_set_input_xoffset(ob, xoff) """ _fl_set_input_xoffset(ob, xoff)
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, 2630, 67, 92, 3348, 12, 947, 16, 619, 3674, 4672, 3536, 1183, 67, 542, 67, 2630, 67, 92, 3348, 12, 947, 16, 619, 3674, 13, 3536, 225, 389, 2242, 67, 542, 67, 263...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1183, 67, 542, 67, 2630, 67, 92, 3348, 12, 947, 16, 619, 3674, 4672, 3536, 1183, 67, 542, 67, 2630, 67, 92, 3348, 12, 947, 16, 619, 3674, 13, 3536, 225, 389, 2242, 67, 542, 67, 263...
print strftime("%c", localnow)
def processRepeated(self, findRunningEvent = True): print "ProcessRepeated" if (self.repeated != 0): now = int(time()) + 1
9ddb6ca949731ad0f510602b012ee0b2ea53890f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6652/9ddb6ca949731ad0f510602b012ee0b2ea53890f/timer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 20730, 12, 2890, 16, 1104, 7051, 1133, 273, 1053, 4672, 1172, 315, 2227, 20730, 6, 309, 261, 2890, 18, 266, 9061, 480, 374, 4672, 2037, 273, 509, 12, 957, 10756, 397, 404, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20730, 12, 2890, 16, 1104, 7051, 1133, 273, 1053, 4672, 1172, 315, 2227, 20730, 6, 309, 261, 2890, 18, 266, 9061, 480, 374, 4672, 2037, 273, 509, 12, 957, 10756, 397, 404, 2, -10...
alpha_k, fc, gc, old_fval, old_old_fval = \
alpha_k, fc, gc, old_fval, old_old_fval, gfkp1 = \
def fmin_cg(f, x0, fprime=None, args=(), avegtol=1e-5, epsilon=1.49e-8, maxiter=None, full_output=0, disp=1, retall=0): """Minimize a function with nonlinear conjugate gradient algorithm. Description: Optimize the function, f, whose gradient is given by fprime using the nonlinear conjugate gradient algorithm of Polak...
18d62e07c7b0b8dd2d3680a3b704bd36ff6ae89b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/18d62e07c7b0b8dd2d3680a3b704bd36ff6ae89b/optimize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 1154, 67, 26275, 12, 74, 16, 619, 20, 16, 284, 16382, 33, 7036, 16, 833, 33, 9334, 279, 537, 75, 3490, 33, 21, 73, 17, 25, 16, 12263, 33, 21, 18, 7616, 73, 17, 28, 16, 25743...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 284, 1154, 67, 26275, 12, 74, 16, 619, 20, 16, 284, 16382, 33, 7036, 16, 833, 33, 9334, 279, 537, 75, 3490, 33, 21, 73, 17, 25, 16, 12263, 33, 21, 18, 7616, 73, 17, 28, 16, 25743...
mol = self.molecule from chunk import _nullMol better_alive_answer = mol is not None and self.key in mol.atoms and mol is not _nullMol
better_alive_answer = mol is not None and self.key in mol.atoms and mol is not _nullMol
def killed(self): #bruce 041029; totally revised by bruce 050702 """ (Public method) Report whether an atom has been killed. """ # Note: some "friend code" inlines this method for speed # (and omits the debug code). To find it, search for _Atom__killed # (the mangled version of __killed). [bruce 071018 comment] if debu...
ed409134e77b5e0b4516d0060e8f298611249859 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/ed409134e77b5e0b4516d0060e8f298611249859/chem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24859, 12, 2890, 4672, 468, 2848, 3965, 16486, 2163, 5540, 31, 9997, 1230, 283, 26779, 635, 5186, 3965, 374, 3361, 27, 3103, 3536, 261, 4782, 707, 13, 8706, 2856, 392, 3179, 711, 2118, 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, 24859, 12, 2890, 4672, 468, 2848, 3965, 16486, 2163, 5540, 31, 9997, 1230, 283, 26779, 635, 5186, 3965, 374, 3361, 27, 3103, 3536, 261, 4782, 707, 13, 8706, 2856, 392, 3179, 711, 2118, 2...
return http.Response(stream=template('login.html', **template_dict)) else: return http.Response(stream = message("Please enable cookies and try again."))
return HTMLResponse(stream=template('login.html', **template_dict)) else: return HTMLResponse(stream = message("Please enable cookies and try again."))
def render(self, ctx): # Since public access is allowed, which lists usernames in the published # worksheets and ratings, this gives no new information way. # If published pages were disabled, then this should be disabled too. if self.problem == 'username': template_dict = {'accounts': notebook.get_accounts(), 'default...
86a4ed9cb0aba48a11523b820246bf1c9d9e7be2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/86a4ed9cb0aba48a11523b820246bf1c9d9e7be2/twist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 1103, 4672, 468, 7897, 1071, 2006, 353, 2935, 16, 1492, 6035, 27675, 316, 326, 9487, 468, 6330, 10245, 471, 15183, 899, 16, 333, 14758, 1158, 394, 1779, 4031, 18, 468...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 16, 1103, 4672, 468, 7897, 1071, 2006, 353, 2935, 16, 1492, 6035, 27675, 316, 326, 9487, 468, 6330, 10245, 471, 15183, 899, 16, 333, 14758, 1158, 394, 1779, 4031, 18, 468...
return ""
return "2000"
def GetImageWindowWidth(self, preset=WL_PRESET, multiple=WL_MULT): """ Return image window width (related to contrast). This is an integer or a floating point. If the value can't be read, return "".
c7ea4e643babd25a3c51ade4e2a02ac75bc59474 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10228/c7ea4e643babd25a3c51ade4e2a02ac75bc59474/dicom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 2040, 3829, 2384, 12, 2890, 16, 12313, 33, 59, 48, 67, 3670, 4043, 16, 3229, 33, 59, 48, 67, 12845, 4672, 3536, 2000, 1316, 2742, 1835, 261, 9243, 358, 23119, 2934, 1220, 353, 392...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 2040, 3829, 2384, 12, 2890, 16, 12313, 33, 59, 48, 67, 3670, 4043, 16, 3229, 33, 59, 48, 67, 12845, 4672, 3536, 2000, 1316, 2742, 1835, 261, 9243, 358, 23119, 2934, 1220, 353, 392...
group_info=group_info.replace(group_info[openindex:closeindex+1],"")
group_info=group_info.replace\ (group_info[openindex:closeindex+1],"")
def verify_sched_domain_dmesg(sched_mc_level, sched_smt_level): ''' Read sched domain information from dmesg. ''' cpu_group = list() try: dmesg_info = os.popen('dmesg').read() if dmesg_info != "": lines = dmesg_info.split('\n') for i in range(0, len(lines)): if lines[i].endswith('CPU'): groups = lines[i+1].split("group...
bde0088285dcc63685bddce865f205b2c4a8bbe0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11457/bde0088285dcc63685bddce865f205b2c4a8bbe0/sched_mc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3929, 67, 87, 2049, 67, 4308, 67, 10956, 281, 75, 12, 87, 2049, 67, 13952, 67, 2815, 16, 23964, 67, 87, 1010, 67, 2815, 4672, 9163, 2720, 23964, 2461, 1779, 628, 9113, 281, 75, 18, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3929, 67, 87, 2049, 67, 4308, 67, 10956, 281, 75, 12, 87, 2049, 67, 13952, 67, 2815, 16, 23964, 67, 87, 1010, 67, 2815, 4672, 9163, 2720, 23964, 2461, 1779, 628, 9113, 281, 75, 18, 9...
print 'workflow creation command for workflow:',workflow,'exited with ExitCode:',exitValue else : exitValue = exitCode
print 'workflow creation command for workflow:',workflow,'exited with ExitCode:',exitCode else :
def main(argv) : """ prepareRelValworkflows prepare workflows for chained processing of RelVal samples - parse file holding cmsDriver commands for 1st and 2nd steps - prepare workflows - prepare WorkflowInjector:Input script - prepare ForceMerge script - prepare DBSMigrationToGlobal script - prepare PhEDExInjection ...
47397be0ad25e900c8367cb1b05a7d6e187b915f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8887/47397be0ad25e900c8367cb1b05a7d6e187b915f/prepareRelValWorkflows.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 13, 294, 3536, 225, 2911, 1971, 3053, 13815, 87, 225, 2911, 31738, 364, 20269, 4929, 434, 4275, 3053, 5216, 225, 300, 1109, 585, 19918, 6166, 4668, 4364, 364, 404, 334, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19485, 13, 294, 3536, 225, 2911, 1971, 3053, 13815, 87, 225, 2911, 31738, 364, 20269, 4929, 434, 4275, 3053, 5216, 225, 300, 1109, 585, 19918, 6166, 4668, 4364, 364, 404, 334, ...
lines1 = file(os.path.join(dirname(), filename), "r").readlines()
lines1 = file(os.path.join(dirname(), filename), "rU").readlines()
def test_readlines(self): """Test readlines() method of _FileObject. """ if self.sep != "|": filename = "0-REGTYPE-TEXT" self.tar.extract(filename, dirname()) lines1 = file(os.path.join(dirname(), filename), "r").readlines() lines2 = self.tar.extractfile(filename).readlines() self.assert_(lines1 == lines2, "_FileObject...
17e0b35990981886e883d198e3696cf53a8b312a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/17e0b35990981886e883d198e3696cf53a8b312a/test_tarfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 896, 3548, 12, 2890, 4672, 3536, 4709, 17546, 1435, 707, 434, 389, 21471, 18, 3536, 309, 365, 18, 10814, 480, 11747, 6877, 1544, 273, 315, 20, 17, 5937, 2399, 17, 5151, 6, 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, 1842, 67, 896, 3548, 12, 2890, 4672, 3536, 4709, 17546, 1435, 707, 434, 389, 21471, 18, 3536, 309, 365, 18, 10814, 480, 11747, 6877, 1544, 273, 315, 20, 17, 5937, 2399, 17, 5151, 6, 36...
iface)
iface, addr)
def __repr__(self): rt = "Network Netmask Gateway Iface\n" for net,msk,gw,iface,addr in self.routes: rt += "%-15s %-15s %-15s %s\n" % (ltoa(net), ltoa(msk), gw, iface) return rt
3189058f12fcf8b5eb134c746ce4ab9b49c84e27 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/3189058f12fcf8b5eb134c746ce4ab9b49c84e27/scapy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 8253, 273, 315, 3906, 540, 8503, 4455, 540, 11381, 540, 29808, 64, 82, 6, 364, 2901, 16, 959, 79, 16, 28500, 16, 31479, 16, 4793, 316, 365, 18, 10854,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12715, 972, 12, 2890, 4672, 8253, 273, 315, 3906, 540, 8503, 4455, 540, 11381, 540, 29808, 64, 82, 6, 364, 2901, 16, 959, 79, 16, 28500, 16, 31479, 16, 4793, 316, 365, 18, 10854,...
"""SMTP 'verify' command. Checks for address validity."""
"""SMTP 'verify' command -- checks for address validity."""
def verify(self, address): """SMTP 'verify' command. Checks for address validity.""" self.putcmd("vrfy", quoteaddr(address)) return self.getreply()
33277df4d8ce335176270f2501de2933739ddd3c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/33277df4d8ce335176270f2501de2933739ddd3c/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3929, 12, 2890, 16, 1758, 4672, 3536, 55, 14636, 296, 8705, 11, 1296, 1493, 4271, 364, 1758, 13800, 12123, 365, 18, 458, 4172, 2932, 16825, 93, 3113, 4914, 684, 3069, 12, 2867, 3719, 327...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3929, 12, 2890, 16, 1758, 4672, 3536, 55, 14636, 296, 8705, 11, 1296, 1493, 4271, 364, 1758, 13800, 12123, 365, 18, 458, 4172, 2932, 16825, 93, 3113, 4914, 684, 3069, 12, 2867, 3719, 327...
result = super(account_invoice, self).onchange_partner_id(cr, uid, ids, type, partner_id, date_invoice, payment_term, partner_bank_id)
result = super(account_invoice, self).onchange_partner_id(cr, uid, ids, type, partner_id, date_invoice, payment_term, partner_bank_id, company_id)
def onchange_partner_id(self, cr, uid, ids, type, partner_id, date_invoice=False, payment_term=False, partner_bank_id=False): # Copy partner data to invoice, also the new field payment_type result = super(account_invoice, self).onchange_partner_id(cr, uid, ids, type, partner_id, date_invoice, payment_term, partner_bank...
cf9be14079eef5bcb578f22889621498f66aacda /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9833/cf9be14079eef5bcb578f22889621498f66aacda/account_invoice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 3427, 67, 31993, 67, 350, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 618, 16, 19170, 67, 350, 16, 1509, 67, 16119, 33, 8381, 16, 5184, 67, 6408, 33, 8381, 16, 19170, 67, 10546,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 603, 3427, 67, 31993, 67, 350, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 618, 16, 19170, 67, 350, 16, 1509, 67, 16119, 33, 8381, 16, 5184, 67, 6408, 33, 8381, 16, 19170, 67, 10546,...
uo.addheader('Range', 'bytes=%s-' % rlen)
headers.append(('Range', 'bytes=%s-' % rlen)) uo.addheaders = headers
def read_file_content(self): if not self._retrieved or self.uploadByUrl: # Get file contents wikipedia.output(u'Reading file %s' % self.url) if '://' in self.url: resume = False dt = 15
ea1c58d03dbc2e3d9a652b98906a40612ff7b553 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/ea1c58d03dbc2e3d9a652b98906a40612ff7b553/upload.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 768, 67, 1745, 12, 2890, 4672, 309, 486, 365, 6315, 14580, 2155, 578, 365, 18, 6327, 858, 1489, 30, 468, 968, 585, 2939, 21137, 18, 2844, 12, 89, 11, 15714, 585, 738, 87, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 768, 67, 1745, 12, 2890, 4672, 309, 486, 365, 6315, 14580, 2155, 578, 365, 18, 6327, 858, 1489, 30, 468, 968, 585, 2939, 21137, 18, 2844, 12, 89, 11, 15714, 585, 738, 87, 11...
request.user.getFormattedDateTime( wikiutil.version2timestamp(idx.mtime())) or _('N/A'))
request.user.getFormattedDateTime(idx.mtime()) or _('N/A'))
def getInfo(self): _ = self.request.getText request = self.request
112ce962db695889a0bc7d7130f192b2ece7a92e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/888/112ce962db695889a0bc7d7130f192b2ece7a92e/SystemInfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17142, 12, 2890, 4672, 389, 273, 365, 18, 2293, 18, 588, 1528, 590, 273, 365, 18, 2293, 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, ...
[ 1, 1, 1, 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, 17142, 12, 2890, 4672, 389, 273, 365, 18, 2293, 18, 588, 1528, 590, 273, 365, 18, 2293, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
fo = open(test_support.TESTFN, "rb")
fo = open(test_support.TESTFN, "r")
def test_print(self): d = deque(range(200)) d.append(d) try: fo = open(test_support.TESTFN, "wb") fo.write(str(d)) fo.close() fo = open(test_support.TESTFN, "rb") self.assertEqual(fo.read(), repr(d)) finally: fo.close() os.remove(test_support.TESTFN)
a298c0b8a7d06b4262b35baebca62bab653bbf81 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/a298c0b8a7d06b4262b35baebca62bab653bbf81/test_deque.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1188, 12, 2890, 4672, 302, 273, 21147, 12, 3676, 12, 6976, 3719, 302, 18, 6923, 12, 72, 13, 775, 30, 18261, 273, 1696, 12, 3813, 67, 13261, 18, 16961, 19793, 16, 315, 9464, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1188, 12, 2890, 4672, 302, 273, 21147, 12, 3676, 12, 6976, 3719, 302, 18, 6923, 12, 72, 13, 775, 30, 18261, 273, 1696, 12, 3813, 67, 13261, 18, 16961, 19793, 16, 315, 9464, ...
<TABLE> <TR> <TD>Username:</TD> <TD><INPUT name="username" type="text"> (Hint: any username will work)</TD> </TR> <TR> <TD>Password:</TD> <TD><INPUT name="password" type="password"> (Hint: redfoot)</TD> </TR> <TR> <TD colspan=2"><INPUT value="Login" type="submit"></TD> </TR>
<TABLE> <TR> <TD>Username:</TD> <TD><INPUT name="username" type="text"> (Hint: any username will work)</TD> </TR> <TR> <TD>Password:</TD> <TD><INPUT name="password" type="password"> (Hint: redfoot)</TD> </TR> <TR> <TD colspan="2"><INPUT value="Login" type="submit"></TD> </TR> </TABLE>
def authenticated(self, request, response): parameters = request.getParameters() session = request.getSession() if hasattr(session, 'username'): return 1 elif parameters['username']!="" and \ parameters['password']!="" and parameters['password']=="redfoot": session.username = parameters['username'] return 1 else: respo...
826e6f4dc15f8e9c7fbf4366667f8ddff5934466 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7049/826e6f4dc15f8e9c7fbf4366667f8ddff5934466/sample1.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9370, 12, 2890, 16, 590, 16, 766, 4672, 1472, 273, 590, 18, 588, 2402, 1435, 1339, 273, 590, 18, 588, 2157, 1435, 309, 3859, 12, 3184, 16, 296, 5053, 11, 4672, 327, 404, 1327, 1472, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9370, 12, 2890, 16, 590, 16, 766, 4672, 1472, 273, 590, 18, 588, 2402, 1435, 1339, 273, 590, 18, 588, 2157, 1435, 309, 3859, 12, 3184, 16, 296, 5053, 11, 4672, 327, 404, 1327, 1472, ...
else
else:
def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 472) else quickfix.StringField.__init__(self, 472, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 1059, 9060, 13, 469, 30, 9549, 904, 18, 780, 974, 16186, 2738...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 1059, 9060, 13, 469, 30, 9549, 904, 18, 780, 974, 16186, 2738...
help: Help text to show in a tooltip
def __init__(self, label='', default='', help='', state='normal', *flags): """Create a FlagGroup with the given label and state. label: Label for the group default: Default selection help: Help text to show in a tooltip state: 'normal' for regular Flags, 'exclusive' for mutually-exclusive Flags *flags: Al...
57d407a827a5f2348c131eec7e0fa2b279dd1577 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4675/57d407a827a5f2348c131eec7e0fa2b279dd1577/control.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1433, 2218, 2187, 805, 2218, 2187, 2809, 2218, 2187, 919, 2218, 6130, 2187, 380, 7133, 4672, 3536, 1684, 279, 9960, 1114, 598, 326, 864, 1433, 471, 919, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1433, 2218, 2187, 805, 2218, 2187, 2809, 2218, 2187, 919, 2218, 6130, 2187, 380, 7133, 4672, 3536, 1684, 279, 9960, 1114, 598, 326, 864, 1433, 471, 919, 18...
print 'WARNING: failed to parse ldd output "'+line[:-1]+'", compared "'+line[:len(executable)+1]+'" and "'+executable+':'+'"'
print 'WARNING: failed to parse ldd output "'+line[:-1]+'"'
def lddlist_libraries_freebsd(executable): """returns a list of libraries that the executable depends on """ retval = [] pd = os.popen3('ldd '+executable) line = pd[1].readline() while (len(line)>0): subl = string.split(line) if (len(subl)>0): if (subl[0] == executable+':'): pass if (len(subl)>=6 and subl[2] == 'not' a...
82956646eb861112466c02a3eddf9793cbe3c5e7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6201/82956646eb861112466c02a3eddf9793cbe3c5e7/jk_lib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 328, 449, 1098, 67, 31417, 67, 9156, 2038, 72, 12, 17751, 4672, 3536, 6154, 279, 666, 434, 14732, 716, 326, 9070, 10935, 603, 3536, 5221, 273, 5378, 4863, 273, 1140, 18, 84, 3190, 23, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 328, 449, 1098, 67, 31417, 67, 9156, 2038, 72, 12, 17751, 4672, 3536, 6154, 279, 666, 434, 14732, 716, 326, 9070, 10935, 603, 3536, 5221, 273, 5378, 4863, 273, 1140, 18, 84, 3190, 23, ...
d = deque(xrange(100)) d.__init__(xrange(100, 200))
d = deque(xrange(-5125, -5000)) d.__init__(xrange(200))
def test_basics(self): d = deque(xrange(100)) d.__init__(xrange(100, 200)) for i in xrange(200, 400): d.append(i) for i in reversed(xrange(-200, 0)): d.appendleft(i) self.assertEqual(list(d), range(-200, 400)) self.assertEqual(len(d), 600)
7a4cc637b10bc88df173b42e22a51691a4182eb8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/7a4cc637b10bc88df173b42e22a51691a4182eb8/test_deque.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9157, 2102, 12, 2890, 4672, 302, 273, 21147, 12, 92, 3676, 19236, 13757, 25, 16, 300, 25, 3784, 3719, 302, 16186, 2738, 972, 12, 92, 3676, 12, 6976, 3719, 364, 277, 316, 1231...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9157, 2102, 12, 2890, 4672, 302, 273, 21147, 12, 92, 3676, 19236, 13757, 25, 16, 300, 25, 3784, 3719, 302, 16186, 2738, 972, 12, 92, 3676, 12, 6976, 3719, 364, 277, 316, 1231...
self.PropertyStepSize.value = 1
self.Property.value = 0
def __init__(self): self.always_evaluate(True) self.last_trigger_time = TimeIn.value self.PropertyInc.value = False self.PropertyDec.value = False self.Enable.value = False self.PropertyStepSize.value = 1 self.PropertyMin.value = 0 self.PropertyMax.value = 100000 self.TriggerTimeDelta.value = 0.05
06bc2489bc34aff885b81bb01041ee2bcf45f8b1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8421/06bc2489bc34aff885b81bb01041ee2bcf45f8b1/_property_modifier.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 17737, 67, 21024, 12, 5510, 13, 365, 18, 2722, 67, 10668, 67, 957, 273, 2647, 382, 18, 1132, 225, 365, 18, 1396, 14559, 18, 1132, 273, 1083, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 17737, 67, 21024, 12, 5510, 13, 365, 18, 2722, 67, 10668, 67, 957, 273, 2647, 382, 18, 1132, 225, 365, 18, 1396, 14559, 18, 1132, 273, 1083, ...
class ChannelContextMenu(FixedMenu):
class ChannelContextMenu(Screen):
def cancelClick(self): self.close(False)
d4fc7c9fea8e8a52d607596ab4d1027a82199de3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/d4fc7c9fea8e8a52d607596ab4d1027a82199de3/ChannelSelection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3755, 6563, 12, 2890, 4672, 365, 18, 4412, 12, 8381, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3755, 6563, 12, 2890, 4672, 365, 18, 4412, 12, 8381, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
W = Q + (k*2*m)*P
W = Q + k*twomP
def order(self, disable_warning=False): """ Return the order of this point on the elliptic curve. If the point has infinite order, returns 0.
c349c1cda66ccdb73d8c3a4b57eceb087747edcd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/c349c1cda66ccdb73d8c3a4b57eceb087747edcd/ell_point.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1353, 12, 2890, 16, 4056, 67, 8551, 33, 8381, 4672, 3536, 2000, 326, 1353, 434, 333, 1634, 603, 326, 415, 549, 21507, 8882, 18, 971, 326, 1634, 711, 14853, 1353, 16, 1135, 374, 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, 1353, 12, 2890, 16, 4056, 67, 8551, 33, 8381, 4672, 3536, 2000, 326, 1353, 434, 333, 1634, 603, 326, 415, 549, 21507, 8882, 18, 971, 326, 1634, 711, 14853, 1353, 16, 1135, 374, 18, 2, ...
del names["__builtins__"]
if names.has_key("__builtins__"): del names["__builtins__"]
def check_all(modname): names = {} try: exec "import %s" % modname in names except ImportError: # silent fail here seems the best route since some modules # may not be available in all environments return verify(hasattr(sys.modules[modname], "__all__"), "%s has no __all__ attribute" % modname) names = {} exec "from %s ...
cc012e92b21fbd8476bbaa8d4aa91b7e78111182 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/cc012e92b21fbd8476bbaa8d4aa91b7e78111182/test___all__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 454, 12, 1711, 529, 4672, 1257, 273, 2618, 775, 30, 1196, 315, 5666, 738, 87, 6, 738, 16037, 316, 1257, 1335, 11308, 30, 468, 10404, 2321, 2674, 12001, 326, 3796, 1946, 3241, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 454, 12, 1711, 529, 4672, 1257, 273, 2618, 775, 30, 1196, 315, 5666, 738, 87, 6, 738, 16037, 316, 1257, 1335, 11308, 30, 468, 10404, 2321, 2674, 12001, 326, 3796, 1946, 3241, ...
feat_read = gdaltest.sl_lyr.GetNextFeature()
feat_read = sql_lyr.GetNextFeature()
dst_feat = ogr.Feature( feature_def = gdaltest.sl_lyr.GetLayerDefn() )
d6228cd064850d95937fb5ab368af77da084a02d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10289/d6228cd064850d95937fb5ab368af77da084a02d/ogr_sqlite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3046, 67, 29735, 273, 320, 3197, 18, 4595, 12, 2572, 67, 536, 273, 15551, 2390, 395, 18, 2069, 67, 715, 86, 18, 967, 4576, 3262, 82, 1435, 262, 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, 3046, 67, 29735, 273, 320, 3197, 18, 4595, 12, 2572, 67, 536, 273, 15551, 2390, 395, 18, 2069, 67, 715, 86, 18, 967, 4576, 3262, 82, 1435, 262, 2, -100, -100, -100, -100, -100, -100, -100, ...
return NOT_FOUND_MSG % (next_part, wsgilib.construct_url(environ))
return NOT_FOUND_MSG % (next_part, request.construct_url(environ))
def debug(self, environ, start_response): assert request.path_info_pop(environ) == '_debug' next_part = request.path_info_pop(environ) method = getattr(self, next_part, None) if not method: start_response('404 Not Found', [('content-type', 'text/plain')]) return NOT_FOUND_MSG % (next_part, wsgilib.construct_url(environ...
bfceb7aa266724f818b7696526816d18411f0d39 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12946/bfceb7aa266724f818b7696526816d18411f0d39/middleware.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1198, 12, 2890, 16, 5473, 16, 787, 67, 2740, 4672, 1815, 590, 18, 803, 67, 1376, 67, 5120, 12, 28684, 13, 422, 2070, 4148, 11, 1024, 67, 2680, 273, 590, 18, 803, 67, 1376, 67, 5120, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1198, 12, 2890, 16, 5473, 16, 787, 67, 2740, 4672, 1815, 590, 18, 803, 67, 1376, 67, 5120, 12, 28684, 13, 422, 2070, 4148, 11, 1024, 67, 2680, 273, 590, 18, 803, 67, 1376, 67, 5120, ...
adb_putcat2 = cfunc('tcadbputcat2', libtc, c_bool, ('adb', c_void_p, 1), ('kstr', c_char_p, 1), ('vstr', c_char_p, 1))
adb_putcat2 = cfunc_fast('tcadbputcat2', libtc, c_bool, ('adb', c_void_p, 1), ('kstr', c_char_p, 1), ('vstr', c_char_p, 1))
def __del__(self): if self and libtc: libtc.tcmapdel(self)
d933a88c35eaafd1e33ecc67d5d79a71d19a200b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4926/d933a88c35eaafd1e33ecc67d5d79a71d19a200b/tc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3771, 972, 12, 2890, 4672, 309, 365, 471, 2561, 5111, 30, 2561, 5111, 18, 5111, 1458, 3771, 12, 2890, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3771, 972, 12, 2890, 4672, 309, 365, 471, 2561, 5111, 30, 2561, 5111, 18, 5111, 1458, 3771, 12, 2890, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
except util.SSL.WantReadError: return 0 finally: if cancel: cancel.cancel()
raise except util.SSL.WantWriteError: return 0 except util.SSL.WantReadError: return 0
def socket_send(descriptor, data): timeout = descriptor.gettimeout() if timeout: cancel = exc_after(timeout, TimeoutError) else: cancel = None try: try: return descriptor.send(data) except socket.error, e: if e[0] == errno.EWOULDBLOCK or e[0] == errno.ENOTCONN: return 0 raise except util.SSL.WantWriteError: return 0 ex...
33ccd249ce6338c6350d1a12be9b41ce6591de83 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10078/33ccd249ce6338c6350d1a12be9b41ce6591de83/greenio.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2987, 67, 4661, 12, 12628, 16, 501, 4672, 2021, 273, 4950, 18, 588, 4538, 1435, 309, 2021, 30, 3755, 273, 3533, 67, 5205, 12, 4538, 16, 28758, 13, 469, 30, 3755, 273, 599, 775, 30, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2987, 67, 4661, 12, 12628, 16, 501, 4672, 2021, 273, 4950, 18, 588, 4538, 1435, 309, 2021, 30, 3755, 273, 3533, 67, 5205, 12, 4538, 16, 28758, 13, 469, 30, 3755, 273, 599, 775, 30, 7...
self.myRequests[-1].append(self.raw_requestline)
self.myRequests[self.reqidx].append(self.raw_requestline)
def handle_one_request(self): result = self.parentClass.handle_one_request(self) self.myRequests[-1].append(self.raw_requestline) return result
9a96ed69551dade73e041c5d7528afed89a0c37e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/9a96ed69551dade73e041c5d7528afed89a0c37e/test_xmlrpc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 476, 67, 2293, 12, 2890, 4672, 563, 273, 365, 18, 2938, 797, 18, 4110, 67, 476, 67, 2293, 12, 2890, 13, 365, 18, 4811, 6421, 63, 2890, 18, 3658, 3465, 8009, 6923, 12, 2890,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 67, 476, 67, 2293, 12, 2890, 4672, 563, 273, 365, 18, 2938, 797, 18, 4110, 67, 476, 67, 2293, 12, 2890, 13, 365, 18, 4811, 6421, 63, 2890, 18, 3658, 3465, 8009, 6923, 12, 2890,...
try: ignore = posix.fdopen except: raise AttributeError, 'dup() method unavailable'
if not hasattr(posix, 'fdopen'): raise AttributeError, 'dup() method unavailable'
def dup(self): import posix
dcd465307021ea32e342ce955e99e3bb4a129848 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/dcd465307021ea32e342ce955e99e3bb4a129848/posixfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9417, 12, 2890, 4672, 1930, 16366, 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, ...
[ 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, 9417, 12, 2890, 4672, 1930, 16366, 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, ...
% (name, name, attrs, ['','CHECKED'][isChecked], value)
% (name, offValue, name, attrs, ['','CHECKED'][isChecked], onValue)
def checkbox(name, isChecked, value=1, attrs=''): ''' An html checkbox. Also adds a hidden __expect__ variable since the browser doesn\'t often send unchecked checkboxes. ''' return '<input type="hidden" name="__expect__" value="%s;0">' \ '<input type="checkbox" name="%s" %s %s value="%s">' \ % (name, name, attrs, ['',...
a412a333f940f97e784c0081dbb8548de154a52c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8821/a412a333f940f97e784c0081dbb8548de154a52c/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11832, 12, 529, 16, 31041, 16, 460, 33, 21, 16, 3422, 2218, 11, 4672, 9163, 1922, 1729, 11832, 18, 8080, 4831, 279, 5949, 1001, 12339, 972, 2190, 3241, 326, 4748, 3302, 3730, 88, 16337, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11832, 12, 529, 16, 31041, 16, 460, 33, 21, 16, 3422, 2218, 11, 4672, 9163, 1922, 1729, 11832, 18, 8080, 4831, 279, 5949, 1001, 12339, 972, 2190, 3241, 326, 4748, 3302, 3730, 88, 16337, ...
result[campaign.id]=str(quantity) return result _columns = { 'code1' : fields.function(_campaign_code,string='Code',type="char",size=64,method=True,readonly=True), 'offer_id' : fields.many2one('dm.offer', 'Offer',domain=[('state','in',['ready','open']),('type','in',['new','standart','rewrite'])], required=True,
result[campaign.id] = str(quantity) return result _columns = { 'code1': fields.function(_campaign_code, string='Code', type="char", size=64, method=True, readonly=True), 'offer_id': fields.many2one('dm.offer', 'Offer', domain=[('state', 'in', ['ready', 'open']), ('type', 'in', ['new', 'standart', 'rewrite'])], requir...
def _quantity_usable_total(self, cr, uid, ids, name, args, context={}): result={} campaigns = self.browse(cr,uid,ids) for campaign in campaigns: quantity=0 numeric=True for propo in campaign.proposition_ids: if propo.quantity_usable.isdigit(): quantity += int(propo.quantity_usable) else: result[campaign.id]='Check Segm...
7ee897432c7e7d5a5c8e889fc429c3c1b66627fd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/7ee897432c7e7d5a5c8e889fc429c3c1b66627fd/dm_campaign.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16172, 67, 16665, 67, 4963, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 12938, 4672, 563, 12938, 8965, 87, 273, 365, 18, 25731, 12, 3353, 16, 1911, 16, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16172, 67, 16665, 67, 4963, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 12938, 4672, 563, 12938, 8965, 87, 273, 365, 18, 25731, 12, 3353, 16, 1911, 16, 22...
repack_info): super(RepackWin32, self).__init__(build, partner_dir, build_dir, working_dir, final_dir, repack_info) self.platform = "win32"
platform_formatted, repack_info): super(RepackWin, self).__init__(build, partner_dir, build_dir, working_dir, final_dir, platform_formatted, repack_info)
def __init__(self, build, partner_dir, build_dir, working_dir, final_dir, repack_info): super(RepackWin32, self).__init__(build, partner_dir, build_dir, working_dir, final_dir, repack_info) self.platform = "win32"
8345bd04fc746d831846644290606cce5844b5a8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10262/8345bd04fc746d831846644290606cce5844b5a8/partner-repacks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1361, 16, 19170, 67, 1214, 16, 1361, 67, 1214, 16, 5960, 67, 1214, 16, 727, 67, 1214, 16, 2071, 484, 67, 1376, 4672, 2240, 12, 426, 2920, 18049, 1578, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1361, 16, 19170, 67, 1214, 16, 1361, 67, 1214, 16, 5960, 67, 1214, 16, 727, 67, 1214, 16, 2071, 484, 67, 1376, 4672, 2240, 12, 426, 2920, 18049, 1578, ...
(config.REC_CMD, string.split(prog.channel_id)[0], duration, title)
(config.REC_CMD, prog.tunerid, duration, title)
def checkToRecord(): rec_cmd = None scheduledRecordings = getScheduledRecordings() progs = scheduledRecordings.getProgramList() now = time.time() for prog in progs.values(): print 'checkToRecord: progloop = %s' % prog try: recording = prog.isRecording except: recording = FALSE if prog.start <= now and prog.stop >= ...
1472741f9fde310060e5bbb1631fd592d214b145 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/1472741f9fde310060e5bbb1631fd592d214b145/rec_interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 774, 2115, 13332, 1950, 67, 4172, 273, 599, 9755, 2115, 899, 273, 30879, 72, 2115, 899, 1435, 225, 450, 564, 273, 9755, 2115, 899, 18, 588, 9459, 682, 1435, 225, 2037, 273, 813, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 774, 2115, 13332, 1950, 67, 4172, 273, 599, 9755, 2115, 899, 273, 30879, 72, 2115, 899, 1435, 225, 450, 564, 273, 9755, 2115, 899, 18, 588, 9459, 682, 1435, 225, 2037, 273, 813, 1...
for ca in ca_info: self.enzyme_record.CA.append(ca[2:].strip())
self.enzyme_record.CA = string.join([self.enzyme_record.CA,ca_info[2:].strip()],'')
def catalytic_activity(self, ca_info): for ca in ca_info: self.enzyme_record.CA.append(ca[2:].strip())
34aea942e95a30dff9ff864abe0f09eb6b8b5849 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/34aea942e95a30dff9ff864abe0f09eb6b8b5849/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 3145, 93, 88, 335, 67, 9653, 12, 2890, 16, 3474, 67, 1376, 4672, 364, 3474, 316, 3474, 67, 1376, 30, 365, 18, 275, 94, 2942, 73, 67, 3366, 18, 3587, 18, 6923, 12, 5353, 63, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 3145, 93, 88, 335, 67, 9653, 12, 2890, 16, 3474, 67, 1376, 4672, 364, 3474, 316, 3474, 67, 1376, 30, 365, 18, 275, 94, 2942, 73, 67, 3366, 18, 3587, 18, 6923, 12, 5353, 63, 22...
if not self.literal_block:
if self.literal_block or self.literal: pass else:
def encode(self, text): """ Encode special characters in `text` & return. # $ % & ~ _ ^ \ { } Escaping with a backslash does not help with backslashes, ~ and ^.
c045734350487e7f8b5a345ef15bf977ebd4a889 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/c045734350487e7f8b5a345ef15bf977ebd4a889/latex2e.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 12, 2890, 16, 977, 4672, 3536, 6240, 4582, 3949, 316, 1375, 955, 68, 473, 327, 18, 468, 271, 738, 473, 4871, 389, 3602, 521, 288, 289, 512, 1017, 24447, 598, 279, 23253, 1552, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2017, 12, 2890, 16, 977, 4672, 3536, 6240, 4582, 3949, 316, 1375, 955, 68, 473, 327, 18, 468, 271, 738, 473, 4871, 389, 3602, 521, 288, 289, 512, 1017, 24447, 598, 279, 23253, 1552, 48...
CopyFile(plugindir + "nppanda3d.dmg", plugfile)
CopyFile(plugindir + os.path.basename(plugfile), plugfile)
def MakeRuntime(): # Delete the current. if (os.path.exists(GetOutputDir()+"/stage")): shutil.rmtree(GetOutputDir()+"/stage") if (os.path.exists(GetOutputDir()+"/rlib")): shutil.rmtree(GetOutputDir()+"/rlib") # Create a couple of directories. coreapidir = GetOutputDir()+"/stage/coreapi/"+RUNTIME_PLATFORM+"/"+RUNTIME_V...
5f119ddd28f300822f72eb6b3a36d2d969cd7f1e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/5f119ddd28f300822f72eb6b3a36d2d969cd7f1e/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4344, 5576, 13332, 468, 2504, 326, 783, 18, 309, 261, 538, 18, 803, 18, 1808, 12, 967, 1447, 1621, 1435, 9078, 19, 12869, 6, 3719, 30, 11060, 18, 86, 17371, 12, 967, 1447, 1621, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4344, 5576, 13332, 468, 2504, 326, 783, 18, 309, 261, 538, 18, 803, 18, 1808, 12, 967, 1447, 1621, 1435, 9078, 19, 12869, 6, 3719, 30, 11060, 18, 86, 17371, 12, 967, 1447, 1621, 1435, ...
def __init__(self, message): self.message = message
def __init__(self, msg): self.msg = msg
def __init__(self, message): self.message = message
b5027f778753355f1d9ebf8cb4725d6056a3f0a3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11479/b5027f778753355f1d9ebf8cb4725d6056a3f0a3/NodeSet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 883, 4672, 365, 18, 2150, 273, 883, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 883, 4672, 365, 18, 2150, 273, 883, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
def __init__(self):
def __init__(self, host='game.eternal-lands.com', port=2001): self.host = host self.port = port self.LOG_IN_OK = False
def __init__(self): self.__setup() pass
e9336a953df9a043de95a448a1f396dd28003dde /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5162/e9336a953df9a043de95a448a1f396dd28003dde/login.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1479, 2218, 13957, 18, 847, 82, 287, 17, 80, 5708, 18, 832, 2187, 1756, 33, 6976, 21, 4672, 365, 18, 2564, 273, 1479, 365, 18, 655, 273, 1756, 365, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2738, 972, 12, 2890, 16, 1479, 2218, 13957, 18, 847, 82, 287, 17, 80, 5708, 18, 832, 2187, 1756, 33, 6976, 21, 4672, 365, 18, 2564, 273, 1479, 365, 18, 655, 273, 1756, 365, 18,...
timestamp = "%s-%s-%sT%s:%s:%sZ" % (b[0:4], b[4:6], b[6:8], b[8:10], b[10:12], b[12:14])
timestamp = imageData[1]
def checkbot(): """ Main function """ # Command line configurable parameters repeat = True # Restart after having check all the images? limit = 80 # How many images check? time_sleep = 30 # How many time sleep after the check? skip_number = 0 # How many images to skip before checking? waitTime = 0 # How many time sleep...
718c26e440835e890aeb9eccc86467e322fe9cd3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/718c26e440835e890aeb9eccc86467e322fe9cd3/checkimages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 4819, 13332, 3536, 12740, 445, 3536, 468, 3498, 980, 14593, 1472, 7666, 273, 1053, 468, 20709, 1839, 7999, 866, 777, 326, 4602, 35, 1800, 273, 8958, 468, 9017, 4906, 4602, 866, 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, 866, 4819, 13332, 3536, 12740, 445, 3536, 468, 3498, 980, 14593, 1472, 7666, 273, 1053, 468, 20709, 1839, 7999, 866, 777, 326, 4602, 35, 1800, 273, 8958, 468, 9017, 4906, 4602, 866, 35, ...
return inclusive
elif n.startswith('xmlns:'): unused_namespace_dict[n] = attr.value return inclusive, unused_namespace_dict
def _inclusiveNamespacePrefixes(node, context, unsuppressedPrefixes): '''http://www.w3.org/TR/xml-exc-c14n/ InclusiveNamespaces PrefixList parameter, which lists namespace prefixes that are handled in the manner described by the Canonical XML Recommendation''' inclusive = [] if node.prefix: usedPrefixes = ['xmlns:%s' %...
c0147db0b9b6607aa24507cb068c88c1f611cec5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/c0147db0b9b6607aa24507cb068c88c1f611cec5/c14n.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 267, 9173, 3402, 11700, 12, 2159, 16, 819, 16, 640, 2859, 10906, 11700, 4672, 9163, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 4349, 19, 2902, 17, 10075, 17, 71, 3461, 82, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 267, 9173, 3402, 11700, 12, 2159, 16, 819, 16, 640, 2859, 10906, 11700, 4672, 9163, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 4349, 19, 2902, 17, 10075, 17, 71, 3461, 82, 19, ...
def getBondLength(self, isBondLength):
def getBondLength(self, isBondLength, atomDistPrecision):
def getBondLength(self, isBondLength): '''returns the atom center distance between the atoms connected by the highlighted bond. Note that this does *not* return the covalent bondlength''' from VQT import vlen glpane = self.glpane if isBondLength: a1 = glpane.selobj.atom1 a2 = glpane.selobj.atom2
1c8387d0b036edd275a4e706a0e6dcc393ab92fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/1c8387d0b036edd275a4e706a0e6dcc393ab92fa/DynamicTip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29585, 1782, 12, 2890, 16, 353, 9807, 1782, 16, 3179, 5133, 15410, 4672, 9163, 6154, 326, 3179, 4617, 3888, 3086, 326, 9006, 5840, 635, 326, 24375, 8427, 18, 3609, 716, 333, 1552, 380, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29585, 1782, 12, 2890, 16, 353, 9807, 1782, 16, 3179, 5133, 15410, 4672, 9163, 6154, 326, 3179, 4617, 3888, 3086, 326, 9006, 5840, 635, 326, 24375, 8427, 18, 3609, 716, 333, 1552, 380, 9...
if arg0.flags.c_contiguous==True or arg0.flags.f_contiguous==True: m=matrix(RDF,arg0.shape[0],arg0.shape[1],0) m._replace_self_with_numpy(arg0) if arg0.flags.c_contiguous: return m else: return m.transpose() else: raise TypeError('numpy matrix must be either c_contiguous or f_contiguous')
m=matrix(RDF,arg0.shape[0],arg0.shape[1],0) m._replace_self_with_numpy(arg0)
def matrix(arg0=None, arg1=None, arg2=None, arg3=None, sparse=None): """ Create a matrix. INPUT: Supported formats 1. matrix([sparse=True]): the 0x0 matrix over ZZ 2. matrix(list_of_rows, [sparse=True]): matrix with each row constructed from the list_of_rows 3. matrix(nrows, entries, [sparse=True]): matrix with given ...
aee2e5ab4b0be97a6e29e4a927f71363c9a070ed /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/aee2e5ab4b0be97a6e29e4a927f71363c9a070ed/constructor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3148, 12, 3175, 20, 33, 7036, 16, 1501, 21, 33, 7036, 16, 1501, 22, 33, 7036, 16, 1501, 23, 33, 7036, 16, 9387, 33, 7036, 4672, 3536, 1788, 279, 3148, 18, 225, 12943, 30, 19503, 6449...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3148, 12, 3175, 20, 33, 7036, 16, 1501, 21, 33, 7036, 16, 1501, 22, 33, 7036, 16, 1501, 23, 33, 7036, 16, 9387, 33, 7036, 4672, 3536, 1788, 279, 3148, 18, 225, 12943, 30, 19503, 6449...
query['sort_on'] = sort_index query['sort_order'] = self.sort_order
if self.sort_withcatalog : query['sort_on'] = sort_index query['sort_order'] = self.sort_order
def finderQuery(self) : """ return query for results depending on some params """ request = self.request if self.query : return self.query elif self.typeview == 'selection': return {'uid' : self.blacklist} elif self.displaywithoutquery or self.searchsubmit : query = {} path = {} if not self.searchsubmit : path['depth'...
5e1bd0b8474637a44e6095e689d013db886351d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9052/5e1bd0b8474637a44e6095e689d013db886351d2/finder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7532, 1138, 12, 2890, 13, 294, 3536, 327, 843, 364, 1686, 8353, 603, 2690, 859, 3536, 225, 590, 273, 365, 18, 2293, 309, 365, 18, 2271, 294, 327, 365, 18, 2271, 1327, 365, 18, 723, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7532, 1138, 12, 2890, 13, 294, 3536, 327, 843, 364, 1686, 8353, 603, 2690, 859, 3536, 225, 590, 273, 365, 18, 2293, 309, 365, 18, 2271, 294, 327, 365, 18, 2271, 1327, 365, 18, 723, 1...
this = apply(_quickfix.new_ListExecInstType, args)
this = _quickfix.new_ListExecInstType(*args)
def __init__(self, *args): this = apply(_quickfix.new_ListExecInstType, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 682, 1905, 10773, 559, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 682, 1905, 10773, 559, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, ...
self.assertEqual(func, os.remove) self.assertEqual(arg, self.childpath)
if func is os.remove: self.assertEqual(arg, self.childpath) else: self.assertIs(func, os.listdir, "func must be either os.remove or os.listdir") self.assertEqual(arg, TESTFN)
def check_args_to_onerror(self, func, arg, exc): if self.errorState == 0: self.assertEqual(func, os.remove) self.assertEqual(arg, self.childpath) self.failUnless(issubclass(exc[0], OSError)) self.errorState = 1 else: self.assertEqual(func, os.rmdir) self.assertEqual(arg, TESTFN) self.failUnless(issubclass(exc[0], OSErr...
19e9ae5a8d3a0990ca4d6116a4b1a9ef4656e03b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/19e9ae5a8d3a0990ca4d6116a4b1a9ef4656e03b/test_shutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 1968, 67, 869, 67, 265, 1636, 12, 2890, 16, 1326, 16, 1501, 16, 3533, 4672, 309, 365, 18, 1636, 1119, 422, 374, 30, 309, 1326, 353, 1140, 18, 4479, 30, 365, 18, 11231, 5812,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 1968, 67, 869, 67, 265, 1636, 12, 2890, 16, 1326, 16, 1501, 16, 3533, 4672, 309, 365, 18, 1636, 1119, 422, 374, 30, 309, 1326, 353, 1140, 18, 4479, 30, 365, 18, 11231, 5812,...
pkgdir = os.path.join(data.expand('${SVNDIR}', localdata), pkg)
relpath = ud.path if relpath.startswith('/'): relpath = relpath[1:] pkgdir = os.path.join(data.expand('${SVNDIR}', d), ud.host, relpath)
def go(self, loc, ud, d): """Fetch url"""
8f7194038c3bd45794988096b5a295417ce36b89 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2672/8f7194038c3bd45794988096b5a295417ce36b89/svn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1960, 12, 2890, 16, 1515, 16, 23969, 16, 302, 4672, 3536, 5005, 880, 8395, 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, 1960, 12, 2890, 16, 1515, 16, 23969, 16, 302, 4672, 3536, 5005, 880, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if not os.path.isfile(os.path.join(MEDIA_ROOT, version_path)):
if not os.path.isfile(smart_str(os.path.join(MEDIA_ROOT, version_path))):
def render(self, context): try: source = self.src.resolve(context) except VariableDoesNotExist: return None if self.version_prefix: version_prefix = self.version_prefix else: try: version_prefix = self.version_prefix_var.resolve(context) except VariableDoesNotExist: return None try: source = force_unicode(source) versi...
ba75c7397ad347fe99b5ef5c98fe29e360e77cc1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12975/ba75c7397ad347fe99b5ef5c98fe29e360e77cc1/fb_versions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 819, 4672, 775, 30, 1084, 273, 365, 18, 4816, 18, 10828, 12, 2472, 13, 1335, 7110, 15264, 30, 327, 599, 309, 365, 18, 1589, 67, 3239, 30, 1177, 67, 3239, 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, 1743, 12, 2890, 16, 819, 4672, 775, 30, 1084, 273, 365, 18, 4816, 18, 10828, 12, 2472, 13, 1335, 7110, 15264, 30, 327, 599, 309, 365, 18, 1589, 67, 3239, 30, 1177, 67, 3239, 273, 365...
RoutesContext = DefaultRoutesContext deprecated('RoutesContext', "('from repoze.bfg.urldispatch import RoutesContext' is now " "deprecated; instead use 'from repoze.bfg.urldispatch import " "DefaultRoutesContext')", )
def __init__(self, **kw): self.__dict__.update(kw)
fab47b47407306d893f43517c322e724612c834f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14321/fab47b47407306d893f43517c322e724612c834f/urldispatch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2826, 9987, 4672, 365, 16186, 1576, 25648, 2725, 12, 9987, 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, ...
[ 1, 1, 1, 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, 1001, 2738, 972, 12, 2890, 16, 2826, 9987, 4672, 365, 16186, 1576, 25648, 2725, 12, 9987, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
librsync.librsyncError, C.UnknownFileTypeError
librsync.librsyncError, C.UnknownFileTypeError,
def catch_error(exc): """Return true if exception exc should be caught""" for exception_class in (rpath.SkipFileException, rpath.RPathException, librsync.librsyncError, C.UnknownFileTypeError zlib.error): if isinstance(exc, exception_class): return 1 if (isinstance(exc, EnvironmentError) and # the invalid mode shows up...
5daf429621ec601a2365f2406850227935d0801f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/783/5daf429621ec601a2365f2406850227935d0801f/robust.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1044, 67, 1636, 12, 10075, 4672, 3536, 990, 638, 309, 1520, 3533, 1410, 506, 13537, 8395, 364, 1520, 67, 1106, 316, 261, 86, 803, 18, 6368, 812, 503, 16, 436, 803, 18, 54, 743, 503, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1044, 67, 1636, 12, 10075, 4672, 3536, 990, 638, 309, 1520, 3533, 1410, 506, 13537, 8395, 364, 1520, 67, 1106, 316, 261, 86, 803, 18, 6368, 812, 503, 16, 436, 803, 18, 54, 743, 503, ...
def __createRawCursor__(self):
def __createRawCursor__():
def __createRawCursor__(self): """ A method that is only used for testing. It return a cursor object to the database currently open. """ return self.db.cursor()
756890fb4599378e90ea67f0294b07d61cdb0e9b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/756890fb4599378e90ea67f0294b07d61cdb0e9b/fu_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2640, 4809, 6688, 972, 13332, 3536, 432, 707, 716, 353, 1338, 1399, 364, 7769, 18, 225, 2597, 327, 279, 3347, 733, 358, 326, 2063, 4551, 1696, 18, 3536, 327, 365, 18, 1966, 18, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2640, 4809, 6688, 972, 13332, 3536, 432, 707, 716, 353, 1338, 1399, 364, 7769, 18, 225, 2597, 327, 279, 3347, 733, 358, 326, 2063, 4551, 1696, 18, 3536, 327, 365, 18, 1966, 18, 9...
for p in patches),
for p in reversed(patches)),
def __build_cover(tmpl, patches, msg_id, options): """Build the cover message (series description) to be sent via SMTP """ sender = __get_sender() if options.version: version_str = ' %s' % options.version else: version_str = '' if options.prefix: prefix_str = options.prefix + ' ' else: confprefix = config.get('stgit....
c9379a15770a699c0d64ae0897ea1a8e235a2c71 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12366/c9379a15770a699c0d64ae0897ea1a8e235a2c71/mail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3510, 67, 3165, 12, 24717, 16, 16482, 16, 1234, 67, 350, 16, 702, 4672, 3536, 3116, 326, 5590, 883, 261, 10222, 2477, 13, 358, 506, 3271, 3970, 18102, 3536, 5793, 273, 1001, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3510, 67, 3165, 12, 24717, 16, 16482, 16, 1234, 67, 350, 16, 702, 4672, 3536, 3116, 326, 5590, 883, 261, 10222, 2477, 13, 358, 506, 3271, 3970, 18102, 3536, 5793, 273, 1001, 588, ...
try: pid = int(codecs.open( os.path.join(getConfig()['global']['workingDir'], getConfig()['global']['daemonInfo']), 'w', 'utf-8').read())
try: pid = int(codecs.open( os.path.join(getConfig()['global']['workingDir'], getConfig()['global']['daemonInfo']), 'r', 'utf-8').read())
def _main(arglist): signal.signal(signal.SIGINT, signalHandler) try: (argp, rest) = getopt.gnu_getopt(arglist[1:], "sdfrokc:h", longopts=["state", "daemon", "full-help", "run", "runonce", "kill", "config=", "set-default-config=", "help", "list-failed", "list-saved", "purged-saved", "purge-failed", "comment-config"]) e...
13d117720c8018be030f6516cb9906c0b2260aa1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/13d117720c8018be030f6516cb9906c0b2260aa1/rssdler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5254, 12, 3175, 1098, 4672, 4277, 18, 10420, 12, 10420, 18, 18513, 3217, 16, 4277, 1503, 13, 775, 30, 261, 3175, 84, 16, 3127, 13, 273, 225, 336, 3838, 18, 1600, 89, 67, 588, 38...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5254, 12, 3175, 1098, 4672, 4277, 18, 10420, 12, 10420, 18, 18513, 3217, 16, 4277, 1503, 13, 775, 30, 261, 3175, 84, 16, 3127, 13, 273, 225, 336, 3838, 18, 1600, 89, 67, 588, 38...
if what == "chunks" and self.last_tover > 0:
if what == "chunks" and self.last_tover > 0. and tover > 0.:
def swap(self, what, mode=None): "Swap chunks or slices using a certain bounds reference."
47dfe4a697632e15817b133a135a93c989b6f6d0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12687/47dfe4a697632e15817b133a135a93c989b6f6d0/index.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7720, 12, 2890, 16, 4121, 16, 1965, 33, 7036, 4672, 315, 12521, 6055, 578, 12390, 1450, 279, 8626, 4972, 2114, 1199, 2, 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, 7720, 12, 2890, 16, 4121, 16, 1965, 33, 7036, 4672, 315, 12521, 6055, 578, 12390, 1450, 279, 8626, 4972, 2114, 1199, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.LogWindow.show()
self.LogWindow.show()
def window_state_event_cb(window, event): if event.changed_mask & gtk.gdk.WINDOW_STATE_ICONIFIED: if event.new_window_state & gtk.gdk.WINDOW_STATE_ICONIFIED: self.minimized = 1 else: self.minimized = 0
de19e9fd7192b52611630ff5e726665e825d19de /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8738/de19e9fd7192b52611630ff5e726665e825d19de/frame.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2742, 67, 2019, 67, 2575, 67, 7358, 12, 5668, 16, 871, 4672, 309, 871, 18, 6703, 67, 4455, 473, 22718, 18, 75, 2883, 18, 23407, 67, 7998, 67, 21745, 13519, 30, 309, 871, 18, 2704, 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, 2742, 67, 2019, 67, 2575, 67, 7358, 12, 5668, 16, 871, 4672, 309, 871, 18, 6703, 67, 4455, 473, 22718, 18, 75, 2883, 18, 23407, 67, 7998, 67, 21745, 13519, 30, 309, 871, 18, 2704, 67...
return isinstance(member, ModuleType)
return False
def can_document_member(cls, member, membername, isattr, parent): return isinstance(member, ModuleType)
fd1313e7b895befa6478154fe627a8974effc014 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5532/fd1313e7b895befa6478154fe627a8974effc014/autodoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 848, 67, 5457, 67, 5990, 12, 6429, 16, 3140, 16, 3140, 529, 16, 353, 1747, 16, 982, 4672, 327, 1549, 12, 5990, 16, 5924, 559, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 848, 67, 5457, 67, 5990, 12, 6429, 16, 3140, 16, 3140, 529, 16, 353, 1747, 16, 982, 4672, 327, 1549, 12, 5990, 16, 5924, 559, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -...
default=u'Values ${val} is not allowed for vocabulary of element ${label}.',
default=u'Values ${val} are not allowed for vocabulary of element ${label}.',
def validate_vocabulary(self, instance, value, errors): """Make sure value is inside the allowed values for a given vocabulary""" badvalues = [] if value: # coerce value into a list called values values = value if type(value) in STRING_TYPES: values = [value] elif type(value) == BooleanType: values = [str(value)] elif ...
c023d3352babadc7d91a4f5e383ddeca3024e27a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12165/c023d3352babadc7d91a4f5e383ddeca3024e27a/Field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 67, 15913, 13631, 12, 2890, 16, 791, 16, 460, 16, 1334, 4672, 3536, 6464, 3071, 460, 353, 4832, 326, 2935, 924, 364, 279, 864, 20906, 8395, 5570, 2372, 273, 5378, 309, 460, 30, 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, 1954, 67, 15913, 13631, 12, 2890, 16, 791, 16, 460, 16, 1334, 4672, 3536, 6464, 3071, 460, 353, 4832, 326, 2935, 924, 364, 279, 864, 20906, 8395, 5570, 2372, 273, 5378, 309, 460, 30, 4...
def displayChangedMenuState(self): self.mouseOverSelectingItem.Check(self.display.useMouseOverSelecting()) self.showRegionNamesMenuItem.Check(self.display.showRegionNames()) self.showNeuronNamesMenuItem.Check(self.display.showNeuronNames()) self.labelsFloatOnTopMenuItem.Check(self.display.labelsFloatOnTop()) self.useGh...
def toolBar(self): toolBar = wx.ToolBar(self) toolBar.AddCheckLabelTool(self.viewIn2DMenuItem.GetId(), gettext('2D View'), self.loadBitmap("View2D.png")) self.Bind(wx.EVT_TOOL, self.display.onViewIn2D, id = self.viewIn2DMenuItem.GetId()) toolBar.AddCheckLabelTool(self.viewIn3DMenuItem.GetId(), gettext('3D View'), self....
def displayChangedMenuState(self): self.mouseOverSelectingItem.Check(self.display.useMouseOverSelecting()) self.showRegionNamesMenuItem.Check(self.display.showRegionNames()) self.showNeuronNamesMenuItem.Check(self.display.showNeuronNames()) self.labelsFloatOnTopMenuItem.Check(self.display.labelsFloatOnTop()) self.useGh...
41c8baefbb8245f0a407ec793bbafee6a34bb0e1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6368/41c8baefbb8245f0a407ec793bbafee6a34bb0e1/NeuroptikonFrame.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5226, 5190, 12, 2890, 4672, 5226, 5190, 273, 7075, 18, 6364, 5190, 12, 2890, 13, 5226, 5190, 18, 986, 1564, 2224, 6364, 12, 2890, 18, 1945, 382, 22, 40, 12958, 18, 967, 548, 9334, 2497...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5226, 5190, 12, 2890, 4672, 5226, 5190, 273, 7075, 18, 6364, 5190, 12, 2890, 13, 5226, 5190, 18, 986, 1564, 2224, 6364, 12, 2890, 18, 1945, 382, 22, 40, 12958, 18, 967, 548, 9334, 2497...
uri=uri._reduri self._parser=Redland.librdf_new_parser(_world._world, name, mime_type, uri)
ruri=uri._reduri else: ruri=None self._parser=Redland.librdf_new_parser(_world._world, name, mime_type, ruri)
def __init__(self, name="rdfxml", mime_type="application/rdf+xml", uri=None): """Create an RDF Parser (constructor).
fd7c031031ec0ac08c4a9519bf32ff0ab61e9369 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14754/fd7c031031ec0ac08c4a9519bf32ff0ab61e9369/RDF.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 1546, 19299, 2902, 3113, 4892, 67, 723, 1546, 3685, 19, 19299, 15, 2902, 3113, 2003, 33, 7036, 4672, 3536, 1684, 392, 13539, 6783, 261, 12316, 2934, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 1546, 19299, 2902, 3113, 4892, 67, 723, 1546, 3685, 19, 19299, 15, 2902, 3113, 2003, 33, 7036, 4672, 3536, 1684, 392, 13539, 6783, 261, 12316, 2934, 2...
test_capi1()
def test_capi1(): try: _testcapi.raise_exception(BadException, 1) except TypeError, err: exc, err, tb = sys.exc_info() co = tb.tb_frame.f_code assert co.co_name == "test_capi1" assert co.co_filename.endswith('test_exceptions.py') else: print "Expected exception"
aa3dc456583aaffcccc16da82bb68669264880b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/aa3dc456583aaffcccc16da82bb68669264880b4/test_exceptions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 71, 2425, 21, 13332, 775, 30, 389, 3813, 71, 2425, 18, 11628, 67, 4064, 12, 6434, 503, 16, 404, 13, 1335, 3580, 16, 393, 30, 3533, 16, 393, 16, 8739, 273, 2589, 18, 10075, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 71, 2425, 21, 13332, 775, 30, 389, 3813, 71, 2425, 18, 11628, 67, 4064, 12, 6434, 503, 16, 404, 13, 1335, 3580, 16, 393, 30, 3533, 16, 393, 16, 8739, 273, 2589, 18, 10075, ...
filler="a:b:c:"
filler = "a:b:c:"
def untranslate(trans, prepend = 1): filler="a:b:c:" if prepend == 1: context = "%s%s" % (filler,trans) else: context = trans (rc, raw) = selinux.selinux_trans_to_raw_context(context) if rc != 0: return trans if prepend: raw = raw[len(filler):] if raw == "": return trans else: return raw
8ad29a27255b6eb5a4f8e1083ce9832034f3e205 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7147/8ad29a27255b6eb5a4f8e1083ce9832034f3e205/seobject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 640, 13929, 12, 2338, 16, 8254, 273, 404, 4672, 28187, 273, 315, 69, 30, 70, 30, 71, 2773, 309, 8254, 422, 404, 30, 819, 273, 2213, 87, 9, 87, 6, 738, 261, 5935, 264, 16, 2338, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 640, 13929, 12, 2338, 16, 8254, 273, 404, 4672, 28187, 273, 315, 69, 30, 70, 30, 71, 2773, 309, 8254, 422, 404, 30, 819, 273, 2213, 87, 9, 87, 6, 738, 261, 5935, 264, 16, 2338, 13,...
cmd = 'DELETE FROM %s WHERE JobID in (%s)' % ( table, jobIDString )
cmd = 'DELETE FROM %s WHERE JobID in (%s)' % ( table, jobIDString )
def removeJobFromDB(self, jobIDs): """Remove job from DB
80754a3f17531def7cbc50d246e9e547c954723a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/80754a3f17531def7cbc50d246e9e547c954723a/JobDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 2278, 1265, 2290, 12, 2890, 16, 1719, 5103, 4672, 3536, 3288, 1719, 628, 2383, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1206, 2278, 1265, 2290, 12, 2890, 16, 1719, 5103, 4672, 3536, 3288, 1719, 628, 2383, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
def substr(str,x1,x2):
def substr(s, x1, x2):
def substr(str,x1,x2): raise DeprecatedIDCError, "substr() is deprecated. Use python string operations instead."
4f22943d42ee1d5013421d280b3bd776bee83fb9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3410/4f22943d42ee1d5013421d280b3bd776bee83fb9/idc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2373, 12, 87, 16, 619, 21, 16, 619, 22, 4672, 1002, 9336, 734, 39, 668, 16, 315, 10706, 1435, 353, 6849, 18, 2672, 5790, 533, 5295, 3560, 1199, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2373, 12, 87, 16, 619, 21, 16, 619, 22, 4672, 1002, 9336, 734, 39, 668, 16, 315, 10706, 1435, 353, 6849, 18, 2672, 5790, 533, 5295, 3560, 1199, 225, 2, -100, -100, -100, -100, -100, ...
alephsysnos = get_fieldvalues(recID, "909C0o")
alephsysnos = get_fieldvalues(recID, "970__a")
def print_record(recID, format='hb', ot='', decompress=zlib.decompress): "Prints record 'recID' formatted accoding to 'format'." out = "" # sanity check: if not record_exists(recID): return out # print record opening tags, if needed: if format == "marcxml" or format == "oai_dc": out += " <record>\n" out += " <head...
f8885ff5b8b672e89581fb5ee226eb8e5bf90872 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/f8885ff5b8b672e89581fb5ee226eb8e5bf90872/search_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 3366, 12, 3927, 734, 16, 740, 2218, 76, 70, 2187, 15835, 2218, 2187, 16824, 33, 94, 2941, 18, 323, 14706, 4672, 315, 15402, 1409, 296, 3927, 734, 11, 4955, 4078, 4751, 358, 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, 1172, 67, 3366, 12, 3927, 734, 16, 740, 2218, 76, 70, 2187, 15835, 2218, 2187, 16824, 33, 94, 2941, 18, 323, 14706, 4672, 315, 15402, 1409, 296, 3927, 734, 11, 4955, 4078, 4751, 358, 2...
v = [x for x in v if v != 1]
v = [x for x in v if x != 1]
def invariants(self): """ Return elementary invariants of this abelian group, by which we mean a nondecreasing (immutable) sequence of integers $n_i$, $1 \leq i \leq k$, with $n_i$ dividing $n_{i+1}$, and such that this group is abstractly isomorphic to $\ZZ/n_1\ZZ \times\cdots\times \ZZ/n_k\ZZ.$
8d0551894c264fac468d199853e2f0add7c8b944 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/8d0551894c264fac468d199853e2f0add7c8b944/finite_subgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 316, 15886, 12, 2890, 4672, 3536, 2000, 930, 814, 316, 15886, 434, 333, 1223, 292, 2779, 1041, 16, 635, 1492, 732, 3722, 279, 1661, 323, 1793, 11730, 261, 381, 5146, 13, 3102, 434, 12321...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 316, 15886, 12, 2890, 4672, 3536, 2000, 930, 814, 316, 15886, 434, 333, 1223, 292, 2779, 1041, 16, 635, 1492, 732, 3722, 279, 1661, 323, 1793, 11730, 261, 381, 5146, 13, 3102, 434, 12321...
server = RPCClient('Stager/Stager',useCertificates=useCerts)
server = RPCClient('Stager/Stager',useCertificates=self.useCerts)
def getJobsForRetry(self,retry,site): try: server = RPCClient('Stager/Stager',useCertificates=useCerts) result = server.getJobsForRetry(retry,site) return result except Exception, x: errorStr = "StagerDBClient.getJobsForRetry failed" gLogger.exception(errorStr,lException=x) return S_ERROR(errorStr+": "+str(x))
3ed5597134718830480f7f1b611dd7039dcffb7b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/3ed5597134718830480f7f1b611dd7039dcffb7b/StagerClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 7276, 1290, 7539, 12, 2890, 16, 9620, 16, 4256, 4672, 775, 30, 1438, 273, 8295, 1227, 2668, 510, 6817, 19, 510, 6817, 2187, 1202, 14133, 33, 2890, 18, 1202, 16273, 13, 563, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 7276, 1290, 7539, 12, 2890, 16, 9620, 16, 4256, 4672, 775, 30, 1438, 273, 8295, 1227, 2668, 510, 6817, 19, 510, 6817, 2187, 1202, 14133, 33, 2890, 18, 1202, 16273, 13, 563, 273, 1...
found_start_id = False
def main(args): ''' Main loop. ''' site = wikipedia.getSite(u'commons', u'commons') wikipedia.setSite(site) start_id=0 found_start_id = False conn = None cursor = None (conn, cursor) = connectDatabase() conn2 = None cursor2 = None (conn2, cursor2) = connectDatabase2('commonswiki-p.db.toolserver.org', u'u_multichill_...
d40ae98e89fc2145baa4083e2e5bf5cef18c6eba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7426/d40ae98e89fc2145baa4083e2e5bf5cef18c6eba/batch_generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 1968, 4672, 9163, 12740, 2798, 18, 9163, 2834, 273, 21137, 18, 588, 4956, 12, 89, 11, 6054, 87, 2187, 582, 11, 6054, 87, 6134, 21137, 18, 542, 4956, 12, 4256, 13, 225, 787, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1968, 4672, 9163, 12740, 2798, 18, 9163, 2834, 273, 21137, 18, 588, 4956, 12, 89, 11, 6054, 87, 2187, 582, 11, 6054, 87, 6134, 21137, 18, 542, 4956, 12, 4256, 13, 225, 787, ...
requirements += " && %s " % archrequirement
if requirements != "": requirements += " && " requirements += " %s " % archrequirement
def createJDL(self, cladfilename,jobType,UserJDLRequirementsFile): """ _createJDL_ create the scheduler JDL combining the user specified bit of the JDL """
32ae346f16f84a2feb453c3fbfed800e78518c15 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8887/32ae346f16f84a2feb453c3fbfed800e78518c15/GLiteBulkSubmitter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 46, 8914, 12, 2890, 16, 927, 361, 3459, 16, 4688, 559, 16, 1299, 46, 8914, 15465, 812, 4672, 3536, 389, 2640, 46, 8914, 67, 225, 752, 326, 8129, 804, 8914, 29189, 326, 729, 1269, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 46, 8914, 12, 2890, 16, 927, 361, 3459, 16, 4688, 559, 16, 1299, 46, 8914, 15465, 812, 4672, 3536, 389, 2640, 46, 8914, 67, 225, 752, 326, 8129, 804, 8914, 29189, 326, 729, 1269, ...
if pymax(self.pk) * dr > self.maxstep: dr /= (pymax(self.pk) * dr / self.maxstep)
if abs(pymax(self.pk) * dr) > self.maxstep: dr /= abs((pymax(self.pk) * dr) / self.maxstep)
def determine_step(self, stp): dr = stp - self.old_stp if pymax(self.pk) * dr > self.maxstep: dr /= (pymax(self.pk) * dr / self.maxstep) stp = self.old_stp + dr return stp
641f60dd96106011e01aa0fa742d73c4ded7f0ab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5735/641f60dd96106011e01aa0fa742d73c4ded7f0ab/linesearch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4199, 67, 4119, 12, 2890, 16, 384, 84, 4672, 5081, 273, 384, 84, 300, 365, 18, 1673, 67, 20355, 309, 2417, 12, 2074, 1896, 12, 2890, 18, 5465, 13, 380, 5081, 13, 405, 365, 18, 1896, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4199, 67, 4119, 12, 2890, 16, 384, 84, 4672, 5081, 273, 384, 84, 300, 365, 18, 1673, 67, 20355, 309, 2417, 12, 2074, 1896, 12, 2890, 18, 5465, 13, 380, 5081, 13, 405, 365, 18, 1896, ...