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 '/' in name: warnings.warn("'/' character removed from table name") name = name.replace('/', '-')
def write(self, filename, compression=False, group="", append=False, overwrite=False): ''' Write the table to an HDF5 file Required Arguments: *filename*: [ string ] The HDF5 file to write the table to OR *file or group handle*: [ h5py.highlevel.File | h5py.highlevel.Group ] The HDF5 file handle or group handle to ...
6274f5c14ab3f819bb42db8896d79e3d9e50028e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13233/6274f5c14ab3f819bb42db8896d79e3d9e50028e/hdf5table.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1544, 16, 9154, 33, 8381, 16, 1041, 1546, 3113, 714, 33, 8381, 16, 6156, 33, 8381, 4672, 9163, 2598, 326, 1014, 358, 392, 21673, 25, 585, 225, 10647, 13599, 30, 225...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1544, 16, 9154, 33, 8381, 16, 1041, 1546, 3113, 714, 33, 8381, 16, 6156, 33, 8381, 4672, 9163, 2598, 326, 1014, 358, 392, 21673, 25, 585, 225, 10647, 13599, 30, 225...
wxWindow.SetBackgroundColour(self, colour)
wxControl.SetBackgroundColour(self, colour)
def SetBackgroundColour(self, colour): wxWindow.SetBackgroundColour(self, colour)
1278f7fcc56529b33d3874dae6c4e5e6a2aa49b0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1278f7fcc56529b33d3874dae6c4e5e6a2aa49b0/buttons.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 8199, 26404, 12, 2890, 16, 15046, 4672, 7075, 3829, 18, 694, 8199, 26404, 12, 2890, 16, 15046, 13, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 8199, 26404, 12, 2890, 16, 15046, 4672, 7075, 3829, 18, 694, 8199, 26404, 12, 2890, 16, 15046, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
'price_change': result.price_change
'price_change': price_change
def add(request, id=0): """Add an item to the cart.""" #TODO: Error checking for invalid combos log.debug('FORM: %s', request.POST) formdata = request.POST.copy() productslug = None if formdata.has_key('productname'): productslug = formdata['productname'] try: product = Product.objects.get(slug=productslug) log.debug('...
895421440bc75774efbfed5962e97c839091a476 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13656/895421440bc75774efbfed5962e97c839091a476/cart.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 12, 2293, 16, 612, 33, 20, 4672, 3536, 986, 392, 761, 358, 326, 7035, 12123, 468, 6241, 30, 1068, 6728, 364, 2057, 3894, 538, 613, 18, 4148, 2668, 4983, 30, 738, 87, 2187, 590, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2293, 16, 612, 33, 20, 4672, 3536, 986, 392, 761, 358, 326, 7035, 12123, 468, 6241, 30, 1068, 6728, 364, 2057, 3894, 538, 613, 18, 4148, 2668, 4983, 30, 738, 87, 2187, 590, ...
sim.getRNG().setSeed(12345)
sim.getRNG().set(seed=12345)
def qtrait(geno, age): 'Return two traits that depends on genotype and age' return random.normalvariate(age * sum(geno), 10), random.randint(0, 10*sum(geno))
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, 1043, 22513, 12, 4507, 83, 16, 9388, 4672, 296, 990, 2795, 18370, 716, 10935, 603, 22306, 471, 9388, 11, 327, 2744, 18, 6130, 1401, 3840, 12, 410, 380, 2142, 12, 4507, 83, 3631, 1728, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1043, 22513, 12, 4507, 83, 16, 9388, 4672, 296, 990, 2795, 18370, 716, 10935, 603, 22306, 471, 9388, 11, 327, 2744, 18, 6130, 1401, 3840, 12, 410, 380, 2142, 12, 4507, 83, 3631, 1728, ...
match = "%s %s %s=%s" % (match, symbol, prefix, value)
match = "%s=%s" % (prefix, value)
def GenerateMatch(self, type, value, relation, invert): match = "" text = self.Entry.get_text()
9cc03d44057fdf1870a570adaa50311c59107ddd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7062/9cc03d44057fdf1870a570adaa50311c59107ddd/Settings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6654, 2060, 12, 2890, 16, 618, 16, 460, 16, 2533, 16, 9848, 4672, 845, 273, 1408, 977, 273, 365, 18, 1622, 18, 588, 67, 955, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6654, 2060, 12, 2890, 16, 618, 16, 460, 16, 2533, 16, 9848, 4672, 845, 273, 1408, 977, 273, 365, 18, 1622, 18, 588, 67, 955, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
return pooler.get_pool(cr.dbname).get('res.currency').search(cr, uid, [('rate','=',1.0)])[0]
def _get_currency(self, cr, uid, context): return pooler.get_pool(cr.dbname).get('res.currency').search(cr, uid, [('rate','=',1.0)])[0] return pooler.get_pool(cr.dbname).get('res.users').browse(cr, uid, [uid])[0].company_id.currency_id.id
2dd845c3a1dc25c8b948f3b1c6e3f6533a572642 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7397/2dd845c3a1dc25c8b948f3b1c6e3f6533a572642/invoice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 7095, 12, 2890, 16, 4422, 16, 4555, 16, 819, 4672, 327, 2845, 264, 18, 588, 67, 6011, 12, 3353, 18, 20979, 2934, 588, 2668, 455, 18, 5577, 16063, 25731, 12, 3353, 16, 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, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 7095, 12, 2890, 16, 4422, 16, 4555, 16, 819, 4672, 327, 2845, 264, 18, 588, 67, 6011, 12, 3353, 18, 20979, 2934, 588, 2668, 455, 18, 5577, 16063, 25731, 12, 3353, 16, 4...
for line in html.split('<br />'): yield line.replace('&nbsp;', ' ')
return [line.replace('&nbsp;', ' ') for line in html.split('<br />')]
def render(self, context, mimetype, content, filename=None, rev=None): # -n to ignore php.ini so we're using default colors cmdline = '%s -sn' % self.path self.env.log.debug("PHP command line: %s" % cmdline)
d6cc51f333b0cced1ff3b4aadee988fd0e0cf0c6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/d6cc51f333b0cced1ff3b4aadee988fd0e0cf0c6/php.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 819, 16, 12595, 16, 913, 16, 1544, 33, 7036, 16, 5588, 33, 7036, 4672, 468, 300, 82, 358, 2305, 3863, 18, 8767, 1427, 732, 4565, 1450, 805, 5740, 22877, 273, 1995, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 819, 16, 12595, 16, 913, 16, 1544, 33, 7036, 16, 5588, 33, 7036, 4672, 468, 300, 82, 358, 2305, 3863, 18, 8767, 1427, 732, 4565, 1450, 805, 5740, 22877, 273, 1995, ...
This method is used when importing data via client menu Example of fields to import for a sale.order
This method is used when importing data via client menu. Example of fields to import for a sale.order::
def import_data(self, cr, uid, fields, datas, mode='init', current_module='', noupdate=False, context=None, filename=None): """ Import given data in given module
97fbe3c2f5d7dfab25ae55231fa588869964d1ba /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/97fbe3c2f5d7dfab25ae55231fa588869964d1ba/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 892, 12, 2890, 16, 4422, 16, 4555, 16, 1466, 16, 5386, 16, 1965, 2218, 2738, 2187, 783, 67, 2978, 2218, 2187, 1158, 2725, 33, 8381, 16, 819, 33, 7036, 16, 1544, 33, 7036, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 892, 12, 2890, 16, 4422, 16, 4555, 16, 1466, 16, 5386, 16, 1965, 2218, 2738, 2187, 783, 67, 2978, 2218, 2187, 1158, 2725, 33, 8381, 16, 819, 33, 7036, 16, 1544, 33, 7036, 4...
dval = [self.patterns[c]+'i' for c in self.encoded] self.decomposed = ''.join(dval[:-1])
self.decomposed = ''.join([(self.patterns[c]+'i') for c in self.encoded])[:-1]
def decompose(self): dval = [self.patterns[c]+'i' for c in self.encoded] self.decomposed = ''.join(dval[:-1]) return self.decomposed
ed4d5e3d35978e4181cc1427d9b15440f7310ded /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3878/ed4d5e3d35978e4181cc1427d9b15440f7310ded/common.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24476, 12, 2890, 4672, 365, 18, 323, 832, 7423, 273, 875, 18, 5701, 3816, 12, 2890, 18, 13317, 63, 71, 30658, 77, 6134, 364, 276, 316, 365, 18, 10787, 5717, 10531, 17, 21, 65, 327, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24476, 12, 2890, 4672, 365, 18, 323, 832, 7423, 273, 875, 18, 5701, 3816, 12, 2890, 18, 13317, 63, 71, 30658, 77, 6134, 364, 276, 316, 365, 18, 10787, 5717, 10531, 17, 21, 65, 327, 3...
message_error = "Test '%s' ended with ABORT" " (info: '%s')" % (result[0], result[3])
message_error = ("Test '%s' ended with ABORT " "(info: '%s')" % (result[0], result[3]))
def run_autotest(test, params, env): """ Run an autotest test inside a guest. @param test: kvm test object. @param params: Dictionary with test parameters. @param env: Dictionary with the test environment. """ vm = kvm_utils.env_get_vm(env, params.get("main_vm")) if not vm: raise error.TestError("VM object not found i...
39278ed03c2ed6d911b8d0f5e5726aba37098e8e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10349/39278ed03c2ed6d911b8d0f5e5726aba37098e8e/kvm_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 5854, 352, 395, 12, 3813, 16, 859, 16, 1550, 4672, 3536, 1939, 392, 2059, 352, 395, 1842, 4832, 279, 13051, 18, 225, 632, 891, 1842, 30, 417, 3489, 1842, 733, 18, 632, 891, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 5854, 352, 395, 12, 3813, 16, 859, 16, 1550, 4672, 3536, 1939, 392, 2059, 352, 395, 1842, 4832, 279, 13051, 18, 225, 632, 891, 1842, 30, 417, 3489, 1842, 733, 18, 632, 891, ...
content = ""
def GetCachedFile(filename, max_age=60*60*24*3, use_root=False): """Retrieves a file from the repository and caches it in GetCacheDir() for max_age seconds. use_root: If False, look up the arborescence for the first match, otherwise go directory to the root repository. Note: The cache will be inconsistent if the same...
c48ccfcd894c7df147bc34a52cf3426d2d80f36d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6076/c48ccfcd894c7df147bc34a52cf3426d2d80f36d/gcl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 9839, 812, 12, 3459, 16, 943, 67, 410, 33, 4848, 14, 4848, 14, 3247, 14, 23, 16, 999, 67, 3085, 33, 8381, 4672, 3536, 6960, 279, 585, 628, 326, 3352, 471, 12535, 518, 316, 968, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 9839, 812, 12, 3459, 16, 943, 67, 410, 33, 4848, 14, 4848, 14, 3247, 14, 23, 16, 999, 67, 3085, 33, 8381, 4672, 3536, 6960, 279, 585, 628, 326, 3352, 471, 12535, 518, 316, 968, ...
self.doSeekRelative(0)
self.doSeekRelative(1)
def pauseService(self): if self.seekstate == self.SEEK_STATE_PAUSE: if config.seek.on_pause.value == "play": self.unPauseService() elif config.seek.on_pause.value == "step": self.doSeekRelative(0) elif config.seek.on_pause.value == "last": self.setSeekState(self.lastseekstate) self.lastseekstate = self.SEEK_STATE_PLAY ...
4a7a8362a83b1a6c2bd0abf13cd7b19359e9768a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/4a7a8362a83b1a6c2bd0abf13cd7b19359e9768a/InfoBarGenerics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11722, 1179, 12, 2890, 4672, 309, 365, 18, 16508, 2019, 422, 365, 18, 1090, 11325, 67, 7998, 67, 4066, 8001, 30, 309, 642, 18, 16508, 18, 265, 67, 19476, 18, 1132, 422, 315, 1601, 6877...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11722, 1179, 12, 2890, 4672, 309, 365, 18, 16508, 2019, 422, 365, 18, 1090, 11325, 67, 7998, 67, 4066, 8001, 30, 309, 642, 18, 16508, 18, 265, 67, 19476, 18, 1132, 422, 315, 1601, 6877...
def __init__(self, xmlFilename = None, namespaces = [], offset = -1):
def __init__(self, xmlFilename=None, namespaces=[], offset=-1, use_move_log=False):
def __init__(self, xmlFilename = None, namespaces = [], offset = -1): self.xmlFilename = xmlFilename self.namespaces = namespaces self.offset = offset
de6e626d0c58ba0a5dacbacc9addd266cc77d7d3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/de6e626d0c58ba0a5dacbacc9addd266cc77d7d3/redirect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2025, 5359, 33, 7036, 16, 7728, 22850, 6487, 1384, 29711, 21, 16, 999, 67, 8501, 67, 1330, 33, 8381, 4672, 365, 18, 2902, 5359, 273, 2025, 5359, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2025, 5359, 33, 7036, 16, 7728, 22850, 6487, 1384, 29711, 21, 16, 999, 67, 8501, 67, 1330, 33, 8381, 4672, 365, 18, 2902, 5359, 273, 2025, 5359, 365, 18,...
if len(include) == 0 and len(explicitInclude) > 0: if len(block) > 0:
if len(includeWithDeps) == 0 and len(includeNoDeps) > 0: if len(excludeWithDeps) > 0:
def resolveDepsSmartCludes(): # Resolve intelli include/exclude depdendencies if len(include) == 0 and len(explicitInclude) > 0: if len(block) > 0: self._console.error("Blocking is not supported when only explicit includes are defined!"); sys.exit(1)
ca3bf86fb2d4f8478c8c20f6093a6fb5226c2f4b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/ca3bf86fb2d4f8478c8c20f6093a6fb5226c2f4b/DependencyLoader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 14430, 23824, 2009, 6500, 13332, 468, 9910, 509, 292, 549, 2341, 19, 10157, 5993, 72, 409, 3209, 309, 562, 12, 6702, 1190, 14430, 13, 422, 374, 471, 562, 12, 6702, 2279, 14430, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 14430, 23824, 2009, 6500, 13332, 468, 9910, 509, 292, 549, 2341, 19, 10157, 5993, 72, 409, 3209, 309, 562, 12, 6702, 1190, 14430, 13, 422, 374, 471, 562, 12, 6702, 2279, 14430, 13,...
""":chat user[@domain [+audio] \t Initiate a chat session, optionally with audio"""
""":chat user[@domain] [+audio] \t Initiate a chat session, optionally with audio"""
def cmd_chat(self, *args): """:chat user[@domain [+audio] \t Initiate a chat session, optionally with audio""" return self._cmd_call(args, default_stream=MSRPChat, doc=self.cmd_chat.__doc__)
ac3990baefdc2fb7f48ac67eb28f7c6dd5c287fe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/ac3990baefdc2fb7f48ac67eb28f7c6dd5c287fe/sip_session2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1797, 67, 10880, 12, 2890, 16, 380, 1968, 4672, 3536, 30, 10880, 729, 14782, 4308, 65, 306, 15, 11509, 65, 521, 88, 26615, 279, 7916, 1339, 16, 8771, 598, 7447, 8395, 327, 365, 6315, 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, 1797, 67, 10880, 12, 2890, 16, 380, 1968, 4672, 3536, 30, 10880, 729, 14782, 4308, 65, 306, 15, 11509, 65, 521, 88, 26615, 279, 7916, 1339, 16, 8771, 598, 7447, 8395, 327, 365, 6315, 4...
values = column.set_values(values=flags, selection_valid=selection_valid)
column.set_values(values=flags, selection_valid=selection_valid)
def run(args, label="R-free-flags"): assert len(args) == 1 input_file_name = args[0] output_file_name = "free_flipped_"+os.path.basename(input_file_name) print "Reading file:", input_file_name mtz_obj = iotbx.mtz.object(file_name=input_file_name) column = mtz_obj.get_column(label=label) selection_valid = column.selecti...
a721c5658cf83658d8d69d9278de142de69a5108 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/696/a721c5658cf83658d8d69d9278de142de69a5108/mtz_free_flipper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 1968, 16, 1433, 1546, 54, 17, 9156, 17, 7133, 6, 4672, 1815, 562, 12, 1968, 13, 422, 404, 810, 67, 768, 67, 529, 273, 833, 63, 20, 65, 876, 67, 768, 67, 529, 273, 315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 1968, 16, 1433, 1546, 54, 17, 9156, 17, 7133, 6, 4672, 1815, 562, 12, 1968, 13, 422, 404, 810, 67, 768, 67, 529, 273, 833, 63, 20, 65, 876, 67, 768, 67, 529, 273, 315, ...
def generate_help (header=None):
def generate_help (self, header=None):
def generate_help (header=None): """Generate help text (a list of strings, one per suggested line of output) from the option table for this FancyGetopt object."""
66bf4462730b95dd23cfecb7ac8ecfa01a467d46 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/66bf4462730b95dd23cfecb7ac8ecfa01a467d46/fancy_getopt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 5201, 261, 2890, 16, 1446, 33, 7036, 4672, 3536, 4625, 2809, 977, 261, 69, 666, 434, 2064, 16, 1245, 1534, 22168, 980, 434, 876, 13, 628, 326, 1456, 1014, 364, 333, 478, 1251...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2103, 67, 5201, 261, 2890, 16, 1446, 33, 7036, 4672, 3536, 4625, 2809, 977, 261, 69, 666, 434, 2064, 16, 1245, 1534, 22168, 980, 434, 876, 13, 628, 326, 1456, 1014, 364, 333, 478, 1251...
sql = ';\n' + join_sql
sql += ';\n' + join_sql
def createTableSQL(cls, createJoinTables=True, createIndexes=True, connection=None): conn = connection or cls._connection sql, constraints = conn.createTableSQL(cls) if createJoinTables: join_sql = cls.createJoinTablesSQL(connection=conn) if join_sql: sql = ';\n' + join_sql if createIndexes: index_sql = cls.createIndex...
ffe33fc407e01e16d4d5ff4f51cb8a523bb98e13 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6718/ffe33fc407e01e16d4d5ff4f51cb8a523bb98e13/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19565, 3997, 12, 6429, 16, 752, 4572, 6905, 33, 5510, 16, 752, 8639, 33, 5510, 16, 1459, 33, 7036, 4672, 1487, 273, 1459, 578, 2028, 6315, 4071, 1847, 16, 6237, 273, 1487, 18, 2640, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19565, 3997, 12, 6429, 16, 752, 4572, 6905, 33, 5510, 16, 752, 8639, 33, 5510, 16, 1459, 33, 7036, 4672, 1487, 273, 1459, 578, 2028, 6315, 4071, 1847, 16, 6237, 273, 1487, 18, 2640, 13...
self.oldItems = set()
self.remember_old_items()
def update(self): self.ufeed.confirm_db_thread() if not self.ufeed.id_exists(): return if self.updating: return self.oldItems = set() for url in self.urls: etag = self.etag.get(url) modified = self.modified.get(url) self.download_dc[url] = grabURL(url, lambda x, url=url: self._updateCallback(x, url), lambda x, url=url:...
3c3b6870a8d2a53770dbfe886ab2230073ce65f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/3c3b6870a8d2a53770dbfe886ab2230073ce65f7/feed.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 365, 18, 696, 73, 329, 18, 10927, 67, 1966, 67, 5930, 1435, 309, 486, 365, 18, 696, 73, 329, 18, 350, 67, 1808, 13332, 327, 309, 365, 18, 5533, 1776, 30, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 365, 18, 696, 73, 329, 18, 10927, 67, 1966, 67, 5930, 1435, 309, 486, 365, 18, 696, 73, 329, 18, 350, 67, 1808, 13332, 327, 309, 365, 18, 5533, 1776, 30, 327, ...
trigger = IntervalTrigger(interval, start_date) return self._add_simple_job(trigger, func, args, kwargs, **options)
trigger = IntervalTrigger(interval, repeat, start_date) return self._add_simple_job(trigger, func, args, kwargs)
def add_interval_job(self, func, weeks=0, days=0, hours=0, minutes=0, seconds=0, start_date=None, args=None, kwargs=None, **options): """ Adds a job to be completed on specified intervals.
6dd2e2b8f529c53f3b95282212a8546d72aaec81 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1127/6dd2e2b8f529c53f3b95282212a8546d72aaec81/scheduler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 6624, 67, 4688, 12, 2890, 16, 1326, 16, 17314, 33, 20, 16, 4681, 33, 20, 16, 7507, 33, 20, 16, 6824, 33, 20, 16, 3974, 33, 20, 16, 787, 67, 712, 33, 7036, 16, 833, 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, 527, 67, 6624, 67, 4688, 12, 2890, 16, 1326, 16, 17314, 33, 20, 16, 4681, 33, 20, 16, 7507, 33, 20, 16, 6824, 33, 20, 16, 3974, 33, 20, 16, 787, 67, 712, 33, 7036, 16, 833, 33, ...
print "Clean existing stuff" run("msdev", "rapidsvn.dsw /MAKE ALL /CLEAN") print "Build svncpp" run("msdev", "src\svncpp\svncpp.dsp /MAKE ALL") print "Build rapidsvn" run("msdev", "rapidsvn.dsp /MAKE ALL")
print "Rebuild rapidsvn" run("msdev", "rapidsvn.dsw /MAKE ALL /REBUILD")
def buildApplication(): print "Clean existing stuff" run("msdev", "rapidsvn.dsw /MAKE ALL /CLEAN") print "Build svncpp" run("msdev", "src\svncpp\svncpp.dsp /MAKE ALL") print "Build rapidsvn" run("msdev", "rapidsvn.dsp /MAKE ALL")
e58cc8ee377d77c7314c8425d495ee745b72eb0b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9898/e58cc8ee377d77c7314c8425d495ee745b72eb0b/create_nightly.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 3208, 13332, 1172, 315, 426, 3510, 767, 84, 2232, 25031, 6, 1086, 2932, 959, 5206, 3113, 315, 1266, 2232, 25031, 18, 2377, 91, 342, 5535, 6859, 8061, 342, 862, 20215, 7923, 282, 2,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 3208, 13332, 1172, 315, 426, 3510, 767, 84, 2232, 25031, 6, 1086, 2932, 959, 5206, 3113, 315, 1266, 2232, 25031, 18, 2377, 91, 342, 5535, 6859, 8061, 342, 862, 20215, 7923, 282, 2,...
path = unicode(realpath(gnomevfs.get_local_path_from_uri(item.get_uri())))
path = realpath(unicode(gnomevfs.get_local_path_from_uri(item.get_uri()), "utf-8"))
def get_file_items(self, window, items): """ Menu activated with items selected. Nautilus also calls this function when rendering submenus, even though this is not needed since the entire menu has already been returned. Note that calling C{nautilusVFSFile.invalidate_extension_info()} will also cause get_file_items to ...
5c5baa05e66fe2061e7eca7a2e64e23766409de3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5119/5c5baa05e66fe2061e7eca7a2e64e23766409de3/NautilusSvn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 768, 67, 3319, 12, 2890, 16, 2742, 16, 1516, 4672, 3536, 9809, 14892, 598, 1516, 3170, 18, 16350, 1367, 407, 2546, 4097, 333, 445, 1347, 9782, 720, 26065, 16, 5456, 11376, 333, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 768, 67, 3319, 12, 2890, 16, 2742, 16, 1516, 4672, 3536, 9809, 14892, 598, 1516, 3170, 18, 16350, 1367, 407, 2546, 4097, 333, 445, 1347, 9782, 720, 26065, 16, 5456, 11376, 333, ...
row['recid'],
recID,
def tmpl_detailed_record_statistics(self, recID, ln, citinglist, citationhistory, cociting, downloadsimilarity, downloadhistory, viewsimilarity): """Returns the statistics page of a record
be3065e7f2472be568571e003c15ed067ef57bb8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/be3065e7f2472be568571e003c15ed067ef57bb8/websearch_templates.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 72, 6372, 67, 3366, 67, 14438, 12, 2890, 16, 1950, 734, 16, 7211, 16, 276, 305, 310, 1098, 16, 21145, 8189, 16, 276, 504, 305, 310, 16, 4224, 22985, 560, 16, 4224, 8189, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10720, 67, 72, 6372, 67, 3366, 67, 14438, 12, 2890, 16, 1950, 734, 16, 7211, 16, 276, 305, 310, 1098, 16, 21145, 8189, 16, 276, 504, 305, 310, 16, 4224, 22985, 560, 16, 4224, 8189, 1...
p.feed(""" """)
p.feed("")
def _broken (): p = HtmlPrinter() p.feed(""" """) p.flush()
565cd78c4edea6916e60976b5fa0570f88e50d95 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/565cd78c4edea6916e60976b5fa0570f88e50d95/htmllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 70, 19906, 1832, 30, 293, 273, 5430, 12149, 1435, 293, 18, 7848, 2932, 7923, 293, 18, 11330, 1435, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 70, 19906, 1832, 30, 293, 273, 5430, 12149, 1435, 293, 18, 7848, 2932, 7923, 293, 18, 11330, 1435, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
regexp=None, nocase=None, count=None):
regexp=None, nocase=None, count=None, elide=None):
def search(self, pattern, index, stopindex=None, forwards=None, backwards=None, exact=None, regexp=None, nocase=None, count=None): """Search PATTERN beginning from INDEX until STOPINDEX. Return the index of the first character of a match or an empty string.""" args = [self._w, 'search'] if forwards: args.append('-forwa...
038cad7ee439f1f056170b0c97144cbdb6df6e41 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/038cad7ee439f1f056170b0c97144cbdb6df6e41/Tkinter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 12, 2890, 16, 1936, 16, 770, 16, 2132, 1615, 33, 7036, 16, 24578, 33, 7036, 16, 12727, 33, 7036, 16, 5565, 33, 7036, 16, 7195, 33, 7036, 16, 30601, 448, 33, 7036, 16, 1056, 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, 1623, 12, 2890, 16, 1936, 16, 770, 16, 2132, 1615, 33, 7036, 16, 24578, 33, 7036, 16, 12727, 33, 7036, 16, 5565, 33, 7036, 16, 7195, 33, 7036, 16, 30601, 448, 33, 7036, 16, 1056, 33,...
w['condition'].set_markup("<i>%s</i>" % self._conditions[0])
w['condition'].set_markup("<i>%s</i>" % self._conditions[0])
def set_details(self, item=None):#{{{ from loan import get_loan_info, get_loan_history if item is None: item = {} if item.has_key('movie_id') and item['movie_id']: self._movie_id = item['movie_id'] else: self._movie_id = None w = self.widgets['movie'] if item.has_key('number') and item['number']: w['number'].set_text(...
6bf3ef37d253dfa0b2e01515cabf753b1818bcf3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2687/6bf3ef37d253dfa0b2e01515cabf753b1818bcf3/main_treeview.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 6395, 12, 2890, 16, 761, 33, 7036, 4672, 3642, 12187, 628, 28183, 1930, 336, 67, 383, 304, 67, 1376, 16, 336, 67, 383, 304, 67, 8189, 309, 761, 353, 599, 30, 761, 273, 2618,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6395, 12, 2890, 16, 761, 33, 7036, 4672, 3642, 12187, 628, 28183, 1930, 336, 67, 383, 304, 67, 1376, 16, 336, 67, 383, 304, 67, 8189, 309, 761, 353, 599, 30, 761, 273, 2618,...
self.conn = sqlite.connect(database=db)
self.conn = sqlite.connect(database=db, detect_types=sqlite.PARSE_DECLTYPES)
def _createNewDB(self, db): self.conn = sqlite.connect(database=db) c = self.conn.cursor() c.execute("CREATE TABLE kv (key TEXT, value TEXT, time TIMESTAMP, PRIMARY KEY (key, value))") c.execute("CREATE INDEX kv_key ON kv(key)") c.execute("CREATE INDEX kv_timestamp ON kv(time)") c.execute("CREATE TABLE nodes (id TEXT P...
40fe12dea0ea3d40eff65f314365617d2568a979 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/665/40fe12dea0ea3d40eff65f314365617d2568a979/db.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 1908, 2290, 12, 2890, 16, 1319, 4672, 365, 18, 4646, 273, 16184, 18, 3612, 12, 6231, 33, 1966, 16, 5966, 67, 2352, 33, 19460, 18, 21045, 67, 23956, 10564, 13, 276, 273, 365,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 1908, 2290, 12, 2890, 16, 1319, 4672, 365, 18, 4646, 273, 16184, 18, 3612, 12, 6231, 33, 1966, 16, 5966, 67, 2352, 33, 19460, 18, 21045, 67, 23956, 10564, 13, 276, 273, 365,...
if p.usesShmem(): self.cls.addstmts(self.makeShmemIface())
def makeHandlerMethod(name, switch, hasReply, dispatches=0): params = [ Decl(Type('Message', const=1, ref=1), msgvar.name) ] if hasReply: params.append(Decl(Type('Message', ref=1, ptr=1), replyvar.name)) method = MethodDefn(MethodDecl(name, virtual=True, params=params, ret=_Result.Type())) if dispatches: routevar = Ex...
3241744babea6529a09561174f52c9f4fe8ec4e6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/3241744babea6529a09561174f52c9f4fe8ec4e6/lower.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 1503, 1305, 12, 529, 16, 1620, 16, 711, 7817, 16, 3435, 281, 33, 20, 4672, 859, 273, 306, 16110, 12, 559, 2668, 1079, 2187, 1866, 33, 21, 16, 1278, 33, 21, 3631, 1234, 1401, 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, 1221, 1503, 1305, 12, 529, 16, 1620, 16, 711, 7817, 16, 3435, 281, 33, 20, 4672, 859, 273, 306, 16110, 12, 559, 2668, 1079, 2187, 1866, 33, 21, 16, 1278, 33, 21, 3631, 1234, 1401, 18...
del self.becache1[infohash][myid] del self.becache2[infohash][myid]
try: del self.becache1[infohash][myid] del self.becache2[infohash][myid] except KeyError: pass
def get(self, connection, path, headers): try: (scheme, netloc, path, pars, query, fragment) = urlparse(path) if self.uq_broken == 1: path = path.replace('+',' ') query = query.replace('+',' ') path = unquote(path)[1:] params = {} for s in query.split('&'): if s != '': i = s.index('=') params[unquote(s[:i])] = unquote(...
7dc4605877807016e4463e74ac836380ff986189 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4538/7dc4605877807016e4463e74ac836380ff986189/track.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 1459, 16, 589, 16, 1607, 4672, 775, 30, 261, 9068, 16, 17345, 16, 589, 16, 13249, 16, 843, 16, 5481, 13, 273, 15185, 12, 803, 13, 309, 365, 18, 89, 85, 67, 70, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 1459, 16, 589, 16, 1607, 4672, 775, 30, 261, 9068, 16, 17345, 16, 589, 16, 13249, 16, 843, 16, 5481, 13, 273, 15185, 12, 803, 13, 309, 365, 18, 89, 85, 67, 70, ...
((self.lines[linenum].startswith('--- ') and \ self.lines[linenum + 1].startswith('+++ ')) or \ (self.lines[linenum].startswith('*** ') and \ self.lines[linenum + 1].startswith('--- '))):
((self.lines[linenum].startswith('--- ') and self.lines[linenum + 1].startswith('+++ ')) or (self.lines[linenum].startswith('*** ') and self.lines[linenum + 1].startswith('--- ') and not self.lines[linenum].endswith(" ****"))):
def parse_diff_header(self, linenum, info): """ Parses part of a diff beginning at the specified line number, trying to find a standard diff header.
26f3bb2f62cc9a5e2f2de0ed9221989c846df3ce /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1600/26f3bb2f62cc9a5e2f2de0ed9221989c846df3ce/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 5413, 67, 3374, 12, 2890, 16, 4739, 7924, 16, 1123, 4672, 3536, 2280, 2420, 1087, 434, 279, 3122, 8435, 622, 326, 1269, 980, 1300, 16, 8374, 358, 1104, 279, 4529, 3122, 1446, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 5413, 67, 3374, 12, 2890, 16, 4739, 7924, 16, 1123, 4672, 3536, 2280, 2420, 1087, 434, 279, 3122, 8435, 622, 326, 1269, 980, 1300, 16, 8374, 358, 1104, 279, 4529, 3122, 1446, ...
content = "\n".join([ElementTree.tostring(x) for x in node.getchildren()])
content = [[x.items(), x.text] for x in node.getchildren()]
def _get_skipped_lines_response(rows, id_before, id_after, where, context): """Helper function that creates a Response object for skipped lines""" response_rows = [] id_before_start = int(id_before) id_after_end = int(id_after) if context is not None: id_before_end = id_before_start+context id_after_start = id_after_en...
e29cfb26a44b10d537793b398b805fefafe59e18 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/476/e29cfb26a44b10d537793b398b805fefafe59e18/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 25346, 67, 3548, 67, 2740, 12, 3870, 16, 612, 67, 5771, 16, 612, 67, 5205, 16, 1625, 16, 819, 4672, 3536, 2276, 445, 716, 3414, 279, 2306, 733, 364, 9700, 2362, 8395, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 25346, 67, 3548, 67, 2740, 12, 3870, 16, 612, 67, 5771, 16, 612, 67, 5205, 16, 1625, 16, 819, 4672, 3536, 2276, 445, 716, 3414, 279, 2306, 733, 364, 9700, 2362, 8395, 7...
print e
print e
def scrobbler_do_post(self): for i in range(0,3): if not self.scrob_post: return if len(self.scrob_post.cache) == 0: return try: self.scrob_post.post() except audioscrobbler.AudioScrobblerConnectionError, e: print e pass time.sleep(10)
2d5074cab475c83651a769096af105d9e13e1b31 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2312/2d5074cab475c83651a769096af105d9e13e1b31/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 888, 303, 9897, 749, 67, 2896, 67, 2767, 12, 2890, 4672, 364, 277, 316, 1048, 12, 20, 16, 23, 4672, 309, 486, 365, 18, 1017, 303, 70, 67, 2767, 30, 327, 309, 562, 12, 2890, 18, 101...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 888, 303, 9897, 749, 67, 2896, 67, 2767, 12, 2890, 4672, 364, 277, 316, 1048, 12, 20, 16, 23, 4672, 309, 486, 365, 18, 1017, 303, 70, 67, 2767, 30, 327, 309, 562, 12, 2890, 18, 101...
cr.execute("select ir_model_data.name from sale_order inner join ir_model_data on sale_order.id = ir_model_data.res_id where ir_model_data.model='sale.order' and ir_model_data.external_referential_id NOTNULL order by ir_model_data.write_date DESC;")
cr.execute("select ir_model_data.name from sale_order inner join ir_model_data on sale_order.id = ir_model_data.res_id where ir_model_data.model='sale.order' and sale_order.shop_id=%s and ir_model_data.external_referential_id NOTNULL order by ir_model_data.write_date DESC;" % shop.id)
def import_orders(self, cr, uid, ids, ctx): for shop in self.browse(cr, uid, ids): ctx['conn_obj'] = self.external_connection(cr, uid, shop.referential_id) defaults = { 'pricelist_id':self._get_pricelist(cr, uid, shop), 'shop_id': shop.id, 'picking_policy': shop.picking_policy, 'order_policy': shop.order_policy, 'invoi...
e2752b0eaa136c26340628bee91b674d7413db27 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/e2752b0eaa136c26340628bee91b674d7413db27/sale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 9972, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 1103, 4672, 364, 12122, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 4672, 1103, 3292, 4646, 67, 2603, 3546, 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, 1930, 67, 9972, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 1103, 4672, 364, 12122, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 4672, 1103, 3292, 4646, 67, 2603, 3546, 273, 365,...
self.log.debug('===========>In process CE result') self.log.debug(result)
if not result['OK']: self.log.warn('===========>In process CE result NOT OK') self.log.debug(result) else: self.log.debug('InProcess CE result OK')
def submitJob(self,executableFile,jdl,localID): """ Method to submit job, should be overridden in sub-class. """ if not os.access(executableFile, 5): os.chmod(executableFile,0755) filePath = os.path.abspath(executableFile)
8c41511d01a2d8300e9d92e92578d9732367df7f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/8c41511d01a2d8300e9d92e92578d9732367df7f/InProcessComputingElement.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4879, 2278, 12, 2890, 16, 17751, 812, 16, 78, 5761, 16, 3729, 734, 4672, 3536, 2985, 358, 4879, 1719, 16, 1410, 506, 11000, 316, 720, 17, 1106, 18, 3536, 309, 486, 1140, 18, 3860, 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, 4879, 2278, 12, 2890, 16, 17751, 812, 16, 78, 5761, 16, 3729, 734, 4672, 3536, 2985, 358, 4879, 1719, 16, 1410, 506, 11000, 316, 720, 17, 1106, 18, 3536, 309, 486, 1140, 18, 3860, 12, ...
tc_session.save_or_update(r)
tc_session.add(r)
def _update_db(self, idlist): for idhex in idlist: if idhex in self.consensus.routers: rc = self.consensus.routers[idhex] r = Router.query.filter_by(idhex=rc.idhex).first() if r and r.orhash == rc.orhash: # We already have it stored. (Possible spurious NEWDESC) continue
c8ad6cda0735bca71a66e2ae8dc82c8034ffc7ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3224/c8ad6cda0735bca71a66e2ae8dc82c8034ffc7ce/SQLSupport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2725, 67, 1966, 12, 2890, 16, 612, 1098, 4672, 364, 612, 7118, 316, 612, 1098, 30, 309, 612, 7118, 316, 365, 18, 29220, 18, 7028, 414, 30, 4519, 273, 365, 18, 29220, 18, 7028, 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, 389, 2725, 67, 1966, 12, 2890, 16, 612, 1098, 4672, 364, 612, 7118, 316, 612, 1098, 30, 309, 612, 7118, 316, 365, 18, 29220, 18, 7028, 414, 30, 4519, 273, 365, 18, 29220, 18, 7028, 4...
yield SectFat(self, "difat", 0, NB_DIFAT, "Double Indirection FAT")
yield DIFat(self, "difat", header["db_start"].value, header["db_count"].value, "Double Indirection FAT")
def createFields(self): # Signature yield Bytes(self, "ole_id", 8, "OLE object signature")
0bd456007e76a497bfd7c6d01b57bc8bd9650ccd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/0bd456007e76a497bfd7c6d01b57bc8bd9650ccd/ole2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2314, 12, 2890, 4672, 468, 9249, 2824, 5985, 12, 2890, 16, 315, 790, 67, 350, 3113, 1725, 16, 315, 51, 900, 733, 3372, 7923, 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, 752, 2314, 12, 2890, 4672, 468, 9249, 2824, 5985, 12, 2890, 16, 315, 790, 67, 350, 3113, 1725, 16, 315, 51, 900, 733, 3372, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -10...
raise osv.except_osv('Warning !', 'Base different !')
raise osv.except_osv('Warning !', 'Tax base different !\nClick on compute to update tax base')
def action_move_create(self, cr, uid, ids, *args): ait_obj = self.pool.get('account.invoice.tax') cur_obj = self.pool.get('res.currency') for inv in self.browse(cr, uid, ids): if inv.move_id: continue if inv.type in ('in_invoice', 'in_refund') and not inv.check_total == inv.amount_total: raise osv.except_osv('Bad total...
86847b3370ca457d5f8cc227ed47f99cc5991118 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/86847b3370ca457d5f8cc227ed47f99cc5991118/invoice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 67, 8501, 67, 2640, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 380, 1968, 4672, 279, 305, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 16119, 18, 8066, 6134, 662, 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, 1301, 67, 8501, 67, 2640, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 380, 1968, 4672, 279, 305, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 16119, 18, 8066, 6134, 662, 67...
self.send_cmd("GET") parts = self.read_reply() if parts[0] == "ERR": print "At data length %d" % l, print "Error in GET: %s" % ": ".join(parts[1:]) failures.setdefault("GET", []).append(data) continue if len(parts) < 2 or not parts[1].strip():
res, job = self.get() if res < 0:
def test_single_task_life_cycle(self): submitted = {} executing = [] failures = {} s = self.socket self.send_cmd("DROPQ") self.read_reply() for l in [0, 1, 4, 16, 63, 64, 65, 2047, 2048, 2049, 2050, 6505, 16*1024-8, 64*1024, 1024*1024-4]: if l > self.params['max_input_size']: continue if l == 6505: data = file("sb_job_...
2f9dbacc4a757419aaeb266e706796dfb9dbc012 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/310/2f9dbacc4a757419aaeb266e706796dfb9dbc012/test_netschedule_smoke.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 7526, 67, 4146, 67, 10256, 73, 67, 13946, 12, 2890, 4672, 9638, 273, 2618, 11274, 273, 5378, 11720, 273, 2618, 272, 273, 365, 18, 7814, 365, 18, 4661, 67, 4172, 2932, 18768, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7526, 67, 4146, 67, 10256, 73, 67, 13946, 12, 2890, 4672, 9638, 273, 2618, 11274, 273, 5378, 11720, 273, 2618, 272, 273, 365, 18, 7814, 365, 18, 4661, 67, 4172, 2932, 18768, ...
"""Returns the Variable dependency graph, after updating it with child
"""Returns the Variable dependency graph, after updating it with child io_graph
def get_var_graph(self): """Returns the Variable dependency graph, after updating it with child info if necessary. """ if self._need_child_io_update: vargraph = self._var_graph childiographs = self._child_io_graphs for childname,val in childiographs.items(): graph = getattr(self, childname).get_io_graph() if graph is n...
74f73ce1c97e5f29b38841f30fe4c3a318d6f410 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12610/74f73ce1c97e5f29b38841f30fe4c3a318d6f410/assembly.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1401, 67, 4660, 12, 2890, 4672, 3536, 1356, 326, 7110, 4904, 2667, 16, 1839, 9702, 518, 598, 1151, 2527, 67, 4660, 1123, 309, 4573, 18, 3536, 309, 365, 6315, 14891, 67, 3624, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1401, 67, 4660, 12, 2890, 4672, 3536, 1356, 326, 7110, 4904, 2667, 16, 1839, 9702, 518, 598, 1151, 2527, 67, 4660, 1123, 309, 4573, 18, 3536, 309, 365, 6315, 14891, 67, 3624, ...
def main(dest_dir=None):
def command_line(): """Process the command line and return the options""" usage = ("usage: %prog [options] [destination]\n" "\n" "Assemble the Python 2.5 prebuilt dependencies directory. The\n" "default destination is .\\prebuilt .\n" "\n" "At startup this program may prompt for missing information.\n" "Be aware of t...
def main(dest_dir=None): # Top level directories. if dest_dir is None: dest_dir = prebuilt_dir if re.match(r'([A-Za-z]:){0,1}[^"<>:|?*]+$', dest_dir) is None: print "Invalid directory path name %s" % dest_dir return 1 dest_dir = os.path.abspath(dest_dir) if os.path.isdir(dest_dir): if not confirm("Directory %s already ...
3a57fabbac37b72c8a97109963dbd2cf0046464f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1298/3a57fabbac37b72c8a97109963dbd2cf0046464f/make_prebuilt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1652, 1296, 67, 1369, 13332, 3536, 2227, 326, 1296, 980, 471, 327, 326, 702, 8395, 225, 4084, 273, 7566, 9167, 30, 738, 14654, 306, 2116, 65, 306, 10590, 13944, 82, 6, 1548, 82, 6, 315,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1652, 1296, 67, 1369, 13332, 3536, 2227, 326, 1296, 980, 471, 327, 326, 702, 8395, 225, 4084, 273, 7566, 9167, 30, 738, 14654, 306, 2116, 65, 306, 10590, 13944, 82, 6, 1548, 82, 6, 315,...
val2 = 0
def PrivateRoomsSort(self, model, iter1, iter2, column): try: val1 = int(model.get_value(iter1, column)) + 1 private1 = int(model.get_value(iter1, 3)) * 10000 except: val1 = 0 private1 = 0 try: val2 = int(model.get_value(iter2, column)) + 1 private2 = int(model.get_value(iter2, 3)) * 10000 except: val2 = 0 private2 = 0...
3461deb06acecf71d609bd51524fb250228a39af /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8738/3461deb06acecf71d609bd51524fb250228a39af/chatrooms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8726, 13646, 87, 4416, 12, 2890, 16, 938, 16, 1400, 21, 16, 1400, 22, 16, 1057, 4672, 775, 30, 1244, 21, 273, 509, 12, 2284, 18, 588, 67, 1132, 12, 2165, 21, 16, 1057, 3719, 397, 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, 8726, 13646, 87, 4416, 12, 2890, 16, 938, 16, 1400, 21, 16, 1400, 22, 16, 1057, 4672, 775, 30, 1244, 21, 273, 509, 12, 2284, 18, 588, 67, 1132, 12, 2165, 21, 16, 1057, 3719, 397, 4...
loadorder().update(None)
main()
def usage(status): print _["Usage"] sys.exit(status)
0c9007da0c07e550781c18146d5a05ade578dced /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2827/0c9007da0c07e550781c18146d5a05ade578dced/mlox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 12, 2327, 4672, 1172, 389, 9614, 5357, 11929, 2589, 18, 8593, 12, 2327, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 12, 2327, 4672, 1172, 389, 9614, 5357, 11929, 2589, 18, 8593, 12, 2327, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.execute("tr-df", glob.glob("tracks/atom.pos.bond.???????.???????") + ["--bin-tracks", "1.0*A", "1.2*A", "20", "tracks/atom.pos.bond.df"])
self.execute("tr-df", glob.glob("tracks/atom.bond.pos.???????.???????") + ["--bin-tracks", "1.0*A", "1.2*A", "20", "tracks/atom.bond.pos.df"])
def test_df(self): self.from_xyz("thf01", "pos") self.from_cp2k_ener("thf01") self.execute("tr-ic-psf", ['tracks/atom.pos', 'bond', '1,2,3,4', '5,6,7,8,9,10,11,12', os.path.join(input_dir, "thf01/init.psf")]) # ordinary df, no error bars self.execute("tr-df", glob.glob("tracks/atom.pos.bond.???????.???????") + ["1.0*A"...
180dc223c0ef9ebaa3b178bd709e0cacd8e29052 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11050/180dc223c0ef9ebaa3b178bd709e0cacd8e29052/commands.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2180, 12, 2890, 4672, 365, 18, 2080, 67, 17177, 2932, 451, 74, 1611, 3113, 315, 917, 7923, 365, 18, 2080, 67, 4057, 22, 79, 67, 708, 2932, 451, 74, 1611, 7923, 365, 18, 883...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2180, 12, 2890, 4672, 365, 18, 2080, 67, 17177, 2932, 451, 74, 1611, 3113, 315, 917, 7923, 365, 18, 2080, 67, 4057, 22, 79, 67, 708, 2932, 451, 74, 1611, 7923, 365, 18, 883...
if not pagetitles.has_key(value):
if value not in pagetitles:
def retrieve_broken_redirects(self): if self.xmlFilename == None: # retrieve information from the live wiki's maintenance page mysite = wikipedia.getSite() # broken redirect maintenance page's URL path = mysite.broken_redirects_address(default_limit = False) print 'Retrieving special page...' maintenance_txt = mysite.g...
c53546b222102432c98dc64c53fe404861d590cc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/c53546b222102432c98dc64c53fe404861d590cc/redirect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4614, 67, 70, 19906, 67, 22715, 12, 2890, 4672, 309, 365, 18, 2902, 5359, 422, 599, 30, 468, 4614, 1779, 628, 326, 8429, 9050, 1807, 18388, 1363, 312, 1900, 1137, 273, 21137, 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, 4614, 67, 70, 19906, 67, 22715, 12, 2890, 4672, 309, 365, 18, 2902, 5359, 422, 599, 30, 468, 4614, 1779, 628, 326, 8429, 9050, 1807, 18388, 1363, 312, 1900, 1137, 273, 21137, 18, 588, ...
return _get_history(scoped_path, self.authz, self.fs_ptr, self.pool, start, end, limit)
return _get_history(scoped_path, self.authz, self.fs_ptr, pool or self.pool, start, end, limit) def _previous_rev(self, rev, path='', pool=None): if rev > 1: try: for _, prev in self._history(path, 0, rev-1, limit=1, pool=pool): return prev except (SystemError, core.SubversionException): pass return None
def _history(self, path, start, end, limit=None): scoped_path = posixpath.join(self.scope[1:], path) return _get_history(scoped_path, self.authz, self.fs_ptr, self.pool, start, end, limit)
9c6ff2a43ba48c444878407af99f14bb4de378fd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/9c6ff2a43ba48c444878407af99f14bb4de378fd/svn_fs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8189, 12, 2890, 16, 589, 16, 787, 16, 679, 16, 1800, 33, 7036, 4672, 12523, 67, 803, 273, 16366, 803, 18, 5701, 12, 2890, 18, 4887, 63, 21, 30, 6487, 589, 13, 327, 389, 588, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8189, 12, 2890, 16, 589, 16, 787, 16, 679, 16, 1800, 33, 7036, 4672, 12523, 67, 803, 273, 16366, 803, 18, 5701, 12, 2890, 18, 4887, 63, 21, 30, 6487, 589, 13, 327, 389, 588, 6...
self.sl = ServiceLocator()
def __init__(self): self.errors = [] self.sl = ServiceLocator() self.title = ""
43a0f8d3d71fafa93f66b7de5c6311692b8b2ccd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5169/43a0f8d3d71fafa93f66b7de5c6311692b8b2ccd/aspyplayer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 4324, 273, 5378, 365, 18, 2649, 273, 1408, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 4324, 273, 5378, 365, 18, 2649, 273, 1408, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Returns the tableau object corresponding to t.
Returns the tableau object corresponding to t. A tableau in sage is a finite list of lists, whose lengths are weakly decreasing, or an empty list, representing the empty tableau. The entries of a tableau can be any sage object.
def Tableau(t): """ Returns the tableau object corresponding to t. Note that Sage uses the English convention for partitions and tableaux. EXAMPLES:: sage: t = Tableau([[1,2,3],[4,5]]); t [[1, 2, 3], [4, 5]] sage: t.shape() [3, 2] sage: t.is_standard() True """ if isinstance(t, Tableau_class): return t elif t in Tab...
37d130246c10e7b0112af26e2825fcf33c637b30 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/37d130246c10e7b0112af26e2825fcf33c637b30/tableau.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3555, 8377, 12, 88, 4672, 3536, 2860, 326, 1014, 8377, 733, 4656, 358, 268, 18, 225, 432, 1014, 8377, 316, 272, 410, 353, 279, 25922, 666, 434, 6035, 16, 8272, 10917, 854, 16046, 715, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3555, 8377, 12, 88, 4672, 3536, 2860, 326, 1014, 8377, 733, 4656, 358, 268, 18, 225, 432, 1014, 8377, 316, 272, 410, 353, 279, 25922, 666, 434, 6035, 16, 8272, 10917, 854, 16046, 715, ...
class ANGLEARC(EMR_UNKNOWN):
class _ANGLEARC(_EMR_UNKNOWN):
def __init__(self,style=BS_SOLID,hatch=HS_HORIZONTAL,color=0): EMR_UNKNOWN.__init__(self) self.lbStyle = style self.lbColor = color self.lbHatch = hatch
688318604ffe18a54bb261a3bde4bf6e1784a8de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8136/688318604ffe18a54bb261a3bde4bf6e1784a8de/pyemf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4060, 33, 12692, 67, 19815, 734, 16, 76, 505, 33, 13173, 67, 44, 20344, 16, 3266, 33, 20, 4672, 7141, 54, 67, 14737, 16186, 2738, 972, 12, 2890, 13, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4060, 33, 12692, 67, 19815, 734, 16, 76, 505, 33, 13173, 67, 44, 20344, 16, 3266, 33, 20, 4672, 7141, 54, 67, 14737, 16186, 2738, 972, 12, 2890, 13, 36...
connect(view, SIGNAL('loadFinished (bool)'),
connect(view, SIGNAL('loadFinished (bool)'),
def loadFinished(ok): if ok: self.go_to_section(view, article.section)
67a3086e42b74c3a053a1f3d5818584b41ba19d4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14305/67a3086e42b74c3a053a1f3d5818584b41ba19d4/qtui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 10577, 12, 601, 4672, 309, 1529, 30, 365, 18, 3240, 67, 869, 67, 3464, 12, 1945, 16, 7559, 18, 3464, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 10577, 12, 601, 4672, 309, 1529, 30, 365, 18, 3240, 67, 869, 67, 3464, 12, 1945, 16, 7559, 18, 3464, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
try: self.pythonexe.encode(file1.encoding) except UnicodeEncodeError: self.tearDown() raise self.skipTest( "Python executable path is not encodable to %s" % file1.encoding)
def setUp(self): BaseTestCase.setUp(self) self.cwd = os.getcwd() self.parent_dir = tempfile.mkdtemp() self.cgi_dir = os.path.join(self.parent_dir, 'cgi-bin') os.mkdir(self.cgi_dir) self.file1_path = None self.file2_path = None
3218c31429dfa88c6c4ab0980c1cf7a45bfa423e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/3218c31429dfa88c6c4ab0980c1cf7a45bfa423e/test_httpservers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 3360, 4709, 2449, 18, 542, 1211, 12, 2890, 13, 365, 18, 11089, 273, 1140, 18, 588, 11089, 1435, 365, 18, 2938, 67, 1214, 273, 13275, 18, 24816, 72, 5814, 1435, 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, 24292, 12, 2890, 4672, 3360, 4709, 2449, 18, 542, 1211, 12, 2890, 13, 365, 18, 11089, 273, 1140, 18, 588, 11089, 1435, 365, 18, 2938, 67, 1214, 273, 13275, 18, 24816, 72, 5814, 1435, 3...
check_element_rec (rectime, recnumber, recirule, recgpnum, 'state', 0.0, aline) if debug: print " state rec" return 1 ppmatch = gpflow_re.search(aline) if ppmatch: check_element_rec (rectime, recnumber, recirule, recgpnum, 'flow', 0.0, aline) if debug: print " flow rec" return 1 return 0 def match_singlegprec...
check_beam_rec (rectime, recnumber, 'forces', 0.0, line) if debug: print " local forces rec" continue return line
def match_gpsubrec (aline): global rectime, recnumber, recirule, recgpnum, debug pmatch=gpstress_re.search(aline) if pmatch: check_element_rec (rectime, recnumber, recirule, recgpnum, 'stresses', 0.0, aline) if debug: print " stress rec" return 1 ppmatch = gpstrain_re.search(aline) if ppmatch: check_element_rec (re...
aa37b2bdfae39b7dbc77c6303652ba62381c3298 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1573/aa37b2bdfae39b7dbc77c6303652ba62381c3298/extractor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 845, 67, 75, 1121, 373, 3927, 261, 287, 558, 4672, 2552, 4917, 494, 16, 1950, 2696, 16, 1950, 481, 725, 16, 1950, 6403, 2107, 16, 1198, 293, 1916, 33, 6403, 334, 663, 67, 266, 18, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 845, 67, 75, 1121, 373, 3927, 261, 287, 558, 4672, 2552, 4917, 494, 16, 1950, 2696, 16, 1950, 481, 725, 16, 1950, 6403, 2107, 16, 1198, 293, 1916, 33, 6403, 334, 663, 67, 266, 18, 30...
print "handle_UIMakeSound(self, channel, sound)", (self, channel, sound, x, y)
def handle_UIMakeSound(self, channel, sound, x, y): print "handle_UIMakeSound(self, channel, sound)", (self, channel, sound, x, y) self.sendSessions({ 'message': "UIMakeSound", 'channel': channel, 'sound': sound, 'x': x, 'y': y, })
1f18265c72b14ac3c3a23ebacc45570b2e215df3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12485/1f18265c72b14ac3c3a23ebacc45570b2e215df3/micropolisturbogearsengine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 57, 3445, 911, 24331, 12, 2890, 16, 1904, 16, 14190, 16, 619, 16, 677, 4672, 225, 365, 18, 4661, 13566, 12590, 296, 2150, 4278, 315, 57, 3445, 911, 24331, 3113, 296, 4327, 42...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 57, 3445, 911, 24331, 12, 2890, 16, 1904, 16, 14190, 16, 619, 16, 677, 4672, 225, 365, 18, 4661, 13566, 12590, 296, 2150, 4278, 315, 57, 3445, 911, 24331, 3113, 296, 4327, 42...
serviceString = str(ServiceReference(args))
serviceString = str(ServiceReference(args[0]))
def finishedChannelSelection(self, *args): if len(args): serviceString = str(ServiceReference(args)) if not self.alternatives.has_key(serviceString): self.alternatives[serviceString] = [] self.updateServices() self.selectService(serviceString) self.updateAlternatives()
655aa56e49589f1764e948b8328e61889c485747 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/655aa56e49589f1764e948b8328e61889c485747/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6708, 2909, 6233, 12, 2890, 16, 380, 1968, 4672, 309, 562, 12, 1968, 4672, 1156, 780, 273, 609, 12, 1179, 2404, 12, 1968, 63, 20, 22643, 309, 486, 365, 18, 16025, 8785, 18, 5332, 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, 6708, 2909, 6233, 12, 2890, 16, 380, 1968, 4672, 309, 562, 12, 1968, 4672, 1156, 780, 273, 609, 12, 1179, 2404, 12, 1968, 63, 20, 22643, 309, 486, 365, 18, 16025, 8785, 18, 5332, 67, ...
terminal_dep_handlers[BasisFunction] = get_basisfunction_deps
def get_basisfunction_deps(x): return basisfunction_deps[formdata.basisfunction_renumbering[x]]
b1b48c45bfffb609a40d14125016d63b2899726b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/624/b1b48c45bfffb609a40d14125016d63b2899726b/dependencies.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 23774, 915, 67, 14877, 12, 92, 4672, 327, 10853, 915, 67, 14877, 63, 687, 892, 18, 23774, 915, 67, 1187, 1226, 310, 63, 92, 13563, 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, 336, 67, 23774, 915, 67, 14877, 12, 92, 4672, 327, 10853, 915, 67, 14877, 63, 687, 892, 18, 23774, 915, 67, 1187, 1226, 310, 63, 92, 13563, 2, -100, -100, -100, -100, -100, -100, -100,...
elif target.item.hasscript( 'lock' ): if target.item.hastag('locked') and int(target.item.gettag('locked')) == 1: target.item.deltag('locked') else: target.item.settag('locked',1) char.soundeffect(0x241)
elif target.item.hasscript( 'lock' ) and target.item.hastag('lock'): door_lock = str(target.item.gettag('lock')) key_lock = str(key.gettag('lock')) if door_lock == key_lock: if target.item.hastag('locked') and int(target.item.gettag('locked')) == 1: target.item.deltag('locked') else: target.item.settag('locked',1) cha...
def lock_response(char, args, target): if len(args) != 1: return key = wolfpack.finditem(args[0]) if not key or not char.canreach(key,5): char.socket.clilocmessage(501661) return # Check for an item target. if not target.item or not char.canreach(target.item,5): char.socket.clilocmessage(501666) return if target.ite...
516c1fcdf800cd69abc81c17dada3a6bf321ca8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/516c1fcdf800cd69abc81c17dada3a6bf321ca8c/key.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2176, 67, 2740, 12, 3001, 16, 833, 16, 1018, 4672, 309, 562, 12, 1968, 13, 480, 404, 30, 327, 225, 498, 273, 341, 355, 74, 2920, 18, 4720, 1726, 12, 1968, 63, 20, 5717, 309, 486, 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, 2176, 67, 2740, 12, 3001, 16, 833, 16, 1018, 4672, 309, 562, 12, 1968, 13, 480, 404, 30, 327, 225, 498, 273, 341, 355, 74, 2920, 18, 4720, 1726, 12, 1968, 63, 20, 5717, 309, 486, 4...
if started_event: started_event.set()
def _dispatcher(self, started_event): while self._serving: # Let the master know we are alive already if started_event: started_event.set()
889021fd4bfc252b90931d30e3382168cad07607 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6792/889021fd4bfc252b90931d30e3382168cad07607/notify_out.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 18495, 12, 2890, 16, 5746, 67, 2575, 4672, 1323, 365, 6315, 550, 6282, 30, 468, 10559, 326, 4171, 5055, 732, 854, 13714, 1818, 309, 5746, 67, 2575, 30, 5746, 67, 2575, 18, 542, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 18495, 12, 2890, 16, 5746, 67, 2575, 4672, 1323, 365, 6315, 550, 6282, 30, 468, 10559, 326, 4171, 5055, 732, 854, 13714, 1818, 309, 5746, 67, 2575, 30, 5746, 67, 2575, 18, 542, 14...
self.vboxlayout3 = QtGui.QVBoxLayout(self.tab_3) self.vboxlayout3.setObjectName("vboxlayout3")
self.vboxlayout4 = QtGui.QVBoxLayout(self.tab_3) self.vboxlayout4.setObjectName("vboxlayout4")
def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(QtCore.QSize(QtCore.QRect(0,0,776,532).size()).expandedTo(MainWindow.minimumSizeHint())) MainWindow.setWindowIcon(QtGui.QIcon(" "))
63111e1c9754b5d54a0f7495871ccaf05c2651b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1108/63111e1c9754b5d54a0f7495871ccaf05c2651b1/main_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 12740, 3829, 4672, 12740, 3829, 18, 542, 16707, 2932, 6376, 3829, 7923, 12740, 3829, 18, 15169, 12, 23310, 4670, 18, 53, 1225, 12, 23310, 4670, 18, 53, 6120, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 12740, 3829, 4672, 12740, 3829, 18, 542, 16707, 2932, 6376, 3829, 7923, 12740, 3829, 18, 15169, 12, 23310, 4670, 18, 53, 1225, 12, 23310, 4670, 18, 53, 6120, 1...
sys.stdout.write( " You must properly setup the QTDIR environment variable!\n" )
sys.stdout.write( " You must properly setup the QTDIR environment variable or use --qt-directory parameter!\n" )
def checkQt(): sys.stdout.write("Checking QT Configuration:\n") if sys.platform == "win32": QMAKE_EXECUTABLE = "qmake.exe" else: QMAKE_EXECUTABLE = "qmake" sys.stdout.write( " Checking QTDIR enviroment variable: " ) if ( os.environ.has_key("QTDIR") and os.path.exists( os.environ["QTDIR"] ) ): sys.stdout.write( gree...
78484cd2a4d87b0d0e002bff43e1f469895e77f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/78484cd2a4d87b0d0e002bff43e1f469895e77f6/configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 23310, 13332, 2589, 18, 10283, 18, 2626, 2932, 14294, 2238, 56, 4659, 5581, 82, 7923, 309, 2589, 18, 9898, 422, 315, 8082, 1578, 6877, 2238, 5535, 6859, 67, 15271, 1693, 2782, 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, 866, 23310, 13332, 2589, 18, 10283, 18, 2626, 2932, 14294, 2238, 56, 4659, 5581, 82, 7923, 309, 2589, 18, 9898, 422, 315, 8082, 1578, 6877, 2238, 5535, 6859, 67, 15271, 1693, 2782, 273, ...
self.write(cr, uid, ids, {'state': 'uninstalled'})
self.write(cr, uid, ids, {'state': 'uninstalled', 'demo':False})
def button_install_cancel(self, cr, uid, ids, context={}): self.write(cr, uid, ids, {'state': 'uninstalled'}) return True
645b23c57702b08dff8279cd3ad4049ef07cc9fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12853/645b23c57702b08dff8279cd3ad4049ef07cc9fb/module.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3568, 67, 5425, 67, 10996, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 365, 18, 2626, 12, 3353, 16, 4555, 16, 3258, 16, 13666, 2019, 4278, 296, 318, 13435, 2187, 296,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3568, 67, 5425, 67, 10996, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 365, 18, 2626, 12, 3353, 16, 4555, 16, 3258, 16, 13666, 2019, 4278, 296, 318, 13435, 2187, 296,...
if l_obj is not None:
if l_obj is not None and l_obj != 'NULL':
def GetLayer(self,iLayer=0): # If given a layer name, scan for it. if type(iLayer).__name__ == 'str': layer_count = self.GetLayerCount() for i in range(layer_count): if self.GetLayer(i).GetName() == iLayer: return self.GetLayer(i) return None l_obj = _gdal.OGR_DS_GetLayer( self._o, iLayer) if l_obj is not None: return...
b7d449ee48f4c53c685bdaab9372c0c76d37109c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10289/b7d449ee48f4c53c685bdaab9372c0c76d37109c/ogr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 4576, 12, 2890, 16, 77, 4576, 33, 20, 4672, 468, 971, 864, 279, 3018, 508, 16, 4135, 364, 518, 18, 309, 618, 12, 77, 4576, 2934, 972, 529, 972, 422, 296, 701, 4278, 3018, 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, 968, 4576, 12, 2890, 16, 77, 4576, 33, 20, 4672, 468, 971, 864, 279, 3018, 508, 16, 4135, 364, 518, 18, 309, 618, 12, 77, 4576, 2934, 972, 529, 972, 422, 296, 701, 4278, 3018, 67, ...
bounds = [(),()]
bounds = [(),(), ()]
def calculateTilesAuto( points ):
8b5fef750b60a1c81dd107b5781cbdc2de6c7bd8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3985/8b5fef750b60a1c81dd107b5781cbdc2de6c7bd8/gpx2png.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4604, 27669, 4965, 12, 3143, 262, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4604, 27669, 4965, 12, 3143, 262, 30, 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, -10...
"""Construct the grid model and show as position references for cookies. The model is build around "pov" and has size of 2*"scale" on each of the (x, y, z) directions. This should be optimized latter. For "scale = 200", it takes about 1479623 loops. ---Huaicai """
"""Construct the grid model and show as position references for cookies. The model is build around "pov" and has size of 2*"scale" on each of the (x, y, z) directions. This should be optimized latter. For "scale = 200", it takes about 1479623 loops. ---Huaicai """
def drawGrid(scale, center, latticeType): """Construct the grid model and show as position references for cookies. The model is build around "pov" and has size of 2*"scale" on each of the (x, y, z) directions. This should be optimized latter. For "scale = 200", it takes about 1479623 loops. ---Huaicai """ glDisable(G...
d137aadae12afd03386c3c85863a6b2893ded503 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/d137aadae12afd03386c3c85863a6b2893ded503/drawer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 6313, 12, 5864, 16, 4617, 16, 16690, 559, 4672, 3536, 7249, 326, 3068, 938, 471, 2405, 487, 1754, 5351, 364, 7237, 18, 1021, 938, 353, 1361, 6740, 315, 84, 1527, 6, 471, 711, 963...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 6313, 12, 5864, 16, 4617, 16, 16690, 559, 4672, 3536, 7249, 326, 3068, 938, 471, 2405, 487, 1754, 5351, 364, 7237, 18, 1021, 938, 353, 1361, 6740, 315, 84, 1527, 6, 471, 711, 963...
known_files = set() for item in models.Item.toplevel_view(): if not item.get_feed().get_url().startswith("dtv:directoryfeed"): known_files.add(item.get_filename())
watched_folder_ids = tuple(f.id for f in Feed.watched_folder_view()) watched_folder_ids = ', '.join(str(id) for id in watched_folder_ids) known_files = set(os.path.normcase(row[0]) for row in models.Item.select('filename', "filename IS NOT NULL AND " "feed_id NOT IN (%s)" % watched_folder_ids))
def update(self): self.ufeed.confirm_db_thread()
2d64982943fe01bafc4279964abd4b24b5199346 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/2d64982943fe01bafc4279964abd4b24b5199346/feed.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 365, 18, 696, 73, 329, 18, 10927, 67, 1966, 67, 5930, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 365, 18, 696, 73, 329, 18, 10927, 67, 1966, 67, 5930, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
handle_typography.lower() == 'true'
handle_typography = handle_typography.lower() == 'true'
def handle_match(m): all = m.group() if not m.groups(): return used_signs[sign] offset = m.start() return all[:m.start(1) - offset] + \ used_signs[sign] + \ all[m.end(1) - offset:]
678e2888399ffd460bf93f3c3b0512f5b3612915 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12815/678e2888399ffd460bf93f3c3b0512f5b3612915/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 1916, 12, 81, 4672, 777, 273, 312, 18, 1655, 1435, 309, 486, 312, 18, 4650, 13332, 327, 1399, 67, 2977, 87, 63, 2977, 65, 1384, 273, 312, 18, 1937, 1435, 327, 777, 10531, 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, 1640, 67, 1916, 12, 81, 4672, 777, 273, 312, 18, 1655, 1435, 309, 486, 312, 18, 4650, 13332, 327, 1399, 67, 2977, 87, 63, 2977, 65, 1384, 273, 312, 18, 1937, 1435, 327, 777, 10531, 8...
if type(M) == type('d'):
if type(M) == type('d'):
def tri(N, M=None, k=0, typecode=None): """ returns a N-by-M matrix where all the diagonals starting from lower left corner up to the k-th are all ones. """ if M is None: M = N if type(M) == type('d'): typecode = M M = N m = greater_equal(subtract.outer(arange(N), arange(M)),-k) if typecode is None: return m else: retu...
53ae39e65068d51a5b7fc37529d2b031a755ed97 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/53ae39e65068d51a5b7fc37529d2b031a755ed97/basic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6882, 12, 50, 16, 490, 33, 7036, 16, 417, 33, 20, 16, 618, 710, 33, 7036, 4672, 3536, 1135, 279, 423, 17, 1637, 17, 49, 3148, 1625, 777, 326, 6643, 265, 1031, 5023, 628, 2612, 2002, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6882, 12, 50, 16, 490, 33, 7036, 16, 417, 33, 20, 16, 618, 710, 33, 7036, 4672, 3536, 1135, 279, 423, 17, 1637, 17, 49, 3148, 1625, 777, 326, 6643, 265, 1031, 5023, 628, 2612, 2002, ...
self.close_request(request)
self.shutdown_request(request)
def process_request_thread(self, request, client_address): """Same as in BaseServer but as a thread.
a41d6ca971b30010d1affa2725db9b5a8015dc33 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/a41d6ca971b30010d1affa2725db9b5a8015dc33/socketserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2293, 67, 5930, 12, 2890, 16, 590, 16, 1004, 67, 2867, 4672, 3536, 8650, 487, 316, 3360, 2081, 1496, 487, 279, 2650, 18, 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, 1207, 67, 2293, 67, 5930, 12, 2890, 16, 590, 16, 1004, 67, 2867, 4672, 3536, 8650, 487, 316, 3360, 2081, 1496, 487, 279, 2650, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
assert req.remote_user, 'Authentication information not available.'
if not req.remote_user: raise TracError(html("Authentication information not available. " "Please refer to the ", html.a('installation documentation', title="Configuring Authentication", href=req.href.wiki('TracInstall') + "
def _do_login(self, req): """Log the remote user in.
398e08d339261711b1903572d6c7f20bce47246c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/398e08d339261711b1903572d6c7f20bce47246c/auth.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 5819, 12, 2890, 16, 1111, 4672, 3536, 1343, 326, 2632, 729, 316, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 5819, 12, 2890, 16, 1111, 4672, 3536, 1343, 326, 2632, 729, 316, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
elif event.keyval == _VIEW_SOURCE_KEY_CODE:
elif gtk.gdk.keyval_name(event.keyval) == "XF86Start":
def _key_press_cb(self, widget, event): if event.state & gtk.gdk.CONTROL_MASK: if gtk.gdk.keyval_name(event.keyval) == "l": _logger.debug('keyboard: Add link: %s.' % self.current) self._add_link() return True elif gtk.gdk.keyval_name(event.keyval) == "u": _logger.debug('keyboard: Show source of the current page') self....
b82c0dc4f9ab489824071547e3d3b67aef94731b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6905/b82c0dc4f9ab489824071547e3d3b67aef94731b/webactivity.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 856, 67, 1028, 67, 7358, 12, 2890, 16, 3604, 16, 871, 4672, 309, 871, 18, 2019, 473, 22718, 18, 75, 2883, 18, 18248, 67, 11704, 30, 309, 22718, 18, 75, 2883, 18, 856, 1125, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 856, 67, 1028, 67, 7358, 12, 2890, 16, 3604, 16, 871, 4672, 309, 871, 18, 2019, 473, 22718, 18, 75, 2883, 18, 18248, 67, 11704, 30, 309, 22718, 18, 75, 2883, 18, 856, 1125, 67, ...
if os.path.isdir(spc_dir) and os.path.isdir(tmp_dir):
if not os.path.isdir(spc_dir): os.mkdir(spc_dir) if os.path.isdir(tmp_dir):
def restore_database(self): """Restore the database from backup
62dfd0acb0ca2864d58515b6834c0c478063f472 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14597/62dfd0acb0ca2864d58515b6834c0c478063f472/walmgr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5217, 67, 6231, 12, 2890, 4672, 3536, 10874, 326, 2063, 628, 5114, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5217, 67, 6231, 12, 2890, 4672, 3536, 10874, 326, 2063, 628, 5114, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self.intVars, self._intVars = r, self.intVars
self.intVars, self._intVars = r, self.intVars
def __prepare__(self): LP.__prepare__(self) r = [] if type(self.intVars) not in [list, tuple]: self.intVars = [self.intVars] if self.namedVariablesStyle: for iv in self.intVars: if self.fixedVars is not None and iv in self.fixedVars or\ self.optVars is not None and iv not in self.optVars: continue r1, r2 = self._oovars...
c1bb6fcf0d2c3a98fff8069825ff48bb1abc2888 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6196/c1bb6fcf0d2c3a98fff8069825ff48bb1abc2888/MILP.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9366, 972, 12, 2890, 4672, 511, 52, 16186, 9366, 972, 12, 2890, 13, 436, 273, 5378, 309, 618, 12, 2890, 18, 474, 5555, 13, 486, 316, 306, 1098, 16, 3193, 14542, 365, 18, 474, 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, 1001, 9366, 972, 12, 2890, 4672, 511, 52, 16186, 9366, 972, 12, 2890, 13, 436, 273, 5378, 309, 618, 12, 2890, 18, 474, 5555, 13, 486, 316, 306, 1098, 16, 3193, 14542, 365, 18, 474, 5...
self._get_index_items(doc.descr(), link, index)
self._get_term_index_items(doc.descr(), link, index)
def _extract_index(self): """ @return: A dictionary mapping from terms to lists of source documents. @rtype: C{dictionary} """ index = {} for (uid, doc) in self._docmap.items(): if (not self._show_private) and self._is_private(`uid`): continue if uid.is_function(): link = Link(`uid`, uid.module()) elif uid.is_method()...
7e1af2abc702612461ceeb001b4b551d49cb71d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/7e1af2abc702612461ceeb001b4b551d49cb71d3/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8004, 67, 1615, 12, 2890, 4672, 3536, 632, 2463, 30, 432, 3880, 2874, 628, 6548, 358, 6035, 434, 1084, 7429, 18, 632, 86, 723, 30, 385, 95, 15556, 97, 3536, 770, 273, 2618, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8004, 67, 1615, 12, 2890, 4672, 3536, 632, 2463, 30, 432, 3880, 2874, 628, 6548, 358, 6035, 434, 1084, 7429, 18, 632, 86, 723, 30, 385, 95, 15556, 97, 3536, 770, 273, 2618, 364, ...
reactor.connectTCP("127.0.0.1", "thisbetternotexist", MyClientFactory())
reactor.connectTCP("127.0.0.1", "thisbetternotexist", MyClientFactory())
def testConnectByServiceFail(self): try: reactor.connectTCP("127.0.0.1", "thisbetternotexist", MyClientFactory()) except error.ServiceNameUnknownError: return self.assert_(False, "connectTCP didn't raise ServiceNameUnknownError")
68998e21ef533677da748f03432912990acb38b1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/68998e21ef533677da748f03432912990acb38b1/test_tcp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 5215, 858, 1179, 3754, 12, 2890, 4672, 775, 30, 19178, 18, 3612, 13891, 2932, 14260, 18, 20, 18, 20, 18, 21, 3113, 315, 2211, 70, 278, 798, 352, 7398, 3113, 8005, 1227, 1733, 107...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5215, 858, 1179, 3754, 12, 2890, 4672, 775, 30, 19178, 18, 3612, 13891, 2932, 14260, 18, 20, 18, 20, 18, 21, 3113, 315, 2211, 70, 278, 798, 352, 7398, 3113, 8005, 1227, 1733, 107...
context, output, tal=not source, strictinsert=0, sourceAnnotations=sourceAnnotations)()
context, output, tal=not source, showtal=showtal, strictinsert=0, sourceAnnotations=sourceAnnotations)()
def pt_render(self, namespace, source=False, sourceAnnotations=False): """Render this Page Template""" self._cook_check() __traceback_supplement__ = (PageTemplateTracebackSupplement, self, namespace) if self._v_errors: raise PTRuntimeError(str(self._v_errors))
152863d711a66f7bc782b7116914ca537be9c53e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9743/152863d711a66f7bc782b7116914ca537be9c53e/pagetemplate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5818, 67, 5902, 12, 2890, 16, 1981, 16, 1084, 33, 8381, 16, 1084, 5655, 33, 8381, 4672, 3536, 3420, 333, 3460, 5035, 8395, 365, 6315, 29854, 67, 1893, 1435, 1001, 21696, 67, 2859, 4330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5818, 67, 5902, 12, 2890, 16, 1981, 16, 1084, 33, 8381, 16, 1084, 5655, 33, 8381, 4672, 3536, 3420, 333, 3460, 5035, 8395, 365, 6315, 29854, 67, 1893, 1435, 1001, 21696, 67, 2859, 4330, ...
def get_label( self ):
def get_label(self):
def get_label( self ): """Gets default label""" return self.get("label", self["name"] )
0ceea93f880b610f6ec05e7f6f0d32b2a4dd7e66 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11338/0ceea93f880b610f6ec05e7f6f0d32b2a4dd7e66/node.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1925, 12, 2890, 4672, 3536, 3002, 805, 1433, 8395, 327, 365, 18, 588, 2932, 1925, 3113, 365, 9614, 529, 11929, 262, 2, 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, 336, 67, 1925, 12, 2890, 4672, 3536, 3002, 805, 1433, 8395, 327, 365, 18, 588, 2932, 1925, 3113, 365, 9614, 529, 11929, 262, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
return
return
def write(self, data):
cada31e8208b1e7201f5afc9f9782089bec7ebe3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/cada31e8208b1e7201f5afc9f9782089bec7ebe3/binhex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 501, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 501, 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...
self.assertEquals(jdict['status'], 'new')
self.assertEquals(jdict['status'], 'completed')
def _done_job(self, job_id): self.assertEquals(type(job_id), str) jdict = self.dsage_server.get_job_by_id(job_id) self.assertEquals(jdict['status'], 'new') self.assertEquals(jdict['output'], 'Nothing.')
53db6e6d94620c51267e1f2f876662c701f8b791 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/53db6e6d94620c51267e1f2f876662c701f8b791/test_remote.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8734, 67, 4688, 12, 2890, 16, 1719, 67, 350, 4672, 365, 18, 11231, 8867, 12, 723, 12, 4688, 67, 350, 3631, 609, 13, 525, 1576, 273, 365, 18, 2377, 410, 67, 3567, 18, 588, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8734, 67, 4688, 12, 2890, 16, 1719, 67, 350, 4672, 365, 18, 11231, 8867, 12, 723, 12, 4688, 67, 350, 3631, 609, 13, 525, 1576, 273, 365, 18, 2377, 410, 67, 3567, 18, 588, 67, ...
if os.getloadavg()[1] < 10.0: return None
try: if os.getloadavg()[1] < 10.0: return None except AttributeError: pass
def process_request(self, request): if os.getloadavg()[1] < 10.0: # We don't care for less-than-crazy loads return None
1925b65b0b77cd050fbcbcf0609295c11a3d214f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12041/1925b65b0b77cd050fbcbcf0609295c11a3d214f/middleware.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2293, 12, 2890, 16, 590, 4672, 309, 1140, 18, 588, 945, 14141, 1435, 63, 21, 65, 411, 1728, 18, 20, 30, 468, 1660, 2727, 1404, 7671, 364, 5242, 17, 23483, 17, 71, 354, 2183...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1207, 67, 2293, 12, 2890, 16, 590, 4672, 309, 1140, 18, 588, 945, 14141, 1435, 63, 21, 65, 411, 1728, 18, 20, 30, 468, 1660, 2727, 1404, 7671, 364, 5242, 17, 23483, 17, 71, 354, 2183...
usage() sys.exit()
usage() sys.exit()
def main(): config = FliesConfig() server = config.get_config_value("server") project_id = config.get_config_value("project.id") iteration_id = config.get_config_value("project.iteration.id") user = config.get_config_value("user") apikey = config.get_config_value("apikey") name = '' desc = '' try: opts, args = getopt....
35e5b5a02d09bc7cbbde9159cf17cc6bb119cca4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12929/35e5b5a02d09bc7cbbde9159cf17cc6bb119cca4/flies.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 642, 273, 478, 549, 281, 809, 1435, 1438, 273, 642, 18, 588, 67, 1425, 67, 1132, 2932, 3567, 7923, 1984, 67, 350, 273, 642, 18, 588, 67, 1425, 67, 1132, 2932, 4406, 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, 2774, 13332, 642, 273, 478, 549, 281, 809, 1435, 1438, 273, 642, 18, 588, 67, 1425, 67, 1132, 2932, 3567, 7923, 1984, 67, 350, 273, 642, 18, 588, 67, 1425, 67, 1132, 2932, 4406, 18, ...
print "Dataset: %s" % self.inputDataset
print "Dataset: %s" % self.inputDataset.name()
def importConfigurationLibrary(self): """ _importConfigurationLibrary_
4f94ae9fd38060ba158b141dfa6fc533344c56e8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8887/4f94ae9fd38060ba158b141dfa6fc533344c56e8/RuntimeOfflineDQMSetup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 1750, 9313, 12, 2890, 4672, 3536, 389, 5666, 1750, 9313, 67, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 1750, 9313, 12, 2890, 4672, 3536, 389, 5666, 1750, 9313, 67, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
actual = collections.Counter(iter(actual_seq)) expected = collections.Counter(iter(expected_seq))
actual = collections.Counter(actual_seq) expected = collections.Counter(expected_seq)
def assertCountEqual(self, actual_seq, expected_seq, msg=None): """An unordered sequence specific comparison. It asserts that actual_seq and expected_seq have the same element counts. Equivalent to::
a070c8fe77663ed0a13fa349b2a7094267f195c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/a070c8fe77663ed0a13fa349b2a7094267f195c3/case.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 1380, 5812, 12, 2890, 16, 3214, 67, 5436, 16, 2665, 67, 5436, 16, 1234, 33, 7036, 4672, 3536, 979, 29573, 3102, 2923, 5826, 18, 2597, 26124, 716, 3214, 67, 5436, 471, 2665, 67, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 1380, 5812, 12, 2890, 16, 3214, 67, 5436, 16, 2665, 67, 5436, 16, 1234, 33, 7036, 4672, 3536, 979, 29573, 3102, 2923, 5826, 18, 2597, 26124, 716, 3214, 67, 5436, 471, 2665, 67, 5...
"\[ \xymatrix{ \circ \ar `r[d]^{a} `[rr]^{b} `/4pt[rr]^{c} `[rrr]^{d} `_dl[drrr]^{e} [drrr]^{f} & \circ & \circ & \circ \\ \circ & \circ & \circ & \circ } \]"
def add_to_preamble(self, s): r"""nodetex Append to the string of extra LaTeX macros, for use with %latex. Anything in this string won't be processed by %jsmath.
515ddb45e0c7eff3bcdd26a42063a2b36902fb5a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/515ddb45e0c7eff3bcdd26a42063a2b36902fb5a/latex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 869, 67, 84, 793, 7119, 12, 2890, 16, 272, 4672, 436, 8395, 19888, 278, 338, 6181, 358, 326, 533, 434, 2870, 21072, 21575, 60, 24302, 16, 364, 999, 598, 738, 26264, 18, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 869, 67, 84, 793, 7119, 12, 2890, 16, 272, 4672, 436, 8395, 19888, 278, 338, 6181, 358, 326, 533, 434, 2870, 21072, 21575, 60, 24302, 16, 364, 999, 598, 738, 26264, 18, 225, ...
for host, (at, autodir) in self._get_hosts(host).iteritems():
for host, at, autodir in self._get_hosts(host):
def report(self, test, host=None, wait_on_client=True): assert self.current_test == test self.current_test = None
ff19f5f24bcb393ece8b98216938f887984eba8a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/ff19f5f24bcb393ece8b98216938f887984eba8a/profiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2605, 12, 2890, 16, 1842, 16, 1479, 33, 7036, 16, 2529, 67, 265, 67, 2625, 33, 5510, 4672, 1815, 365, 18, 2972, 67, 3813, 422, 1842, 365, 18, 2972, 67, 3813, 273, 599, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2605, 12, 2890, 16, 1842, 16, 1479, 33, 7036, 16, 2529, 67, 265, 67, 2625, 33, 5510, 4672, 1815, 365, 18, 2972, 67, 3813, 422, 1842, 365, 18, 2972, 67, 3813, 273, 599, 2, -100, -100,...
if _rcv.options.get("filter") is None:
filter = _rcv.options.get("filter") if _rcv.subject is None and filter is None:
def do_exchange_q(result): if sst.detached: return if result.not_found: if _rcv.options.get("create") in ("always", "receiver"): _rcv._queue = _rcv.name sst.write_cmd(QueueDeclare(queue=_rcv._queue, durable=DURABLE_DEFAULT)) else: sst.write_query(QueueQuery(queue=_rcv.name), do_queue_q) return else: _rcv._queue = "%s.%...
d03e477828bc98cac52d68fae84c0f498a9dc1f9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/197/d03e477828bc98cac52d68fae84c0f498a9dc1f9/driver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 16641, 67, 85, 12, 2088, 4672, 309, 272, 334, 18, 8238, 2004, 30, 327, 309, 563, 18, 902, 67, 7015, 30, 309, 389, 1310, 90, 18, 2116, 18, 588, 2932, 2640, 7923, 316, 7566, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 16641, 67, 85, 12, 2088, 4672, 309, 272, 334, 18, 8238, 2004, 30, 327, 309, 563, 18, 902, 67, 7015, 30, 309, 389, 1310, 90, 18, 2116, 18, 588, 2932, 2640, 7923, 316, 7566, ...
_debug_('Couldnt load font "%s"' % filename)
_debug_('Couldnt load font "%s"' % os.path.basename(filename).lower())
def __getfont__(self, filename, ptsize): ptsize = int(ptsize / 0.7) # XXX pygame multiplies by 0.7 for some reason
9c0c7999b4f1f1109a615a23632e1904b27ecc07 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/9c0c7999b4f1f1109a615a23632e1904b27ecc07/osd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 5776, 972, 12, 2890, 16, 1544, 16, 5818, 1467, 4672, 5818, 1467, 273, 509, 12, 1092, 554, 342, 374, 18, 27, 13, 225, 468, 11329, 2395, 13957, 3309, 5259, 635, 374, 18, 27, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 5776, 972, 12, 2890, 16, 1544, 16, 5818, 1467, 4672, 5818, 1467, 273, 509, 12, 1092, 554, 342, 374, 18, 27, 13, 225, 468, 11329, 2395, 13957, 3309, 5259, 635, 374, 18, 27, ...
if v[j].lower()==var:
if findWord(var,v[j].lower())!=-1:
def rmNullify(var,strings): removed=0 var=var.lower() nullifyRe=re.compile(r" *nullify *\(", re.IGNORECASE) nullify2Re=re.compile(r"(?P<nullif> *nullify *\()(?P<vars>[^()!&]+)\)",re.IGNORECASE) for i in xrange(len(strings)-1,-1,-1): line=strings[i] comments=[] if nullifyRe.match(line) and findWord(var,line)!=-1: core=...
74a1cbee70ab49b288ac9d291afc60f24a6d433e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2834/74a1cbee70ab49b288ac9d291afc60f24a6d433e/normalizeFortranFile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6692, 2041, 1164, 12, 1401, 16, 10219, 4672, 3723, 33, 20, 569, 33, 1401, 18, 8167, 1435, 446, 1164, 426, 33, 266, 18, 11100, 12, 86, 6, 380, 2011, 1164, 380, 64, 2932, 16, 283, 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, 6692, 2041, 1164, 12, 1401, 16, 10219, 4672, 3723, 33, 20, 569, 33, 1401, 18, 8167, 1435, 446, 1164, 426, 33, 266, 18, 11100, 12, 86, 6, 380, 2011, 1164, 380, 64, 2932, 16, 283, 18, ...
"cx, %s, getter_AddRefs(%s));\n" % (type.name, argVal, name))
"cx, %s, &%s, &%sref.ptr, %s);\n" % (type.name, argVal, name, name, argPtr))
def writeArgumentUnboxing(f, i, name, type, haveCcx, optional, rvdeclared): # f - file to write to # i - int or None - Indicates the source jsval. If i is an int, the source # jsval is argv[i]; otherwise it is *vp. But if Python i >= C++ argc, # which can only happen if optional is True, the argument is missi...
62904871e7291b38e7809dbb292895c665628124 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/62904871e7291b38e7809dbb292895c665628124/qsgen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 1379, 984, 2147, 310, 12, 74, 16, 277, 16, 508, 16, 618, 16, 1240, 39, 71, 92, 16, 3129, 16, 5633, 16571, 4672, 468, 284, 300, 585, 358, 1045, 358, 468, 277, 300, 509, 578, 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, 1045, 1379, 984, 2147, 310, 12, 74, 16, 277, 16, 508, 16, 618, 16, 1240, 39, 71, 92, 16, 3129, 16, 5633, 16571, 4672, 468, 284, 300, 585, 358, 1045, 358, 468, 277, 300, 509, 578, 5...
dest_folder = self.doclist.CreateFolder(DEST_FOLDER_NAME) new_folder = self.doclist.CreateFolder(CREATED_FOLDER_NAME, dest_folder)
new_folder = self.client.CreateFolder(CREATED_FOLDER_NAME, dest_folder)
def testCreateAndDeleteFolderInFolder(self): DEST_FOLDER_NAME = 'TestFolder' CREATED_FOLDER_NAME = 'TestFolder2' dest_folder = self.doclist.CreateFolder(DEST_FOLDER_NAME) new_folder = self.doclist.CreateFolder(CREATED_FOLDER_NAME, dest_folder)
dcc46816af19bac967f4b588353a3ee4514dd5d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6580/dcc46816af19bac967f4b588353a3ee4514dd5d2/service_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1684, 1876, 2613, 3899, 382, 3899, 12, 2890, 4672, 2030, 882, 67, 17357, 67, 1985, 273, 296, 4709, 3899, 11, 21397, 67, 17357, 67, 1985, 273, 296, 4709, 3899, 22, 11, 1570, 67, 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, 1684, 1876, 2613, 3899, 382, 3899, 12, 2890, 4672, 2030, 882, 67, 17357, 67, 1985, 273, 296, 4709, 3899, 11, 21397, 67, 17357, 67, 1985, 273, 296, 4709, 3899, 22, 11, 1570, 67, 5...
modname = modulename(path)
modname = inspect.getmodulename(path)
def run(self, key, callback, completer=None): self.quit = 0 seen = {}
af4215be4e43ddf4f8775f622d9db3233f712894 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/af4215be4e43ddf4f8775f622d9db3233f712894/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 498, 16, 1348, 16, 31848, 33, 7036, 4672, 365, 18, 27176, 273, 374, 5881, 273, 2618, 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, 1086, 12, 2890, 16, 498, 16, 1348, 16, 31848, 33, 7036, 4672, 365, 18, 27176, 273, 374, 5881, 273, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.assert_("does not match format" in form.a.errors[0])
self.assert_("not match format" in form.a.errors[0])
def test(self): d = datetime(2008, 5, 5, 4, 30, 0, 0) form = self.F(DummyPostData(a=['2008-05-05', '04:30:00'], b=['2008-05-05 04:30'])) self.assertEqual(form.a.data, d) self.assertEqual(form.a(), u"""<input id="a" name="a" type="text" value="2008-05-05 04:30:00" />""") self.assertEqual(form.b.data, d) self.assertEqual...
b8d55fb0709597b1fccf47d102c884cb63369bb3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8614/b8d55fb0709597b1fccf47d102c884cb63369bb3/fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 12, 2890, 4672, 302, 273, 3314, 12, 6976, 28, 16, 1381, 16, 1381, 16, 1059, 16, 5196, 16, 374, 16, 374, 13, 646, 273, 365, 18, 42, 12, 20094, 3349, 751, 12, 69, 33, 3292, 697...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 12, 2890, 4672, 302, 273, 3314, 12, 6976, 28, 16, 1381, 16, 1381, 16, 1059, 16, 5196, 16, 374, 16, 374, 13, 646, 273, 365, 18, 42, 12, 20094, 3349, 751, 12, 69, 33, 3292, 697...
if not resource.id.startswith(config.path):
if not resource.id.startswith('/' + config.path.lstrip('/')):
def get_annotation_data(self, context): add_stylesheet(context.req, 'bitten/bitten_coverage.css')
5bc70454bfc3d736144870055b656c6286ec5b82 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4547/5bc70454bfc3d736144870055b656c6286ec5b82/coverage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 11495, 67, 892, 12, 2890, 16, 819, 4672, 527, 67, 19403, 12, 2472, 18, 3658, 16, 296, 3682, 2253, 19, 3682, 2253, 67, 16356, 18, 5212, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 11495, 67, 892, 12, 2890, 16, 819, 4672, 527, 67, 19403, 12, 2472, 18, 3658, 16, 296, 3682, 2253, 19, 3682, 2253, 67, 16356, 18, 5212, 6134, 2, -100, -100, -100, -100, -100, ...
return self.__addCSOptions(system,component)
return self.__addCSOptions(system,component,host=host)
def export_addCSDefaultOptions(self,system,component,local=False): """ Add default component options to the global CS or to the local options """ if not local: return self.__addCSOptions(system,component) else: result = self.__getComponentCFG(system,component) if not result['OK']: return result cfg = result['Value'] fn...
f640653d68f67f1b04e6bc1e88cba3d7d082d088 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/f640653d68f67f1b04e6bc1e88cba3d7d082d088/SystemAdministratorHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 1289, 4596, 1868, 1320, 12, 2890, 16, 4299, 16, 4652, 16, 3729, 33, 8381, 4672, 3536, 1436, 805, 1794, 702, 358, 326, 2552, 6761, 578, 358, 326, 1191, 702, 3536, 309, 486, 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, 3359, 67, 1289, 4596, 1868, 1320, 12, 2890, 16, 4299, 16, 4652, 16, 3729, 33, 8381, 4672, 3536, 1436, 805, 1794, 702, 358, 326, 2552, 6761, 578, 358, 326, 1191, 702, 3536, 309, 486, 11...
- ``ignore_direction`` - (default False) only applies
- ``ignore_direction`` - bool (default: False) - only applies
def edge_iterator(self, vertices=None, labels=True, ignore_direction=False): """ Returns an iterator over the edges incident with any vertex given. If the graph is directed, iterates over edges going out only. If vertices is None, then returns an iterator over all edges. If self is directed, returns outgoing edges only...
3875207c794f1335c1064e92087e3fc388d1f10b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/3875207c794f1335c1064e92087e3fc388d1f10b/generic_graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3591, 67, 9838, 12, 2890, 16, 6928, 33, 7036, 16, 3249, 33, 5510, 16, 2305, 67, 9855, 33, 8381, 4672, 3536, 2860, 392, 2775, 1879, 326, 5231, 22933, 598, 1281, 5253, 864, 18, 971, 326,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3591, 67, 9838, 12, 2890, 16, 6928, 33, 7036, 16, 3249, 33, 5510, 16, 2305, 67, 9855, 33, 8381, 4672, 3536, 2860, 392, 2775, 1879, 326, 5231, 22933, 598, 1281, 5253, 864, 18, 971, 326,...
why = getattr(selectable, method)() handfn = getattr(selectable, 'fileno', None) if not handfn: why = error.ConnectionFdescWentAway('Handler has no fileno method') elif handfn() == -1: why = error.ConnectionFdescWentAway('Filedescriptor went away') except: log.deferr() why = sys.exc_value if why: self.removeReader(sele...
def doSelect(self, timeout, # Since this loop should really be as fast as possible, # I'm caching these global attributes so the interpreter # will hit them in the local namespace. reads=reads, writes=writes, rhk=reads.has_key, whk=writes.has_key): """Run one iteration of the I/O monitor loop.
12ffe518cfcf74668a769515e65265dfe3100505 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/12ffe518cfcf74668a769515e65265dfe3100505/default.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 3391, 12, 2890, 16, 2021, 16, 468, 7897, 333, 2798, 1410, 8654, 506, 487, 4797, 487, 3323, 16, 468, 467, 17784, 11393, 4259, 2552, 1677, 1427, 326, 16048, 468, 903, 6800, 2182, 316,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3391, 12, 2890, 16, 2021, 16, 468, 7897, 333, 2798, 1410, 8654, 506, 487, 4797, 487, 3323, 16, 468, 467, 17784, 11393, 4259, 2552, 1677, 1427, 326, 16048, 468, 903, 6800, 2182, 316,...
assert_equal(test[0], a[control])
assert_equal(test[0], a[test[-1]])
def test_find_duplicates(self): "Test find_duplicates" a = ma.array([(2, (2., 'B')), (1, (2., 'B')), (2, (2., 'B')), (1, (1., 'B')), (2, (2., 'B')), (2, (2., 'C'))], mask=[(0, (0, 0)), (0, (0, 0)), (0, (0, 0)), (0, (0, 0)), (1, (0, 0)), (0, (1, 0))], dtype=[('A', int), ('B', [('BA', float), ('BB', '|S1')])]) # test = f...
a4c5e55aa74ca1ac28b0451d0e092991b8d6abca /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/a4c5e55aa74ca1ac28b0451d0e092991b8d6abca/test_recfunctions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4720, 67, 22449, 12, 2890, 4672, 315, 4709, 1104, 67, 22449, 6, 279, 273, 10843, 18, 1126, 3816, 12, 22, 16, 261, 22, 12990, 296, 38, 6134, 3631, 261, 21, 16, 261, 22, 1299...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4720, 67, 22449, 12, 2890, 4672, 315, 4709, 1104, 67, 22449, 6, 279, 273, 10843, 18, 1126, 3816, 12, 22, 16, 261, 22, 12990, 296, 38, 6134, 3631, 261, 21, 16, 261, 22, 1299...
self.tb_list.append(tb.tb.elm_obj) tb.tb.elm_obj.on_del_add(self.tb_deleted) if hasattr(self,"power"): try: self.battery_capacity(0,self.power.get_battery_capacity()) except: pass if hasattr(self,"gsm"): try: self.network_strength(0,self.gsm.network_strength) except: pass if hasattr(self,"prefs"): try: self.profile_cha...
self.tb_list.append(tb.tb.elm_obj) tb.tb.elm_obj.on_del_add(self.tb_deleted) if hasattr(self,"power"): try: self.battery_capacity(0,self.power.get_battery_capacity()) except: pass if hasattr(self,"gsm"): try: self.network_strength(0,self.gsm.network_strength) except: pass if hasattr(self,"prefs"): try: self.profile_cha...
def create(self, parent, onclick, standalone=False):
657ce9e05d86a391ec47c845191c166537ec784b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4712/657ce9e05d86a391ec47c845191c166537ec784b/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 982, 16, 22324, 16, 17676, 33, 8381, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 982, 16, 22324, 16, 17676, 33, 8381, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
sys.path.append("client-pygame/lib")
def compress(base, directory): filelist = os.listdir(directory) filelist.sort() for file in filelist: if file in ('checksum.files', 'checksum.global', 'var', 'files.html'): continue if base: filename = base + '/' + file else: filename = file absfilename = os.path.join(directory, file) if os.path.isfile(absfilename): pr...
81d61fd1ada84a2def37ff2438e9d32023e6c7f8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10927/81d61fd1ada84a2def37ff2438e9d32023e6c7f8/deploy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8099, 12, 1969, 16, 1867, 4672, 26204, 273, 1140, 18, 1098, 1214, 12, 5149, 13, 26204, 18, 3804, 1435, 364, 585, 316, 26204, 30, 309, 585, 316, 7707, 15149, 18, 2354, 2187, 296, 15149, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8099, 12, 1969, 16, 1867, 4672, 26204, 273, 1140, 18, 1098, 1214, 12, 5149, 13, 26204, 18, 3804, 1435, 364, 585, 316, 26204, 30, 309, 585, 316, 7707, 15149, 18, 2354, 2187, 296, 15149, ...
self.file = file
self.ctl_file = file
def next(file, exc=None, tb=None): if file: self.file = file file.awrite(u' '.join(map(unicode, args)))
c7994d542e17cf67618cebfe205dc08165f4a739 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12629/c7994d542e17cf67618cebfe205dc08165f4a739/fs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 12, 768, 16, 3533, 33, 7036, 16, 8739, 33, 7036, 4672, 309, 585, 30, 365, 18, 12930, 67, 768, 273, 585, 585, 18, 2219, 796, 12, 89, 11, 2418, 5701, 12, 1458, 12, 9124, 16, 83...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 12, 768, 16, 3533, 33, 7036, 16, 8739, 33, 7036, 4672, 309, 585, 30, 365, 18, 12930, 67, 768, 273, 585, 585, 18, 2219, 796, 12, 89, 11, 2418, 5701, 12, 1458, 12, 9124, 16, 83...
if pkg in self.list[key]: printWarning(1, "%s was already added" % pkg.getNEVRA()) return self.ALREADY_ADDED else:
for r in self.list[key]: if r == pkg or (r.getNEVR() == pkg.getNEVR() and \ archDuplicate(r["arch"], pkg["arch"])): if self.isInstalled(r): printWarning(1, "%s: %s is already installed" % \ (pkg.getNEVRA(), r.getNEVRA())) return self.ALREADY_INSTALLED else: printWarning(1, "%s: %s was already added" % \ (pkg.getNEVRA()...
def _install(self, pkg): key = pkg["name"] if self.installed.has_key(key): for r in self.installed[key]: if r == pkg or \ (r.getNEVR() == pkg.getNEVR() and \ (pkg["arch"] == r["arch"] or \ buildarchtranslate[pkg["arch"]] == \ buildarchtranslate[r["arch"]])): printWarning(1, "%s: %s is already installed" % \ (pkg.getNEV...
69bc50cc3017b45332fadbc34fa4507383809573 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/69bc50cc3017b45332fadbc34fa4507383809573/rpmlist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5425, 12, 2890, 16, 3475, 4672, 498, 273, 3475, 9614, 529, 11929, 309, 365, 18, 13435, 18, 5332, 67, 856, 12, 856, 4672, 364, 436, 316, 365, 18, 13435, 63, 856, 14542, 309, 436, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5425, 12, 2890, 16, 3475, 4672, 498, 273, 3475, 9614, 529, 11929, 309, 365, 18, 13435, 18, 5332, 67, 856, 12, 856, 4672, 364, 436, 316, 365, 18, 13435, 63, 856, 14542, 309, 436, ...
def _check_inputs(node, storage_map, r_vals, dr_vals, active_nodes, clobber_dr_vals=True):
def _check_inputs(node, storage_map, r_vals, dr_vals, active_nodes, clobber_dr_vals=True, perform=None):
def _check_inputs(node, storage_map, r_vals, dr_vals, active_nodes, clobber_dr_vals=True): """Raise BadDestroyMap if necessary, update dr_vals""" destroyed_idx_list = [] destroy_map = getattr(node.op, 'destroy_map', {}) for o_pos, i_pos_list in destroy_map.iteritems(): destroyed_idx_list.extend(i_pos_list) destroyed_re...
7c84cbe26f66a996af69946ff2908cec002b3a84 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/7c84cbe26f66a996af69946ff2908cec002b3a84/debugmode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 10029, 12, 2159, 16, 2502, 67, 1458, 16, 436, 67, 4524, 16, 5081, 67, 4524, 16, 2695, 67, 4690, 16, 30152, 67, 3069, 67, 4524, 33, 5510, 16, 3073, 33, 7036, 4672, 3536...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 10029, 12, 2159, 16, 2502, 67, 1458, 16, 436, 67, 4524, 16, 5081, 67, 4524, 16, 2695, 67, 4690, 16, 30152, 67, 3069, 67, 4524, 33, 5510, 16, 3073, 33, 7036, 4672, 3536...
elif action == 'deleted' and ident in self.entries: self.entries[ident].handle_event(event) if not len(self.entries[ident].entries): del self.entries[ident] del self.Entries['ConfigFile'][ident]
elif action == 'deleted': fbase = self.handles[event.requestID] + event.filename if fbase in self.entries: del self.entries[fbase] del self.Entries['ConfigFile'][fbase] else: self.entries[ident].handle_event(event)
def HandleEvent(self, event): '''Unified FAM event handler for DirShadow''' action = event.code2str() if event.filename[0] == '/': return epath = "".join([self.data, self.handles[event.requestID], event.filename]) if posixpath.isdir(epath): ident = self.handles[event.requestID] + event.filename else: ident = self.handl...
f208804668ee24b1c2c82f237c6cf9890dc11e65 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11867/f208804668ee24b1c2c82f237c6cf9890dc11e65/Plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5004, 1133, 12, 2890, 16, 871, 4672, 9163, 984, 939, 478, 2192, 871, 1838, 364, 8446, 12957, 26418, 1301, 273, 871, 18, 710, 22, 701, 1435, 309, 871, 18, 3459, 63, 20, 65, 422, 2023, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5004, 1133, 12, 2890, 16, 871, 4672, 9163, 984, 939, 478, 2192, 871, 1838, 364, 8446, 12957, 26418, 1301, 273, 871, 18, 710, 22, 701, 1435, 309, 871, 18, 3459, 63, 20, 65, 422, 2023, ...