rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
if func: _IDC_SetAttr(func, _FUNCATTRMAP, attr, value)
if func and _IDC_SetAttr(func, _FUNCATTRMAP, attr, value):
def SetFunctionAttr(ea, attr, value): """ Set a function attribute @param ea: any address belonging to the function @param attr: one of FUNCATTR_... constants @param value: new value of the attribute @return: 1-ok, 0-failed """ func = idaapi.get_func(ea) if func: _IDC_SetAttr(func, _FUNCATTRMAP, attr, value) return ...
8b2650eebaf80bde2146ed36982b6253636dd286 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3410/8b2650eebaf80bde2146ed36982b6253636dd286/idc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 2083, 3843, 12, 24852, 16, 1604, 16, 460, 4672, 3536, 1000, 279, 445, 1566, 225, 632, 891, 24164, 30, 1281, 1758, 17622, 358, 326, 445, 632, 891, 1604, 30, 1245, 434, 478, 21163, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1000, 2083, 3843, 12, 24852, 16, 1604, 16, 460, 4672, 3536, 1000, 279, 445, 1566, 225, 632, 891, 24164, 30, 1281, 1758, 17622, 358, 326, 445, 632, 891, 1604, 30, 1245, 434, 478, 21163, ...
from zine.config import Configuration
def __repr__(self): return '<Zine %r [%s]>' % ( self.instance_folder, self.iid )
26abf22dd4d55a03dd4527f3f779a39ba15d8c61 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12815/26abf22dd4d55a03dd4527f3f779a39ba15d8c61/application.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 2368, 62, 558, 738, 86, 9799, 87, 65, 1870, 738, 261, 365, 18, 1336, 67, 5609, 16, 365, 18, 77, 350, 262, 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, 0, 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, 12715, 972, 12, 2890, 4672, 327, 2368, 62, 558, 738, 86, 9799, 87, 65, 1870, 738, 261, 365, 18, 1336, 67, 5609, 16, 365, 18, 77, 350, 262, 2, -100, -100, -100, -100, -100, -100...
self.forceToTruePosition()
def setComponentT(self, timestamp): # This is a little bit hacky. If *this* function is called, # it must have been called directly by the server, for # instance to update the values previously set for some avatar # that was already into the zone as we entered. (A live # update would have gone through the function ca...
bcc7ed59a8db00bb1a186a46faa8797a64ee0583 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8543/bcc7ed59a8db00bb1a186a46faa8797a64ee0583/DistributedSmoothNode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 1841, 56, 12, 2890, 16, 2858, 4672, 468, 1220, 353, 279, 12720, 2831, 11769, 93, 18, 225, 971, 380, 2211, 14, 445, 353, 2566, 16, 468, 518, 1297, 1240, 2118, 2566, 5122, 635, 326,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 1841, 56, 12, 2890, 16, 2858, 4672, 468, 1220, 353, 279, 12720, 2831, 11769, 93, 18, 225, 971, 380, 2211, 14, 445, 353, 2566, 16, 468, 518, 1297, 1240, 2118, 2566, 5122, 635, 326,...
'Testing nuclear family sampling' simu = simulator( population(subPop=[5000,20000], ploidy=2, loci=[5,10], ancestralDepth=2, infoFields=['fitness', 'father_idx', 'mother_idx']), randomMating(numOffspring=5)) simu.evolve( [ stat( alleleFreq=[0,1], genoFreq=[0,1]), migrator(rate=[[0.1,0.1],[0.1,0.1]]), mapPenetrance(locu...
'Testing nuclear family sampling (imcomplete)' (s,) = NuclearFamilySample(self.largepop, 50, minTotalSize=50, maxOffspring=5,
def testNuclearFamilySample(self): 'Testing nuclear family sampling' simu = simulator( population(subPop=[5000,20000], ploidy=2, loci=[5,10], ancestralDepth=2, infoFields=['fitness', 'father_idx', 'mother_idx']), randomMating(numOffspring=5)) simu.evolve( [ stat( alleleFreq=[0,1], genoFreq=[0,1]), migrator(rate=[[0.1,0...
2efe0044550e6c6e9384b6f5e485a71317d18cf9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/401/2efe0044550e6c6e9384b6f5e485a71317d18cf9/test_16_asertainment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 50, 89, 8507, 9203, 8504, 12, 2890, 4672, 296, 22218, 9244, 8507, 6755, 11558, 261, 381, 6226, 2506, 261, 87, 16, 13, 273, 20123, 8507, 9203, 8504, 12, 2890, 18, 80, 3175, 881, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 50, 89, 8507, 9203, 8504, 12, 2890, 4672, 296, 22218, 9244, 8507, 6755, 11558, 261, 381, 6226, 2506, 261, 87, 16, 13, 273, 20123, 8507, 9203, 8504, 12, 2890, 18, 80, 3175, 881, 5...
self._write_css(directory, progress_callback, self._css) if self._create_private_docs: self._write_index(public_directory, progress_callback, 0) self._write_index(private_directory, progress_callback, 0) self._write_index(directory, progress_callback, 1) else: self._write_index(directory, progress_callback, 0) def _...
self._write_index(directory, frombase=0) def _write(self, write_func, directory, filename, progress_callback, is_public, *args):
def write(self, directory=None, progress_callback=None): """ Write the documentation to the given directory.
21a6d8c30a29a133335836c07a6da6e2f0b95f2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/21a6d8c30a29a133335836c07a6da6e2f0b95f2a/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1867, 33, 7036, 16, 4007, 67, 3394, 33, 7036, 4672, 3536, 2598, 326, 7323, 358, 326, 864, 1867, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1867, 33, 7036, 16, 4007, 67, 3394, 33, 7036, 4672, 3536, 2598, 326, 7323, 358, 326, 864, 1867, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
_espeak.setParameter(_espeak.espeakRATE,230,0)
def initialize(self): _espeak.initialize() _espeak.setParameter(_espeak.espeakRATE,230,0) lang=languageHandler.getLanguage() _espeak.setVoiceByLanguage(lang) self._voiceList=_espeak.getVoiceList() self._variant=0
1f8de73e09fbbe8d8013af6bf6a35ad6afef81fc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/1f8de73e09fbbe8d8013af6bf6a35ad6afef81fc/espeak.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 2890, 4672, 389, 281, 10244, 18, 11160, 1435, 3303, 33, 4923, 1503, 18, 588, 3779, 1435, 389, 281, 10244, 18, 542, 14572, 858, 3779, 12, 4936, 13, 365, 6315, 25993, 682, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 2890, 4672, 389, 281, 10244, 18, 11160, 1435, 3303, 33, 4923, 1503, 18, 588, 3779, 1435, 389, 281, 10244, 18, 542, 14572, 858, 3779, 12, 4936, 13, 365, 6315, 25993, 682, 33, ...
self.check_sizeof('', h + l + self.align(i + 1)) self.check_sizeof('abc', h + l + self.align(i + 1) + 3)
self.check_sizeof('', size(h + 'lic')) self.check_sizeof('abc', size(h + 'lic') + 3*self.c)
def test_specialtypes(self): i = self.i l = self.l p = self.p h = self.headersize # dict self.check_sizeof({}, h + 3*l + 3*p + 8*(l + 2*p)) longdict = {1:1, 2:2, 3:3, 4:4, 5:5, 6:6, 7:7, 8:8} self.check_sizeof(longdict, h + 3*l + 3*p + 8*(l + 2*p) + 16*(l + 2*p)) # list self.check_sizeof([], h + l + p + l) self.check_s...
9cbed723c019f67adc5f76d1f21ed8d14c9df22c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/9cbed723c019f67adc5f76d1f21ed8d14c9df22c/test_sys.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9371, 2352, 12, 2890, 4672, 277, 273, 365, 18, 77, 328, 273, 365, 18, 80, 293, 273, 365, 18, 84, 366, 273, 365, 18, 2485, 554, 468, 2065, 365, 18, 1893, 67, 1467, 792, 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, 1842, 67, 9371, 2352, 12, 2890, 4672, 277, 273, 365, 18, 77, 328, 273, 365, 18, 80, 293, 273, 365, 18, 84, 366, 273, 365, 18, 2485, 554, 468, 2065, 365, 18, 1893, 67, 1467, 792, 23...
self.log.error(traceback.format_exc())
album.log.error(traceback.format_exc())
def _earliest_release_downloaded(album, metadata, original_id, document, http, error): try: if error: self.log.error("%r", unicode(http.errorString())) else: try: release_node = document.metadata[0].release[0] original_album = Album(original_id) release_to_metadata(release_node, original_album.metadata, config=album.co...
b097d13b4756d7ffcae22240ff8f4f3084da28f1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12415/b097d13b4756d7ffcae22240ff8f4f3084da28f1/originalreleasedate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2091, 17452, 67, 9340, 67, 2378, 4230, 12, 25090, 16, 1982, 16, 2282, 67, 350, 16, 1668, 16, 1062, 16, 555, 4672, 775, 30, 309, 555, 30, 365, 18, 1330, 18, 1636, 27188, 86, 3113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2091, 17452, 67, 9340, 67, 2378, 4230, 12, 25090, 16, 1982, 16, 2282, 67, 350, 16, 1668, 16, 1062, 16, 555, 4672, 775, 30, 309, 555, 30, 365, 18, 1330, 18, 1636, 27188, 86, 3113...
expected_results = (('test-action1', Gtk.Action),
expected_results = [('test-action1', Gtk.Action),
def test_radio_action_callback_data(action, current, user_data): self.assertEquals(user_data, callback_data);
ef74273c2043944708515e59a654ebe4944b46ff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8659/ef74273c2043944708515e59a654ebe4944b46ff/test_overrides.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 17006, 67, 1128, 67, 3394, 67, 892, 12, 1128, 16, 783, 16, 729, 67, 892, 4672, 365, 18, 11231, 8867, 12, 1355, 67, 892, 16, 1348, 67, 892, 1769, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 17006, 67, 1128, 67, 3394, 67, 892, 12, 1128, 16, 783, 16, 729, 67, 892, 4672, 365, 18, 11231, 8867, 12, 1355, 67, 892, 16, 1348, 67, 892, 1769, 2, -100, -100, -100, -100, ...
singer_statement()
account_cashbox_line()
def on_change_sub(self, cr, uid, ids, pieces, number,*a):
c909e8af22db1f6cfa821df04c7e550448da427b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/c909e8af22db1f6cfa821df04c7e550448da427b/account_cash_statement.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 3427, 67, 1717, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 10167, 16, 1300, 16, 14, 69, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 3427, 67, 1717, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 10167, 16, 1300, 16, 14, 69, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
cmd = "ssh %s 'sh %s/scripts/kfsinstall.sh -U -d %s %s' " % \
cmd = "ssh %s 'cd %s; sh scripts/kfsinstall.sh -U -d %s %s' " % \
def doUninstall(config): sections = config.sections() for s in sections: rundir = config.get(s, 'rundir') node = config.get(s, 'node') if (s == 'metaserver'): otherArgs = '-m' else: # This is a chunkserver; so nuke out chunk dir as well if config.has_option(s, 'chunkdir'): chunkDir = config.get(s, 'chunkdir') else: ch...
2b698d0fbaea366e9e8f15b09a606a69ad6df056 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4466/2b698d0fbaea366e9e8f15b09a606a69ad6df056/kfssetup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 31103, 12, 1425, 4672, 7178, 273, 642, 18, 11657, 1435, 364, 272, 316, 7178, 30, 436, 1074, 481, 273, 642, 18, 588, 12, 87, 16, 296, 86, 1074, 481, 6134, 756, 273, 642, 18, 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, 741, 31103, 12, 1425, 4672, 7178, 273, 642, 18, 11657, 1435, 364, 272, 316, 7178, 30, 436, 1074, 481, 273, 642, 18, 588, 12, 87, 16, 296, 86, 1074, 481, 6134, 756, 273, 642, 18, 588,...
print "jumpNextMark"
def jumpNextMark(self): print "jumpNextMark" self.jumpPreviousNextMark(lambda x: x)
1b74d60d4bff96590c8000be9960b47bfa1a08c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/1b74d60d4bff96590c8000be9960b47bfa1a08c7/InfoBarGenerics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11833, 2134, 3882, 12, 2890, 4672, 365, 18, 24574, 8351, 2134, 3882, 12, 14661, 619, 30, 619, 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, ...
[ 1, 1, 1, 1, 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, 11833, 2134, 3882, 12, 2890, 4672, 365, 18, 24574, 8351, 2134, 3882, 12, 14661, 619, 30, 619, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
duration = int(char.skill[MAGERY] * 200)
duration = int(300 + char.skill[MAGERY] * 100)
def cast(self, char, mode, args): if char.polymorph: if char.socket: char.socket.clilocmessage(1005559) return 0
e4bf32d80817a65291896a0ed5f1899bff24f83c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/e4bf32d80817a65291896a0ed5f1899bff24f83c/circle7.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4812, 12, 2890, 16, 1149, 16, 1965, 16, 833, 4672, 309, 1149, 18, 3915, 2942, 7657, 30, 309, 1149, 18, 7814, 30, 1149, 18, 7814, 18, 830, 330, 504, 2150, 12, 6625, 2539, 6162, 13, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4812, 12, 2890, 16, 1149, 16, 1965, 16, 833, 4672, 309, 1149, 18, 3915, 2942, 7657, 30, 309, 1149, 18, 7814, 30, 1149, 18, 7814, 18, 830, 330, 504, 2150, 12, 6625, 2539, 6162, 13, 32...
os.path.exists(downloaded_pkg) and os.remove(downloaded_pkg)
self._ClearLocalDownloadState(downloaded_pkg)
def testSaveDangerousFile(self): """Verify that we can download and save a dangerous file.""" file_path = self._GetDangerousDownload() file_url = self.GetFileURLForPath(file_path) downloaded_pkg = os.path.join(self.GetDownloadDirectory().value(), os.path.basename(file_path)) os.path.exists(downloaded_pkg) and os.remove...
f9dc9fce765fa4077269f1ad3dee544fc6c3dcdf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/f9dc9fce765fa4077269f1ad3dee544fc6c3dcdf/downloads.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 4755, 40, 11455, 1481, 812, 12, 2890, 4672, 3536, 8097, 716, 732, 848, 4224, 471, 1923, 279, 27308, 1481, 585, 12123, 585, 67, 803, 273, 365, 6315, 967, 40, 11455, 1481, 7109, 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, 1842, 4755, 40, 11455, 1481, 812, 12, 2890, 4672, 3536, 8097, 716, 732, 848, 4224, 471, 1923, 279, 27308, 1481, 585, 12123, 585, 67, 803, 273, 365, 6315, 967, 40, 11455, 1481, 7109, 1435...
else:
else:
def LoadImages(dir_): # TODO!!! SUPER GAMBIARRA!!! DO THIS BETTER if 0: fow = vtk.vtkFileOutputWindow() fow.SetFileName('vtk_output.txt') ow = vtk.vtkOutputWindow () ow.SetInstance (fow) dcm_files, acquisition_modality = GetDicomFiles(dir_) dcm_series = dicom_grouper.ivDicomGroups() dcm_series.SetFileList(dcm_files...
2dd530d10f56fbe81ec6a0b889dedfdff3aed902 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10228/2dd530d10f56fbe81ec6a0b889dedfdff3aed902/dicom_reader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4444, 8946, 12, 1214, 67, 4672, 468, 225, 2660, 25885, 16459, 654, 611, 2192, 31558, 985, 2849, 25885, 5467, 20676, 9722, 11976, 225, 309, 374, 30, 284, 543, 273, 13659, 18, 11734, 79, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4444, 8946, 12, 1214, 67, 4672, 468, 225, 2660, 25885, 16459, 654, 611, 2192, 31558, 985, 2849, 25885, 5467, 20676, 9722, 11976, 225, 309, 374, 30, 284, 543, 273, 13659, 18, 11734, 79, 8...
self.fp.write("\t'%s' : %s,\n"%(n, n))
self.fp.write("\t'%s' : _Prop_%s,\n"%(n, n))
def fillclasspropsandelems(self, cls): [name, code, desc, properties, elements] = cls cname = identify(name) if self.namemappers[0].hascode('class', code) and \ self.namemappers[0].findcodename('class', code)[0] != cname: # This is an other name (plural or so) for something else. Skip. if self.fp and (elements or len(p...
bc956056d401f0137e687f878a487fa2a16199df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/bc956056d401f0137e687f878a487fa2a16199df/gensuitemodule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3636, 1106, 9693, 464, 292, 7424, 12, 2890, 16, 2028, 4672, 306, 529, 16, 981, 16, 3044, 16, 1790, 16, 2186, 65, 273, 2028, 18290, 273, 9786, 12, 529, 13, 309, 365, 18, 529, 1458, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3636, 1106, 9693, 464, 292, 7424, 12, 2890, 16, 2028, 4672, 306, 529, 16, 981, 16, 3044, 16, 1790, 16, 2186, 65, 273, 2028, 18290, 273, 9786, 12, 529, 13, 309, 365, 18, 529, 1458, 10...
nodes = [] nodes.append(self.expr) nodes.extend(flatten_nodes(self.quals)) return tuple(nodes)
nodelist = [] nodelist.append(self.expr) nodelist.extend(flatten_nodes(self.quals)) return tuple(nodelist)
def getChildNodes(self): nodes = [] nodes.append(self.expr) nodes.extend(flatten_nodes(self.quals)) return tuple(nodes)
f9790adb2bf17d408a715f552f9ea1f6de672d26 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/f9790adb2bf17d408a715f552f9ea1f6de672d26/ast.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23895, 12, 2890, 4672, 2199, 273, 5378, 2199, 18, 6923, 12, 2890, 18, 8638, 13, 2199, 18, 14313, 12, 16940, 67, 4690, 12, 2890, 18, 6360, 3719, 327, 3193, 12, 4690, 13, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23895, 12, 2890, 4672, 2199, 273, 5378, 2199, 18, 6923, 12, 2890, 18, 8638, 13, 2199, 18, 14313, 12, 16940, 67, 4690, 12, 2890, 18, 6360, 3719, 327, 3193, 12, 4690, 13, 2, -100, -100, ...
user = self.userspace.has_key(c) if not (mode == self.KERNEL and user):
if not (mode == self.KERNEL and self.userspace[c]):
def createAvInheritH(self, mode = USERSPACE): ''' ''' results = [] results.append(self.autogen) for c in self.vectors: if self.inherits.has_key(c): i = self.inherits[c] count = len(self.common[i]) user = self.userspace.has_key(c) if not (mode == self.KERNEL and user): results.append(" S_(SECCLASS_%s, %s, %s)\n" % (c....
32c05ccbcd77d94a1cda6f3f840bca29450ebc0f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7247/32c05ccbcd77d94a1cda6f3f840bca29450ebc0f/flask.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 3769, 14216, 44, 12, 2890, 16, 1965, 273, 7443, 6616, 4672, 9163, 9163, 1686, 273, 5378, 1686, 18, 6923, 12, 2890, 18, 5854, 19409, 13, 364, 276, 316, 365, 18, 18535, 30, 309, 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, 752, 3769, 14216, 44, 12, 2890, 16, 1965, 273, 7443, 6616, 4672, 9163, 9163, 1686, 273, 5378, 1686, 18, 6923, 12, 2890, 18, 5854, 19409, 13, 364, 276, 316, 365, 18, 18535, 30, 309, 365...
req = qdisc.changerequest(self.dev, self.handle, self.q)
req = qdisc.changerequest(self.bufdevno, self.handle, self.q)
def _sendqmsg(self, action): self.q.action = action req = qdisc.changerequest(self.dev, self.handle, self.q) self.rth.talk(req.pack())
d7c9a2decc6f95efb4ab470ff6a9b336c618e246 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6195/d7c9a2decc6f95efb4ab470ff6a9b336c618e246/device.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4661, 85, 3576, 12, 2890, 16, 1301, 4672, 365, 18, 85, 18, 1128, 273, 1301, 1111, 273, 1043, 2251, 71, 18, 24083, 822, 456, 12, 2890, 18, 4385, 5206, 2135, 16, 365, 18, 4110, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4661, 85, 3576, 12, 2890, 16, 1301, 4672, 365, 18, 85, 18, 1128, 273, 1301, 1111, 273, 1043, 2251, 71, 18, 24083, 822, 456, 12, 2890, 18, 4385, 5206, 2135, 16, 365, 18, 4110, 16...
oscmd("otool -L %s | grep .dylib > %s/tmp/otool-libs.txt" % (binname, VERSION, GetOutputDir()), True)
oscmd("otool -L %s | grep .dylib > %s/tmp/otool-libs.txt" % (binname, GetOutputDir()), True)
def MakeInstallerOSX(): if (RUNTIME): # Invoke the make_installer script. AddToPathEnv("DYLD_LIBRARY_PATH", GetOutputDir() + "/plugins") oscmd(SDK["PYTHONEXEC"] + " direct/src/plugin_installer/make_installer.py --version %s" % VERSION) return import compileall if (os.path.isfile("Panda3D-%s.dmg" % VERSION)): oscmd("rm...
04ca8e48dbbf1c09e3c52c312255df62afd7eaea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7242/04ca8e48dbbf1c09e3c52c312255df62afd7eaea/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4344, 18678, 4618, 60, 13332, 309, 261, 54, 25375, 4672, 468, 14373, 326, 1221, 67, 20163, 2728, 18, 1436, 774, 743, 3491, 2932, 40, 61, 12069, 67, 2053, 28254, 67, 4211, 3113, 968, 1447...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18678, 4618, 60, 13332, 309, 261, 54, 25375, 4672, 468, 14373, 326, 1221, 67, 20163, 2728, 18, 1436, 774, 743, 3491, 2932, 40, 61, 12069, 67, 2053, 28254, 67, 4211, 3113, 968, 1447...
col_ptr[-1] = nnz+1
col_ptr[-1] = nnz
def getCSC(self): # Return Compressed Sparse Column format arrays for this matrix keys = self.keys() keys.sort(csc_cmp) nnz = len(keys) data = [None]*nnz rowind = [None]*nnz col_ptr = [None]*(self.shape[1]+1) current_col = -1 k = 0 for key in keys: ikey0 = int(key[0]) ikey1 = int(key[1]) if ikey1 != current_col: curren...
bf0358bb908d1195acf4409769fcf327fca47b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/bf0358bb908d1195acf4409769fcf327fca47b49/Sparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1927, 2312, 12, 2890, 4672, 468, 2000, 5427, 4638, 16473, 4753, 740, 5352, 364, 333, 3148, 1311, 273, 365, 18, 2452, 1435, 1311, 18, 3804, 12, 71, 1017, 67, 9625, 13, 7761, 94, 273, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1927, 2312, 12, 2890, 4672, 468, 2000, 5427, 4638, 16473, 4753, 740, 5352, 364, 333, 3148, 1311, 273, 365, 18, 2452, 1435, 1311, 18, 3804, 12, 71, 1017, 67, 9625, 13, 7761, 94, 273, 56...
SyntaxError: assignment to generator expression not possible (<doctest test.test_genexps.__test__.doctests[38]>, line 1)
SyntaxError: assignment to generator expression not possible (<doctest test.test_genexps.__test__.doctests[40]>, line 1)
>>> def f(n):
37c0844b35b9a4d68f7ddf3a8b38d3e013f17d78 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/37c0844b35b9a4d68f7ddf3a8b38d3e013f17d78/test_genexps.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4080, 1652, 284, 12, 82, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4080, 1652, 284, 12, 82, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
execline.set('zenity --file-selection --name='+name+' --filename='+initialdir+'/ --window-icon='+icon)
execline.set('zenity --file-selection --name='+name+' --filename='+initialdir+'/ '+filetypes+'--window-icon='+icon)
def Gnome_GetOpenFilename(master, name, title, icon, **kw): ''' Calls Gnome open file dialog. Parameteres: master - parent window name - application name title - dialog title **kw: initialdir - absolute path to initial dir Returns: tuple of utf8 and system encoded file names ''' initialdir=string.replace(check_initial...
d31737597fbb730493701692500d5ead9854f190 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3123/d31737597fbb730493701692500d5ead9854f190/dialogmanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 611, 82, 1742, 67, 967, 3678, 5359, 12, 7525, 16, 508, 16, 2077, 16, 4126, 16, 2826, 9987, 4672, 9163, 23665, 611, 82, 1742, 1696, 585, 6176, 18, 5498, 281, 30, 4171, 300, 982, 2742, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 611, 82, 1742, 67, 967, 3678, 5359, 12, 7525, 16, 508, 16, 2077, 16, 4126, 16, 2826, 9987, 4672, 9163, 23665, 611, 82, 1742, 1696, 585, 6176, 18, 5498, 281, 30, 4171, 300, 982, 2742, ...
allow_none = self.allow_none)
allow_none=self.allow_none, encoding=self.encoding)
def _marshaled_dispatch(self, data, dispatch_method = None): """Dispatches an XML-RPC method from marshalled (XML) data.
2234f2d789905def1599dba588da16bbe4b99357 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2234f2d789905def1599dba588da16bbe4b99357/SimpleXMLRPCServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3108, 329, 67, 10739, 12, 2890, 16, 501, 16, 3435, 67, 2039, 273, 599, 4672, 3536, 5325, 281, 392, 3167, 17, 8087, 707, 628, 10893, 1259, 261, 4201, 13, 501, 18, 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, 389, 3108, 329, 67, 10739, 12, 2890, 16, 501, 16, 3435, 67, 2039, 273, 599, 4672, 3536, 5325, 281, 392, 3167, 17, 8087, 707, 628, 10893, 1259, 261, 4201, 13, 501, 18, 2, -100, -100, ...
Refer to monics for full documentation.
Refer to monics() for full documentation.
def _monics_max( self, max_degree ): """ Refer to monics for full documentation. """ for degree in xrange(max_degree + 1): for m in self._monics_degree( degree ): yield m
3eb6f5d2076fa6fa0385bdfc619bbdb2c4ad2e3d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/3eb6f5d2076fa6fa0385bdfc619bbdb2c4ad2e3d/polynomial_ring.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2586, 2102, 67, 1896, 12, 365, 16, 943, 67, 21361, 262, 30, 3536, 868, 586, 358, 6921, 2102, 1435, 364, 1983, 7323, 18, 3536, 364, 10782, 316, 12314, 12, 1896, 67, 21361, 397, 404...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2586, 2102, 67, 1896, 12, 365, 16, 943, 67, 21361, 262, 30, 3536, 868, 586, 358, 6921, 2102, 1435, 364, 1983, 7323, 18, 3536, 364, 10782, 316, 12314, 12, 1896, 67, 21361, 397, 404...
self.doLaterList.add(task)
index = self.doLaterList.add(task)
def __spawnDoLater(self, task): assert(TaskManager.notify.debug('spawning doLater: %s' % (task))) # Add this task to the nameDict nameList = self.nameDict.setdefault(task.name, []) nameList.append(task) # be sure to ask the globalClock for the current frame time # rather than use a cached value; globalClock's frame tim...
23872dfe0283f645d252b2674a05aa31607c2588 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/23872dfe0283f645d252b2674a05aa31607c2588/Task.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1752, 9533, 3244, 20607, 12, 2890, 16, 1562, 4672, 1815, 12, 2174, 1318, 18, 12336, 18, 4148, 2668, 1752, 2219, 2093, 741, 20607, 30, 738, 87, 11, 738, 261, 4146, 20349, 468, 1436,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1752, 9533, 3244, 20607, 12, 2890, 16, 1562, 4672, 1815, 12, 2174, 1318, 18, 12336, 18, 4148, 2668, 1752, 2219, 2093, 741, 20607, 30, 738, 87, 11, 738, 261, 4146, 20349, 468, 1436,...
folders.sort(operator.attrgetter('sortorder'))
folders.sort(key=operator.attrgetter('sortorder'))
def getPublishedFolders(self): folders = [] for obj in self.objectValues(self.get_naaya_containers_metatypes()): if not getattr(obj, 'approved', False): continue if not getattr(obj, 'submitted', False): continue folders.append(obj) folders.sort(operator.attrgetter('sortorder')) return folders
0455fae9108efe0066b5f07efcc2de41db202acb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/0455fae9108efe0066b5f07efcc2de41db202acb/NyFolder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27480, 329, 14885, 12, 2890, 4672, 9907, 273, 5378, 364, 1081, 316, 365, 18, 1612, 1972, 12, 2890, 18, 588, 67, 6582, 528, 69, 67, 20596, 67, 10578, 13373, 1435, 4672, 309, 486, 3869, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 27480, 329, 14885, 12, 2890, 4672, 9907, 273, 5378, 364, 1081, 316, 365, 18, 1612, 1972, 12, 2890, 18, 588, 67, 6582, 528, 69, 67, 20596, 67, 10578, 13373, 1435, 4672, 309, 486, 3869, ...
self.infobox.show(model.get_value(iter, 0))
self.infobox.network = model.get_value(iter, 0) self.infobox.update()
def on_selection_changed(self, selection): model, iter = selection.get_selected()
4e3fce086a885558cfbd2aca990b3731ca541fa8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10693/4e3fce086a885558cfbd2aca990b3731ca541fa8/servers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 10705, 67, 6703, 12, 2890, 16, 4421, 4672, 938, 16, 1400, 273, 4421, 18, 588, 67, 8109, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 10705, 67, 6703, 12, 2890, 16, 4421, 4672, 938, 16, 1400, 273, 4421, 18, 588, 67, 8109, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
w.acom1.f0=f0.get() w.acom1.ftx=ftx.get()
try: w.acom1.f0=f0.get() w.acom1.ftx=ftx.get() except: pass
def put_params(param3=NONE): global idsec,param20 w.acom1.f0=f0.get() w.acom1.ftx=ftx.get() w.acom1.callsign=(options.MyCall.get()+' ')[:6] w.acom1.grid=(options.MyGrid.get()+' ')[:4] try: w.acom1.nport=int(options.PttPort.get()) except: w.acom1.nport=0 try: w.acom1.ndbm=int(options.dBm.get()) except: w.acom1....
229212ef7052ee1f090fd4c01d80f7ccc7adc4b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2394/229212ef7052ee1f090fd4c01d80f7ccc7adc4b1/wspr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1378, 67, 2010, 12, 891, 23, 33, 9826, 4672, 2552, 612, 3321, 16, 891, 3462, 225, 775, 30, 341, 18, 69, 832, 21, 18, 74, 20, 33, 74, 20, 18, 588, 1435, 341, 18, 69, 832, 21, 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, 1378, 67, 2010, 12, 891, 23, 33, 9826, 4672, 2552, 612, 3321, 16, 891, 3462, 225, 775, 30, 341, 18, 69, 832, 21, 18, 74, 20, 33, 74, 20, 18, 588, 1435, 341, 18, 69, 832, 21, 18, ...
self.usageExit(msg)
usageExit(msg)
def parseArgs(argv=sys.argv): """Parse command line arguments and set TestFramework state. State is to be acquired by test_* modules by a grotty hack: ``from TestFramework import *``. For this stylistic transgression, I expect to be first up against the wall when the revolution comes. --Garth""" global verbosity, debu...
25ac1f17543fdc638400299ad269748020a75124 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/25ac1f17543fdc638400299ad269748020a75124/package_unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 2615, 12, 19485, 33, 9499, 18, 19485, 4672, 3536, 3201, 1296, 980, 1775, 471, 444, 7766, 13701, 919, 18, 225, 3287, 353, 358, 506, 20598, 635, 1842, 67, 14, 4381, 635, 279, 314, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 2615, 12, 19485, 33, 9499, 18, 19485, 4672, 3536, 3201, 1296, 980, 1775, 471, 444, 7766, 13701, 919, 18, 225, 3287, 353, 358, 506, 20598, 635, 1842, 67, 14, 4381, 635, 279, 314, ...
if self.debugging: print '*resp*', `resp`
if self.debugging: print '*resp*', self.sanitize(resp)
def getresp(self): resp = self.getmultiline() if self.debugging: print '*resp*', `resp` self.lastresp = resp[:3] c = resp[:1] if c == '4': raise error_temp, resp if c == '5': raise error_perm, resp if c not in '123': raise error_proto, resp return resp
63e263f517f8518a2f3e9fcad5d9a81461259949 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/63e263f517f8518a2f3e9fcad5d9a81461259949/ftplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12243, 12, 2890, 4672, 1718, 273, 365, 18, 588, 5421, 12554, 1435, 309, 365, 18, 4148, 1998, 30, 1172, 14609, 12243, 14, 2187, 365, 18, 20266, 12, 12243, 13, 365, 18, 2722, 12243, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12243, 12, 2890, 4672, 1718, 273, 365, 18, 588, 5421, 12554, 1435, 309, 365, 18, 4148, 1998, 30, 1172, 14609, 12243, 14, 2187, 365, 18, 20266, 12, 12243, 13, 365, 18, 2722, 12243, ...
msvcrt.putch(c)
msvcrt.putwch(c)
def win_getpass(prompt='Password: ', stream=None): """Prompt for password with echo off, using Windows getch().""" if sys.stdin is not sys.__stdin__: return default_getpass(prompt, stream) import msvcrt for c in prompt: msvcrt.putch(c) pw = "" while 1: c = msvcrt.getch() if c == '\r' or c == '\n': break if c == '\003':...
7485e5e4b73ce8915891f6776776e0474e749e5c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/7485e5e4b73ce8915891f6776776e0474e749e5c/getpass.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5657, 67, 588, 5466, 12, 13325, 2218, 3913, 30, 2265, 1407, 33, 7036, 4672, 3536, 15967, 364, 2201, 598, 3376, 3397, 16, 1450, 8202, 336, 343, 1435, 12123, 309, 2589, 18, 21772, 353, 486...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5657, 67, 588, 5466, 12, 13325, 2218, 3913, 30, 2265, 1407, 33, 7036, 4672, 3536, 15967, 364, 2201, 598, 3376, 3397, 16, 1450, 8202, 336, 343, 1435, 12123, 309, 2589, 18, 21772, 353, 486...
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 861) else quickfix.DoubleField.__init__(self, 861, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 1725, 9498, 13, 469, 9549, 904, 18, 5265, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 1725, 9498, 13, 469, 9549, 904, 18, 5265, 974, 16186, 2738, ...
parser.returns_unicode = 1
def test_unicode(self): # Try the parse again, this time producing Unicode output out = self.Outputter() parser = expat.ParserCreate(namespace_separator='!') parser.returns_unicode = 1 for name in self.handler_names: setattr(parser, name, getattr(out, name))
f6f6daa781627c64792b65963803cef79810e96e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/f6f6daa781627c64792b65963803cef79810e96e/test_pyexpat.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9124, 12, 2890, 4672, 468, 6161, 326, 1109, 3382, 16, 333, 813, 4810, 2822, 9633, 876, 596, 273, 365, 18, 1447, 387, 1435, 2082, 273, 1329, 270, 18, 2678, 1684, 12, 4937, 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, 1842, 67, 9124, 12, 2890, 4672, 468, 6161, 326, 1109, 3382, 16, 333, 813, 4810, 2822, 9633, 876, 596, 273, 365, 18, 1447, 387, 1435, 2082, 273, 1329, 270, 18, 2678, 1684, 12, 4937, 67,...
def set(self, event, subject, adjust, reason = None):
def set(self, event, subject, adjust, reason=None):
def set(self, event, subject, adjust, reason = None): if self.public and not event.public: event.addresponse(u'Karma must be done in public') return
5a8efc7e83b1940855cedc2b87d9e53c9971d8b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12048/5a8efc7e83b1940855cedc2b87d9e53c9971d8b3/karma.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 12, 2890, 16, 871, 16, 3221, 16, 5765, 16, 3971, 33, 7036, 4672, 309, 365, 18, 482, 471, 486, 871, 18, 482, 30, 871, 18, 1289, 2740, 12, 89, 11, 47, 297, 2540, 1297, 506, 2731...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 12, 2890, 16, 871, 16, 3221, 16, 5765, 16, 3971, 33, 7036, 4672, 309, 365, 18, 482, 471, 486, 871, 18, 482, 30, 871, 18, 1289, 2740, 12, 89, 11, 47, 297, 2540, 1297, 506, 2731...
return docutils_encoding.translate(string.maketrans("",""),"_-").lower()
return docutils_encoding.replace("_", "").replace("-", "").lower()
def to_latex_encoding(self,docutils_encoding): """ Translate docutils encoding name into latex's.
4c1889e0dd794a79cbda0127098f40e0d0252b2c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/4c1889e0dd794a79cbda0127098f40e0d0252b2c/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 26264, 67, 5999, 12, 2890, 16, 2434, 5471, 67, 5999, 4672, 3536, 16820, 997, 5471, 2688, 508, 1368, 25079, 1807, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 26264, 67, 5999, 12, 2890, 16, 2434, 5471, 67, 5999, 4672, 3536, 16820, 997, 5471, 2688, 508, 1368, 25079, 1807, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
newevt = NeXTPanelEvent() newevt.list = list newevt.listnum = idx newevt.selections = list.GetSelections() self.GetEventHandler().ProcessEvent(newevt) list.SetFocus()
wx.CallAfter(self.LaunchEvent, list, idx) else: self.dprint("DESELECTION: %s idx=%d %s %s" % (list, idx, evt.GetSelection(), list.GetSelections()))
def OnListSelect(self, evt): list = evt.GetEventObject() idx = self.findLevel(list)
83d6f4a718588b9b4fd3dc0b49383aaa47f1ca47 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/83d6f4a718588b9b4fd3dc0b49383aaa47f1ca47/nextpanel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 682, 3391, 12, 2890, 16, 6324, 4672, 666, 273, 6324, 18, 967, 1133, 921, 1435, 2067, 273, 365, 18, 4720, 2355, 12, 1098, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 682, 3391, 12, 2890, 16, 6324, 4672, 666, 273, 6324, 18, 967, 1133, 921, 1435, 2067, 273, 365, 18, 4720, 2355, 12, 1098, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
gLogger.error(errStr,"%s %s" % (lfn,res['Message'])) return res if not res['Value']['Successful'].has_key(lfn):
gLogger.error( errStr, "%s %s" % ( lfn, res['Message'] ) ) return res if not res['Value']['Successful'].has_key( lfn ):
def __initializeReplication(self,lfn,sourceSE,destSE): ########################################################### # Check that the destination storage element is sane and resolve its name gLogger.verbose("ReplicaManager.__initializeReplication: Verifying destination Storage Element validity (%s)." % destSE) destStorag...
9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 11160, 8309, 12, 2890, 16, 80, 4293, 16, 3168, 1090, 16, 10488, 1090, 4672, 19709, 5516, 3228, 1189, 468, 2073, 716, 326, 2929, 2502, 930, 353, 30426, 471, 2245, 2097, 508, 314, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 11160, 8309, 12, 2890, 16, 80, 4293, 16, 3168, 1090, 16, 10488, 1090, 4672, 19709, 5516, 3228, 1189, 468, 2073, 716, 326, 2929, 2502, 930, 353, 30426, 471, 2245, 2097, 508, 314, 33...
log("warning: file without filename (offset:%d ,size:%d)" % \ (newsector, filesize) ) if rtable > 0: add_list.append( (sector, rtable*4) ) if ltable > 0: add_list.append( (sector, ltable*4) ) return add_list def browse_file(self, sector): file_list = [ (sector, 0) ] while file_list: current_file = file_list.pop() f...
if filename: self.size = self.size + filesize self.write_file(filename, filesize, newsector); else: log("warning: file without filename (offset:%d ,size:%d)" % \ (newsector, filesize) ) if rtable > 0: file_list.append( (sector, rtable*4) ) if ltable > 0: file_list.append( (sector, ltable*4) ) return def browse_fold...
def browse_file_internal(self, (sector, offset)): # browse an iso file entry add_list = [] if self.canceled: return add_list # jump to sector self.iso.seek(sector*2048+offset, SEEK_SET) # read file header ltable, rtable, newsector, filesize, attributes, filename_size \ = read_unpack(self.iso, "<HHLLBB") # read fil...
7e67d8a8d0dcb5a731787248d5c4ff5c4f193a8a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2692/7e67d8a8d0dcb5a731787248d5c4ff5c4f193a8a/gxiso.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21670, 67, 768, 67, 7236, 12, 2890, 16, 261, 5709, 280, 16, 1384, 3719, 30, 468, 21670, 392, 8702, 585, 1241, 225, 527, 67, 1098, 273, 5378, 225, 309, 365, 18, 10996, 329, 30, 327, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21670, 67, 768, 67, 7236, 12, 2890, 16, 261, 5709, 280, 16, 1384, 3719, 30, 468, 21670, 392, 8702, 585, 1241, 225, 527, 67, 1098, 273, 5378, 225, 309, 365, 18, 10996, 329, 30, 327, 5...
if day_diff1>30:
if day_diff1 > lengthmonth(year,i+month)+1:
def create_xml(self, cr, uid, ids, data, context): depts=[] emp_id={} done={}
9824b079bbf84fb01942d451de6e9a21f693283f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/9824b079bbf84fb01942d451de6e9a21f693283f/holidays_summary_report.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 2902, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 501, 16, 819, 4672, 443, 1092, 33, 8526, 801, 84, 67, 350, 12938, 2731, 12938, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 2902, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 501, 16, 819, 4672, 443, 1092, 33, 8526, 801, 84, 67, 350, 12938, 2731, 12938, 2, -100, -100, -100, -100, -100, -100, -100, ...
print >> sys.stderr, 'getCursor::', len(curs)
def getCursor(create=True): thread_name = threading.currentThread().getName() curs = SQLiteCacheDB.cursor_table cur = curs.get(thread_name, None) # return [cur, cur, lib] or None print >> sys.stderr, 'getCursor::', len(curs) #print_stack() if cur is None and create: SQLiteCacheDB.initDB() # create a new db obj fo...
a8c92b170a5999822fd63263b059171ca3a01b49 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9686/a8c92b170a5999822fd63263b059171ca3a01b49/sqlitecachedb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14135, 2467, 12, 2640, 33, 5510, 4672, 2650, 67, 529, 273, 17254, 18, 2972, 3830, 7675, 17994, 1435, 25326, 273, 16192, 1649, 2290, 18, 9216, 67, 2121, 662, 273, 25326, 18, 588, 12, 5930...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14135, 2467, 12, 2640, 33, 5510, 4672, 2650, 67, 529, 273, 17254, 18, 2972, 3830, 7675, 17994, 1435, 25326, 273, 16192, 1649, 2290, 18, 9216, 67, 2121, 662, 273, 25326, 18, 588, 12, 5930...
self.class_cache[self.default_namespace] = \ pywbem.NocaseDict({cc.classname:cc})
self.classes[self.default_namespace] = \ NocaseDict({cc.classname:cc})
def CreateClass(self, *args, **kwargs): cc = len(args) > 0 and args[0] or kwargs['NewClass'] if cc.superclass: super = self.GetClass(cc.superclass, LocalOnly=False, IncludeQualifiers=True) for prop in super.properties.values(): if prop.name not in cc.properties: cc.properties[prop.name] = prop
d1a547f385819908b15c26774bc5fc75671b5883 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10648/d1a547f385819908b15c26774bc5fc75671b5883/mof_compiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 797, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 4946, 273, 562, 12, 1968, 13, 405, 374, 471, 833, 63, 20, 65, 578, 1205, 3292, 1908, 797, 3546, 309, 4946, 18, 9565, 1106, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 797, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 4946, 273, 562, 12, 1968, 13, 405, 374, 471, 833, 63, 20, 65, 578, 1205, 3292, 1908, 797, 3546, 309, 4946, 18, 9565, 1106, 3...
self.processed_html = re.sub(r'<?xml[^>]*>', '', self.processed_html)
self.processed_html = re.sub(r'<\?xml[^>]*>', '', self.processed_html)
def cleanup_html(self): self.log.debug('Cleaning up HTML...') self.processed_html = re.sub(r'<div height="0(pt|px|ex|em|%){0,1}"></div>', '', self.processed_html) if self.book_header.ancient and '<html' not in self.mobi_html[:300].lower(): self.processed_html = '<html><p>' + self.processed_html.replace('\n\n', '<p>') +...
f3c10853850ca274c9e4a06168f2b96431177a60 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/f3c10853850ca274c9e4a06168f2b96431177a60/reader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6686, 67, 2620, 12, 2890, 4672, 365, 18, 1330, 18, 4148, 2668, 7605, 310, 731, 3982, 7821, 13, 365, 18, 11005, 67, 2620, 273, 283, 18, 1717, 12, 86, 11, 32, 2892, 2072, 1546, 20, 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, 6686, 67, 2620, 12, 2890, 4672, 365, 18, 1330, 18, 4148, 2668, 7605, 310, 731, 3982, 7821, 13, 365, 18, 11005, 67, 2620, 273, 283, 18, 1717, 12, 86, 11, 32, 2892, 2072, 1546, 20, 12,...
print 'CALL'
def __call__(self, examples, weight=None, **kwds): print 'CALL' for k in kwds.keys(): self.__dict__[k] = kwds[k] domain = examples.domain
f2172b88be248e66b851ac994f1d76d7388a2526 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/f2172b88be248e66b851ac994f1d76d7388a2526/bayes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 10991, 16, 3119, 33, 7036, 16, 2826, 25577, 4672, 364, 417, 316, 17149, 18, 2452, 13332, 365, 16186, 1576, 972, 63, 79, 65, 273, 17149, 63, 79, 65, 2461,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 1991, 972, 12, 2890, 16, 10991, 16, 3119, 33, 7036, 16, 2826, 25577, 4672, 364, 417, 316, 17149, 18, 2452, 13332, 365, 16186, 1576, 972, 63, 79, 65, 273, 17149, 63, 79, 65, 2461,...
usage(2, "at least one file argument is required")
usage("at least one file argument is required") return 2
def main(): try: opts, args = getopt.getopt(sys.argv[1:], "h") except getopt.error, msg: usage(2, msg) for o, a in opts: if o == "-h": help() if not args: usage(2, "at least one file argument is required") if args[1:]: sys.stderr.write("%s: extra file arguments ignored\n", sys.argv[0]) readwarnings(args[0])
1411e89cd48fda4dab58a672e67677772c9670ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/1411e89cd48fda4dab58a672e67677772c9670ec/fixdiv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 315, 76, 7923, 1335, 336, 3838, 18, 1636, 16, 1234, 30, 4084, 12, 22, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 315, 76, 7923, 1335, 336, 3838, 18, 1636, 16, 1234, 30, 4084, 12, 22, 16, ...
self.assert_(isinstance(path, str) or isinstance(path, type(u'')))
self.assert_(isinstance(path, str) or isinstance(path, type('')))
def test_types(self): sproc = subprocess.Popen(PYTHON, stdout=DEVNULL, stderr=DEVNULL) p = psutil.Process(sproc.pid) self.assert_(isinstance(p.pid, int)) self.assert_(isinstance(p.ppid, int)) self.assert_(isinstance(p.parent, psutil.Process)) self.assert_(isinstance(p.name, str)) self.assert_(isinstance(p.path, str)) s...
7c397a9e03927d8b5085e42fb287dbdde6e056f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7296/7c397a9e03927d8b5085e42fb287dbdde6e056f2/test_psutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2352, 12, 2890, 4672, 272, 9381, 273, 6652, 18, 52, 3190, 12, 16235, 20131, 16, 3909, 33, 15301, 8560, 16, 4514, 33, 15301, 8560, 13, 293, 273, 27024, 18, 2227, 12, 87, 9381,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2352, 12, 2890, 4672, 272, 9381, 273, 6652, 18, 52, 3190, 12, 16235, 20131, 16, 3909, 33, 15301, 8560, 16, 4514, 33, 15301, 8560, 13, 293, 273, 27024, 18, 2227, 12, 87, 9381,...
)""" % self.db.keywords) cu.execute(""" CREATE INDEX CacheContentsIdx ON CacheContents(troveName) """) schema.createFlavors(self.db) cu.execute(""" CREATE TABLE Versions( versionId %(PRIMARYKEY)s, version VARCHAR(767) )""" % self.db.keywords) self.db.commit() def __init__(self, cacheDB, tmpDir): self.t...
) %(TABLEOPTS)s""" % self.db.keywords) cu.execute("CREATE INDEX CacheContentsIdx " "ON CacheContents(troveName)") idtable.createIdTable(self.db, "Versions", "versionId", "version") self.versions = versiontable.VersionTable(self.db) schema.createFlavors(self.db)
def createSchema(self, dbInfo, schemaVersion): self.db = dbstore.connect(dbInfo[1], driver = dbInfo[0]) cu = self.db.cursor() if "CacheContents" in self.db.tables: if self.db.version != CACHE_SCHEMA_VERSION: self.__cleanCache() for t in self.db.tables: cu.execute("DROP TABLE %s" % (t,)) self.db.setVersion(CACHE_SCHEMA_...
5e77f528807fbf106029a4caa89fa4ffd83d8172 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/5e77f528807fbf106029a4caa89fa4ffd83d8172/cacheset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 3078, 12, 2890, 16, 1319, 966, 16, 1963, 1444, 4672, 365, 18, 1966, 273, 1319, 2233, 18, 3612, 12, 1966, 966, 63, 21, 6487, 3419, 273, 1319, 966, 63, 20, 5717, 15985, 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, 752, 3078, 12, 2890, 16, 1319, 966, 16, 1963, 1444, 4672, 365, 18, 1966, 273, 1319, 2233, 18, 3612, 12, 1966, 966, 63, 21, 6487, 3419, 273, 1319, 966, 63, 20, 5717, 15985, 273, 365, ...
elif connected and busy == True:
elif connected and busy:
def get_worker_count(self, connected, busy): """ Returns the number of workers. Parameters: connected -- bool busy -- bool """ if connected and busy == False: query = """SELECT workers FROM monitors WHERE connected AND NOT busy""" elif connected and busy == True: query = """SELECT workers FROM monitors WHERE connect...
6db6ad8a8427866f180dfe6984c842274f2461c3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/6db6ad8a8427866f180dfe6984c842274f2461c3/monitordb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 10124, 67, 1883, 12, 2890, 16, 5840, 16, 21697, 4672, 3536, 2860, 326, 1300, 434, 9798, 18, 225, 7012, 30, 5840, 1493, 1426, 21697, 1493, 1426, 225, 3536, 225, 309, 5840, 471, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 10124, 67, 1883, 12, 2890, 16, 5840, 16, 21697, 4672, 3536, 2860, 326, 1300, 434, 9798, 18, 225, 7012, 30, 5840, 1493, 1426, 21697, 1493, 1426, 225, 3536, 225, 309, 5840, 471, ...
stack = [] story = []
def link_stream(stream , _tag_name, attributes): """ stream : parser stream """ stack = [] story = [] content = [] has_content = False stack.append((_tag_name, attributes)) attrs = {} if exist_attribute(attributes, ['href']): attrs['href'] = attributes.get((URI,'href')) # Reencode the entities because the a tags # are...
61dc8a17eaa82cac44b7a3f6e98528144b4e7e77 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/61dc8a17eaa82cac44b7a3f6e98528144b4e7e77/rml2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1692, 67, 3256, 12, 3256, 269, 389, 2692, 67, 529, 16, 1677, 4672, 3536, 1407, 294, 2082, 1407, 3536, 225, 913, 273, 5378, 711, 67, 1745, 273, 1083, 2110, 18, 6923, 12443, 67, 2692, 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, 1692, 67, 3256, 12, 3256, 269, 389, 2692, 67, 529, 16, 1677, 4672, 3536, 1407, 294, 2082, 1407, 3536, 225, 913, 273, 5378, 711, 67, 1745, 273, 1083, 2110, 18, 6923, 12443, 67, 2692, 67...
if edit: edit.gotoline(lineno)
edit.gotoline(lineno)
def show_source(self, index): if not (0 <= index < len(self.stack)): return frame, lineno = self.stack[index] code = frame.f_code filename = code.co_filename if os.path.isfile(filename): edit = self.flist.open(filename) if edit: edit.gotoline(lineno)
7adf23e73617e7d0d5996d0a64346489ec32900a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/7adf23e73617e7d0d5996d0a64346489ec32900a/StackViewer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 3168, 12, 2890, 16, 770, 4672, 309, 486, 261, 20, 1648, 770, 411, 562, 12, 2890, 18, 3772, 3719, 30, 327, 2623, 16, 7586, 273, 365, 18, 3772, 63, 1615, 65, 981, 273, 2623, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 3168, 12, 2890, 16, 770, 4672, 309, 486, 261, 20, 1648, 770, 411, 562, 12, 2890, 18, 3772, 3719, 30, 327, 2623, 16, 7586, 273, 365, 18, 3772, 63, 1615, 65, 981, 273, 2623, ...
print "Failed to install package %s" % (pkg.get('name'))
self.CondPrint("verbose", "Installing pkg %s version %s" % (pkg.get('name'), pkg.get('version'))) cmdrc = system(cmd % ("%s=%s" % (pkg.get('name'), pkg.get('version')))) if cmdrc == 0: self.states[pkg] = True work.remove(pkg) else: self.CondPrint('verbose', "Failed to install package %s" % (pkg.get('name')))
def Install(self): '''Correct detected misconfigurations''' print "Installing" cmd = "apt-get --reinstall -q=2 -y install %s" print "Need to remove:", self.pkgwork['remove'] self.setup['quick'] = True
ba337edbea6a960d65b1f51602ce786835f7064e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/ba337edbea6a960d65b1f51602ce786835f7064e/Debian.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10284, 12, 2890, 4672, 9163, 16147, 8316, 7524, 25856, 26418, 1172, 315, 6410, 310, 6, 1797, 273, 315, 1657, 17, 588, 1493, 266, 5425, 300, 85, 33, 22, 300, 93, 3799, 738, 87, 6, 1172,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10284, 12, 2890, 4672, 9163, 16147, 8316, 7524, 25856, 26418, 1172, 315, 6410, 310, 6, 1797, 273, 315, 1657, 17, 588, 1493, 266, 5425, 300, 85, 33, 22, 300, 93, 3799, 738, 87, 6, 1172,...
<td id='key'>%s</td>
<td>%s</td>
def gen_html(self, stats_xml): """ generates html snippet from xml stats """ from xml.etree.ElementTree import (ElementTree as ET, Element, SubElement, dump, XML) mapping = {'onlineAgentCount': 'Online Workers', 'offlineAgentCount': 'Offline Workers', 'totalAgentCount': 'Total Workers', 'onlineProcessorCount': 'Onli...
db06f96bd3e93a5e8f36e414c48bcd0a282a9550 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/db06f96bd3e93a5e8f36e414c48bcd0a282a9550/web_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 67, 2620, 12, 2890, 16, 3177, 67, 2902, 4672, 3536, 6026, 1729, 13016, 628, 2025, 3177, 225, 3536, 225, 628, 2025, 18, 31303, 18, 1046, 2471, 1930, 261, 1046, 2471, 487, 4518, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 67, 2620, 12, 2890, 16, 3177, 67, 2902, 4672, 3536, 6026, 1729, 13016, 628, 2025, 3177, 225, 3536, 225, 628, 2025, 18, 31303, 18, 1046, 2471, 1930, 261, 1046, 2471, 487, 4518, 16, ...
class StaticHTTPHandler(HttpLogHandler, HTTPHandler):
class StaticHTTPHandler(HttpLogHandler, FixSendError, HTTPHandler):
def init_xmlrpc(): if tools.config.get('xmlrpc', False): # Example of http file serving: # reg_http_service(HTTPDir('/test/',HTTPHandler)) reg_http_service(HTTPDir('/xmlrpc/', XMLRPCRequestHandler)) logging.getLogger("web-services").info("Registered XML-RPC over HTTP") if tools.config.get('xmlrpcs', False): reg_http_s...
59efa51612d8f85fab2ad503080b353fe4930bde /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/59efa51612d8f85fab2ad503080b353fe4930bde/http_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 2902, 7452, 13332, 309, 8513, 18, 1425, 18, 588, 2668, 2902, 7452, 2187, 1083, 4672, 468, 5090, 434, 1062, 585, 20505, 30, 468, 960, 67, 2505, 67, 3278, 12, 3693, 1621, 2668, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 2902, 7452, 13332, 309, 8513, 18, 1425, 18, 588, 2668, 2902, 7452, 2187, 1083, 4672, 468, 5090, 434, 1062, 585, 20505, 30, 468, 960, 67, 2505, 67, 3278, 12, 3693, 1621, 2668, ...
print("[" + vessel['location'] + "] Already had correct user keys.")
print("[" + vessel['nodelocation'] + "] Already had correct user keys.")
def set_keys(vessel, identity): """ The first argument will be a vesseldict rather than a vesselhandle because we passed the result of get_vessels_on_nodes to run_parallelized. """ if vessel['vesselname'] != VESSELNAME_TO_SET_USER_KEYS_ON: msg = "[" + vessel['location'] + "] Skipping: vesselname is not: " + VESSELNAME...
c05862ba556a55ecfe962167a0a62ac9ff1a5b43 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7263/c05862ba556a55ecfe962167a0a62ac9ff1a5b43/set_user_keys.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 2452, 12, 90, 403, 292, 16, 4215, 4672, 3536, 1021, 1122, 1237, 903, 506, 279, 331, 403, 488, 933, 9178, 2353, 279, 331, 403, 292, 4110, 2724, 732, 2275, 326, 563, 434, 336, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 2452, 12, 90, 403, 292, 16, 4215, 4672, 3536, 1021, 1122, 1237, 903, 506, 279, 331, 403, 488, 933, 9178, 2353, 279, 331, 403, 292, 4110, 2724, 732, 2275, 326, 563, 434, 336, ...
""" Save the last changes to disk.
"""Save the last changes to disk.
def save_changes(self): """ Save the last changes to disk. """ # Start path = self.uri.path state = str(path.resolve2('state')) open(state, 'w').write('START\n')
78d81817463acbe5a10737c561d712ddd9736c09 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/78d81817463acbe5a10737c561d712ddd9736c09/catalog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 6329, 12, 2890, 4672, 3536, 4755, 326, 1142, 3478, 358, 4234, 18, 3536, 468, 3603, 589, 273, 365, 18, 1650, 18, 803, 919, 273, 609, 12, 803, 18, 10828, 22, 2668, 2019, 26112,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 6329, 12, 2890, 4672, 3536, 4755, 326, 1142, 3478, 358, 4234, 18, 3536, 468, 3603, 589, 273, 365, 18, 1650, 18, 803, 919, 273, 609, 12, 803, 18, 10828, 22, 2668, 2019, 26112,...
isfavorite=None, server=None, license=None, rotation=None):
isfavorite=None, server=None, farm=None, license=None, rotation=None):
def __init__(self, id, owner=None, dateuploaded=None, \ title=None, description=None, ispublic=None, \ isfriend=None, isfamily=None, cancomment=None, \ canaddmeta=None, comments=None, tags=None, secret=None, \ isfavorite=None, server=None, license=None, rotation=None): """Must specify id, rest is optional.""" self.__lo...
072ad7f109343e726e5e4df8ab58611c79e34587 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5610/072ad7f109343e726e5e4df8ab58611c79e34587/flickr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 612, 16, 3410, 33, 7036, 16, 1509, 23249, 33, 7036, 16, 521, 2077, 33, 7036, 16, 2477, 33, 7036, 16, 353, 482, 33, 7036, 16, 521, 353, 74, 7522, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 612, 16, 3410, 33, 7036, 16, 1509, 23249, 33, 7036, 16, 521, 2077, 33, 7036, 16, 2477, 33, 7036, 16, 353, 482, 33, 7036, 16, 521, 353, 74, 7522, 33, ...
print "VS_RCFile: config file changed, reload"
dbg (" VS_RCFile: config file changed, reload")
def file_changed (self, monitor, file, unknown, event): if event == gio.FILE_MONITOR_EVENT_CHANGES_DONE_HINT: print "VS_RCFile: config file changed, reload" self.values = {} self.call_parser() self.reconfigure_callback()
23c04bd3d4513bb17cf53ab8f74f01579ffd979a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1032/23c04bd3d4513bb17cf53ab8f74f01579ffd979a/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 585, 67, 6703, 261, 2890, 16, 6438, 16, 585, 16, 5917, 16, 871, 4672, 309, 871, 422, 314, 1594, 18, 3776, 67, 17667, 30153, 67, 10454, 67, 1792, 3388, 3991, 67, 26875, 67, 44, 3217, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 585, 67, 6703, 261, 2890, 16, 6438, 16, 585, 16, 5917, 16, 871, 4672, 309, 871, 422, 314, 1594, 18, 3776, 67, 17667, 30153, 67, 10454, 67, 1792, 3388, 3991, 67, 26875, 67, 44, 3217, ...
def GetLatestZipUrl(board, channel, latest_url_base, zip_server_base): """Returns the url of the latest image zip for the given arguments.
def testGrabZipAndExtractImageWrongCache(self): """Test case where download_url exists but doesn't match our url.""" self.mox.StubOutWithMock(os.path, 'exists') self.mox.StubOutWithMock(os, 'mkdir') self.mox.StubOutWithMock(__builtins__, 'open') self.mox.StubOutWithMock(ctest, 'RunCommand') self.mox.StubOutWithMock(url...
def GetLatestZipUrl(board, channel, latest_url_base, zip_server_base): """Returns the url of the latest image zip for the given arguments. Args: board: board for the image zip. channel: channel for the image zip. latest_url_base: base url for latest links. zip_server_base: base url for zipped images. """ # Grab the l...
2cc5cd41556ea2cdcaf9142c96f440206f1f5867 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9626/2cc5cd41556ea2cdcaf9142c96f440206f1f5867/ctest_unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 14571, 70, 9141, 1876, 4976, 2040, 13634, 1649, 12, 2890, 4672, 3536, 4709, 648, 1625, 4224, 67, 718, 1704, 1496, 3302, 1404, 845, 3134, 880, 12123, 365, 18, 81, 2409, 18, 11974, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14571, 70, 9141, 1876, 4976, 2040, 13634, 1649, 12, 2890, 4672, 3536, 4709, 648, 1625, 4224, 67, 718, 1704, 1496, 3302, 1404, 845, 3134, 880, 12123, 365, 18, 81, 2409, 18, 11974, 1...
faildoms_ptr.removeChild(obj)
faildoms_ptr.removeChild(faildom) for service in services: service.removeAttribute('domain')
def on_faildom_delete(self, button): selection = self.treeview.get_selection() model,iter = selection.get_selected() obj = model.get_value(iter, OBJ_COL) retval = self.warningMessage(CONFIRM_FAILDOM_REMOVE % obj.getName()) if (retval == gtk.RESPONSE_NO): return ###XXX-FIX should be wrapped in exception handler faildoms...
b279737d99d53e3af22def5069ab42ffa5644260 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3879/b279737d99d53e3af22def5069ab42ffa5644260/ConfigTabController.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 507, 545, 362, 67, 3733, 12, 2890, 16, 3568, 4672, 4421, 273, 365, 18, 3413, 1945, 18, 588, 67, 10705, 1435, 938, 16, 2165, 273, 4421, 18, 588, 67, 8109, 1435, 1081, 273, 93...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 507, 545, 362, 67, 3733, 12, 2890, 16, 3568, 4672, 4421, 273, 365, 18, 3413, 1945, 18, 588, 67, 10705, 1435, 938, 16, 2165, 273, 4421, 18, 588, 67, 8109, 1435, 1081, 273, 93...
assert index.isdigit(), 'alias must be a
if not index.isdigit(): raise AliasError('alias must be a
def runcommand(self, command, args): """User invoked alias command""" if args is None: args = '' command = command.lower() args = args.split(None, 1) if command == 'add': assert len(args) == 2, self.help for name, obj in self.madcow.modules.by_priority(): if obj.pattern is Module._any: continue if obj.pattern.search(ar...
5085ab76bb46c8673cf276235de6dfbd25d1d73d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10942/5085ab76bb46c8673cf276235de6dfbd25d1d73d/alias.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 436, 551, 362, 889, 12, 2890, 16, 1296, 16, 833, 4672, 3536, 1299, 8187, 2308, 1296, 8395, 309, 833, 353, 599, 30, 833, 273, 875, 1296, 273, 1296, 18, 8167, 1435, 833, 273, 833, 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, 436, 551, 362, 889, 12, 2890, 16, 1296, 16, 833, 4672, 3536, 1299, 8187, 2308, 1296, 8395, 309, 833, 353, 599, 30, 833, 273, 875, 1296, 273, 1296, 18, 8167, 1435, 833, 273, 833, 18, ...
pedFile = open(file + ".ped", "w") except exceptions.IOError: raise exceptions.IOError, "Can not open file " + file + ".dat/.ped to write." markers = [pop.chromBegin(chrom)+m for m in range(pop.numLoci(chrom))] for e in exclude: markers.remove(e) dataFile.write( '''%d 0 0 5 << nlocus, risklocus, sexlink, n...
raise exceptions.ValueError, "Please specify output or outputExpr" markers = {} for ch in range(0,pop.numChrom()): markers[ch] = [] for m in range(0, pop.numLoci(ch)): if not pop.chromBegin(ch) + m in exclude: markers[ch].append(m) try: out = open( file, "w") except exceptions.IOError: raise exceptions.IOError, "Can n...
def SaveLinkage(pop, chrom, popType='sibpair', output='', outputExpr='', alleleFreq=[], recombination=0.00001, penetrance=[0,0.25,0.5], exclude=[], pre=True, daf=0.001): """ save population in Linkage format. Currently only support affected sibpairs sampled with affectedSibpairSample operator. pop: population to be sa...
221d6e46bb102816794d97211e9ea83f19d74d6c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/401/221d6e46bb102816794d97211e9ea83f19d74d6c/simuUtil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7074, 2098, 410, 12, 5120, 16, 8123, 16, 1843, 559, 2218, 6044, 6017, 2187, 876, 2218, 2187, 876, 4742, 2218, 2187, 14551, 14485, 22850, 6487, 283, 9301, 1735, 33, 20, 18, 2787, 21, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7074, 2098, 410, 12, 5120, 16, 8123, 16, 1843, 559, 2218, 6044, 6017, 2187, 876, 2218, 2187, 876, 4742, 2218, 2187, 14551, 14485, 22850, 6487, 283, 9301, 1735, 33, 20, 18, 2787, 21, 16, ...
self.filter_switch.add_text_button('view-all', _('All'), self._on_view_all_clicked)
all_text = _('View|All') if "|" in all_text: all_text = all_text.split("|")[-1] self.filter_switch.add_text_button('view-all', all_text, self._on_view_all_clicked)
def __init__(self, controller=None): widgetset.Background.__init__(self) self.create_signal('sort-changed') self.create_signal('list-view-clicked') self.create_signal('normal-view-clicked') self._button_hbox = widgetset.HBox() self._button_hbox_container = widgetutil.HideableWidget(self._button_hbox) self._button_hbox...
2608b19d21933909a28d6bcae546a92cb10dc8e4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/2608b19d21933909a28d6bcae546a92cb10dc8e4/itemlistwidgets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2596, 33, 7036, 4672, 3604, 542, 18, 8199, 16186, 2738, 972, 12, 2890, 13, 365, 18, 2640, 67, 10420, 2668, 3804, 17, 6703, 6134, 365, 18, 2640, 67, 10420...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2596, 33, 7036, 4672, 3604, 542, 18, 8199, 16186, 2738, 972, 12, 2890, 13, 365, 18, 2640, 67, 10420, 2668, 3804, 17, 6703, 6134, 365, 18, 2640, 67, 10420...
if not self.plugin.workerThread2.MM: self.plugin.workerThread2.Stop() del self.plugin.workerThread2 self.plugin.workerThread2 = MediaMonkeyWorkerThread(self.plugin) self.plugin.workerThread2.Start(100.0)
def __call__( self, plName, mode, listRules, order, trend, crit, limit, random, num, repeat, shuffle, crossfade, clear,
db6afab794dbadefb86a8456213534f137d74967 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8076/db6afab794dbadefb86a8456213534f137d74967/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 365, 16, 886, 461, 16, 1965, 16, 666, 4478, 16, 1353, 16, 268, 20262, 16, 7921, 16, 1800, 16, 2744, 16, 818, 16, 7666, 16, 12552, 16, 6828, 507, 323, 16, 2424, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 1991, 972, 12, 365, 16, 886, 461, 16, 1965, 16, 666, 4478, 16, 1353, 16, 268, 20262, 16, 7921, 16, 1800, 16, 2744, 16, 818, 16, 7666, 16, 12552, 16, 6828, 507, 323, 16, 2424, ...
libraries=[dblib]))
libraries=dblibs))
def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
6c8af65295229596ada11221e47a0cd074a5df45 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/6c8af65295229596ada11221e47a0cd074a5df45/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
self.dimensions = {} self._dims = []
def _dim_array(self): """Read a dict with dimensions names and sizes.""" assert self.read(4) in [ZERO, NC_DIMENSION] count = self._unpack_int()
10f173ae17d920e2e13f35ad760832641e6b4a35 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1380/10f173ae17d920e2e13f35ad760832641e6b4a35/pupynere.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3509, 67, 1126, 12, 2890, 4672, 3536, 1994, 279, 2065, 598, 5769, 1257, 471, 8453, 12123, 1815, 365, 18, 896, 12, 24, 13, 316, 306, 24968, 16, 423, 39, 67, 2565, 958, 3156, 1146, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 3509, 67, 1126, 12, 2890, 4672, 3536, 1994, 279, 2065, 598, 5769, 1257, 471, 8453, 12123, 1815, 365, 18, 896, 12, 24, 13, 316, 306, 24968, 16, 423, 39, 67, 2565, 958, 3156, 1146, ...
key = '/'.join(context.getPhysicalPath())
key = context.__class__, context.portal_type
def cachingInstanceSchemaFactory(context): """ schema adapter factory using a cache on the request object """ request = getattr(context, 'REQUEST', None) attr = '__archetypes_schemaextender_cache' if request is not None and not isinstance(request, str): cache = getattr(request, attr, None) if cache is None: cache = dic...
39a81cfbbdf5c1cf0a4fc4c99acde2d7f5f17781 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12166/39a81cfbbdf5c1cf0a4fc4c99acde2d7f5f17781/extender.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11393, 1442, 3078, 1733, 12, 2472, 4672, 3536, 1963, 4516, 3272, 1450, 279, 1247, 603, 326, 590, 733, 3536, 590, 273, 3869, 12, 2472, 16, 296, 5519, 2187, 599, 13, 1604, 273, 4940, 991, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11393, 1442, 3078, 1733, 12, 2472, 4672, 3536, 1963, 4516, 3272, 1450, 279, 1247, 603, 326, 590, 733, 3536, 590, 273, 3869, 12, 2472, 16, 296, 5519, 2187, 599, 13, 1604, 273, 4940, 991, ...
x, y = coords = widget.get_pointer() if event.type == gtk.gdk._2BUTTON_PRESS or event.type == gtk.gdk._3BUTTON_PRESS: return True if event.type == gtk.gdk.BUTTON_PRESS: widget.last_drag_coords = event.get_coords()
type = event.type x, y = coords = widget.get_pointer() if type in (BUTTON_PRESS, _2BUTTON_PRESS, _3BUTTON_PRESS): widget.last_drag_coords = coords
def article_drag_handler(self, widget, event): if self.mi_drag_selects.get_active(): return False #need to get pointer from the widget to receive next mouse motion event x, y = coords = widget.get_pointer() if event.type == gtk.gdk._2BUTTON_PRESS or event.type == gtk.gdk._3BUTTON_PRESS: return True if event.type == gtk...
02b305d50e22e67711e7838c46e48b03f23a60a8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14305/02b305d50e22e67711e7838c46e48b03f23a60a8/ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7559, 67, 15997, 67, 4176, 12, 2890, 16, 3604, 16, 871, 4672, 309, 365, 18, 9197, 67, 15997, 67, 4025, 87, 18, 588, 67, 3535, 13332, 327, 1083, 468, 14891, 358, 336, 4407, 628, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7559, 67, 15997, 67, 4176, 12, 2890, 16, 3604, 16, 871, 4672, 309, 365, 18, 9197, 67, 15997, 67, 4025, 87, 18, 588, 67, 3535, 13332, 327, 1083, 468, 14891, 358, 336, 4407, 628, 326, ...
Line = DEFINE_STR + ' ' + Name + ' ' * (ValueStartPtr - len(DEFINE_STR + Name)) + DecToHexStr(Token, 4)
if (ValueStartPtr - len(DEFINE_STR + Name)) <= 0: Line = DEFINE_STR + ' ' + Name + ' ' + DecToHexStr(Token, 4) else: Line = DEFINE_STR + ' ' + Name + ' ' * (ValueStartPtr - len(DEFINE_STR + Name)) + DecToHexStr(Token, 4)
def CreateHFileContent(BaseName, UniObjectClass): Str = '' ValueStartPtr = 60 Line = COMMENT_DEFINE_STR + ' ' + LANGUAGE_NAME_STRING_NAME + ' ' * (ValueStartPtr - len(DEFINE_STR + LANGUAGE_NAME_STRING_NAME)) + DecToHexStr(0, 4) + COMMENT_NOT_REFERENCED Str = WriteLine(Str, Line) Line = COMMENT_DEFINE_STR + ' ' + PRINTA...
614e21f3bcc0f7b4e0780d7c976646c5c8a34925 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/914/614e21f3bcc0f7b4e0780d7c976646c5c8a34925/StrGather.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 44, 25391, 12, 29907, 16, 1351, 77, 921, 797, 4672, 3978, 273, 875, 1445, 1685, 5263, 273, 4752, 5377, 273, 19400, 67, 12904, 3740, 67, 3902, 397, 296, 296, 397, 24748, 67, 1985, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1788, 44, 25391, 12, 29907, 16, 1351, 77, 921, 797, 4672, 3978, 273, 875, 1445, 1685, 5263, 273, 4752, 5377, 273, 19400, 67, 12904, 3740, 67, 3902, 397, 296, 296, 397, 24748, 67, 1985, ...
- ``x,m`` - numbers or symbolic expressions. Either m or x-m must be an integer.
- ``x``, ``m`` - numbers or symbolic expressions. Either ``m`` or ``x-m`` must be an integer.
def binomial(x,m): r""" Return the binomial coefficient .. math:: x (x-1) \cdots (x-m+1) / m! which is defined for `m \in \ZZ` and any `x`. We extend this definition to include cases when `x-m` is an integer but `m` is not by binomial(x,m)= binomial(x,x-m) If `m<0` return `0`. INPUT: - ``x,m`` - numbers or sym...
f2370aee3f6f590b914899ff20666b42b979fc93 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/f2370aee3f6f590b914899ff20666b42b979fc93/arith.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4158, 11496, 12, 92, 16, 81, 4672, 436, 8395, 2000, 326, 4158, 11496, 16554, 225, 6116, 4233, 2866, 225, 619, 261, 92, 17, 21, 13, 521, 4315, 6968, 261, 92, 17, 81, 15, 21, 13, 342, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4158, 11496, 12, 92, 16, 81, 4672, 436, 8395, 2000, 326, 4158, 11496, 16554, 225, 6116, 4233, 2866, 225, 619, 261, 92, 17, 21, 13, 521, 4315, 6968, 261, 92, 17, 81, 15, 21, 13, 342, ...
return eval(maxima.eval("jacobi_sn(%s,%s)"%(RR(x),RR(m))))
return eval(maxima.eval("jacobi_sn(%s,%s)"%(float(x),float(m))))
def jacobi(sym,x,m): r""" Here sym = "pq", where p,q in {c,d,n,s}. This returns the value of the Jacobi function pq(x,m), as described in the documentation for SAGE's "special" module. There are a total of 12 functions described by this. EXAMPLES: sage: jacobi("sn",1,1) 0.76159415595576485 sage: jacobi("cd",1,1/2) 0.7...
9a0ab89f387827fef6f9118a65362ee1e0032bd5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/9a0ab89f387827fef6f9118a65362ee1e0032bd5/special.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20138, 30875, 12, 8117, 16, 92, 16, 81, 4672, 436, 8395, 13743, 5382, 273, 315, 84, 85, 3113, 1625, 293, 16, 85, 316, 288, 71, 16, 72, 16, 82, 16, 87, 5496, 1220, 1135, 326, 460, 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, 20138, 30875, 12, 8117, 16, 92, 16, 81, 4672, 436, 8395, 13743, 5382, 273, 315, 84, 85, 3113, 1625, 293, 16, 85, 316, 288, 71, 16, 72, 16, 82, 16, 87, 5496, 1220, 1135, 326, 460, 4...
'name': record.name, 'date_from': record.date_from, 'date_to': record.date_to, 'calendar_id': emp.calendar_id.id, 'company_id': emp.company_id.id, 'resource_id': emp.resource_id.id, 'holiday_id':record.id } for leave_id in self.search(cr, uid, [('category_holiday_id', '=', record.id)]): wf_service.trg_validate(uid, '...
'name': record.name, 'type': record.type, 'holiday_type': 'employee', 'holiday_status_id': record.holiday_status_id.id, 'date_from': record.date_from, 'date_to': record.date_to, 'notes': record.notes, 'number_of_days_temp': record.number_of_days_temp, 'parent_id': record.id, 'employee_id': emp.id } leave_ids.append(sel...
def holidays_validate(self, cr, uid, ids, *args): obj_emp = self.pool.get('hr.employee') wf_service = netsvc.LocalService("workflow") data_holiday = self.browse(cr, uid, ids) self.check_holidays(cr, uid, ids) vals = {'state':'validate'} ids2 = obj_emp.search(cr, uid, [('user_id', '=', uid)]) if ids2: if data_holiday[0]...
d6451e011dbfc79f10dbf349593fa319c26ec083 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/d6451e011dbfc79f10dbf349593fa319c26ec083/hr_holidays.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28990, 67, 5662, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 380, 1968, 4672, 1081, 67, 30752, 273, 365, 18, 6011, 18, 588, 2668, 7256, 18, 351, 2817, 1340, 6134, 11578, 67, 3278, 273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28990, 67, 5662, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 380, 1968, 4672, 1081, 67, 30752, 273, 365, 18, 6011, 18, 588, 2668, 7256, 18, 351, 2817, 1340, 6134, 11578, 67, 3278, 273,...
print 'Transaction bug: %s %s of transaction' % (command, where)
print >> sys.stderr, 'Transaction bug: %s %s of transaction' % (command, where)
def _logTransaction(self, command): """ Check for txn sanity, when configured to do so. """ # pylint: disable-msg=W0212 # * _getframe needed to make a nicer stack dump. assert command in ('BEGIN', 'ROLLBACK', 'COMMIT') if DEBUG_TRANSACTIONS == DEBUG_OFF: return shouldBeInTrans = (command != 'BEGIN') inTrans = self.inT...
2babca4cc93d4ed2718d60c9bd1408ab37f419b7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8747/2babca4cc93d4ed2718d60c9bd1408ab37f419b7/base_drv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1330, 3342, 12, 2890, 16, 1296, 4672, 3536, 2073, 364, 7827, 16267, 16, 1347, 4351, 358, 741, 1427, 18, 3536, 468, 7601, 30, 4056, 17, 3576, 33, 59, 3103, 2138, 468, 225, 380, 389...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1330, 3342, 12, 2890, 16, 1296, 4672, 3536, 2073, 364, 7827, 16267, 16, 1347, 4351, 358, 741, 1427, 18, 3536, 468, 7601, 30, 4056, 17, 3576, 33, 59, 3103, 2138, 468, 225, 380, 389...
elif isinstance(t, FortranDerivedType): return ('type(%s)' % t.__class__.__name__.lower(), 'scalar')
def fortran_equivalent_type(t): tmap = {'int': 'integer', 'float': 'real(dp)', 'bool': 'logical', 'str': 'character'} if type(t).__name__ in tmap: return (tmap[type(t).__name__], 'scalar') elif hasattr(t,'__iter__'): a = numpy.array(t) if a.dtype.kind in numpy_to_fortran: return (numpy_to_fortran[a.dtype.kind], a.shap...
285bea0f38d41d837fa13cd788edb2ebb4a1477a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8914/285bea0f38d41d837fa13cd788edb2ebb4a1477a/oo_fortran.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 364, 13171, 67, 14298, 6505, 67, 723, 12, 88, 4672, 268, 1458, 273, 13666, 474, 4278, 296, 7745, 2187, 296, 5659, 4278, 296, 7688, 12, 9295, 13, 2187, 296, 6430, 4278, 296, 20300, 2187, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 364, 13171, 67, 14298, 6505, 67, 723, 12, 88, 4672, 268, 1458, 273, 13666, 474, 4278, 296, 7745, 2187, 296, 5659, 4278, 296, 7688, 12, 9295, 13, 2187, 296, 6430, 4278, 296, 20300, 2187, ...
sim.getRNG().setSeed(12345)
sim.getRNG().set(seed=12345)
def setRank(off, dad): 'The rank of offspring can increase or drop to zero randomly' off.rank = (dad.rank + randint(-1, 1)) % 3
205f55f8c6cd28aed704d70838912648f07ac340 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/205f55f8c6cd28aed704d70838912648f07ac340/userGuide.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 12925, 12, 3674, 16, 302, 361, 4672, 296, 1986, 6171, 434, 21174, 11638, 848, 10929, 578, 3640, 358, 3634, 20153, 11, 3397, 18, 11500, 273, 261, 72, 361, 18, 11500, 397, 16783, 1923...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 12925, 12, 3674, 16, 302, 361, 4672, 296, 1986, 6171, 434, 21174, 11638, 848, 10929, 578, 3640, 358, 3634, 20153, 11, 3397, 18, 11500, 273, 261, 72, 361, 18, 11500, 397, 16783, 1923...
action = cur[1] slot = cur[2]
action = cur[2] slot = cur[3]
def okbuttonClick(self): cur = self["entries"].getCurrent() if cur and len(cur) > 2: action = cur[1] slot = cur[2] if action == 0: #reset eDVBCI_UI.getInstance().setReset(slot) elif action == 1: #init eDVBCI_UI.getInstance().setInit(slot) elif self.state[slot] == 2: self.dlg = self.session.openWithCallback(self.dlgCl...
eb2804ab0205fd9204cd745feb840fdb4bc56216 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/eb2804ab0205fd9204cd745feb840fdb4bc56216/Ci.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1529, 5391, 6563, 12, 2890, 4672, 662, 273, 365, 9614, 8219, 6, 8009, 588, 3935, 1435, 309, 662, 471, 562, 12, 1397, 13, 405, 576, 30, 1301, 273, 662, 63, 22, 65, 4694, 273, 662, 63,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1529, 5391, 6563, 12, 2890, 4672, 662, 273, 365, 9614, 8219, 6, 8009, 588, 3935, 1435, 309, 662, 471, 562, 12, 1397, 13, 405, 576, 30, 1301, 273, 662, 63, 22, 65, 4694, 273, 662, 63,...
return range(0, 6)
return map(str, range(0, 6))
def parse_steps(steps): """Parse the -s, steps, option. Produces a list of strings.""" steps = steps.strip() if not steps: return range(0, 6) result = set() for part in steps.split(','): # Part can be integer number with an optional letter suffix... if re.match(r'^\d+[a-z]?$', part): result.add(part) else: # Or a rang...
cd09ff7ab8904b6e37dc9a59b32fec590a7f73fd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6890/cd09ff7ab8904b6e37dc9a59b32fec590a7f73fd/run.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 8986, 12, 8986, 4672, 3536, 3201, 326, 300, 87, 16, 6075, 16, 1456, 18, 225, 22934, 279, 666, 434, 2064, 12123, 6075, 273, 6075, 18, 6406, 1435, 309, 486, 6075, 30, 327, 852,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 8986, 12, 8986, 4672, 3536, 3201, 326, 300, 87, 16, 6075, 16, 1456, 18, 225, 22934, 279, 666, 434, 2064, 12123, 6075, 273, 6075, 18, 6406, 1435, 309, 486, 6075, 30, 327, 852,...
m = m << 1
m = m + m
def _mk_bitmap(bits): data = [] if _sre.CODESIZE == 2: start = (1, 0) else: start = (1L, 0L) m, v = start for c in bits: if c: v = v + m m = m << 1 if m > MAXCODE: data.append(v) m, v = start return data
3f8fdffe72485d69e9e31bdeb4796c1cca750eba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/3f8fdffe72485d69e9e31bdeb4796c1cca750eba/sre_compile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 24816, 67, 3682, 1458, 12, 6789, 4672, 501, 273, 5378, 309, 389, 87, 266, 18, 5572, 4574, 422, 576, 30, 787, 273, 261, 21, 16, 374, 13, 469, 30, 787, 273, 261, 21, 48, 16, 374...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24816, 67, 3682, 1458, 12, 6789, 4672, 501, 273, 5378, 309, 389, 87, 266, 18, 5572, 4574, 422, 576, 30, 787, 273, 261, 21, 16, 374, 13, 469, 30, 787, 273, 261, 21, 48, 16, 374...
if len(selectedItems) > 0:
enable = False states = set() for item in selectedItems: enable = isinstance(item, Note) if not enable: break
def onFocusStampEventUpdateUI(self, event): selectedItems = self.__getSelectedItems() stampClass = event.classParameter if len(selectedItems) > 0: # Collect the states of all the items, so that we can change all # the items if they're all in the same state. states = [ (isinstance(item, Note), has_stamp(item, stampClass...
822fb5899652d37cec3667825394a92c2cd25659 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/822fb5899652d37cec3667825394a92c2cd25659/PimBlocks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 9233, 8860, 1133, 1891, 5370, 12, 2890, 16, 871, 4672, 3170, 3126, 273, 365, 16186, 588, 7416, 3126, 1435, 14429, 797, 273, 871, 18, 1106, 1662, 4237, 273, 1083, 5493, 273, 444, 143...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9233, 8860, 1133, 1891, 5370, 12, 2890, 16, 871, 4672, 3170, 3126, 273, 365, 16186, 588, 7416, 3126, 1435, 14429, 797, 273, 871, 18, 1106, 1662, 4237, 273, 1083, 5493, 273, 444, 143...
for cmdname, cmdclass in commands.get_all_cmds():
for cmdname in commands.all_command_names(): cmdclass = commands.get_cmd_object(cmdname)
def complete_cmdname(self):
c453d58c1cf82d1b4dad0acb44fcef4a0229ad03 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1604/c453d58c1cf82d1b4dad0acb44fcef4a0229ad03/complete.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3912, 67, 4172, 529, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3912, 67, 4172, 529, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
def newChannel(self, profile):
def newChannel(self, profile, chardata=None, encoding=None):
def newChannel(self, profile): log.debug('trying to start channel with %s' % profile.uri) self.startChannel([[profile.uri, None, None]])
8394f1cef9a64658cae76898a2b0b10fe4ca14ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11576/8394f1cef9a64658cae76898a2b0b10fe4ca14ba/session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 2909, 12, 2890, 16, 3042, 16, 1149, 892, 33, 7036, 16, 2688, 33, 7036, 4672, 613, 18, 4148, 2668, 698, 310, 358, 787, 1904, 598, 738, 87, 11, 738, 3042, 18, 1650, 13, 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, 394, 2909, 12, 2890, 16, 3042, 16, 1149, 892, 33, 7036, 16, 2688, 33, 7036, 4672, 613, 18, 4148, 2668, 698, 310, 358, 787, 1904, 598, 738, 87, 11, 738, 3042, 18, 1650, 13, 365, 18, ...
c=unicode(c,cjc_globals.screen.encoding,"replace")
def key_char(self,c): c=unicode(c,cjc_globals.screen.encoding,"replace") if not self.string_choice and c in self.single_choice: return self.answer(c) if self.pos>=self.w-len(self.prompt)-2: return cjc_globals.screen.beep() newcontent=self.content+c if c in string.digits and self.range_choice: pass elif newcontent in se...
9998dc286dda0c2b743894df68d05bd2d9e8280d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12768/9998dc286dda0c2b743894df68d05bd2d9e8280d/choice_input.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 498, 67, 3001, 12, 2890, 16, 71, 4672, 309, 486, 365, 18, 1080, 67, 11569, 471, 276, 316, 365, 18, 7526, 67, 11569, 30, 327, 365, 18, 13490, 12, 71, 13, 309, 365, 18, 917, 34, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 498, 67, 3001, 12, 2890, 16, 71, 4672, 309, 486, 365, 18, 1080, 67, 11569, 471, 276, 316, 365, 18, 7526, 67, 11569, 30, 327, 365, 18, 13490, 12, 71, 13, 309, 365, 18, 917, 34, 33, ...
self.assertEquals(x._objects, "spam")
self.assertEquals(x._objects, b"spam")
def test_ccharp(self): x = c_char_p() self.assertEquals(x._objects, None) x.value = "abc" self.assertEquals(x._objects, "abc") x = c_char_p("spam") self.assertEquals(x._objects, "spam")
d73c0253cbd21c5285294000502c49d2e543178b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/d73c0253cbd21c5285294000502c49d2e543178b/test_keeprefs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 71, 3001, 84, 12, 2890, 4672, 619, 273, 276, 67, 3001, 67, 84, 1435, 365, 18, 11231, 8867, 12, 92, 6315, 6911, 16, 599, 13, 619, 18, 1132, 273, 315, 18947, 6, 365, 18, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 71, 3001, 84, 12, 2890, 4672, 619, 273, 276, 67, 3001, 67, 84, 1435, 365, 18, 11231, 8867, 12, 92, 6315, 6911, 16, 599, 13, 619, 18, 1132, 273, 315, 18947, 6, 365, 18, 11...
'title' : '<div class="titlebar">.*?<h1>(?P<title>.+?)</h1>',
'title' : '<div class="titlebar">.*?<h1.*?>(?P<title>.+?)</h1>',
def __init__(self): self.__baseURL = 'http://www.allocine.fr' self.__basePath = '/film/fichefilm_gen_cfilm' self.__castPath = '/film/casting_gen_cfilm' self.__searchURL= 'http://www.allocine.fr/recherche/?q=%s' self.__movieURL = self.__baseURL + self.__basePath self.__castURL = self.__baseURL + self.__castPath
c98d7610094c1a48e1c15b7a8975902e05e7872d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1698/c98d7610094c1a48e1c15b7a8975902e05e7872d/fr.allocine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 16186, 1969, 1785, 225, 202, 33, 296, 2505, 2207, 5591, 18, 9853, 558, 18, 4840, 11, 365, 16186, 27605, 273, 1173, 7540, 81, 19, 74, 335, 580, 754...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16186, 1969, 1785, 225, 202, 33, 296, 2505, 2207, 5591, 18, 9853, 558, 18, 4840, 11, 365, 16186, 27605, 273, 1173, 7540, 81, 19, 74, 335, 580, 754...
conn = urllib2.urlopen('http://www.google-analytics.com/__utm.gif', data)
conn = urllib2.urlopen(url, data)
def process_response(self, request, response): # get the title from the response if possible try: title = title_re.search(response.content).group(1) except: title = ''
8812f669e7975796e8cb03a1324cb83acac0a63b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7421/8812f669e7975796e8cb03a1324cb83acac0a63b/middleware.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2740, 12, 2890, 16, 590, 16, 766, 4672, 468, 336, 326, 2077, 628, 326, 766, 309, 3323, 775, 30, 2077, 273, 2077, 67, 266, 18, 3072, 12, 2740, 18, 1745, 2934, 1655, 12, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2740, 12, 2890, 16, 590, 16, 766, 4672, 468, 336, 326, 2077, 628, 326, 766, 309, 3323, 775, 30, 2077, 273, 2077, 67, 266, 18, 3072, 12, 2740, 18, 1745, 2934, 1655, 12, 21, ...
elif sys.platform == "linux2":
elif sys.platform == "linux2" or sys.platform == "freebsd4" or sys.platform == "freebsd5":
def checkPython( options, lookForHeaders, lookForLib ): PYTHONINCSEARCHPATH = [ distutils.sysconfig.get_python_inc() + os.path.sep + "Python.h" ] if distutils.sysconfig.get_config_vars().has_key("DESTSHARED"): PYTHONLIBSEARCHPATH = [ distutils.sysconfig.get_config_vars()["DESTSHARED"] + os.path.sep + "libpython*" ] els...
d980221e60ef0a27e1c9e50d015876701de198d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/d980221e60ef0a27e1c9e50d015876701de198d2/configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 15774, 12, 702, 16, 2324, 1290, 3121, 16, 2324, 1290, 5664, 262, 30, 12191, 20131, 23213, 17251, 4211, 273, 306, 2411, 5471, 18, 9499, 1425, 18, 588, 67, 8103, 67, 9523, 1435, 397, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 15774, 12, 702, 16, 2324, 1290, 3121, 16, 2324, 1290, 5664, 262, 30, 12191, 20131, 23213, 17251, 4211, 273, 306, 2411, 5471, 18, 9499, 1425, 18, 588, 67, 8103, 67, 9523, 1435, 397, ...
desc = plugin_description(self.datadir.find_path(plugin)) match = re_header_version.search(desc) if match: p_ver_orig = match.group(1) p_ver = format_version(p_ver_orig) self.pdbg("parse_ver (header) version(%s) = %s (%s)" % (plugin_t, p_ver_orig, p_ver)) else: match = re_filename_version.search(plugin)
for xp in expanded: plugin = C.cname(xp) plugin_t = C.truename(plugin) desc = plugin_description(self.datadir.find_path(plugin)) match = re_header_version.search(desc)
def parse_ver(self): self.parse_dbg_indent += " " match = re_ver_fun.match(self.buffer) if match: p = match.span(0)[1] self.buffer = self.buffer[p:] self.pdbg("parse_ver new buffer = %s" % self.buffer) op = match.group(1) orig_ver = match.group(2) ver = format_version(orig_ver) plugin = C.cname(match.group(3)) plugin_...
3da534b9bf37dbde04239e14e13a579e2b0fe147 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2827/3da534b9bf37dbde04239e14e13a579e2b0fe147/mlox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 502, 12, 2890, 4672, 365, 18, 2670, 67, 1966, 75, 67, 9355, 1011, 315, 225, 315, 845, 273, 283, 67, 502, 67, 12125, 18, 1916, 12, 2890, 18, 4106, 13, 309, 845, 30, 293, 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, 1109, 67, 502, 12, 2890, 4672, 365, 18, 2670, 67, 1966, 75, 67, 9355, 1011, 315, 225, 315, 845, 273, 283, 67, 502, 67, 12125, 18, 1916, 12, 2890, 18, 4106, 13, 309, 845, 30, 293, 2...
gobject.timeout_add(900,app.update_time)
gobject.timeout_add(500,app.update_time)
def run(): global loop loop = gobject.MainLoop() ui.set_mouse_tracking() app = appGUI() # Connect signals and whatnot to UI screen control functions bus.add_signal_receiver(app.dbus_scan_finished, 'SendEndScanSignal', 'org.wicd.daemon.wireless') bus.add_signal_receiver(app.dbus_scan_started, 'SendStartScanSignal', 'o...
066f4017756e6c500769cb9bc61105474aac2f93 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12280/066f4017756e6c500769cb9bc61105474aac2f93/wicd-curses.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 13332, 2552, 2798, 2798, 273, 314, 1612, 18, 6376, 6452, 1435, 225, 5915, 18, 542, 67, 11697, 67, 6440, 1435, 595, 273, 595, 43, 5370, 1435, 225, 468, 8289, 11505, 471, 4121, 902, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13332, 2552, 2798, 2798, 273, 314, 1612, 18, 6376, 6452, 1435, 225, 5915, 18, 542, 67, 11697, 67, 6440, 1435, 595, 273, 595, 43, 5370, 1435, 225, 468, 8289, 11505, 471, 4121, 902, ...
attrib = ''
attrib = None
def _datify( self, attrib ): """FIXME: overriden from DublinCore to deal with blank value...""" if attrib == 'None' or not attrib: attrib = '' elif not isinstance( attrib, DateTime ): attrib = DateTime( attrib ) return attrib
8e9001073d10067ed2e3669a8382baf8ba1ff0ff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/8e9001073d10067ed2e3669a8382baf8ba1ff0ff/BaseObject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3404, 1164, 12, 365, 16, 5885, 262, 30, 3536, 25810, 30, 31736, 628, 31760, 4670, 358, 10490, 598, 7052, 460, 7070, 3660, 309, 5885, 422, 296, 7036, 11, 578, 486, 5885, 30, 5885, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3404, 1164, 12, 365, 16, 5885, 262, 30, 3536, 25810, 30, 31736, 628, 31760, 4670, 358, 10490, 598, 7052, 460, 7070, 3660, 309, 5885, 422, 296, 7036, 11, 578, 486, 5885, 30, 5885, ...
if self.untagged_responses.has_key('READ-WRITE') \ and self.untagged_responses.has_key('READ-ONLY'): del self.untagged_responses['READ-WRITE']
if self.untagged_responses.has_key('READ-ONLY') \ and not self.is_readonly:
def _command(self, name, *args):
1bdb417e4cd336860743322b43795d78449d858b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/1bdb417e4cd336860743322b43795d78449d858b/imaplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3076, 12, 2890, 16, 508, 16, 380, 1968, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3076, 12, 2890, 16, 508, 16, 380, 1968, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
reportRequest[ 'extraArgs' ] = {}
reportRequest[ 'extraArgs' ] = {}
def __checkPlotRequest( self, reportRequest ): #If extraArgs is not there add it if 'extraArgs' not in reportRequest: reportRequest[ 'extraArgs' ] = {} if type( reportRequest[ 'extraArgs' ] ) != self.__reportRequestDict[ 'extraArgs' ]: return S_ERROR( "Extra args has to be of type %s" % self.__reportRequestDict[ 'extra...
d6d914c556b5166eed21ca94c8fd0ce2517a41b6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/d6d914c556b5166eed21ca94c8fd0ce2517a41b6/ReportGeneratorHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1893, 11532, 691, 12, 365, 16, 2605, 691, 262, 30, 468, 2047, 2870, 2615, 353, 486, 1915, 527, 518, 309, 296, 7763, 2615, 11, 486, 316, 2605, 691, 30, 2605, 691, 63, 296, 7763, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1893, 11532, 691, 12, 365, 16, 2605, 691, 262, 30, 468, 2047, 2870, 2615, 353, 486, 1915, 527, 518, 309, 296, 7763, 2615, 11, 486, 316, 2605, 691, 30, 2605, 691, 63, 296, 7763, ...
w, h = drawable.wrap(self.width, self.y - self.bottomMargin - self.bottomPadding)
y = self.y p = self.bottomMargin + self.bottomPadding w, h = drawable.wrap(self.width, y - p )
def add(self, drawable): """ Draws the object at the current position. Returns 1 if successful, 0 if it would not fit. Raises a LayoutError if the object is too wide, or if it is too high for a totally empty frame, to avoid infinite loops""" w, h = drawable.wrap(self.width, self.y - self.bottomMargin - self.bottomPaddi...
7687a1d030812b9f5afbac3716bb76baba123b1a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/7687a1d030812b9f5afbac3716bb76baba123b1a/layout.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 12, 2890, 16, 19021, 4672, 3536, 10184, 87, 326, 733, 622, 326, 783, 1754, 18, 2860, 404, 309, 6873, 16, 374, 309, 518, 4102, 486, 4845, 18, 20497, 279, 9995, 668, 309, 326, 733, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 12, 2890, 16, 19021, 4672, 3536, 10184, 87, 326, 733, 622, 326, 783, 1754, 18, 2860, 404, 309, 6873, 16, 374, 309, 518, 4102, 486, 4845, 18, 20497, 279, 9995, 668, 309, 326, 733, ...
x = (x << SHIFT) + v._getshort(i)
x = (x << SHIFT) + w_value._getshort(i)
def uint_w__Long(space, w_value): if w_value.sign == -1: raise OperationError(space.w_ValueError, space.wrap( "cannot convert negative integer to unsigned int")) x = r_uint(0) i = len(w_value.digits) * 2 - 1 while i >= 0: prev = x x = (x << SHIFT) + v._getshort(i) if (x >> SHIFT) != prev: raise OperationError(space.w_O...
50535c04d7a7b44cd779fa9cfb6bd0d0bf639324 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/50535c04d7a7b44cd779fa9cfb6bd0d0bf639324/longobject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2254, 67, 91, 972, 3708, 12, 2981, 16, 341, 67, 1132, 4672, 309, 341, 67, 1132, 18, 2977, 422, 300, 21, 30, 1002, 4189, 668, 12, 2981, 18, 91, 67, 23610, 16, 3476, 18, 4113, 12, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2254, 67, 91, 972, 3708, 12, 2981, 16, 341, 67, 1132, 4672, 309, 341, 67, 1132, 18, 2977, 422, 300, 21, 30, 1002, 4189, 668, 12, 2981, 18, 91, 67, 23610, 16, 3476, 18, 4113, 12, 31...
w_name = '%s%d' % (tmp_name, index)
w_name = u'%s%d' % (tmp_name, index)
def _get_window_handle(self, window_name): window_list = [] window_type = {}
f1d3b330c9cc7519afb68be535da1273a51f9270 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11266/f1d3b330c9cc7519afb68be535da1273a51f9270/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 5668, 67, 4110, 12, 2890, 16, 2742, 67, 529, 4672, 2742, 67, 1098, 273, 5378, 2742, 67, 723, 273, 2618, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 5668, 67, 4110, 12, 2890, 16, 2742, 67, 529, 4672, 2742, 67, 1098, 273, 5378, 2742, 67, 723, 273, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
parser.add_option("", "--terminate-on-not-found", dest="terminate_on_not_found", action="store_true", default="False", help="Terminate on first occurance where chunking did not affect any rows (default: False)")
parser.add_option("", "--terminate-on-not-found", dest="terminate_on_not_found", action="store_true", default=False, help="Terminate on first occurance where chunking did not affect any rows (default: False)")
def parse_options(): parser = OptionParser() parser.add_option("-u", "--user", dest="user", default="", help="MySQL user") parser.add_option("-H", "--host", dest="host", default="localhost", help="MySQL host (default: localhost)") parser.add_option("-p", "--password", dest="password", default="", help="MySQL password")...
5410332c9240fb39a54a32b226161d11d7002d55 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10338/5410332c9240fb39a54a32b226161d11d7002d55/oak-chunk-update.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 2116, 13332, 2082, 273, 18862, 1435, 2082, 18, 1289, 67, 3482, 2932, 17, 89, 3113, 5238, 1355, 3113, 1570, 1546, 1355, 3113, 805, 1546, 3113, 2809, 1546, 28723, 729, 7923, 2082, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 2116, 13332, 2082, 273, 18862, 1435, 2082, 18, 1289, 67, 3482, 2932, 17, 89, 3113, 5238, 1355, 3113, 1570, 1546, 1355, 3113, 805, 1546, 3113, 2809, 1546, 28723, 729, 7923, 2082, ...
self.polydat.append((p, layer, heading, int(self.scale*256), tex, lit))
self.polydat.append((p, layer, heading, max(1,int(self.scale*256)), tex, lit))
def makepoly(self, haveuv, vtx, idx=None): if self.t==None: return False # Only care about textured polygons if not self.loc: return False # Not for library objects if self.debug: self.debug.write("Poly: %s %s %s %d " % (basename(self.tex[self.t]), self.alt, self.layer, self.zbias))
fd8a5724a978d2115d9dc065537cd78a3b3ad5b0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11663/fd8a5724a978d2115d9dc065537cd78a3b3ad5b0/convbgl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29796, 881, 355, 93, 12, 2890, 16, 1240, 16303, 16, 331, 978, 16, 2067, 33, 7036, 4672, 309, 365, 18, 88, 631, 7036, 30, 327, 1083, 202, 7, 5098, 7671, 2973, 977, 2862, 17294, 309, 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, 29796, 881, 355, 93, 12, 2890, 16, 1240, 16303, 16, 331, 978, 16, 2067, 33, 7036, 4672, 309, 365, 18, 88, 631, 7036, 30, 327, 1083, 202, 7, 5098, 7671, 2973, 977, 2862, 17294, 309, 4...
if kwargs.get('mustexist', False):
if kwargs.pop('mustexist', False):
def __call__(self, name, engine, *args, **kwargs): try: schema = kwargs.get('schema', None) key = _get_table_key(engine, name, schema) table = engine.tables[key] if len(args): if kwargs.get('redefine', False): table.reload_values(*args) else: raise "Table '%s.%s' is already defined. specify 'redefine=True' to remap col...
ba1e7878ecf96f68bd73903768469cb3b57a1516 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1074/ba1e7878ecf96f68bd73903768469cb3b57a1516/schema.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 508, 16, 4073, 16, 380, 1968, 16, 2826, 4333, 4672, 775, 30, 1963, 273, 1205, 18, 588, 2668, 4821, 2187, 599, 13, 498, 273, 389, 588, 67, 2121, 67, 856...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 508, 16, 4073, 16, 380, 1968, 16, 2826, 4333, 4672, 775, 30, 1963, 273, 1205, 18, 588, 2668, 4821, 2187, 599, 13, 498, 273, 389, 588, 67, 2121, 67, 856...
price = price_obj.price_get(self.cr, self.uid, [lines[id].pricelist_id.id], lines[id].product_id.id, lines[id].unit_amount, ctx)[lines[id].pricelist_id.id]
price = price_obj.price_get(self.cr, self.uid, [lines[id].account_id.pricelist_id.id], lines[id].product_id.id, lines[id].unit_amount, ctx)[lines[id].account_id.pricelist_id.id]
def _lines_a(self, general_account_id, account_id, date1, date2): self.cr.execute("SELECT aal.id AS id, aal.name AS name, aal.code AS code, aal.amount AS balance, aal.date AS date, aaj.code AS cj, aal.unit_amount AS quantity \ FROM account_analytic_line AS aal, account_analytic_journal AS aaj \ WHERE (aal.general_accou...
05a76846f26e4915bba1ef2cd9bd51a1647e158d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/05a76846f26e4915bba1ef2cd9bd51a1647e158d/cost_ledger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3548, 67, 69, 12, 2890, 16, 7470, 67, 4631, 67, 350, 16, 2236, 67, 350, 16, 1509, 21, 16, 1509, 22, 4672, 365, 18, 3353, 18, 8837, 2932, 4803, 279, 287, 18, 350, 5355, 612, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3548, 67, 69, 12, 2890, 16, 7470, 67, 4631, 67, 350, 16, 2236, 67, 350, 16, 1509, 21, 16, 1509, 22, 4672, 365, 18, 3353, 18, 8837, 2932, 4803, 279, 287, 18, 350, 5355, 612, 16...
print "WxProxy.errorMessage from %s"%thread.get_ident()
def errorMessage(self, *args): print "WxProxy.errorMessage from %s"%thread.get_ident() self.call(self.wxapp.frame.errorMessage, *args)
fa6409652ec00471b18c92272c9fbb28358d6a8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1265/fa6409652ec00471b18c92272c9fbb28358d6a8b/wxshtoom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9324, 12, 2890, 16, 380, 1968, 4672, 365, 18, 1991, 12, 2890, 18, 27226, 2910, 18, 3789, 18, 1636, 1079, 16, 380, 1968, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9324, 12, 2890, 16, 380, 1968, 4672, 365, 18, 1991, 12, 2890, 18, 27226, 2910, 18, 3789, 18, 1636, 1079, 16, 380, 1968, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
def RenderPages(names, test_shell):
def RenderPage(name, test_shell):
def RenderPages(names, test_shell): """ Calls test_shell --layout-tests .../generator.html?<names> and writes the results to .../docs/<name>.html """ if not names: raise Exception("RenderPage called with empty names param") generator_url = "file:" + urllib.pathname2url(_generator_html) generator_url += "?" + ",".join(...
890a7e0412d44722ded596dbde2d11923542d26f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/890a7e0412d44722ded596dbde2d11923542d26f/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6987, 1964, 12, 529, 16, 1842, 67, 10304, 4672, 3536, 23665, 1842, 67, 10304, 1493, 6741, 17, 16341, 1372, 19, 8812, 18, 2620, 35, 32, 1973, 34, 471, 7262, 326, 1686, 358, 1372, 19, 85...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6987, 1964, 12, 529, 16, 1842, 67, 10304, 4672, 3536, 23665, 1842, 67, 10304, 1493, 6741, 17, 16341, 1372, 19, 8812, 18, 2620, 35, 32, 1973, 34, 471, 7262, 326, 1686, 358, 1372, 19, 85...
if self.rotatePhysics: assert self.avatarNodePath.getHpr().almostEqual(physObject.getOrientation().getHpr(), 0.0001)
assert self.avatarNodePath.getHpr().almostEqual(physObject.getOrientation().getHpr(), 0.0001)
def handleAvatarControls(self, task): """ Check on the arrow keys and update the avatar. """ onScreenDebug.append("localToon pos = %s\n"%(toonbase.localToon.getPos().pPrintValues(),)) onScreenDebug.append("localToon hpr = %s\n"%(toonbase.localToon.getHpr().pPrintValues(),)) #assert(self.debugPrint("handleAvatarControls...
e568aabe0ae61ea0156016d4faf8ac61341dcbfb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/e568aabe0ae61ea0156016d4faf8ac61341dcbfb/PhysicsWalker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 23999, 16795, 12, 2890, 16, 1562, 4672, 3536, 2073, 603, 326, 12274, 1311, 471, 1089, 326, 16910, 18, 3536, 603, 7956, 2829, 18, 6923, 2932, 3729, 774, 265, 949, 273, 738, 87, 64, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 23999, 16795, 12, 2890, 16, 1562, 4672, 3536, 2073, 603, 326, 12274, 1311, 471, 1089, 326, 16910, 18, 3536, 603, 7956, 2829, 18, 6923, 2932, 3729, 774, 265, 949, 273, 738, 87, 64, ...