rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
'meta': u'Template',
def __init__(self): family.Family.__init__(self) self.name = 'uncyclopedia'
5291e54d99c50e05679c62b06fbab03ab3f57e0d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/5291e54d99c50e05679c62b06fbab03ab3f57e0d/uncyclopedia_family.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 6755, 18, 9203, 16186, 2738, 972, 12, 2890, 13, 365, 18, 529, 273, 296, 551, 93, 7550, 1845, 1155, 11, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 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, 6755, 18, 9203, 16186, 2738, 972, 12, 2890, 13, 365, 18, 529, 273, 296, 551, 93, 7550, 1845, 1155, 11, 2, -100, -100, -100, -100, -100, -100, -100, -10...
info('creating LATEST-IS-%s' % VERSION) os.symlink('%s.tar.gz' % basename, 'LATEST-IS-%s' % VERSION)
info('creating LATEST-IS-%s' % __version__) os.symlink('%s.tar.gz' % basename, 'LATEST-IS-%s' % __version__)
def run(self): basename = 'gaupol-%s' % VERSION temp_dir = tempfile.gettempdir() test_dir = os.path.join(temp_dir, basename) # Remove build and test directories. for dir in ('build', 'dist', 'locale', test_dir): info('removing %s' % dir) for root, dirs, files in os.walk(dir, topdown=False): for name in files: os.remo...
81889475a41d52b6cb1972ded80f1bb6d56539d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12852/81889475a41d52b6cb1972ded80f1bb6d56539d3/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 225, 4882, 273, 296, 15833, 416, 355, 6456, 87, 11, 738, 8456, 1906, 67, 1214, 273, 13275, 18, 588, 5814, 1214, 1435, 1842, 67, 1214, 273, 1140, 18, 803, 18, 5701...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 225, 4882, 273, 296, 15833, 416, 355, 6456, 87, 11, 738, 8456, 1906, 67, 1214, 273, 13275, 18, 588, 5814, 1214, 1435, 1842, 67, 1214, 273, 1140, 18, 803, 18, 5701...
if self._variation_cache:
if hasattr(self, '_variation_cache'):
def get_product_from_options(self, options): """ Accepts an iterable of either Option object or str(Option) objects Returns the product that matches or None """ options = self._ensure_option_set(options) pv = None if self._variation_cache: optkeys = tuple(options) pv = self._variation_cache.get(optkeys, None) else: fo...
8d7a693baf89a532c6890434e7031f9f13752d2c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/171/8d7a693baf89a532c6890434e7031f9f13752d2c/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5896, 67, 2080, 67, 2116, 12, 2890, 16, 702, 4672, 3536, 27158, 392, 6087, 434, 3344, 2698, 733, 578, 609, 12, 1895, 13, 2184, 2860, 326, 3017, 716, 1885, 578, 599, 3536, 702,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5896, 67, 2080, 67, 2116, 12, 2890, 16, 702, 4672, 3536, 27158, 392, 6087, 434, 3344, 2698, 733, 578, 609, 12, 1895, 13, 2184, 2860, 326, 3017, 716, 1885, 578, 599, 3536, 702,...
if len(result['Value']) > 0: resultDict.update(result['Value']) return S_OK(resultDict) def getJobAttribute(self,jobID,attribute):
if len( result['Value'] ) > 0: resultDict.update( result['Value'] ) return S_OK( resultDict ) def getJobAttribute( self, jobID, attribute ):
def getJobInfo( self, jobID, parameters=[] ): """ Get parameters for job specified by jobID. Parameters can be either job attributes ( fields in the Jobs table ) or those stored in the JobParameters table. The return value is a dictionary of the structure: Dict[Name] = Value """
99c1bc850ba087890925b3180df206f65bb1d4b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/99c1bc850ba087890925b3180df206f65bb1d4b3/JobDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13024, 966, 12, 365, 16, 28913, 16, 1472, 33, 8526, 262, 30, 3536, 968, 1472, 364, 1719, 1269, 635, 28913, 18, 7012, 848, 506, 3344, 1719, 1677, 261, 1466, 316, 326, 26909, 1014, 262, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13024, 966, 12, 365, 16, 28913, 16, 1472, 33, 8526, 262, 30, 3536, 968, 1472, 364, 1719, 1269, 635, 28913, 18, 7012, 848, 506, 3344, 1719, 1677, 261, 1466, 316, 326, 26909, 1014, 262, ...
print "setting", location request.session['geolocation:updated'] = datetime.now()
request.session['geolocation:updated'] = datetime.utcnow()
def set_location(cls, request, name, location, accuracy, method): if isinstance(location, list): location = tuple(location)
5ebc06816a116a52f76ef9d344b2fdd46759b516 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14173/5ebc06816a116a52f76ef9d344b2fdd46759b516/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 3562, 12, 6429, 16, 590, 16, 508, 16, 2117, 16, 15343, 16, 707, 4672, 309, 1549, 12, 3562, 16, 666, 4672, 2117, 273, 3193, 12, 3562, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 3562, 12, 6429, 16, 590, 16, 508, 16, 2117, 16, 15343, 16, 707, 4672, 309, 1549, 12, 3562, 16, 666, 4672, 2117, 273, 3193, 12, 3562, 13, 2, -100, -100, -100, -100, -100, -10...
ylist[0] = model.x.copy()
ylist[0] = N.append(model.x.copy(),model.w.copy())
def __init__(self): self.parameters = None self.model = None self.t_sim_start = None self.t_sim_end = None self.t_sim_duration = None
26b0aa38aeeb109238a70ccc5a2a24aa83f45669 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/26b0aa38aeeb109238a70ccc5a2a24aa83f45669/sundials.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 3977, 273, 599, 365, 18, 2284, 273, 599, 365, 18, 88, 67, 9812, 67, 1937, 273, 599, 365, 18, 88, 67, 9812, 67, 409, 273, 599, 365, 18, 88,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 3977, 273, 599, 365, 18, 2284, 273, 599, 365, 18, 88, 67, 9812, 67, 1937, 273, 599, 365, 18, 88, 67, 9812, 67, 409, 273, 599, 365, 18, 88,...
return self.get_basename()+'_'+self.stage+'.sh'
return self.get_basename()+'.sh'
def get_shname(self): """ Returns the name of the sh file """ return self.get_basename()+'_'+self.stage+'.sh'
43dcab37fc92bcd058f9d34fa6dd08eb7fbb8898 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/43dcab37fc92bcd058f9d34fa6dd08eb7fbb8898/pylal_exttrig_llutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 674, 529, 12, 2890, 4672, 3536, 2860, 326, 508, 434, 326, 699, 585, 3536, 327, 365, 18, 588, 67, 13909, 1435, 6797, 4623, 15, 2890, 18, 12869, 6797, 18, 674, 11, 2, 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, 336, 67, 674, 529, 12, 2890, 4672, 3536, 2860, 326, 508, 434, 326, 699, 585, 3536, 327, 365, 18, 588, 67, 13909, 1435, 6797, 4623, 15, 2890, 18, 12869, 6797, 18, 674, 11, 2, -100, -1...
Set the end time in a row in a process table to the current time.
Identical to the set_process_end_time() function in glue.ligolw.utils.process except uses LAL to convert UTC to GPS time to get the leap seconds correct.
def set_process_end_time(process): """ Set the end time in a row in a process table to the current time. """ process.end_time = XLALUTCToGPS(time.gmtime()).seconds return process
e2a092cec7533600caf3420a51c7a0d5c17de455 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/e2a092cec7533600caf3420a51c7a0d5c17de455/llwapp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 2567, 67, 409, 67, 957, 12, 2567, 4672, 3536, 13128, 1706, 358, 326, 444, 67, 2567, 67, 409, 67, 957, 1435, 445, 316, 17960, 18, 80, 360, 355, 91, 18, 5471, 18, 2567, 1335, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 2567, 67, 409, 67, 957, 12, 2567, 4672, 3536, 13128, 1706, 358, 326, 444, 67, 2567, 67, 409, 67, 957, 1435, 445, 316, 17960, 18, 80, 360, 355, 91, 18, 5471, 18, 2567, 1335, ...
out,err,res = executil.execWithCaptureErrorStatus("/sbin/cman_tool",args)
out,err,res = executil.execWithCaptureErrorStatus("/usr/sbin/cman_tool",args)
def isClusterQuorate(self): if self.isRHEL4(): args = list() args.append("/sbin/magma_tool") args.append("quorum") cmdstr = ' '.join(args) try: out,err,res = executil.execWithCaptureErrorStatus("/sbin/magma_tool",args) except RuntimeError, e: return False
1065bb253fe7c9c4739c6f1418df4f6d4f998a85 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3879/1065bb253fe7c9c4739c6f1418df4f6d4f998a85/CommandHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 3629, 928, 280, 340, 12, 2890, 4672, 309, 365, 18, 291, 54, 20264, 24, 13332, 833, 273, 666, 1435, 833, 18, 6923, 2932, 19, 87, 4757, 19, 4527, 2540, 67, 6738, 7923, 833, 18, 69...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 3629, 928, 280, 340, 12, 2890, 4672, 309, 365, 18, 291, 54, 20264, 24, 13332, 833, 273, 666, 1435, 833, 18, 6923, 2932, 19, 87, 4757, 19, 4527, 2540, 67, 6738, 7923, 833, 18, 69...
for name, exc in failures:
for name, _, exc in failures:
def run_tests(tm): classes = [obj for name, obj in inspect.getmembers(tm) if isinstance(obj, type)] tm.raises = raises tm.skip = skip successes = [] failures = [] skipped = [] for klass in classes: tests = [(name, meth) for name, meth in inspect.getmembers(klass()) if not name.startswith('_')] for name, meth in tes...
48a0f245c877112163faca4b3cb4ae682e985dd3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/48a0f245c877112163faca4b3cb4ae682e985dd3/_test_logic_build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 16341, 12, 16925, 4672, 3318, 273, 306, 2603, 364, 508, 16, 1081, 316, 5334, 18, 588, 7640, 12, 16925, 13, 309, 1549, 12, 2603, 16, 618, 25887, 225, 6118, 18, 354, 6141, 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, 1086, 67, 16341, 12, 16925, 4672, 3318, 273, 306, 2603, 364, 508, 16, 1081, 316, 5334, 18, 588, 7640, 12, 16925, 13, 309, 1549, 12, 2603, 16, 618, 25887, 225, 6118, 18, 354, 6141, 273,...
lfcu = getLFCurl(dsn,lfn)
def check_dq2_file_avaiability(self,dsn,lfn,jobid): # Check if a file is available on NorduGrid
846134a85a4f612381877f1bf6c0b871a6ff92c1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1488/846134a85a4f612381877f1bf6c0b871a6ff92c1/NG.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 72, 85, 22, 67, 768, 67, 1629, 21280, 12, 2890, 16, 26055, 16, 80, 4293, 16, 4688, 350, 4672, 468, 2073, 309, 279, 585, 353, 2319, 603, 423, 517, 89, 6313, 2, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 866, 67, 72, 85, 22, 67, 768, 67, 1629, 21280, 12, 2890, 16, 26055, 16, 80, 4293, 16, 4688, 350, 4672, 468, 2073, 309, 279, 585, 353, 2319, 603, 423, 517, 89, 6313, 2, -100, -100, ...
'Tsting counting number of male'
'Testing counting number of male'
def testNumOfMale(self): 'Tsting counting number of male' pop = population(subPop=[200, 800]) for i in range(100): pop.individual(i,0).setSex(Male) pop.individual(i,1).setSex(Male) for i in range(100,200): pop.individual(i,0).setSex(Female) for i in range(100,800): pop.individual(i,1).setSex(Female) Stat(pop, numOfMale...
b6008f11a8360d847f0ee1141c803ba514cfa6ff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/401/b6008f11a8360d847f0ee1141c803ba514cfa6ff/test_08_opStat.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2578, 951, 49, 5349, 12, 2890, 4672, 296, 22218, 22075, 1300, 434, 312, 5349, 11, 1843, 273, 11209, 12, 1717, 7049, 22850, 6976, 16, 1725, 713, 5717, 364, 277, 316, 1048, 12, 6625,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2578, 951, 49, 5349, 12, 2890, 4672, 296, 22218, 22075, 1300, 434, 312, 5349, 11, 1843, 273, 11209, 12, 1717, 7049, 22850, 6976, 16, 1725, 713, 5717, 364, 277, 316, 1048, 12, 6625,...
""" flimage_alloc() -> image """
""" flimage_alloc() -> pImage """
def flimage_alloc(): """ flimage_alloc() -> image """ retval = _flimage_alloc() return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 2730, 67, 9853, 13332, 3536, 1183, 2730, 67, 9853, 1435, 317, 293, 2040, 3536, 225, 5221, 273, 389, 2242, 2730, 67, 9853, 1435, 327, 5221, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 1183, 2730, 67, 9853, 13332, 3536, 1183, 2730, 67, 9853, 1435, 317, 293, 2040, 3536, 225, 5221, 273, 389, 2242, 2730, 67, 9853, 1435, 327, 5221, 282, 2, -100, -100, -100, -100, -100, -10...
instancesdata = client.QueryInstances([], ["name"], True) instanceslist = [row[0] for row in instancesdata]
def GET(self): """Returns a list of all available instances.
9031ee8eef9887bfe9a5a331e1eb42c1600a63aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/9031ee8eef9887bfe9a5a331e1eb42c1600a63aa/rlib2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4978, 12, 2890, 4672, 3536, 1356, 279, 666, 434, 777, 2319, 3884, 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, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4978, 12, 2890, 4672, 3536, 1356, 279, 666, 434, 777, 2319, 3884, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
parameters= {} if classadJob.lookupAttribute("Parameters"): parameters= classadJob.getDictionaryFromSubJDL("Parameters") res = self.setJobParameters(jobID, parameters.items())
parameters = {} if classadJob.lookupAttribute( "Parameters" ): parameters = classadJob.getDictionaryFromSubJDL( "Parameters" ) res = self.setJobParameters( jobID, parameters.items() )
def __setInitialJobParameters( self, classadJob, jobID): """ Set initial job parameters as was defined in the Classad """
99c1bc850ba087890925b3180df206f65bb1d4b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/99c1bc850ba087890925b3180df206f65bb1d4b3/JobDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 4435, 2278, 2402, 12, 365, 16, 667, 361, 2278, 16, 28913, 4672, 3536, 1000, 2172, 1719, 1472, 487, 1703, 2553, 316, 326, 1659, 361, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 542, 4435, 2278, 2402, 12, 365, 16, 667, 361, 2278, 16, 28913, 4672, 3536, 1000, 2172, 1719, 1472, 487, 1703, 2553, 316, 326, 1659, 361, 3536, 2, -100, -100, -100, -100, -100, -100...
hatari = Hatari(args[1:])
hatari = Hatari(args)
def __init__(self): args, self.file, self.exit = self.parse_args(sys.argv) hatari = Hatari(args[1:]) self.tokens = Tokens(hatari) self.command = CommandInput(self.tokens.get_tokens())
fe2cf0da11f536e2624ab378ee0fbfc716e6d6f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8501/fe2cf0da11f536e2624ab378ee0fbfc716e6d6f2/hatari-console.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 833, 16, 365, 18, 768, 16, 365, 18, 8593, 273, 365, 18, 2670, 67, 1968, 12, 9499, 18, 19485, 13, 366, 8761, 77, 273, 670, 8761, 77, 12, 1968, 13, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 833, 16, 365, 18, 768, 16, 365, 18, 8593, 273, 365, 18, 2670, 67, 1968, 12, 9499, 18, 19485, 13, 366, 8761, 77, 273, 670, 8761, 77, 12, 1968, 13, 3...
except DistutilsExecError, msg:
except DistutilsExecError as msg:
def create_static_lib(self, objects, output_libname, output_dir=None, debug=0, target_lang=None):
4fca9553791a03c69c398ad5bd01c118b49b73e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/4fca9553791a03c69c398ad5bd01c118b49b73e3/msvc9compiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 3845, 67, 2941, 12, 2890, 16, 2184, 16, 876, 67, 2941, 529, 16, 876, 67, 1214, 33, 7036, 16, 1198, 33, 20, 16, 1018, 67, 4936, 33, 7036, 4672, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 3845, 67, 2941, 12, 2890, 16, 2184, 16, 876, 67, 2941, 529, 16, 876, 67, 1214, 33, 7036, 16, 1198, 33, 20, 16, 1018, 67, 4936, 33, 7036, 4672, 2, -100, -100, -100, -100, -...
format = self.conn.getFileFormt(f[1].upper())
try: format = self.conn.getFileFormt(f[1].upper()) except: format = self.conn.getFileFormt("application/octet-stream")
def createDatasetFileAnnotation(self, newFile): if newFile.content_type.startswith("image"): f = newFile.content_type.split("/") format = self.conn.getFileFormt(f[1].upper()) else: format = self.conn.getFileFormt(newFile.content_type) oFile = OriginalFileI() oFile.setName(rstring(str(newFile.name))); oFile.setPath(rst...
304c1c03a7cc8ac4b587149f1894565a404d4518 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/304c1c03a7cc8ac4b587149f1894565a404d4518/container.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 10656, 812, 3257, 12, 2890, 16, 20592, 4672, 309, 20592, 18, 1745, 67, 723, 18, 17514, 1918, 2932, 2730, 6, 4672, 284, 273, 20592, 18, 1745, 67, 723, 18, 4939, 2932, 4898, 13, 775...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 10656, 812, 3257, 12, 2890, 16, 20592, 4672, 309, 20592, 18, 1745, 67, 723, 18, 17514, 1918, 2932, 2730, 6, 4672, 284, 273, 20592, 18, 1745, 67, 723, 18, 4939, 2932, 4898, 13, 775...
el1 = etree.SubElement(self.automatic_styles,
el1 = SubElement(self.automatic_styles,
def generate_figure(self, node, source, destination): caption = None for node1 in node.parent.children: if node1.tagname == 'caption': caption = node1.astext() self.image_count += 1 style_name = 'rstframestyle%d' % self.image_count if 'scale' in node.attributes: try: scale = int(node.attributes['scale']) if scale < 1 o...
277ba1af817dc725b8179dbbf649a815fdff5939 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/277ba1af817dc725b8179dbbf649a815fdff5939/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 19675, 12, 2890, 16, 756, 16, 1084, 16, 2929, 4672, 11006, 273, 599, 364, 756, 21, 316, 756, 18, 2938, 18, 5906, 30, 309, 756, 21, 18, 2692, 529, 422, 296, 15386, 4278, 110...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 19675, 12, 2890, 16, 756, 16, 1084, 16, 2929, 4672, 11006, 273, 599, 364, 756, 21, 316, 756, 18, 2938, 18, 5906, 30, 309, 756, 21, 18, 2692, 529, 422, 296, 15386, 4278, 110...
wx.PostEvent(mainFrame, ExternalCommandEvent(wx.ID_EXIT))
wx.GetApp().ExitMainLoop()
def restart(): globalVars.restart=True wx.PostEvent(mainFrame, ExternalCommandEvent(wx.ID_EXIT))
e529c4a26c93266b4105df29328c8ffce559205d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9340/e529c4a26c93266b4105df29328c8ffce559205d/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7870, 13332, 2552, 5555, 18, 19164, 33, 5510, 7075, 18, 967, 3371, 7675, 6767, 6376, 6452, 1435, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7870, 13332, 2552, 5555, 18, 19164, 33, 5510, 7075, 18, 967, 3371, 7675, 6767, 6376, 6452, 1435, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
return unpack('>h',self._ttf_data[self._pos-2:self._pos])[0]
try: return unpack('>h',self._ttf_data[self._pos-2:self._pos])[0] except structError, error: raise TTFError, error
def read_short(self): "Reads a signed short" self._pos += 2 return unpack('>h',self._ttf_data[self._pos-2:self._pos])[0]
2e9257ab9f776c93d11b4ff49df6c9861d612891 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3878/2e9257ab9f776c93d11b4ff49df6c9861d612891/ttfonts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 6620, 12, 2890, 4672, 315, 7483, 279, 6726, 3025, 6, 365, 6315, 917, 1011, 576, 327, 6167, 2668, 34, 76, 2187, 2890, 6315, 748, 74, 67, 892, 63, 2890, 6315, 917, 17, 22, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 6620, 12, 2890, 4672, 315, 7483, 279, 6726, 3025, 6, 365, 6315, 917, 1011, 576, 327, 6167, 2668, 34, 76, 2187, 2890, 6315, 748, 74, 67, 892, 63, 2890, 6315, 917, 17, 22, 30,...
self.pid = os.fork()
gc_was_enabled = gc.isenabled() gc.disable() try: self.pid = os.fork() except: if gc_was_enabled: gc.enable() raise
def _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite): """Execute program (POSIX version)"""
5d2ea350e68b755dcbb1828b1521197b50c4a8f2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/5d2ea350e68b755dcbb1828b1521197b50c4a8f2/subprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8837, 67, 3624, 12, 2890, 16, 833, 16, 9070, 16, 675, 4177, 67, 4293, 16, 1746, 67, 74, 2377, 16, 7239, 16, 1550, 16, 26182, 67, 31276, 16, 11850, 1376, 16, 6710, 7133, 16, 5972...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8837, 67, 3624, 12, 2890, 16, 833, 16, 9070, 16, 675, 4177, 67, 4293, 16, 1746, 67, 74, 2377, 16, 7239, 16, 1550, 16, 26182, 67, 31276, 16, 11850, 1376, 16, 6710, 7133, 16, 5972...
test_support.unlink(test_support.TESTFN)
def setUp(self): """Setup of a temp file to use for testing""" self.text = "test_urllib: %s\n" % self.__class__.__name__ test_support.unlink(test_support.TESTFN) FILE = file(test_support.TESTFN, 'wb') try: FILE.write(self.text) finally: FILE.close() self.pathname = test_support.TESTFN self.returned_obj = urllib.urlopen...
9aba6d6905bcf3f3009f71cfa70525eb8b0ad3dc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/9aba6d6905bcf3f3009f71cfa70525eb8b0ad3dc/test_urllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 3536, 7365, 434, 279, 1906, 585, 358, 999, 364, 7769, 8395, 365, 18, 955, 273, 315, 3813, 67, 718, 2941, 30, 738, 87, 64, 82, 6, 738, 365, 16186, 1106, 972, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 3536, 7365, 434, 279, 1906, 585, 358, 999, 364, 7769, 8395, 365, 18, 955, 273, 315, 3813, 67, 718, 2941, 30, 738, 87, 64, 82, 6, 738, 365, 16186, 1106, 972, 16...
note("applied inventory delta ...")
note("applying inventory delta ...")
def post_process_files(self): """Save the revision.""" if self.verbose: note("applied inventory delta ...") for entry in self.inv_delta: note(" %r" % (entry,)) self.inventory.apply_delta(self.inv_delta) self.cache_mgr.inventories[self.command.ref] = self.inventory if self.verbose: note("creating inventory ...") for en...
b5f8fae83e6efdbfa9ab887eec72707bb079dd2b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8703/b5f8fae83e6efdbfa9ab887eec72707bb079dd2b/generic_processor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 67, 2567, 67, 2354, 12, 2890, 4672, 3536, 4755, 326, 6350, 12123, 309, 365, 18, 11369, 30, 4721, 2932, 9010, 310, 13086, 3622, 1372, 7923, 364, 1241, 316, 365, 18, 5768, 67, 9878, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 67, 2567, 67, 2354, 12, 2890, 4672, 3536, 4755, 326, 6350, 12123, 309, 365, 18, 11369, 30, 4721, 2932, 9010, 310, 13086, 3622, 1372, 7923, 364, 1241, 316, 365, 18, 5768, 67, 9878, ...
txt = new_doc.createTextNode('/') col.appendChild(txt) node_line.appendChild(col)
col.text = '/' node_line.append(col)
def _append_node(name, text): n = new_doc.createElement(name) t = new_doc.createTextNode(text) n.appendChild(t) config.appendChild(n)
32aa89f603ce93d4388ce6f049f482862969ced9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/32aa89f603ce93d4388ce6f049f482862969ced9/custom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6923, 67, 2159, 12, 529, 16, 977, 4672, 290, 273, 394, 67, 2434, 18, 2640, 1046, 12, 529, 13, 268, 273, 394, 67, 2434, 18, 2640, 17299, 12, 955, 13, 290, 18, 6923, 1763, 12, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6923, 67, 2159, 12, 529, 16, 977, 4672, 290, 273, 394, 67, 2434, 18, 2640, 1046, 12, 529, 13, 268, 273, 394, 67, 2434, 18, 2640, 17299, 12, 955, 13, 290, 18, 6923, 1763, 12, 8...
cestring = "CE: %s, GOCDB Name: %s"%(ce,nameBDII)
cestring = "CE: %s, GOCDB Name: %s"%(ce,nameBDII)
def _lookForCE(self): sites = gConfig.getSections('/Resources/Sites/LCG')['Value']
e7fe144bdf9e77019e8be7de0be022052acb42ca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/e7fe144bdf9e77019e8be7de0be022052acb42ca/CE2CSAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7330, 1290, 1441, 12, 2890, 4672, 225, 9180, 273, 314, 809, 18, 588, 15965, 2668, 19, 3805, 19, 17055, 19, 13394, 43, 6134, 3292, 620, 3546, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7330, 1290, 1441, 12, 2890, 4672, 225, 9180, 273, 314, 809, 18, 588, 15965, 2668, 19, 3805, 19, 17055, 19, 13394, 43, 6134, 3292, 620, 3546, 2, -100, -100, -100, -100, -100, -100, ...
[('xmax', 3.0), ('xmin', -1.0), ('ymax', 10.0), ('ymin', 1.0)] """ try: return dict(self._minmax_data) except AttributeError: self._minmax_data = self._get_minmax_data() return dict(self._minmax_data) def _get_minmax_data(self): """ Actually compute the minmax data from the graphics that make up this image. EXAMPLES...
def get_minmax_data(self): """ Return a dictionary whose keys give the xmin, xmax, ymin, and ymax data for this graphic.
e6943e8553d1dd6ca0e171babad6dbe3ff4864a0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/e6943e8553d1dd6ca0e171babad6dbe3ff4864a0/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1154, 1896, 67, 892, 12, 2890, 4672, 3536, 2000, 279, 3880, 8272, 1311, 8492, 326, 13777, 16, 14016, 16, 15763, 16, 471, 15275, 501, 364, 333, 19548, 18, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1154, 1896, 67, 892, 12, 2890, 4672, 3536, 2000, 279, 3880, 8272, 1311, 8492, 326, 13777, 16, 14016, 16, 15763, 16, 471, 15275, 501, 364, 333, 19548, 18, 2, -100, -100, -100, ...
for contName in self._leakDetector.getContainerNameByIdGen(id):
for contName in self._leakDetector.getContainerNameByIdGen(objId):
def run(self): try: self._leakDetector._index2containerId2len[self._index] = {} ids = self._leakDetector.getContainerIds() # record the current len of each container for id in ids: yield None try: for result in self._leakDetector.getContainerByIdGen(id): yield None container = result except Exception, e: # this contain...
2144050758ff193ad2f7bd973df523fae0d7fd5c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/2144050758ff193ad2f7bd973df523fae0d7fd5c/ContainerLeakDetector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 775, 30, 365, 6315, 298, 581, 12594, 6315, 1615, 22, 3782, 548, 22, 1897, 63, 2890, 6315, 1615, 65, 273, 2618, 3258, 273, 365, 6315, 298, 581, 12594, 18, 588, 217...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 775, 30, 365, 6315, 298, 581, 12594, 6315, 1615, 22, 3782, 548, 22, 1897, 63, 2890, 6315, 1615, 65, 273, 2618, 3258, 273, 365, 6315, 298, 581, 12594, 18, 588, 217...
trans.account LIKE balance.account '''+_concat+''' :const('%') \
trans.account LIKE balance.account '''+_startswith_sfx + ''' \
def test4_balance_trans_via_prev_balance_date_subselect( self): '''sum balances of transactions per account/date-range; prev.balance.date as startdate testing: source,target-not-replaceable, and, <=, subselect update balance set total = (select sum(trans.money) where trans.account like balance.account+'%' AND trans.dat...
4ae45b8f5d96b6b965ed9ce92451eedbb0d0f4ef /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10808/4ae45b8f5d96b6b965ed9ce92451eedbb0d0f4ef/convertertest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 24, 67, 12296, 67, 2338, 67, 21985, 67, 10001, 67, 12296, 67, 712, 67, 1717, 4025, 12, 365, 4672, 9163, 1364, 324, 26488, 434, 8938, 1534, 2236, 19, 712, 17, 3676, 31, 2807, 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, 1842, 24, 67, 12296, 67, 2338, 67, 21985, 67, 10001, 67, 12296, 67, 712, 67, 1717, 4025, 12, 365, 4672, 9163, 1364, 324, 26488, 434, 8938, 1534, 2236, 19, 712, 17, 3676, 31, 2807, 18, ...
cmd += ["--log-to-stderr=no"]
cmd += ["--log-to-stderr=no"] if log_level != None: cmd += ["--log-enable=%s" % log_level]
def __init__(self, test, args=[], name=None, expect=EXPECT_RUNNING, port=0): """Start a broker daemon. name determines the data-dir and log file names."""
5ea15473e66289f047f411629184767faf3802a3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/197/5ea15473e66289f047f411629184767faf3802a3/brokertest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1842, 16, 833, 22850, 6487, 508, 33, 7036, 16, 4489, 33, 2294, 1423, 1268, 67, 29358, 16, 1756, 33, 20, 4672, 3536, 1685, 279, 8625, 8131, 18, 508, 12949...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1842, 16, 833, 22850, 6487, 508, 33, 7036, 16, 4489, 33, 2294, 1423, 1268, 67, 29358, 16, 1756, 33, 20, 4672, 3536, 1685, 279, 8625, 8131, 18, 508, 12949...
ticket['keywords'] = string.join(keywords)
ticket['keywords'] = string.join(keywords)
def convert(_db, _host, _user, _password, _env, _force): activityFields = FieldTranslator() # account for older versions of bugzilla print "Using Bugzilla v%s schema." % BZ_VERSION if BZ_VERSION == 2110: activityFields['removed'] = "oldvalue" activityFields['added'] = "newvalue" # init Bugzilla environment print "Bug...
96cc24322ea11500094f96e7b8dc5b0c7e85d253 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9317/96cc24322ea11500094f96e7b8dc5b0c7e85d253/bugzilla2trac.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 24899, 1966, 16, 389, 2564, 16, 389, 1355, 16, 389, 3664, 16, 389, 3074, 16, 389, 5734, 4672, 5728, 2314, 273, 2286, 12233, 1435, 225, 468, 2236, 364, 12156, 5244, 434, 7934, 15990...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 24899, 1966, 16, 389, 2564, 16, 389, 1355, 16, 389, 3664, 16, 389, 3074, 16, 389, 5734, 4672, 5728, 2314, 273, 2286, 12233, 1435, 225, 468, 2236, 364, 12156, 5244, 434, 7934, 15990...
gLogger.showHeaders( False )
def initialize( script = False, ignoreErrors = False, initializeMonitor = False, enableCommandLine = False ): global localCfg, scriptName gLogger.showHeaders( False ) userDisabled = not localCfg.isCSEnabled() if not userDisabled: localCfg.disableCS() if not enableCommandLine: localCfg.disableParsingCommandLine() if...
fc626a042268cdfe20e7173ae3c292e2e47637a8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/fc626a042268cdfe20e7173ae3c292e2e47637a8/Script.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 2728, 273, 1083, 16, 2305, 4229, 273, 1083, 16, 4046, 7187, 273, 1083, 16, 4237, 21391, 273, 1083, 262, 30, 2552, 1191, 8198, 16, 31008, 225, 729, 8853, 273, 486, 1191, 8198, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 2728, 273, 1083, 16, 2305, 4229, 273, 1083, 16, 4046, 7187, 273, 1083, 16, 4237, 21391, 273, 1083, 262, 30, 2552, 1191, 8198, 16, 31008, 225, 729, 8853, 273, 486, 1191, 8198, ...
return self.__executeSingleReplicaStorageElementOperation(storageElementName,lfn,'isFile') else: return self.__executeReplicaStorageElementOperation(storageElementName,lfn,'isFile') def getReplicaSize(self,lfn,storageElementName,singleFile=False):
return self.__executeSingleReplicaStorageElementOperation( storageElementName, lfn, 'isFile' ) else: return self.__executeReplicaStorageElementOperation( storageElementName, lfn, 'isFile' ) def getReplicaSize( self, lfn, storageElementName, singleFile=False ):
def getReplicaIsFile(self,lfn,storageElementName,singleFile=False): """ Determine whether the supplied lfns are files at the supplied StorageElement
9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5561, 6996, 2520, 812, 12, 2890, 16, 80, 4293, 16, 5697, 30584, 16, 7526, 812, 33, 8381, 4672, 3536, 10229, 2856, 326, 4580, 18594, 2387, 854, 1390, 622, 326, 4580, 5235, 1046, 2, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5561, 6996, 2520, 812, 12, 2890, 16, 80, 4293, 16, 5697, 30584, 16, 7526, 812, 33, 8381, 4672, 3536, 10229, 2856, 326, 4580, 18594, 2387, 854, 1390, 622, 326, 4580, 5235, 1046, 2, -100, ...
If k is None, use Jon Bober's highly
If k is None, use Jonathan Bober's highly
def number_of_partitions(n,k=None, algorithm='default'): r""" Returns the size of partitions_list(n,k). INPUT: n -- an integer k -- (default: None); if specified, instead returns the cardinality of the set of all (unordered) partitions of the positive integer n into sums with k summands. algorithm -- (default: 'defaul...
a57d04ef0a1b3f5dc69cd60b0a05307ccdf3fa9c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/a57d04ef0a1b3f5dc69cd60b0a05307ccdf3fa9c/partition.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1300, 67, 792, 67, 21275, 12, 82, 16, 79, 33, 7036, 16, 4886, 2218, 1886, 11, 4672, 436, 8395, 2860, 326, 963, 434, 10060, 67, 1098, 12, 82, 16, 79, 2934, 225, 12943, 30, 290, 1493, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1300, 67, 792, 67, 21275, 12, 82, 16, 79, 33, 7036, 16, 4886, 2218, 1886, 11, 4672, 436, 8395, 2860, 326, 963, 434, 10060, 67, 1098, 12, 82, 16, 79, 2934, 225, 12943, 30, 290, 1493, ...
if level: if isinstance(level, types.ListType) or \ isinstance(level, types.TupleType): levels = level else: levels = [ level ] for level in levels: self._checkLogLevel(level) else: levels = [ i for i in xrange(self.FATAL, self.DEBUG10+1) ]
""" Add log target for domain and level. Level can be a single level or an array of levels. Use level ALL to set for all levels. If no format is specified, the default format will be used. """ levels = self._getLevels(level)
def addLogging(self, domain, target, level=ALL, format=None): if level: if isinstance(level, types.ListType) or \ isinstance(level, types.TupleType): levels = level else: levels = [ level ] for level in levels: self._checkLogLevel(level) else: levels = [ i for i in xrange(self.FATAL, self.DEBUG10+1) ] for level in leve...
3d7d63966162f8881fad278dc8cc728a7e5a1f77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/3d7d63966162f8881fad278dc8cc728a7e5a1f77/logger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 7735, 12, 2890, 16, 2461, 16, 1018, 16, 1801, 33, 4685, 16, 740, 33, 7036, 4672, 3536, 1436, 613, 1018, 364, 2461, 471, 1801, 18, 4557, 848, 506, 279, 2202, 1801, 578, 392, 526, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7735, 12, 2890, 16, 2461, 16, 1018, 16, 1801, 33, 4685, 16, 740, 33, 7036, 4672, 3536, 1436, 613, 1018, 364, 2461, 471, 1801, 18, 4557, 848, 506, 279, 2202, 1801, 578, 392, 526, ...
if self.display_type: if num_play_items != self['num_%s_items' % display_type]: self['num_%s_items' % display_type] = num_play_items else: if num_play_items != self['num_all_items']: self['num_all_items'] = num_play_items
if num_play_items != self['num_%s_items' % name]: self['num_%s_items' % name] = num_play_items
def create_metainfo(self): """ create some metainfo for the directory """ timestamp = os.stat(self.dir)[stat.ST_MTIME] num_timestamp = self.info['num_timestamp']
6398e3de15a76a5b24fc7e42e85eaa712e2240ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/6398e3de15a76a5b24fc7e42e85eaa712e2240ea/directory.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 10578, 28935, 12, 2890, 4672, 3536, 752, 2690, 5100, 28935, 364, 326, 1867, 3536, 2858, 377, 273, 1140, 18, 5642, 12, 2890, 18, 1214, 25146, 5642, 18, 882, 67, 49, 4684, 65, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 10578, 28935, 12, 2890, 4672, 3536, 752, 2690, 5100, 28935, 364, 326, 1867, 3536, 2858, 377, 273, 1140, 18, 5642, 12, 2890, 18, 1214, 25146, 5642, 18, 882, 67, 49, 4684, 65, 8...
10*19^-3 + 9*19^-2 + 9*19^-1 + 9 + 9*19 + O(19^2)
9 + 9*19 + O(19^2)
def __floordiv__(self, right): """ If a,b are p-adic integers, then floordiv (//) satisfies the following equation: a%b + b*(a//b) == a
90740f5e28765780338de01e862b154ee58eb069 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/90740f5e28765780338de01e862b154ee58eb069/padic_ring_capped_relative_element.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 74, 383, 517, 427, 972, 12, 2890, 16, 2145, 4672, 3536, 971, 279, 16, 70, 854, 293, 17, 20333, 12321, 16, 1508, 20802, 517, 427, 261, 759, 13, 17917, 326, 3751, 15778, 30, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 74, 383, 517, 427, 972, 12, 2890, 16, 2145, 4672, 3536, 971, 279, 16, 70, 854, 293, 17, 20333, 12321, 16, 1508, 20802, 517, 427, 261, 759, 13, 17917, 326, 3751, 15778, 30, 279, ...
data = list(csv.reader(input, quotechar='"', delimiter=','))
reader = csv.reader(input, quotechar='"', delimiter=',') fields = reader.next()
def convert_csv_import(cr, module, fname, csvcontent, idref={}, mode='init'): if mode != 'init': return model = ('.'.join(fname.split('.')[:-1]).split('-'))[0] #model = fname.split('.')[0].replace('_', '.') #remove folder path from model head, model = os.path.split(model) pool = pooler.get_pool(cr.dbname)
619372b7f29df31e5b50052165eb1934d6b3dfb5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12853/619372b7f29df31e5b50052165eb1934d6b3dfb5/convert.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 6715, 67, 5666, 12, 3353, 16, 1605, 16, 5299, 16, 6101, 1745, 16, 612, 1734, 28793, 1965, 2218, 2738, 11, 4672, 309, 1965, 480, 296, 2738, 4278, 327, 938, 273, 7707, 1093, 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, 1765, 67, 6715, 67, 5666, 12, 3353, 16, 1605, 16, 5299, 16, 6101, 1745, 16, 612, 1734, 28793, 1965, 2218, 2738, 11, 4672, 309, 1965, 480, 296, 2738, 4278, 327, 938, 273, 7707, 1093, 18...
if key in self.strongTroves:
if weakRef and key in self.weakTroves: del self.weakTroves[key] elif not weakRef and key in self.strongTroves:
def delTrove(self, name, version, flavor, missingOkay):
e61801f00d1b0eac9a62f13fcbff8b887ecff201 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/e61801f00d1b0eac9a62f13fcbff8b887ecff201/trove.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1464, 56, 303, 537, 12, 2890, 16, 508, 16, 1177, 16, 19496, 16, 3315, 8809, 528, 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...
[ 1, 1, 1, 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, 1464, 56, 303, 537, 12, 2890, 16, 508, 16, 1177, 16, 19496, 16, 3315, 8809, 528, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
deps, _ = self.getCombinedDeps(classId, variants, buildType)
deps, cached = self.getCombinedDeps(classId, variants, buildType) if self._console.getLevel() is "info": self._console.dot("%s" % "." if cached else "*")
def sortClassesRecurser(classId, available, variants, result, path): if classId in result: return
8e95d952ae4c4cd9b205bfa28bbd240c02bb392c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/8e95d952ae4c4cd9b205bfa28bbd240c02bb392c/DependencyLoader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1524, 4818, 426, 1397, 550, 12, 1106, 548, 16, 2319, 16, 12935, 16, 563, 16, 589, 4672, 309, 31181, 316, 563, 30, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1524, 4818, 426, 1397, 550, 12, 1106, 548, 16, 2319, 16, 12935, 16, 563, 16, 589, 4672, 309, 31181, 316, 563, 30, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
def my_scroller_go_300_900(bt, sc, *args, **kwargs):
def my_scroller_go_300_900(bt, sc):
def my_scroller_go_300_900(bt, sc, *args, **kwargs): sc.region_bring_in(300, 900, 318, 318)
ef127faaba8fc06ebbb7bd48a4185405cdfc6a4e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12343/ef127faaba8fc06ebbb7bd48a4185405cdfc6a4e/test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3399, 67, 1017, 1539, 67, 3240, 67, 19249, 67, 29, 713, 12, 23602, 16, 888, 4672, 888, 18, 6858, 67, 2848, 310, 67, 267, 12, 19249, 16, 2468, 713, 16, 890, 2643, 16, 890, 2643, 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, 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, 3399, 67, 1017, 1539, 67, 3240, 67, 19249, 67, 29, 713, 12, 23602, 16, 888, 4672, 888, 18, 6858, 67, 2848, 310, 67, 267, 12, 19249, 16, 2468, 713, 16, 890, 2643, 16, 890, 2643, 13, ...
filetool.directory("./provider/data/resource") filetool.directory("./provider/resource")
approot = context.jobconf.get("provider/app-root", "./provider") filetool.directory(approot+"/data/resource") filetool.directory(approot+"/resource")
def copyResource(res): filetool.directory("provider/resource/"+os.path.dirname(res)) shutil.copy("source/resource/"+res, "provider/resource/"+res) return
35504987738e3e8f7d4a869e1d00ed7a02125938 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/35504987738e3e8f7d4a869e1d00ed7a02125938/CodeProvider.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 1420, 12, 455, 4672, 661, 278, 1371, 18, 5149, 2932, 6778, 19, 3146, 4898, 15, 538, 18, 803, 18, 12287, 12, 455, 3719, 11060, 18, 3530, 2932, 3168, 19, 3146, 4898, 15, 455, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 1420, 12, 455, 4672, 661, 278, 1371, 18, 5149, 2932, 6778, 19, 3146, 4898, 15, 538, 18, 803, 18, 12287, 12, 455, 3719, 11060, 18, 3530, 2932, 3168, 19, 3146, 4898, 15, 455, 16, ...
hour * self.hourHeight - (hText/2))
hour * self.hourHeight - (hText/2))
def DrawBackground(self, dc): styles = self.parent self._doDrawingCalculations()
590a7421d4a56497721ad83a36a6f3eb4226407e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/590a7421d4a56497721ad83a36a6f3eb4226407e/CalendarCanvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10184, 8199, 12, 2890, 16, 6744, 4672, 5687, 273, 365, 18, 2938, 365, 6315, 2896, 26885, 4844, 1012, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10184, 8199, 12, 2890, 16, 6744, 4672, 5687, 273, 365, 18, 2938, 365, 6315, 2896, 26885, 4844, 1012, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
"test_set_size(%) : "+format_value("%-8.4f",flags_pc),
"test_set_size : "+format_value("%-8.4f",flags_pc),
def show_data(fmodel, n_outl, test_flag_value, f_obs_labels): info = fmodel.info() flags_pc = \ fmodel.r_free_flags.data().count(True)*1./fmodel.r_free_flags.data().size() print " Data:" try: f_obs_labels = f_obs_labels[:f_obs_labels.index(",")] except ValueError: pass result = " \n ".join([ "data_label ...
c3b0cf38bc2af221930da7f62cdd3a8938d72a2b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/696/c3b0cf38bc2af221930da7f62cdd3a8938d72a2b/model_vs_data.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 892, 12, 74, 2284, 16, 290, 67, 659, 80, 16, 1842, 67, 6420, 67, 1132, 16, 284, 67, 10992, 67, 5336, 4672, 1123, 273, 284, 2284, 18, 1376, 1435, 2943, 67, 2436, 273, 521, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 892, 12, 74, 2284, 16, 290, 67, 659, 80, 16, 1842, 67, 6420, 67, 1132, 16, 284, 67, 10992, 67, 5336, 4672, 1123, 273, 284, 2284, 18, 1376, 1435, 2943, 67, 2436, 273, 521, ...
def _find_exe(exe): for v in get_devstudio_versions(): for p in get_msvc_paths('path',v): fn = os.path.join(os.path.abspath(p),exe) if os.path.isfile(fn): return fn try: for p in string.split(os.environ['Path'],';'): fn=os.path.join(os.path.abspath(p),exe) if os.path.isfile(fn): return fn except: pass return exe d...
def find_exe (exe, version_number): """Try to find an MSVC executable program 'exe' (from version 'version_number' of MSVC) in several places: first, one of the MSVC program search paths from the registry; next, the directories in the PATH environment variable. If any of those work, return an absolute path that is kno...
def _find_exe(exe): for v in get_devstudio_versions(): for p in get_msvc_paths('path',v): fn = os.path.join(os.path.abspath(p),exe) if os.path.isfile(fn): return fn #didn't find it; try existing path try: for p in string.split(os.environ['Path'],';'): fn=os.path.join(os.path.abspath(p),exe) if os.path.isfile(fn): retu...
699880931e52bf7d77326f3308151b37cee42dfe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/699880931e52bf7d77326f3308151b37cee42dfe/msvccompiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 67, 14880, 12, 14880, 4672, 364, 331, 316, 336, 67, 5206, 334, 4484, 67, 10169, 13332, 364, 293, 316, 336, 67, 959, 4227, 67, 4481, 2668, 803, 2187, 90, 4672, 2295, 273, 114...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4720, 67, 14880, 12, 14880, 4672, 364, 331, 316, 336, 67, 5206, 334, 4484, 67, 10169, 13332, 364, 293, 316, 336, 67, 959, 4227, 67, 4481, 2668, 803, 2187, 90, 4672, 2295, 273, 114...
str.__init__(self, value)
def __init__(self, value): str.__init__(self, value) self._position=-1
88ed467bd9e9e76a40c98ed4b8c2127b780e0a2d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4487/88ed467bd9e9e76a40c98ed4b8c2127b780e0a2d/inputstream.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 460, 4672, 365, 6315, 3276, 29711, 21, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 460, 4672, 365, 6315, 3276, 29711, 21, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
cCSP.csplog().setLogCategory(cCSP.CSP_ALL) cCSP.csplog().setLogPriority(SimData.LOG_ALERT)
cCSP.csplog().setCategories(cCSP.CSP_ALL) cCSP.csplog().setPriority(SimData.LOG_ERROR)
def compileData(args): datapath = cCSP.getDataPath() cachepath = cCSP.getCachePath() dar = os.path.join(cachepath, "sim.dar") XML = os.path.join(datapath, "XML") cCSP.csplog().setLogCategory(cCSP.CSP_ALL) cCSP.csplog().setLogPriority(SimData.LOG_ALERT) #print "compile %s %s" % (XML, dar) try: from CSP.SimData.Compile i...
3c6140f19b6bc70aeaf66bb7568cd2139834f97a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14747/3c6140f19b6bc70aeaf66bb7568cd2139834f97a/CSPSim.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 751, 12, 1968, 4672, 27807, 273, 276, 28594, 18, 588, 751, 743, 1435, 1247, 803, 273, 276, 28594, 18, 588, 1649, 743, 1435, 302, 297, 273, 1140, 18, 803, 18, 5701, 12, 2493, 803,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 751, 12, 1968, 4672, 27807, 273, 276, 28594, 18, 588, 751, 743, 1435, 1247, 803, 273, 276, 28594, 18, 588, 1649, 743, 1435, 302, 297, 273, 1140, 18, 803, 18, 5701, 12, 2493, 803,...
def parse(stream_or_string, parser=None, bufsize=default_bufsize): if type(stream_or_string) is type(""):
def parse(stream_or_string, parser=None, bufsize=None): if bufsize is None: bufsize = default_bufsize if type(stream_or_string) in [type(""), type(u"")]:
def parse(stream_or_string, parser=None, bufsize=default_bufsize): if type(stream_or_string) is type(""): stream = open(stream_or_string) else: stream = stream_or_string if not parser: parser = xml.sax.make_parser() return DOMEventStream(stream, parser, bufsize)
500fca110f005eb10fd581019263b28b27fed1ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/500fca110f005eb10fd581019263b28b27fed1ca/pulldom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 3256, 67, 280, 67, 1080, 16, 2082, 33, 7036, 16, 1681, 1467, 33, 7036, 4672, 309, 1681, 1467, 353, 599, 30, 1681, 1467, 273, 805, 67, 4385, 1467, 309, 618, 12, 3256, 67, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 3256, 67, 280, 67, 1080, 16, 2082, 33, 7036, 16, 1681, 1467, 33, 7036, 4672, 309, 1681, 1467, 353, 599, 30, 1681, 1467, 273, 805, 67, 4385, 1467, 309, 618, 12, 3256, 67, 28...
return
return OK
def effecttimer( time, args ): char = args[0] effecttype = args[1] bonus = args[2] if effecttype == 6 or effecttype == 7: if not char.hastag( 'agility_effect' ): return OOPS char.dexterity = char.dexterity - bonus char.maxstamina = char.maxstamina - bonus if char.stamina > char.maxstamina: char.stamina = char.maxstami...
1dbb4f996db2ee1cdf189b46c7eeed3786d7b16c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/1dbb4f996db2ee1cdf189b46c7eeed3786d7b16c/potions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5426, 12542, 12, 813, 16, 833, 262, 30, 1149, 273, 833, 63, 20, 65, 5426, 723, 273, 833, 63, 21, 65, 324, 22889, 273, 833, 63, 22, 65, 225, 309, 5426, 723, 422, 1666, 578, 5426, 72...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5426, 12542, 12, 813, 16, 833, 262, 30, 1149, 273, 833, 63, 20, 65, 5426, 723, 273, 833, 63, 21, 65, 324, 22889, 273, 833, 63, 22, 65, 225, 309, 5426, 723, 422, 1666, 578, 5426, 72...
def repaint_rect(self, screen_rect): """repaints the given area
def repaint_rect(self, screen_rect): """repaint the given area
def repaint_rect(self, screen_rect): """repaints the given area LayeredDirty.repaint_rect(screen_rect): return None
d9760f3e4782abb02dd98080337626eefdad67ee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1298/d9760f3e4782abb02dd98080337626eefdad67ee/sprite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24962, 67, 2607, 12, 2890, 16, 5518, 67, 2607, 4672, 3536, 14462, 1598, 326, 864, 5091, 225, 12112, 329, 10785, 18, 14462, 1598, 67, 2607, 12, 9252, 67, 2607, 4672, 327, 599, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24962, 67, 2607, 12, 2890, 16, 5518, 67, 2607, 4672, 3536, 14462, 1598, 326, 864, 5091, 225, 12112, 329, 10785, 18, 14462, 1598, 67, 2607, 12, 9252, 67, 2607, 4672, 327, 599, 2, -100, ...
end = self.txt.GetLastPosition() textstring = self.txt.GetRange(0, end).lower() start = self.txt.GetSelection()[1]
end = editor.GetLastPosition() textstring = editor.GetRange(0, end).lower() start = editor.GetSelection()[1]
def OnFind(self, event): self.nb.SetSelection(1) end = self.txt.GetLastPosition() textstring = self.txt.GetRange(0, end).lower() start = self.txt.GetSelection()[1] findstring = self.finddata.GetFindString().lower() loc = textstring.find(findstring, start) if loc == -1 and start != 0: # string not found, start at beginn...
08ecc92023f15aaa5695a616f9712c980650c7c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/08ecc92023f15aaa5695a616f9712c980650c7c7/Main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 3125, 12, 2890, 16, 871, 4672, 365, 18, 6423, 18, 694, 6233, 12, 21, 13, 679, 273, 4858, 18, 967, 3024, 2555, 1435, 977, 1080, 273, 4858, 18, 967, 2655, 12, 20, 16, 679, 2934, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 3125, 12, 2890, 16, 871, 4672, 365, 18, 6423, 18, 694, 6233, 12, 21, 13, 679, 273, 4858, 18, 967, 3024, 2555, 1435, 977, 1080, 273, 4858, 18, 967, 2655, 12, 20, 16, 679, 2934, ...
extra_compile_args=(('-W -Wall -Wimplicit -Wuninitialized ' '-Wshadow -Wpointer-arith -Wcast-align ' '-Waggregate-return -Wstrict-prototypes ' '-Wnested-externs -Werror').split() + ['-Wp,-U_FORTIFY_SOURCE'])
extra_compile_args=python_cflags_env.split()
def GetIncludes(flags): """Parse a flags string for includes of the form -I<DIR>. Args: flags: a string in shell syntax denoting compiler options Returns: a list of <DIR>s of the includes Raises: ValueError: In the doctests below, note that a single quoted backslash takes four backslashes to represent if it is inside...
d9b120480f63897605d614bd03e7ea585a199071 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4521/d9b120480f63897605d614bd03e7ea585a199071/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 16815, 12, 7133, 4672, 3536, 3201, 279, 2943, 533, 364, 6104, 434, 326, 646, 300, 45, 32, 4537, 18652, 225, 6634, 30, 2943, 30, 279, 533, 316, 5972, 6279, 5545, 17128, 5274, 702, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16815, 12, 7133, 4672, 3536, 3201, 279, 2943, 533, 364, 6104, 434, 326, 646, 300, 45, 32, 4537, 18652, 225, 6634, 30, 2943, 30, 279, 533, 316, 5972, 6279, 5545, 17128, 5274, 702, ...
targetpath = os.path.dirname(os.path.join(sys.prefix, "share", filepath))
targetpath = os.path.dirname(os.path.join("share", filepath))
def copy_tree(*args, **kwargs): outputs = copy_tree_orig(*args, **kwargs) for i in range(len(outputs)): if outputs[i].endswith("bin/smart.py"): outputs[i] = outputs[i][:-3] return outputs
ad92506f689b1b5fc46376b4379d236563bd17e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/ad92506f689b1b5fc46376b4379d236563bd17e1/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 67, 3413, 30857, 1968, 16, 2826, 4333, 4672, 6729, 273, 1610, 67, 3413, 67, 4949, 30857, 1968, 16, 2826, 4333, 13, 364, 277, 316, 1048, 12, 1897, 12, 12295, 3719, 30, 309, 6729, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 67, 3413, 30857, 1968, 16, 2826, 4333, 4672, 6729, 273, 1610, 67, 3413, 67, 4949, 30857, 1968, 16, 2826, 4333, 13, 364, 277, 316, 1048, 12, 1897, 12, 12295, 3719, 30, 309, 6729, ...
"sink_2", self.outside_videoscale.get_static_pad("sink")
"sink_2", self.outside_videoscale.sink_pads().next()
def __init__(self, colorspace, width, height): gst.Bin.__init__(self) self.caps = self.make_caps(colorspace, width, height) self.videomixer = gst.element_factory_make("videomixer", "videomixer") self.add(self.videomixer) self.inside_videoscale = gst.element_factory_make( "videoscale", "inside_videoscale" ) self.add(sel...
25fa8d62942cc5799bc956afc7f91370abdda435 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7705/25fa8d62942cc5799bc956afc7f91370abdda435/videomixer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5740, 909, 16, 1835, 16, 2072, 4672, 314, 334, 18, 9913, 16186, 2738, 972, 12, 2890, 13, 365, 18, 22984, 273, 365, 18, 6540, 67, 22984, 12, 9724, 909, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5740, 909, 16, 1835, 16, 2072, 4672, 314, 334, 18, 9913, 16186, 2738, 972, 12, 2890, 13, 365, 18, 22984, 273, 365, 18, 6540, 67, 22984, 12, 9724, 909, ...
buf += struct.pack("%ds" % BLOCKSIZE, "".join(parts))
buf += "".join(parts).ljust(BLOCKSIZE, NUL)
def tobuf(self, posix=False): """Return a tar header as a string of 512 byte blocks. """ buf = "" type = self.type prefix = ""
4fcc8ae57771eea1ab268e59b461f71bd653ca48 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/4fcc8ae57771eea1ab268e59b461f71bd653ca48/tarfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 4385, 12, 2890, 16, 16366, 33, 8381, 4672, 3536, 990, 279, 8232, 1446, 487, 279, 533, 434, 13908, 1160, 4398, 18, 3536, 1681, 273, 1408, 618, 273, 365, 18, 723, 1633, 273, 1408, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 4385, 12, 2890, 16, 16366, 33, 8381, 4672, 3536, 990, 279, 8232, 1446, 487, 279, 533, 434, 13908, 1160, 4398, 18, 3536, 1681, 273, 1408, 618, 273, 365, 18, 723, 1633, 273, 1408, 2...
print 'execfile', `base_py`
def readprofile(self, baseName, className): """Internal function. It reads BASENAME.tcl and CLASSNAME.tcl into the Tcl Interpreter and calls execfile on BASENAME.py and CLASSNAME.py if such a file exists in the home directory.""" import os if os.environ.has_key('HOME'): home = os.environ['HOME'] else: home = os.curdir ...
0eeeda212ad5efb21a284a930583043fde4d6a11 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/0eeeda212ad5efb21a284a930583043fde4d6a11/Tkinter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 5040, 12, 2890, 16, 16162, 16, 2658, 4672, 3536, 3061, 445, 18, 2597, 6838, 10250, 1985, 18, 88, 830, 471, 7383, 1985, 18, 88, 830, 1368, 326, 399, 830, 5294, 11599, 471, 4097, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 5040, 12, 2890, 16, 16162, 16, 2658, 4672, 3536, 3061, 445, 18, 2597, 6838, 10250, 1985, 18, 88, 830, 471, 7383, 1985, 18, 88, 830, 1368, 326, 399, 830, 5294, 11599, 471, 4097, 11...
if self.config.sticky_date:
if self.revision and self.revision.isdigit(): cmd.extend(['-r', '%s' % self.revision]) elif self.config.sticky_date:
def _checkout(self, buildscript, copydir=None): cmd = ['svn', 'checkout', self.module]
b0626bd61c53fef2877e998199c92d6a8776bd40 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4596/b0626bd61c53fef2877e998199c92d6a8776bd40/svn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 17300, 12, 2890, 16, 1361, 4263, 16, 1610, 1214, 33, 7036, 4672, 1797, 273, 10228, 31505, 2187, 296, 17300, 2187, 365, 18, 2978, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 17300, 12, 2890, 16, 1361, 4263, 16, 1610, 1214, 33, 7036, 4672, 1797, 273, 10228, 31505, 2187, 296, 17300, 2187, 365, 18, 2978, 65, 2, -100, -100, -100, -100, -100, -100, -100, -10...
if node.symbol not in dispatch_table:
func = dispatch_table.get(node.symbol, None) if func is None:
def dispatch(self, node): if isinstance(node, Nonterminal): if node.symbol not in dispatch_table: if __general_nonterminal_visit: return __general_nonterminal_visit(self, node) else: return dispatch_table[node.symbol](self, node) elif isinstance(node, Symbol): if node.symbol not in dispatch_table: if __general_symbol_v...
4854f3840749b007991aabfab299eb1acf367452 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/4854f3840749b007991aabfab299eb1acf367452/tree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3435, 12, 2890, 16, 756, 4672, 309, 1549, 12, 2159, 16, 3858, 15979, 4672, 1326, 273, 3435, 67, 2121, 18, 588, 12, 2159, 18, 7175, 16, 599, 13, 309, 1326, 353, 599, 30, 309, 1001, 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, 3435, 12, 2890, 16, 756, 4672, 309, 1549, 12, 2159, 16, 3858, 15979, 4672, 1326, 273, 3435, 67, 2121, 18, 588, 12, 2159, 18, 7175, 16, 599, 13, 309, 1326, 353, 599, 30, 309, 1001, 12...
HTTPSConnection.putrequest(self, method, url, skip_host, skip_accept_encoding)
HTTPSConnection.putrequest(self, method, rest, skip_host, skip_accept_encoding)
def putrequest(self, method, url, skip_host=0, skip_accept_encoding=0): #putrequest is called before connect, so can interpret url and get #real host/port to be used to make CONNECT request to proxy proto, rest = urllib.splittype(url) if proto is None: raise ValueError, "unknown URL type: %s" % url #get host host, rest...
1b6979c352ba0975bf8b2be22017cf9b73bb9c88 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10522/1b6979c352ba0975bf8b2be22017cf9b73bb9c88/httpslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1378, 2293, 12, 2890, 16, 707, 16, 880, 16, 2488, 67, 2564, 33, 20, 16, 2488, 67, 9436, 67, 5999, 33, 20, 4672, 468, 458, 2293, 353, 2566, 1865, 3077, 16, 1427, 848, 10634, 880, 471,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1378, 2293, 12, 2890, 16, 707, 16, 880, 16, 2488, 67, 2564, 33, 20, 16, 2488, 67, 9436, 67, 5999, 33, 20, 4672, 468, 458, 2293, 353, 2566, 1865, 3077, 16, 1427, 848, 10634, 880, 471,...
os.chmod(self.floppy_img, 0755)
os.chmod(self.floppy, 0755)
def create_boot_floppy(self): """ Prepares a boot floppy by creating a floppy image file, mounting it and copying an answer file (kickstarts for RH based distros, answer files for windows) to it. After that the image is umounted. """ print "Creating boot floppy"
d245408f9a2fd5877bf4770afc7b97ad08147815 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10349/d245408f9a2fd5877bf4770afc7b97ad08147815/unattended.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 7137, 67, 74, 16884, 2074, 12, 2890, 4672, 3536, 2962, 84, 4807, 279, 4835, 284, 16884, 2074, 635, 4979, 279, 284, 16884, 2074, 1316, 585, 16, 5344, 310, 518, 471, 8933, 392, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 7137, 67, 74, 16884, 2074, 12, 2890, 4672, 3536, 2962, 84, 4807, 279, 4835, 284, 16884, 2074, 635, 4979, 279, 284, 16884, 2074, 1316, 585, 16, 5344, 310, 518, 471, 8933, 392, ...
elif algorithm == 'bober':
if not k is None: raise ValueError, "only the GAP algorithm works if k is specified." if algorithm == 'default' and k is None: return partitions_ext.number_of_partitions(n) elif algorithm == 'bober' and k is None:
def number_of_partitions(n,k=None, algorithm='bober'): r""" Returns the size of partitions_list(n,k). INPUT: n -- an integer k -- (default: None); if specified, instead returns the cardinality of the set of all (unordered) partitions of the positive integer n into sums with k summands. algorithm -- (default: 'bober') ...
8a5d6da61789d8ca741f4ba72dacb9a127d70350 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/8a5d6da61789d8ca741f4ba72dacb9a127d70350/combinat.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1300, 67, 792, 67, 21275, 12, 82, 16, 79, 33, 7036, 16, 4886, 2218, 1075, 744, 11, 4672, 436, 8395, 2860, 326, 963, 434, 10060, 67, 1098, 12, 82, 16, 79, 2934, 225, 12943, 30, 290, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1300, 67, 792, 67, 21275, 12, 82, 16, 79, 33, 7036, 16, 4886, 2218, 1075, 744, 11, 4672, 436, 8395, 2860, 326, 963, 434, 10060, 67, 1098, 12, 82, 16, 79, 2934, 225, 12943, 30, 290, ...
msg = self.format(record)
msg = self.format(record) + '\000'
def emit(self, record): """ Emit a record.
89d8f82d01b7d0191c07d5553979ffe53d55cf6e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/89d8f82d01b7d0191c07d5553979ffe53d55cf6e/handlers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3626, 12, 2890, 16, 1409, 4672, 3536, 16008, 279, 1409, 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, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3626, 12, 2890, 16, 1409, 4672, 3536, 16008, 279, 1409, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
"\nInput:", str(test['input']), "\nExpected:", str(output), "\nreceived:", str(tokens)]) tokens = normalizeTokens(tokens)
"\nInput:", test['input'], "\nExpected:", unicode(output), "\nreceived:", unicode(tokens)])
def runTokenizerTest(self, test): #XXX - move this out into the setup function #concatenate all consecutive character tokens into a single token output = concatenateCharacterTokens(test['output']) if 'lastStartTag' not in test: test['lastStartTag'] = None parser = TokenizerTestParser(test['contentModelFlag'], test['las...
1dcada439e24d6ac44770791accd5c073c1cf2bc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4487/1dcada439e24d6ac44770791accd5c073c1cf2bc/test_tokenizer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 10524, 4709, 12, 2890, 16, 1842, 4672, 468, 15639, 300, 3635, 333, 596, 1368, 326, 3875, 445, 468, 16426, 275, 340, 777, 18221, 3351, 2430, 1368, 279, 2202, 1147, 876, 273, 11361, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10524, 4709, 12, 2890, 16, 1842, 4672, 468, 15639, 300, 3635, 333, 596, 1368, 326, 3875, 445, 468, 16426, 275, 340, 777, 18221, 3351, 2430, 1368, 279, 2202, 1147, 876, 273, 11361, ...
creationflags |= CREATE_NEW_CONSOLE
creationflags |= _subprocess.CREATE_NEW_CONSOLE
def _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite): """Execute program (MS Windows version)"""
7d139c76c8e23ecba07fdb99f6a8ba8c60fd6097 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/7d139c76c8e23ecba07fdb99f6a8ba8c60fd6097/subprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8837, 67, 3624, 12, 2890, 16, 833, 16, 9070, 16, 675, 4177, 67, 4293, 16, 1746, 67, 74, 2377, 16, 7239, 16, 1550, 16, 26182, 67, 31276, 16, 11850, 1376, 16, 6710, 7133, 16, 5972...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8837, 67, 3624, 12, 2890, 16, 833, 16, 9070, 16, 675, 4177, 67, 4293, 16, 1746, 67, 74, 2377, 16, 7239, 16, 1550, 16, 26182, 67, 31276, 16, 11850, 1376, 16, 6710, 7133, 16, 5972...
self.__innerobj__ = innerclass() self.UnitClass = innerclass.UnitClass
innerobj = innerclass() self.__innerobj__ = innerobj self.UnitClass = innerobj.UnitClass
def __init__(self, project=None, pofilename=None, generatestats=True): if pofilename: innerclass = factory.getclass(pofilename) self.__innerobj__ = innerclass() self.UnitClass = innerclass.UnitClass self.pofilename = pofilename if project is None: from Pootle import projects self.project = projects.DummyProject(None) ...
f385cdb203c278adf8713f2b0a4de3b271e9ccfb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11388/f385cdb203c278adf8713f2b0a4de3b271e9ccfb/pootlefile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1984, 33, 7036, 16, 293, 792, 2550, 33, 7036, 16, 1215, 270, 395, 2323, 33, 5510, 4672, 309, 293, 792, 2550, 30, 3443, 1106, 273, 3272, 18, 588, 1106, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1984, 33, 7036, 16, 293, 792, 2550, 33, 7036, 16, 1215, 270, 395, 2323, 33, 5510, 4672, 309, 293, 792, 2550, 30, 3443, 1106, 273, 3272, 18, 588, 1106, ...
self_repr = '<__repr__ (self) failed for object at %0x>' % id(self) self.log_info (
self_repr = '<__repr__(self) failed for object at %0x>' % id(self) self.log_info(
def handle_error (self): nil, t, v, tbinfo = compact_traceback()
79991224d1b5f3a4ab074ddac83ef59addf853be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/79991224d1b5f3a4ab074ddac83ef59addf853be/asyncore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 1636, 261, 2890, 4672, 515, 16, 268, 16, 331, 16, 8739, 1376, 273, 6739, 67, 21696, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 1636, 261, 2890, 4672, 515, 16, 268, 16, 331, 16, 8739, 1376, 273, 6739, 67, 21696, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if not os.path.isdir(os.path.join(directory, 'private/')): if os.path.exists(os.path.join(directory, 'private/')): raise ValueError('%r is not a directory' % os.path.join(directory, 'private/')) os.mkdir(os.path.join(directory, 'private/')) self._show_private = 1 self._cssfile = '../epydoc.css' self._write_docs(os.pa...
if self._create_private_docs: if not os.path.isdir(os.path.join(directory, 'private/')): if os.path.exists(os.path.join(directory, 'private/')): raise OSError('%r is not a directory' % os.path.join(directory, 'private/')) os.mkdir(os.path.join(directory, 'private/')) if not os.path.isdir(os.path.join(directory, 'public...
def write(self, directory=None, progress_callback=None): """ Write the documentation to the given directory.
60b4598f963657af72659f4c3492b6028c51c37e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/60b4598f963657af72659f4c3492b6028c51c37e/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1867, 33, 7036, 16, 4007, 67, 3394, 33, 7036, 4672, 3536, 2598, 326, 7323, 358, 326, 864, 1867, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1867, 33, 7036, 16, 4007, 67, 3394, 33, 7036, 4672, 3536, 2598, 326, 7323, 358, 326, 864, 1867, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
cT = matrixmultiply( matrixmultiply(transpose(evec_L), T_orig), evec_L)
cT = matrixmultiply(matrixmultiply(RL, T0), RLt)
def calc_TLS_center_of_reaction(T_orig, L_orig, S_orig, origin): """Calculate new tensors based on the center for reaction. This method returns a dictionary of the calculations: T^: T tensor in the coordinate system of L L^: L tensor in the coordinate system of L S^: S tensor in the coordinate system of L COR: Center...
742140185bc8b6b74df991525abcac33bdc82b5f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10674/742140185bc8b6b74df991525abcac33bdc82b5f/TLS.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 9905, 67, 5693, 67, 792, 67, 266, 1128, 12, 56, 67, 4949, 16, 511, 67, 4949, 16, 348, 67, 4949, 16, 4026, 4672, 3536, 8695, 394, 25122, 2511, 603, 326, 4617, 364, 12836, 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, 7029, 67, 9905, 67, 5693, 67, 792, 67, 266, 1128, 12, 56, 67, 4949, 16, 511, 67, 4949, 16, 348, 67, 4949, 16, 4026, 4672, 3536, 8695, 394, 25122, 2511, 603, 326, 4617, 364, 12836, 18...
print to("Sending song: %s - %s" % (self.queue[i]['artist'], self.queue[i]['title']))
log(to("Sending song: %s - %s" % (self.queue[i]['artist'], self.queue[i]['title'])))
def submit_song_helper(self): if self.__enabled: print "Plugin re-enabled - accepting new songs." if self.submission_tid != -1: gobject.source_remove(self.submission_tid); self.submission_tid = -1 else: print "Plugin disabled - not accepting any new songs." if len(self.queue) > 0: self.submission_tid = gobject.timeout_...
6813e514c46661f83b0631485a195a56144fb77d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/6813e514c46661f83b0631485a195a56144fb77d/qlscrobbler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4879, 67, 816, 75, 67, 4759, 12, 2890, 4672, 309, 365, 16186, 5745, 30, 1172, 315, 3773, 283, 17, 5745, 300, 25806, 394, 272, 7260, 1199, 309, 365, 18, 12684, 67, 18081, 480, 300, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 816, 75, 67, 4759, 12, 2890, 4672, 309, 365, 16186, 5745, 30, 1172, 315, 3773, 283, 17, 5745, 300, 25806, 394, 272, 7260, 1199, 309, 365, 18, 12684, 67, 18081, 480, 300, 21, ...
def whatsthis_text_for_widget(widget): "Return a Python string containing the WhatsThis text for widget (perhaps ""), or None if we can't find that."
def whatsthis_text_for_widget(widget): "Return a Python string containing the WhatsThis text for \ widget (perhaps ""), or None if we can't find that."
def whatsthis_text_for_widget(widget): #bruce 060120 split this out of other code "Return a Python string containing the WhatsThis text for widget (perhaps ""), or None if we can't find that." try: ## original_text = widget.whatsThis() # never works for widgets (though it would work for QActions) text = QWhatsThis.text...
596540c24ceb3b478e904a42e26d7d5dd8809d95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/596540c24ceb3b478e904a42e26d7d5dd8809d95/whatsthis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4121, 20244, 291, 67, 955, 67, 1884, 67, 6587, 12, 6587, 4672, 468, 2848, 3965, 13026, 1611, 3462, 1416, 333, 596, 434, 1308, 981, 315, 990, 279, 6600, 533, 4191, 326, 3497, 2323, 2503, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4121, 20244, 291, 67, 955, 67, 1884, 67, 6587, 12, 6587, 4672, 468, 2848, 3965, 13026, 1611, 3462, 1416, 333, 596, 434, 1308, 981, 315, 990, 279, 6600, 533, 4191, 326, 3497, 2323, 2503, ...
'll_math_fmod' : InstructionList([PushAllArgs, '%']),
'll_math.ll_math_fmod' : InstructionList([PushAllArgs, '%']),
def __init__(self): list_resize = lambda g,op: SetBuiltinField.run_it(g, op.args[1], 'length', op.args[2]) self.builtin_map = { 'll_js_jseval' : CallBuiltin('eval'), 'set_on_keydown' : SetOnEvent('onkeydown'), 'set_on_keyup' : SetOnEvent('onkeyup'), 'setTimeout' : SetTimeout, 'll_int_str' : lambda g,op: Call._render_b...
cb4c11ff256f784abd16df17aa6816aa9238867f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/cb4c11ff256f784abd16df17aa6816aa9238867f/jsbuiltin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 666, 67, 15169, 273, 3195, 314, 16, 556, 30, 1000, 28032, 974, 18, 2681, 67, 305, 12, 75, 16, 1061, 18, 1968, 63, 21, 6487, 296, 2469, 2187, 1061, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 666, 67, 15169, 273, 3195, 314, 16, 556, 30, 1000, 28032, 974, 18, 2681, 67, 305, 12, 75, 16, 1061, 18, 1968, 63, 21, 6487, 296, 2469, 2187, 1061, 18...
if text[1] in ('!', '@'): if text[1:5] in ("info", "find"):
if text[1] in reply_chars: if text[1:5] in my_commands:
def inFilter(self, irc, msg): if msg.command != "PRIVMSG": return msg if not conf.supybot.defaultIgnore(): return msg text = msg.args[1].strip() if len(text) < 6: return msg user = get_user(msg) if user: return msg channel = self.__getChannel(msg.args[0]) if channel: if text[0] not in ('!', '@'): return msg if not text...
283652a263ab69ddf4dea37a7a8e0323c2a2eb2b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3102/283652a263ab69ddf4dea37a7a8e0323c2a2eb2b/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 316, 1586, 12, 2890, 16, 277, 1310, 16, 1234, 4672, 309, 1234, 18, 3076, 480, 315, 7698, 58, 11210, 6877, 327, 1234, 309, 486, 2195, 18, 2859, 93, 4819, 18, 1886, 3777, 13332, 327, 123...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 316, 1586, 12, 2890, 16, 277, 1310, 16, 1234, 4672, 309, 1234, 18, 3076, 480, 315, 7698, 58, 11210, 6877, 327, 1234, 309, 486, 2195, 18, 2859, 93, 4819, 18, 1886, 3777, 13332, 327, 123...
An element of ps_ring which is the q-expansion of eta(q)/q^{1/24} truncated to n terms.
An element of ps_ring which is the q-expansion of $\eta(q)/q^{1/24}$ truncated to n terms.
def qexp_eta(ps_ring, n): r""" Return the q-expansion of $\eta(q) / q^{1/24}$, where $\eta(q)$ is Dedekind's function $$\eta(q) = q^{1/24}\prod_{i=1}^\infty (1-q^i)$$, as an element of ps_ring, to precision n. Completely naive algorithm. INPUTS: -- (PowerSeriesRing) ps_ring: a power series ring -- we pass this as an a...
0c130fed7b356e022134568630e483428d00fec2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0c130fed7b356e022134568630e483428d00fec2/etaproducts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1043, 2749, 67, 1066, 12, 1121, 67, 8022, 16, 290, 4672, 436, 8395, 2000, 326, 1043, 17, 2749, 12162, 434, 271, 64, 1066, 12, 85, 13, 342, 1043, 66, 95, 21, 19, 3247, 22496, 16, 1625...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1043, 2749, 67, 1066, 12, 1121, 67, 8022, 16, 290, 4672, 436, 8395, 2000, 326, 1043, 17, 2749, 12162, 434, 271, 64, 1066, 12, 85, 13, 342, 1043, 66, 95, 21, 19, 3247, 22496, 16, 1625...
def get_doc(project, source_code, offset, resource=None):
def get_doc(project, source_code, offset, resource=None, maxfixes=1):
def get_doc(project, source_code, offset, resource=None): """Get the pydoc""" word_finder = WordRangeFinder(source_code) lineno = source_code[:offset].count('\n') expression = word_finder.get_primary_at(offset) pymodule = _get_pymodule(project.pycore, source_code, resource) scope = pymodule.get_scope().get_inner_scope_...
df7197863d122070af59387f151cabe16640632c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8286/df7197863d122070af59387f151cabe16640632c/codeassist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2434, 12, 4406, 16, 1084, 67, 710, 16, 1384, 16, 1058, 33, 7036, 16, 943, 904, 281, 33, 21, 4672, 3536, 967, 326, 2395, 2434, 8395, 2076, 67, 15356, 273, 9926, 2655, 8441, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2434, 12, 4406, 16, 1084, 67, 710, 16, 1384, 16, 1058, 33, 7036, 16, 943, 904, 281, 33, 21, 4672, 3536, 967, 326, 2395, 2434, 8395, 2076, 67, 15356, 273, 9926, 2655, 8441, 1...
L += srange(args[i-1]+diff, args[i+1]+1, diff, universe=universe, check=False)
L += srange(args[i-1]+diff, args[i+1], diff, universe=universe, check=False, include_endpoint=True)
def ellipsis_range(*args): """ Return arithmatic sequence determined by the numeric arguments and ellipsis. Best illistrated by examples. Use [1,2,..,n] notation. EXAMPLES: sage: ellipsis_range(1,Ellipsis,11,100) [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 100] sage: ellipsis_range(0,2,Ellipsis,10,Ellipsis,20) [0, 2, 4, 6, 8...
b0407bebdcafbc7357b33c8faa600978ff6cc467 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/b0407bebdcafbc7357b33c8faa600978ff6cc467/misc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28992, 67, 3676, 30857, 1968, 4672, 3536, 2000, 419, 13612, 2126, 3102, 11383, 635, 326, 6389, 1775, 471, 28992, 18, 25717, 277, 2906, 3337, 690, 635, 10991, 18, 225, 2672, 306, 21, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28992, 67, 3676, 30857, 1968, 4672, 3536, 2000, 419, 13612, 2126, 3102, 11383, 635, 326, 6389, 1775, 471, 28992, 18, 25717, 277, 2906, 3337, 690, 635, 10991, 18, 225, 2672, 306, 21, 16, ...
if self.rotatePhysics: rotMat=Mat3.rotateMatNormaxis(self.avatarNodePath.getH(), Vec3.up()) step=rotMat.xform(self.__vel) physObject.setPosition(Point3( physObject.getPosition()+step)) o=physObject.getOrientation() r=LOrientationf() r.setHpr(Vec3(rotation, 0.0, 0.0)) physObject.setOrientation(o*r) self.actorNode....
rotMat=Mat3.rotateMatNormaxis(self.avatarNodePath.getH(), Vec3.up()) step=rotMat.xform(self.__vel) physObject.setPosition(Point3( physObject.getPosition()+step)) o=physObject.getOrientation() r=LOrientationf() r.setHpr(Vec3(rotation, 0.0, 0.0)) physObject.setOrientation(o*r) self.actorNode.updateTransform() asse...
def handleAvatarControls(self, task): """ Check on the arrow keys and update the avatar. """ onScreenDebug.append("localToon pos = %s\n"%(toonbase.localToon.getPos().pPrintValues(),)) onScreenDebug.append("localToon hpr = %s\n"%(toonbase.localToon.getHpr().pPrintValues(),)) #assert(self.debugPrint("handleAvatarControls...
ff162e6b6bbdfa3219fdd78044bc7b872cf16b82 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/ff162e6b6bbdfa3219fdd78044bc7b872cf16b82/PhysicsWalker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 23999, 16795, 12, 2890, 16, 1562, 4672, 3536, 2073, 603, 326, 12274, 1311, 471, 1089, 326, 16910, 18, 3536, 603, 7956, 2829, 18, 6923, 2932, 3729, 774, 265, 949, 273, 738, 87, 64, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 23999, 16795, 12, 2890, 16, 1562, 4672, 3536, 2073, 603, 326, 12274, 1311, 471, 1089, 326, 16910, 18, 3536, 603, 7956, 2829, 18, 6923, 2932, 3729, 774, 265, 949, 273, 738, 87, 64, ...
for checkArgName in expected.keys():
s = str(e) for checkArgName in expected:
def testAttributes(self): # test that exception attributes are happy try: str(u'Hello \u00E1') except Exception, e: sampleUnicodeEncodeError = e
eb7f68e05bf7b363bbe5678de958f5bc6ce66ba0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/eb7f68e05bf7b363bbe5678de958f5bc6ce66ba0/test_exceptions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2498, 12, 2890, 4672, 468, 1842, 716, 1520, 1677, 854, 5622, 2074, 775, 30, 609, 12, 89, 11, 18601, 521, 89, 713, 41, 21, 6134, 1335, 1185, 16, 425, 30, 3296, 16532, 5509, 668, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2498, 12, 2890, 4672, 468, 1842, 716, 1520, 1677, 854, 5622, 2074, 775, 30, 609, 12, 89, 11, 18601, 521, 89, 713, 41, 21, 6134, 1335, 1185, 16, 425, 30, 3296, 16532, 5509, 668, ...
"""
r"""
def FuzzyBallGraph(self, partition, q): """ Construct a Fuzzy Ball graph with the integer partition ``partition`` and ``q`` extra vertices.
7d7db5252f36fea2d87565cac78d6b6e8b3c44b4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/7d7db5252f36fea2d87565cac78d6b6e8b3c44b4/graph_generators.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 478, 13903, 38, 454, 4137, 12, 2890, 16, 3590, 16, 1043, 4672, 436, 8395, 14291, 279, 478, 13903, 605, 454, 2667, 598, 326, 3571, 3590, 12176, 10534, 10335, 471, 12176, 85, 10335, 2870, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 478, 13903, 38, 454, 4137, 12, 2890, 16, 3590, 16, 1043, 4672, 436, 8395, 14291, 279, 478, 13903, 605, 454, 2667, 598, 326, 3571, 3590, 12176, 10534, 10335, 471, 12176, 85, 10335, 2870, ...
%s """ % (start_string_prefix, uric, urilast, uric, urilast, uric, urilast, emailc, emailc, emailc, emailc, urilast, end_string_suffix,), re.VERBOSE))
%(end_string_suffix)s """ % locals(), re.VERBOSE))
def parse(self, text, lineno, memo, parent): """ Return 2 lists: nodes (text and inline elements), and system_messages.
9fe47ec4311156cad473d8ed8bf0dba5fd73c14e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/9fe47ec4311156cad473d8ed8bf0dba5fd73c14e/states.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 977, 16, 7586, 16, 11063, 16, 982, 4672, 3536, 2000, 576, 6035, 30, 2199, 261, 955, 471, 6370, 2186, 3631, 471, 2619, 67, 6833, 18, 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, 1109, 12, 2890, 16, 977, 16, 7586, 16, 11063, 16, 982, 4672, 3536, 2000, 576, 6035, 30, 2199, 261, 955, 471, 6370, 2186, 3631, 471, 2619, 67, 6833, 18, 2, -100, -100, -100, -100, -100,...
""" if not self.dominates(Partition_class(p)):
sage: p/Partition([1,1]) [[3, 2, 1], [1, 1]] """ if not self.dominates(p):
def __div__(self, p): """ Returns the skew partition self/p.
11ea804844c7b6f19ea1338ae965390e87f57ad0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/11ea804844c7b6f19ea1338ae965390e87f57ad0/partition.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2892, 972, 12, 2890, 16, 293, 4672, 3536, 2860, 326, 20001, 3590, 365, 19, 84, 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, ...
[ 1, 1, 1, 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, 2892, 972, 12, 2890, 16, 293, 4672, 3536, 2860, 326, 20001, 3590, 365, 19, 84, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
make_interwiki = interwiki
def get_licenses(metabook): """Return list of licenses @returns: list of dicts with license info @rtype: [dict] """ import re from mwlib import utils licenses = [] for license in metabook.licenses: wikitext = '' if license.get('mw_license_url'): url = license['mw_license_url'] if re.match(r'^.*/index\.php.*action=raw...
6fd2e93be64d9caaa57615092163b91232689051 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/6fd2e93be64d9caaa57615092163b91232689051/metabook.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 80, 16548, 12, 10578, 378, 1184, 4672, 3536, 990, 666, 434, 26457, 225, 632, 6154, 30, 666, 434, 15838, 598, 8630, 1123, 632, 86, 723, 30, 306, 1576, 65, 3536, 1930, 283, 628,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 80, 16548, 12, 10578, 378, 1184, 4672, 3536, 990, 666, 434, 26457, 225, 632, 6154, 30, 666, 434, 15838, 598, 8630, 1123, 632, 86, 723, 30, 306, 1576, 65, 3536, 1930, 283, 628,...
pprint(differences, stream=temp)
pprint(differences, stream = temp)
def assert_equals_file_content(reference_file, fixture, filetype='xml'): if os.path.isfile(fixture): with open(fixture) as fixture_file: fixture_content = fixture_file.read() else: fixture_content = fixture with open(reference_file) as expected_file: expected_content = expected_file.read() if filetype == 'xml': print...
2f91f278ccfb5e2a91b746aa648b3b571226f944 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13008/2f91f278ccfb5e2a91b746aa648b3b571226f944/helper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 67, 14963, 67, 768, 67, 1745, 12, 6180, 67, 768, 16, 16678, 16, 18902, 2218, 2902, 11, 4672, 309, 1140, 18, 803, 18, 291, 768, 12, 904, 10970, 4672, 598, 1696, 12, 904, 10970, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 67, 14963, 67, 768, 67, 1745, 12, 6180, 67, 768, 16, 16678, 16, 18902, 2218, 2902, 11, 4672, 309, 1140, 18, 803, 18, 291, 768, 12, 904, 10970, 4672, 598, 1696, 12, 904, 10970, ...
mysmtp = smtplib.SMTP(self.settings['E-mail']['SMTP Server'], self.settings['E-mail']['SMTP Port']) if self.cmdoptions.debug: mysmtp.set_debuglevel(1) if self.settings['E-mail']['SMTP Use TLS'] == True: mysmtp.ehlo() mysmtp.starttls() mysmtp.ehlo() if self.settings['E-mail']['SMTP Needs Login'] == True: mysmtp.logi...
def SendZipByEmail(self): '''Send the zipped logfile archive by email, using mail settings specified in the .ini file ''' # basic logic flow: #~ if autozip is not enabled, just call the ziplogfiles function ourselves #~ read ziplog.txt (in a try block) and check if it conforms to being a proper zip filename #~ if not,...
6ed57ae951689329f84b1af783026391157d52a4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3638/6ed57ae951689329f84b1af783026391157d52a4/logwriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2479, 9141, 858, 4134, 12, 2890, 4672, 9163, 3826, 326, 3144, 1845, 15204, 5052, 635, 2699, 16, 1450, 4791, 1947, 1269, 316, 326, 263, 8767, 585, 9163, 468, 5337, 4058, 4693, 30, 468, 98...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2479, 9141, 858, 4134, 12, 2890, 4672, 9163, 3826, 326, 3144, 1845, 15204, 5052, 635, 2699, 16, 1450, 4791, 1947, 1269, 316, 326, 263, 8767, 585, 9163, 468, 5337, 4058, 4693, 30, 468, 98...
sendchannel("Stimme gegen %s gezählt. Zuständige Stellen sind verständigt." % (target))
sendchannel("Stimme gegen %s gezählt. \ Zuständige Stellen sind verständigt." % (target))
def checkTimeOut(votes): if votes[0][1] + TIMEOUT > time(): return votes # no votes have timed out elif len(votes) > 1: return checkTimeOut(votes[1:]) # oldest vote has timed out, continue checking else: return [] # no valid vote left
17c61548967182a27edf171b75277fa10ff63052 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14907/17c61548967182a27edf171b75277fa10ff63052/scherbengericht.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 950, 1182, 12, 27800, 4672, 309, 19588, 63, 20, 6362, 21, 65, 397, 24374, 405, 813, 13332, 327, 19588, 10792, 468, 1158, 19588, 1240, 7491, 596, 1327, 562, 12, 27800, 13, 405, 404, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 950, 1182, 12, 27800, 4672, 309, 19588, 63, 20, 6362, 21, 65, 397, 24374, 405, 813, 13332, 327, 19588, 10792, 468, 1158, 19588, 1240, 7491, 596, 1327, 562, 12, 27800, 13, 405, 404, ...
self.window.set_default_size(START_SIZE, START_SIZE / self.frameAspect)
self.window.set_default_size(int(START_SIZE), int(START_SIZE / self.frameAspect))
def __init__(self, playlist, aspect=None): self.playlist = playlist self.filename, self.filepath = "", '' self.child, self.fullscreen = None, False # Load the keyboard config self.keyConfig = loadMplayerInputConf()
4bcd650be30355c515963579d01b822c8b61d3ac /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13137/4bcd650be30355c515963579d01b822c8b61d3ac/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 16428, 16, 9648, 33, 7036, 4672, 365, 18, 1601, 1098, 273, 16428, 365, 18, 3459, 16, 365, 18, 10561, 273, 23453, 875, 365, 18, 3624, 16, 365, 18, 2854, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16428, 16, 9648, 33, 7036, 4672, 365, 18, 1601, 1098, 273, 16428, 365, 18, 3459, 16, 365, 18, 10561, 273, 23453, 875, 365, 18, 3624, 16, 365, 18, 2854, ...
rv = command for arg in args: rv += ' ' + arg return rv
return command + ' ' + ' '.join(args)
def onData(self, command, args): self.inData = True if self.train_as_ham == True or self.train_as_spam == True: self.push("250 OK\r\n") return None rv = command for arg in args: rv += ' ' + arg return rv
59bfd5959a729786d46fcecf45ea4ead85dee759 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/59bfd5959a729786d46fcecf45ea4ead85dee759/smtpproxy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 751, 12, 2890, 16, 1296, 16, 833, 4672, 365, 18, 267, 751, 273, 1053, 309, 365, 18, 9754, 67, 345, 67, 31698, 422, 1053, 578, 365, 18, 9754, 67, 345, 67, 1752, 301, 422, 1053, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 751, 12, 2890, 16, 1296, 16, 833, 4672, 365, 18, 267, 751, 273, 1053, 309, 365, 18, 9754, 67, 345, 67, 31698, 422, 1053, 578, 365, 18, 9754, 67, 345, 67, 1752, 301, 422, 1053, ...
headers = forget(context, request)
headers = forget(request)
def forget(request): """ Return a sequence of header tuples (e.g. ``[('Set-Cookie', 'foo=abc')]``) suitable for 'forgetting' the set of credentials possessed by the currently authenticated user. A common usage might look like so within the body of a view function (``response`` is assumed to be an WebOb-style response ...
ff65a5a7b6177759191071be8790d02bd4c0ce8e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14321/ff65a5a7b6177759191071be8790d02bd4c0ce8e/security.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13776, 12, 2293, 4672, 3536, 2000, 279, 3102, 434, 1446, 10384, 261, 73, 18, 75, 18, 12176, 63, 2668, 694, 17, 6151, 2187, 296, 11351, 33, 18947, 6134, 65, 10335, 13, 10631, 364, 296, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13776, 12, 2293, 4672, 3536, 2000, 279, 3102, 434, 1446, 10384, 261, 73, 18, 75, 18, 12176, 63, 2668, 694, 17, 6151, 2187, 296, 11351, 33, 18947, 6134, 65, 10335, 13, 10631, 364, 296, ...
return ''
return ''
def read(self, *args): return ''
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, 855, 12, 2890, 16, 380, 1968, 4672, 327, 875, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 380, 1968, 4672, 327, 875, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
filename = "Start.hylt"
filename = "./Start.hylt"
def hyltMain (meta_screen, starting_filename): """The core Hylt functionality. Contains the main input and display loops, lots of initialization, and so on. """ curses.curs_set(0) # Remember: Parameters are in the order of (y, x). meta_y, meta_x = meta_screen.getmaxyx() core_state = {"y": meta_y, "x": meta_x} # Kee...
843f70834e8ac11c56ad86655cbfe1784bd17647 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2254/843f70834e8ac11c56ad86655cbfe1784bd17647/hylt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4855, 5618, 6376, 261, 3901, 67, 9252, 16, 5023, 67, 3459, 4672, 3536, 1986, 2922, 14881, 5618, 14176, 18, 225, 8398, 326, 2774, 810, 471, 2562, 14075, 16, 328, 6968, 434, 10313, 16, 471...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4855, 5618, 6376, 261, 3901, 67, 9252, 16, 5023, 67, 3459, 4672, 3536, 1986, 2922, 14881, 5618, 14176, 18, 225, 8398, 326, 2774, 810, 471, 2562, 14075, 16, 328, 6968, 434, 10313, 16, 471...
('/lib', None, stat.S_IFDIR),
('/lib/', None, stat.S_IFDIR),
def doFile(self, path):
71c13a0c0e57b6b6fae1f2b9de56ec3358d7a246 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/71c13a0c0e57b6b6fae1f2b9de56ec3358d7a246/destdirpolicy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 812, 12, 2890, 16, 589, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 812, 12, 2890, 16, 589, 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, ...
line_num = 0
def main(): #First, get number of CPUs, defaulting to 1 num_cpu = 1 pipe = getShellPipe("sysctl hw.ncpu") for line in pipe: line_s = line.split(" ") if len(line_s) > 1: num_cpu = int(line_s[1]) pipe.close() # Next, get physical memory (RAM), defaulting to 1 gig phys_mem = 1000000000 pipe = getShellPipe("sysctl hw.phy...
2e9fee9ad2f043506898233224a839199f64aeb8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/2e9fee9ad2f043506898233224a839199f64aeb8/Mac_BSD_resources.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 225, 468, 3759, 16, 336, 1300, 434, 5181, 3477, 16, 805, 310, 358, 404, 818, 67, 11447, 273, 404, 6010, 273, 7932, 1165, 11546, 2932, 9499, 12930, 16139, 18, 82, 11447, 7923...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 468, 3759, 16, 336, 1300, 434, 5181, 3477, 16, 805, 310, 358, 404, 818, 67, 11447, 273, 404, 6010, 273, 7932, 1165, 11546, 2932, 9499, 12930, 16139, 18, 82, 11447, 7923...
self.svc_mgmt.hide()
self.service_controller_close()
def on_svc_mgmt_delete(self, *args): self.svc_mgmt.hide() return gtk.TRUE
e5a19586a2c694fb03bfb0847b7e708225493cf8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3879/e5a19586a2c694fb03bfb0847b7e708225493cf8/ConfigTabController.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 30992, 67, 9319, 67, 3733, 12, 2890, 16, 380, 1968, 4672, 365, 18, 3278, 67, 5723, 67, 4412, 1435, 327, 22718, 18, 18724, 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, 603, 67, 30992, 67, 9319, 67, 3733, 12, 2890, 16, 380, 1968, 4672, 365, 18, 3278, 67, 5723, 67, 4412, 1435, 327, 22718, 18, 18724, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
labels -- if False, each edge is a tuple (u,v) of vertices.
labels -- (bool; default: True) if False, each edge is a tuple (u,v) of vertices. sort -- (bool; default: True) if True, ensure that the list of edges is sorted. OUTPUT: A list of tuples. It is safe to change the returned list.
def edges(self, labels=True): """ Return a list of edges. Each edge is a triple (u,v,l) where u and v are vertices and l is a label. INPUT: labels -- if False, each edge is a tuple (u,v) of vertices. EXAMPLES: sage: graphs.DodecahedralGraph().edges() [(0, 1, None), (0, 10, None), (0, 19, None), (1, 8, None), (1, 2, N...
a93c6f591f8298acfe9c0ed6cb3f79020ee76927 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/a93c6f591f8298acfe9c0ed6cb3f79020ee76927/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5231, 12, 2890, 16, 3249, 33, 5510, 4672, 3536, 2000, 279, 666, 434, 5231, 18, 8315, 3591, 353, 279, 14543, 261, 89, 16, 90, 16, 80, 13, 1625, 582, 471, 331, 854, 6928, 471, 328, 353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5231, 12, 2890, 16, 3249, 33, 5510, 4672, 3536, 2000, 279, 666, 434, 5231, 18, 8315, 3591, 353, 279, 14543, 261, 89, 16, 90, 16, 80, 13, 1625, 582, 471, 331, 854, 6928, 471, 328, 353...
rList.append(item) webList.append(rList)
rList.append( item ) webList.append( rList )
def getTransformationTasks(self,condDict={},older=None, newer=None, timeStamp='CreationTime', orderAttribute=None, limit=None, inputVector=False, connection=False): connection = self.__getConnection(connection) req = "SELECT %s FROM TransformationTasks %s" % (intListToString(self.TASKSPARAMS),self.buildCondition(condDi...
9ad007ea503b29694fc081c1646b7c5ecd07b1f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9ad007ea503b29694fc081c1646b7c5ecd07b1f2/TransformationDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 15292, 6685, 12, 2890, 16, 10013, 5014, 28793, 1498, 33, 7036, 16, 16069, 33, 7036, 16, 18198, 2218, 29746, 2187, 1353, 1499, 33, 7036, 16, 1800, 33, 7036, 16, 810, 5018, 33, 8381, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 15292, 6685, 12, 2890, 16, 10013, 5014, 28793, 1498, 33, 7036, 16, 16069, 33, 7036, 16, 18198, 2218, 29746, 2187, 1353, 1499, 33, 7036, 16, 1800, 33, 7036, 16, 810, 5018, 33, 8381, ...
tag = Tag.objects.get_by(slug=slug)
def do_show_tag(req, slug, page=1): """ Show all posts tagged with a given tag slug. Available template variables: `posts`: a list of post objects we want to display `pagination`: a pagination object to render a pagination `tag` the tag object for this page. :Template name: ``show_tag.html`` :URL endpoint: ``blog/...
95e5791bfd2a48b91043732668daa6106ae5cd46 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12815/95e5791bfd2a48b91043732668daa6106ae5cd46/blog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 4500, 67, 2692, 12, 3658, 16, 4959, 16, 1363, 33, 21, 4672, 3536, 9674, 777, 10775, 12503, 598, 279, 864, 1047, 4959, 18, 225, 15633, 1542, 3152, 30, 225, 1375, 11660, 68, 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, 741, 67, 4500, 67, 2692, 12, 3658, 16, 4959, 16, 1363, 33, 21, 4672, 3536, 9674, 777, 10775, 12503, 598, 279, 864, 1047, 4959, 18, 225, 15633, 1542, 3152, 30, 225, 1375, 11660, 68, 30,...
changed[gp.path] = (gp.op, gp)
changed[gp.path] = gp
def scangitpatch(fp, firstline): '''git patches can modify a file, then copy that file to a new file, but expect the source to be the unmodified form. So we scan the patch looking for that case so we can do the copies ahead of time.'''
545f4d8d558fec3c96fc1546200fe77944791dac /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/545f4d8d558fec3c96fc1546200fe77944791dac/patch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 888, 539, 305, 2272, 12, 7944, 16, 1122, 1369, 4672, 9163, 6845, 16482, 848, 5612, 279, 585, 16, 1508, 1610, 716, 585, 358, 279, 394, 585, 16, 1496, 4489, 326, 1084, 358, 506, 326, 304...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 539, 305, 2272, 12, 7944, 16, 1122, 1369, 4672, 9163, 6845, 16482, 848, 5612, 279, 585, 16, 1508, 1610, 716, 585, 358, 279, 394, 585, 16, 1496, 4489, 326, 1084, 358, 506, 326, 304...
str += groupstr return str + '</table><br />\n\n'
if self._inheritance == 'short' and container.is_class(): str += self._inheritance_list(variables, container) return str + groupstr + '</table><br />\n\n'
def _var_summary(self, variables, sortorder, container, groups, heading='Variable Summary'): """ @return: The HTML code for a variable summary table. This is used by L{_module_to_html} to list the variables in a module; and by L{_class_to_html} to list instance variables and class variables. @rtype: C{string} """ vari...
986fb527f9f5168bb2a99f7a14d03b6f9e1f2682 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/986fb527f9f5168bb2a99f7a14d03b6f9e1f2682/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1401, 67, 7687, 12, 2890, 16, 3152, 16, 1524, 1019, 16, 1478, 16, 3252, 16, 11053, 2218, 3092, 17967, 11, 4672, 3536, 632, 2463, 30, 1021, 3982, 981, 364, 279, 2190, 4916, 1014, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1401, 67, 7687, 12, 2890, 16, 3152, 16, 1524, 1019, 16, 1478, 16, 3252, 16, 11053, 2218, 3092, 17967, 11, 4672, 3536, 632, 2463, 30, 1021, 3982, 981, 364, 279, 2190, 4916, 1014, 1...
directory = self.Root[drive_path]
directory = self.Root[drive]
def __doLookup(self, fsclass, name, directory = None, create = 1): """This method differs from the File and Dir factory methods in one important way: the meaning of the directory parameter. In this method, if directory is None or not supplied, the supplied name is expected to be an absolute path. If you try to look up...
d1da3a2d42b13188250503433684019ab8aaad7a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12817/d1da3a2d42b13188250503433684019ab8aaad7a/FS.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2896, 6609, 12, 2890, 16, 284, 1017, 459, 16, 508, 16, 1867, 273, 599, 16, 752, 273, 404, 4672, 3536, 2503, 707, 21944, 628, 326, 1387, 471, 8446, 3272, 2590, 316, 1245, 10802, 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, 1001, 2896, 6609, 12, 2890, 16, 284, 1017, 459, 16, 508, 16, 1867, 273, 599, 16, 752, 273, 404, 4672, 3536, 2503, 707, 21944, 628, 326, 1387, 471, 8446, 3272, 2590, 316, 1245, 10802, 4...
if not dleft:
if dleft == None:
def on_get_value(self, rowref, column): node = self.tree.get_node_for_rowref(rowref) if not node: return None else: task = node.get_obj() if column == COL_TID: return task.get_id() elif column == COL_OBJ: return task elif column == COL_TITLE: return saxutils.escape(task.get_title()) elif column == COL_SDATE: return s...
12e20d4b34c0d490242ac011c26b3136fa3d99c6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7036/12e20d4b34c0d490242ac011c26b3136fa3d99c6/tasktree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 588, 67, 1132, 12, 2890, 16, 1027, 1734, 16, 1057, 4672, 756, 273, 365, 18, 3413, 18, 588, 67, 2159, 67, 1884, 67, 492, 1734, 12, 492, 1734, 13, 309, 486, 756, 30, 327, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 588, 67, 1132, 12, 2890, 16, 1027, 1734, 16, 1057, 4672, 756, 273, 365, 18, 3413, 18, 588, 67, 2159, 67, 1884, 67, 492, 1734, 12, 492, 1734, 13, 309, 486, 756, 30, 327, 59...
return Factoid('','Error: unresolvable <alias>','','',0)
return Factoid('','<reply> Error: unresolvable <alias> to %s' % factoid.value[7:].lower().strip(),'','',0)
def resolve_alias(self, channel, factoid, loop=0): if loop >= 10: return Factoid('','Error: infinite <alias> loop detected','','',0) if factoid and factoid.value.lower().startswith('<alias>'): new_factoids = self.get_factoids(factoid.value[7:].lower().strip(), channel, False) for x in ['channel_primary', 'global_primar...
7f0c7d962746c862e2ebbedc3dfbdd55252c6cf6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3105/7f0c7d962746c862e2ebbedc3dfbdd55252c6cf6/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 67, 4930, 12, 2890, 16, 1904, 16, 5410, 839, 16, 2798, 33, 20, 4672, 309, 2798, 1545, 1728, 30, 327, 29057, 839, 2668, 17023, 668, 30, 14853, 411, 4930, 34, 2798, 8316, 17023, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 67, 4930, 12, 2890, 16, 1904, 16, 5410, 839, 16, 2798, 33, 20, 4672, 309, 2798, 1545, 1728, 30, 327, 29057, 839, 2668, 17023, 668, 30, 14853, 411, 4930, 34, 2798, 8316, 17023, 17...