rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
self.assert_(mailbox.MHMessage(msg).get_sequences() == \ ['unseen', 'replied'])
self.assertEqual(mailbox.MHMessage(msg).get_sequences(), ['unseen', 'replied'])
def test_babyl_to_mh(self): # Convert BabylMessage to MHMessage pairs = (('unseen', ['unseen']), ('deleted', []), ('filed', []), ('answered', ['replied']), ('forwarded', []), ('edited', []), ('resent', [])) for setting, result in pairs: msg = mailbox.BabylMessage(_sample_message) msg.add_label(setting) self.assertEqual(mailbox.MHMessage(msg).get_sequences(), result) msg = mailbox.BabylMessage(_sample_message) for label in ('unseen', 'deleted', 'filed', 'answered', 'forwarded', 'edited', 'resent'): msg.add_label(label) self.assert_(mailbox.MHMessage(msg).get_sequences() == \ ['unseen', 'replied'])
ea8344797e1a0ebd0b419ce14e16ab25af771fcc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/ea8344797e1a0ebd0b419ce14e16ab25af771fcc/test_mailbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 70, 24383, 80, 67, 869, 67, 81, 76, 12, 2890, 4672, 468, 4037, 605, 24383, 80, 1079, 358, 490, 44, 1079, 5574, 273, 261, 2668, 318, 15156, 2187, 10228, 318, 15156, 3546, 3631...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 70, 24383, 80, 67, 869, 67, 81, 76, 12, 2890, 4672, 468, 4037, 605, 24383, 80, 1079, 358, 490, 44, 1079, 5574, 273, 261, 2668, 318, 15156, 2187, 10228, 318, 15156, 3546, 3631...
raise TypeError("Need a file handle, not a string (i.e. not a filename)")
raise TypeError(\ "Need a file handle, not a string (i.e. not a filename)")
def parse(handle, format, seq_count=None, alphabet=None): """Turns a sequence file into an iterator returning Alignment objects. Arguments: - handle - handle to the file. - format - string describing the file format. - alphabet - optional Alphabet object, useful when the sequence type cannot be automatically inferred from the file itself (e.g. fasta, phylip, clustal) - seq_count - Optional integer, number of sequences expected in each alignment. Recommended for fasta format files. If you have the file name in a string 'filename', use: >>> from Bio import AlignIO >>> filename = "Emboss/needle.txt" >>> format = "emboss" >>> for alignment in AlignIO.parse(open(filename,"rU"), format): ... print "Alignment of length", alignment.get_alignment_length() Alignment of length 124 Alignment of length 119 Alignment of length 120 Alignment of length 118 Alignment of length 125 If you have a string 'data' containing the file contents, use: from Bio import AlignIO from StringIO import StringIO my_iterator = AlignIO.parse(StringIO(data), format) Use the Bio.AlignIO.read() function when you expect a single record only. """ from Bio import SeqIO #Try and give helpful error messages: if isinstance(handle, basestring): raise TypeError("Need a file handle, not a string (i.e. not a filename)") if not isinstance(format, basestring): raise TypeError("Need a string for the file format (lower case)") if not format: raise ValueError("Format required (lower case string)") if format != format.lower(): raise ValueError("Format string '%s' should be lower case" % format) if alphabet is not None and not (isinstance(alphabet, Alphabet) or \ isinstance(alphabet, AlphabetEncoder)): raise ValueError("Invalid alphabet, %s" % repr(alphabet)) if seq_count is not None and not isinstance(seq_count, int): raise TypeError("Need integer for seq_count (sequences per alignment)") #Map the file format to a sequence iterator: if format in _FormatToIterator: iterator_generator = _FormatToIterator[format] if alphabet is None : return iterator_generator(handle, seq_count) try: #Initially assume the optional alphabet argument is supported return iterator_generator(handle, seq_count, alphabet=alphabet) except TypeError: #It isn't supported. return _force_alphabet(iterator_generator(handle, seq_count), alphabet) elif format in SeqIO._FormatToIterator: #Exploit the existing SeqIO parser to the dirty work! return _SeqIO_to_alignment_iterator(handle, format, alphabet=alphabet, seq_count=seq_count) else: raise ValueError("Unknown format '%s'" % format)
34590c938ad0292f6c44bb49830966769cb0782f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7167/34590c938ad0292f6c44bb49830966769cb0782f/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 4110, 16, 740, 16, 3833, 67, 1883, 33, 7036, 16, 10877, 33, 7036, 4672, 3536, 31873, 279, 3102, 585, 1368, 392, 2775, 5785, 17804, 2184, 18, 225, 13599, 30, 300, 1640, 565, 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, 1109, 12, 4110, 16, 740, 16, 3833, 67, 1883, 33, 7036, 16, 10877, 33, 7036, 4672, 3536, 31873, 279, 3102, 585, 1368, 392, 2775, 5785, 17804, 2184, 18, 225, 13599, 30, 300, 1640, 565, 3...
filename (string) : the complete name of the file to be read """ filedata = open(filename)
file_name (string) : the complete name of the file to be read """ file_data = open(file_name)
def get_lines(self, filename): """ Reads a file and returns a list of its lines. filename (string) : the complete name of the file to be read """ filedata = open(filename) lines = []
6e7d5f2b538b57b791a24be47e353bb93f68d00a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4798/6e7d5f2b538b57b791a24be47e353bb93f68d00a/init.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3548, 12, 2890, 16, 1544, 4672, 3536, 29185, 279, 585, 471, 1135, 279, 666, 434, 2097, 2362, 18, 585, 67, 529, 565, 261, 1080, 13, 565, 294, 282, 326, 3912, 508, 434, 326, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3548, 12, 2890, 16, 1544, 4672, 3536, 29185, 279, 585, 471, 1135, 279, 666, 434, 2097, 2362, 18, 585, 67, 529, 565, 261, 1080, 13, 565, 294, 282, 326, 3912, 508, 434, 326, 5...
class PublishedValue(object): '''This is for data shared between generators''' def __init__(self, owner, key, value): object.__init__(self) self.owner = owner self.key = key self.value = value def Update(self, owner, value): '''Update the value after an ownership check succeeds''' if owner != self.owner: raise PublishError, (self.key, owner) self.value = value
def HandleEvent(self): '''Route a fam event to the proper callback''' event = self.fm.nextEvent() reqid = event.requestID if self.users.has_key(reqid): #print "dispatching event %s %s to obj %s handle :%s:" % (event.code2str(), event.filename, self.users[reqid], event.requestID) self.users[reqid].HandleEvent(event)
b0f8b8570d4786dcb280dca110db3e1226bffceb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/b0f8b8570d4786dcb280dca110db3e1226bffceb/Core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5004, 1133, 12, 2890, 4672, 9163, 3255, 279, 26688, 871, 358, 326, 5338, 1348, 26418, 871, 273, 365, 18, 25089, 18, 4285, 1133, 1435, 1111, 350, 273, 871, 18, 2293, 734, 309, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5004, 1133, 12, 2890, 4672, 9163, 3255, 279, 26688, 871, 358, 326, 5338, 1348, 26418, 871, 273, 365, 18, 25089, 18, 4285, 1133, 1435, 1111, 350, 273, 871, 18, 2293, 734, 309, 365, 18, ...
self.outdir = outdir or os.path.join(self.srcdir, '_build', 'websupport')
self.outdir = outdir or path.join(self.srcdir, '_build', 'websupport')
def init(self, srcdir, outdir='', comment_html=''): self.srcdir = srcdir self.outdir = outdir or os.path.join(self.srcdir, '_build', 'websupport') self.comment_template = Template(comment_html)
9e7522a155f5bc04e330100777aafd9fb5ab856f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7032/9e7522a155f5bc04e330100777aafd9fb5ab856f/api.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 12, 2890, 16, 1705, 1214, 16, 15398, 2218, 2187, 2879, 67, 2620, 2218, 11, 4672, 365, 18, 4816, 1214, 273, 1705, 1214, 365, 18, 659, 1214, 273, 15398, 578, 589, 18, 5701, 12, 289...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 12, 2890, 16, 1705, 1214, 16, 15398, 2218, 2187, 2879, 67, 2620, 2218, 11, 4672, 365, 18, 4816, 1214, 273, 1705, 1214, 365, 18, 659, 1214, 273, 15398, 578, 589, 18, 5701, 12, 289...
test_ports.append(port)
test_ports.add(port)
def exit_test(self, router): """ Perform port and IP tests on router. Will block until all port tests are finished. Can raise the following errors: socket.error - errno == errno.ECONNREFUSED: Tor refused our SOCKS connected. """ test_data = {} test_ports = [] recv_sockets = [] listen_sockets = [] self.test_exit = router
4c865d62c51c3e1a9d19c722ba2e4c12fc91c4eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9986/4c865d62c51c3e1a9d19c722ba2e4c12fc91c4eb/torbel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2427, 67, 3813, 12, 2890, 16, 4633, 4672, 3536, 11217, 1756, 471, 2971, 7434, 603, 4633, 18, 9980, 1203, 3180, 777, 1756, 7434, 854, 6708, 18, 4480, 1002, 326, 3751, 1334, 30, 2987, 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, 2427, 67, 3813, 12, 2890, 16, 4633, 4672, 3536, 11217, 1756, 471, 2971, 7434, 603, 4633, 18, 9980, 1203, 3180, 777, 1756, 7434, 854, 6708, 18, 4480, 1002, 326, 3751, 1334, 30, 2987, 18, ...
print log
debug(log)
def ingestQFitsInResults(fitsinId, g): """ Stores results from QFits-in outputs. """ imgName = g.execute("""
13b9a9b87ab9f25ee174dc029876ecccb77b01ad /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11651/13b9a9b87ab9f25ee174dc029876ecccb77b01ad/wrapper_processing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29105, 53, 42, 1282, 382, 3447, 12, 18352, 267, 548, 16, 314, 4672, 3536, 20296, 455, 1686, 628, 2238, 42, 1282, 17, 267, 6729, 18, 3536, 225, 3774, 461, 273, 314, 18, 8837, 2932, 3660...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29105, 53, 42, 1282, 382, 3447, 12, 18352, 267, 548, 16, 314, 4672, 3536, 20296, 455, 1686, 628, 2238, 42, 1282, 17, 267, 6729, 18, 3536, 225, 3774, 461, 273, 314, 18, 8837, 2932, 3660...
'blas_src',blas_src_info['sources'],
'blas_src',blas_src_info['sources'] + \ [os.path.join(local_path,'src','fblaswrap.f')],
def configuration(parent_package=''): if sys.platform == 'win32': import scipy_distutils.mingw32_support from scipy_distutils.core import Extension from scipy_distutils.misc_util import get_path, default_config_dict from scipy_distutils.misc_util import fortran_library_item, dot_join from scipy_distutils.system_info import get_info,dict_append,\ AtlasNotFoundError,LapackNotFoundError,BlasNotFoundError,\ LapackSrcNotFoundError,BlasSrcNotFoundError package = 'linalg' from interface_gen import generate_interface config = default_config_dict(package,parent_package) local_path = get_path(__name__) m = re.compile(r'(build|install|bdist|run_f2py)') if not filter(m.match,sys.argv): sources = [] sources += glob(os.path.join(local_path,'src','*.f')) sources += glob(os.path.join(local_path,'src','*.c')) sources += glob(os.path.join(local_path,'generic_*.pyf')) sources += [os.path.join(local_path,f) for f in [\ 'flapack_user_routines.pyf','atlas_version.c']] config['ext_modules'].append(Extension(\ name='fake_linalg_ext_module', sources = sources)) return config atlas_info = get_info('atlas') #atlas_info = {} # uncomment if ATLAS is available but want to use # Fortran LAPACK/BLAS; useful for testing f_libs = [] atlas_version = None if atlas_info: # Try to determine ATLAS version cur_dir = os.getcwd() os.chdir(local_path) cmd = '%s %s build_ext --inplace --force'%\ (sys.executable, os.path.join(local_path,'setup_atlas_version.py')) print cmd s,o=run_command(cmd) if not s: cmd = sys.executable+' -c "import atlas_version"' print cmd s,o=run_command(cmd) if not s: m = re.match(r'ATLAS version (?P<version>\d+[.]\d+[.]\d+)',o) if m: atlas_version = m.group('version') print 'ATLAS version',atlas_version if atlas_version is None: if re.search(r'undefined symbol: ATL_buildinfo',o,re.M): atlas_version = '3.2.1' # or pre 3.3.6 print 'ATLAS version',atlas_version,'(or pre 3.3.6)' else: print o else: print o if atlas_version is None: print 'Failed to determine ATLAS version' os.chdir(cur_dir) if ('ATLAS_WITHOUT_LAPACK',None) in atlas_info.get('define_macros',[]): lapack_info = get_info('lapack') if not lapack_info: warnings.warn(LapackNotFoundError.__doc__) lapack_src_info = get_info('lapack_src') if not lapack_src_info: raise LapackSrcNotFoundError,LapackSrcNotFoundError.__doc__ dict_append(lapack_info,libraries=['lapack_src']) f_libs.append(fortran_library_item(\ 'lapack_src',lapack_src_info['sources'], )) dict_append(lapack_info,**atlas_info) atlas_info = lapack_info blas_info,lapack_info = {},{} if not atlas_info: warnings.warn(AtlasNotFoundError.__doc__) blas_info = get_info('blas') #blas_info = {} # test building BLAS from sources. if not blas_info: warnings.warn(BlasNotFoundError.__doc__) blas_src_info = get_info('blas_src') if not blas_src_info: raise BlasSrcNotFoundError,BlasSrcNotFoundError.__doc__ dict_append(blas_info,libraries=['blas_src']) f_libs.append(fortran_library_item(\ 'blas_src',blas_src_info['sources'], )) lapack_info = get_info('lapack') #lapack_info = {} # test building LAPACK from sources. if not lapack_info: warnings.warn(LapackNotFoundError.__doc__) lapack_src_info = get_info('lapack_src') if not lapack_src_info: raise LapackSrcNotFoundError,LapackSrcNotFoundError.__doc__ dict_append(lapack_info,libraries=['lapack_src']) f_libs.append(fortran_library_item(\ 'lapack_src',lapack_src_info['sources'], )) mod_sources = {} if atlas_info or blas_info: mod_sources['fblas'] = ['generic_fblas.pyf', 'generic_fblas1.pyf', 'generic_fblas2.pyf', 'generic_fblas3.pyf', os.path.join('src','fblaswrap.f'), ] if atlas_info or lapack_info: mod_sources['flapack'] = ['generic_flapack.pyf'] if atlas_info: mod_sources['cblas'] = ['generic_cblas.pyf', 'generic_cblas1.pyf'] mod_sources['clapack'] = ['generic_clapack.pyf'] else: dict_append(atlas_info,**lapack_info) dict_append(atlas_info,**blas_info) skip_names = {'clapack':[],'flapack':[],'cblas':[],'fblas':[]} if skip_single_routines: skip_names['clapack'].extend(\ 'sgesv cgesv sgetrf cgetrf sgetrs cgetrs sgetri cgetri'\ ' sposv cposv spotrf cpotrf spotrs cpotrs spotri cpotri'\ ' slauum clauum strtri ctrtri'.split()) skip_names['flapack'].extend(skip_names['clapack']) skip_names['flapack'].extend(\ 'sgesdd cgesdd sgelss cgelss sgeqrf cgeqrf sgeev cgeev'\ ' sgegv cgegv ssyev cheev slaswp claswp sgees cgees' ' sggev cggev'.split()) skip_names['cblas'].extend('saxpy caxpy'.split()) skip_names['fblas'].extend(skip_names['cblas']) skip_names['fblas'].extend(\ 'srotg crotg srotmg srot csrot srotm sswap cswap sscal cscal'\ ' csscal scopy ccopy sdot cdotu cdotc snrm2 scnrm2 sasum scasum'\ ' isamax icamax sgemv cgemv chemv ssymv strmv ctrmv'\ ' sgemm cgemm'.split()) if using_lapack_blas: skip_names['fblas'].extend(\ 'drotmg srotmg drotm srotm'.split()) if atlas_version=='3.2.1': skip_names['clapack'].extend(\ 'sgetri dgetri cgetri zgetri spotri dpotri cpotri zpotri'\ ' slauum dlauum clauum zlauum strtri dtrtri ctrtri ztrtri'.split()) for mod_name,sources in mod_sources.items(): sources = [os.path.join(local_path,s) for s in sources] pyf_sources = filter(lambda s:s[-4:]=='.pyf',sources) mod_file = os.path.join(local_path,mod_name+'.pyf') if dep_util.newer_group(pyf_sources,mod_file): generate_interface(mod_name,sources[0],mod_file, skip_names.get(mod_name,[])) sources = filter(lambda s:s[-4:]!='.pyf',sources) ext_args = {'name':dot_join(parent_package,package,mod_name), 'sources':[mod_file]+sources} dict_append(ext_args,**atlas_info) ext = Extension(**ext_args) ext.need_fcompiler_opts = 1 config['ext_modules'].append(ext) flinalg = [] for f in ['det.f','lu.f', #'wrappers.c','inv.f', ]: flinalg.append(os.path.join(local_path,'src',f)) ext_args = {'name':dot_join(parent_package,package,'_flinalg'), 'sources':flinalg} dict_append(ext_args,**atlas_info) config['ext_modules'].append(Extension(**ext_args)) ext_args = {'name':dot_join(parent_package,package,'calc_lwork'), 'sources':[os.path.join(local_path,'src','calc_lwork.f')], } dict_append(ext_args,**atlas_info) config['ext_modules'].append(Extension(**ext_args)) config['fortran_libraries'].extend(f_libs) return config
b1e1ccbf85736bc67a87e9364025451a1d59dadd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/b1e1ccbf85736bc67a87e9364025451a1d59dadd/setup_linalg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1664, 12, 2938, 67, 5610, 2218, 11, 4672, 309, 2589, 18, 9898, 422, 296, 8082, 1578, 4278, 1930, 10966, 67, 4413, 5471, 18, 11987, 91, 1578, 67, 13261, 225, 628, 10966, 67, 4413, 5471, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1664, 12, 2938, 67, 5610, 2218, 11, 4672, 309, 2589, 18, 9898, 422, 296, 8082, 1578, 4278, 1930, 10966, 67, 4413, 5471, 18, 11987, 91, 1578, 67, 13261, 225, 628, 10966, 67, 4413, 5471, ...
def releaseprocesslocko_exlock(lockname): if lockname in oldfiledesc: os.close(oldfiledesc[lockname]) del oldfiledesc[lockname]
def releaseprocesslocko_exlock(lockname): if lockname in oldfiledesc: os.close(oldfiledesc[lockname]) del oldfiledesc[lockname] #print >> sys.stderr, 'removed o_exlock for '+lockname
4d800553044ca4783ee75b7059611676c05ae73a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7263/4d800553044ca4783ee75b7059611676c05ae73a/runonce.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3992, 2567, 739, 83, 67, 338, 739, 12, 739, 529, 4672, 309, 2176, 529, 316, 1592, 768, 5569, 30, 1140, 18, 4412, 12, 1673, 768, 5569, 63, 739, 529, 5717, 1464, 1592, 768, 5569, 63, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3992, 2567, 739, 83, 67, 338, 739, 12, 739, 529, 4672, 309, 2176, 529, 316, 1592, 768, 5569, 30, 1140, 18, 4412, 12, 1673, 768, 5569, 63, 739, 529, 5717, 1464, 1592, 768, 5569, 63, 7...
if not kwards['auth'].isInternal:
if not kwargs['auth'].isInternal:
def wrapper(self, **kwargs): if not kwards['auth'].isInternal: raise PermissionDenied else: return func(self, **kwargs)
f778fb1d5d00b86825ce894663333e0bd978020f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/f778fb1d5d00b86825ce894663333e0bd978020f/webauth.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4053, 12, 2890, 16, 2826, 4333, 4672, 309, 486, 1205, 3292, 1944, 29489, 291, 3061, 30, 1002, 8509, 10410, 469, 30, 327, 1326, 12, 2890, 16, 2826, 4333, 13, 2, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4053, 12, 2890, 16, 2826, 4333, 4672, 309, 486, 1205, 3292, 1944, 29489, 291, 3061, 30, 1002, 8509, 10410, 469, 30, 327, 1326, 12, 2890, 16, 2826, 4333, 13, 2, -100, -100, -100, -100, ...
def setUp(self): self.tzInfoItem = TimeZoneInfo.get()
def setUp(self): self.tzInfoItem = TimeZoneInfo.get()
e9c0d122135d172b05c4a43216da94519b0c92dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/e9c0d122135d172b05c4a43216da94519b0c92dc/TestTimeZone.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 365, 18, 12994, 966, 1180, 273, 16491, 966, 18, 588, 1435, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 365, 18, 12994, 966, 1180, 273, 16491, 966, 18, 588, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
PygameFont = font_module.Font
PygameFont = _renpy_font.Font
def transform_rotozoom(surf, angle, scale): return Surface(old_transform_flip(surf.surface, angle, scale))
48cf0cd50a4f49d3fa3be3475cd99d662ec6be99 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10962/48cf0cd50a4f49d3fa3be3475cd99d662ec6be99/scale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2510, 67, 303, 869, 14932, 12, 10050, 74, 16, 5291, 16, 3159, 4672, 327, 24354, 12, 1673, 67, 6547, 67, 12357, 12, 10050, 74, 18, 18266, 16, 5291, 16, 3159, 3719, 2, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2510, 67, 303, 869, 14932, 12, 10050, 74, 16, 5291, 16, 3159, 4672, 327, 24354, 12, 1673, 67, 6547, 67, 12357, 12, 10050, 74, 18, 18266, 16, 5291, 16, 3159, 3719, 2, -100, -100, -100, ...
_raise_invalid_type(type_, code)
if modname == classname: code = module_or_class else: _raise_invalid_type(type_, code)
def import_(name, type_='test library'): """Imports Python class/module or Java class with given name. 'name' can also be a path to the library and in that case the directory containing the lib is automatically put into sys.path and removed there afterwards. 'type_' is used in error message if importing fails. Class can either live in a module/package or be 'standalone'. In the former case tha name is something like 'MyClass' and in the latter it could be 'your.package.YourLibrary'). Python classes always live in a module but if the module name is exactly same as the class name the former also works in Python. Example: If you have a Python class 'MyLibrary' in a module 'mymodule' it must be imported with name 'mymodule.MyLibrary'. If the name of the module is also 'MyLibrary' then it is possible to use only name 'MyLibrary'. """ if os.path.exists(name): moddir, name = _split_path_to_module(name) sys.path.insert(0, moddir) pop_sys_path = True else: pop_sys_path = False if '.' in name: parts = name.split('.') modname = '.'.join(parts[:-1]) classname = parts[-1] fromlist = [str(classname)] # Unicode not generally accepted else: modname = name classname = name fromlist = [] try: try: # It seems that we get class when importing java class from file system # or from a default package of a jar file. Otherwise we get a module. module_or_class = __import__(modname, {}, {}, fromlist) except: _raise_import_failed(type_, name) finally: if pop_sys_path: sys.path.pop(0) try: code = getattr(module_or_class, classname) except AttributeError: if fromlist: _raise_no_lib_in_module(type_, modname, fromlist[0]) code = module_or_class if not isinstance(code, (ModuleType, ClassType, TypeType)): _raise_invalid_type(type_, code) try: source = module_or_class.__file__ if not source: raise AttributeError dirpath, filename = os.path.split(os.path.abspath(source)) source = os.path.join(normpath(dirpath), filename) except AttributeError: # Java classes not packaged in a jar file do not have __file__. source = '<unknown>' return code, source
8b628243a05de38f0872c3058ce35ea738ecc3c6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7408/8b628243a05de38f0872c3058ce35ea738ecc3c6/importing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 12, 529, 16, 618, 67, 2218, 3813, 5313, 11, 4672, 3536, 13347, 6600, 667, 19, 2978, 578, 5110, 667, 598, 864, 508, 18, 225, 296, 529, 11, 848, 2546, 506, 279, 589, 358, 326...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 12, 529, 16, 618, 67, 2218, 3813, 5313, 11, 4672, 3536, 13347, 6600, 667, 19, 2978, 578, 5110, 667, 598, 864, 508, 18, 225, 296, 529, 11, 848, 2546, 506, 279, 589, 358, 326...
for tbl in table_list: tbl = skytools.fq_name(tbl)
table_list = [] for tbl in tbls:
def subscriber_add_tables(self, table_list): provider_tables = self.get_provider_table_list() subscriber_tables = self.get_subscriber_table_list()
284fa9a4cbf1e2c69ebf17bbe3a4fd6ace8a2e18 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14597/284fa9a4cbf1e2c69ebf17bbe3a4fd6ace8a2e18/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9467, 67, 1289, 67, 9373, 12, 2890, 16, 1014, 67, 1098, 4672, 2893, 67, 9373, 273, 365, 18, 588, 67, 6778, 67, 2121, 67, 1098, 1435, 9467, 67, 9373, 273, 365, 18, 588, 67, 26410, 67,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9467, 67, 1289, 67, 9373, 12, 2890, 16, 1014, 67, 1098, 4672, 2893, 67, 9373, 273, 365, 18, 588, 67, 6778, 67, 2121, 67, 1098, 1435, 9467, 67, 9373, 273, 365, 18, 588, 67, 26410, 67,...
if value is False or value is True:
if isinstance(value, bool):
def __new__(cls, value, lang=None, typeUri=None): if lang is not None: typeUri = None elif typeUri is not None: lang = None else: lang = None
b876c644ee366147b108cc647cb98dccaf3e6a80 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5223/b876c644ee366147b108cc647cb98dccaf3e6a80/literal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2704, 972, 12, 6429, 16, 460, 16, 3303, 33, 7036, 16, 618, 3006, 33, 7036, 4672, 309, 3303, 353, 486, 599, 30, 618, 3006, 273, 599, 1327, 618, 3006, 353, 486, 599, 30, 3303, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2704, 972, 12, 6429, 16, 460, 16, 3303, 33, 7036, 16, 618, 3006, 33, 7036, 4672, 309, 3303, 353, 486, 599, 30, 618, 3006, 273, 599, 1327, 618, 3006, 353, 486, 599, 30, 3303, 27...
found. (XXX is this correct???)"""
found."""
def get_devstudio_versions (): """Get list of devstudio versions from the Windows registry. Return a list of strings (???) containing version numbers; the list will be empty if we were unable to access the registry (eg. couldn't import a registry-access module) or the appropriate registry keys weren't found. (XXX is this correct???)""" try: import win32api import win32con except ImportError: return [] K = 'Software\\Microsoft\\Devstudio' L = [] for base in (win32con.HKEY_CLASSES_ROOT, win32con.HKEY_LOCAL_MACHINE, win32con.HKEY_CURRENT_USER, win32con.HKEY_USERS): try: k = win32api.RegOpenKeyEx(base,K) i = 0 while 1: try: p = win32api.RegEnumKey(k,i) if p[0] in '123456789' and p not in L: L.append(p) except win32api.error: break i = i + 1 except win32api.error: pass L.sort() L.reverse() return L
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, 336, 67, 5206, 334, 4484, 67, 10169, 1832, 30, 225, 3536, 967, 666, 434, 4461, 334, 4484, 5244, 628, 326, 8202, 4023, 18, 225, 2000, 279, 666, 434, 2064, 13590, 35, 8535, 4191, 1177, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5206, 334, 4484, 67, 10169, 1832, 30, 225, 3536, 967, 666, 434, 4461, 334, 4484, 5244, 628, 326, 8202, 4023, 18, 225, 2000, 279, 666, 434, 2064, 13590, 35, 8535, 4191, 1177, 5...
self.vbox = GtkVBox()
self.vbox = gtk.VBox()
def __init__ (self, driver, app): """ Constructor. """ GtkScrolledWindow.__init__ (self) self.set_policy (POLICY_AUTOMATIC, POLICY_AUTOMATIC) self.app = app # copy options (dict function does not exist in Python 2.1 :( ) self.opts = {} for name,val in app.options.items(): self.opts[name] = val # remove all options known to the driver for sect in driver.optSections: for opt in sect.optList: if self.opts.has_key (opt.name): del self.opts[opt.name] # short cut if len(self.opts) == 0: return # list all remaining options here self.list = GtkCList(2, ["Option", "Value"]) for name,val in self.opts.items(): self.list.append ([str(name),str(val)]) self.list.set_column_justification (1, JUSTIFY_RIGHT) self.list.columns_autosize() self.list.show() self.vbox = GtkVBox() self.vbox.pack_start (self.list, TRUE, TRUE, 0) self.removeButton = GtkButton ("Remove") self.removeButton.show() self.removeButton.connect ("clicked", self.removeSelection) self.vbox.pack_start (self.removeButton, FALSE, FALSE, 0) self.vbox.show() self.add_with_viewport (self.vbox)
ec17e2ee5c945ddc11ff8bcc0cdc586ae535e76d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4580/ec17e2ee5c945ddc11ff8bcc0cdc586ae535e76d/driconf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 3419, 16, 595, 4672, 3536, 11417, 18, 3536, 22132, 1541, 25054, 3829, 16186, 2738, 972, 261, 2890, 13, 365, 18, 542, 67, 5086, 261, 26366, 67, 37, 1693, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 3419, 16, 595, 4672, 3536, 11417, 18, 3536, 22132, 1541, 25054, 3829, 16186, 2738, 972, 261, 2890, 13, 365, 18, 542, 67, 5086, 261, 26366, 67, 37, 1693, ...
self.buffer.append([DATA, self.jsfilter.flushbuf()])
self.data.append(self.jsfilter.flushbuf())
def jsScriptSrc (self, url, language): if not url: return #debug(HURT_ME_PLENTY, "jsScriptSrc", url, language) try: script = urlutils.open_url(url) except: print >>sys.stderr, "exception fetching script url", `url` return if not script: return ver = 0.0 if language: mo = re.search(r'(?i)javascript(?P<num>\d\.\d)', language) if mo: ver = float(mo.group('num')) self.jsEnv.attachListener(self) self.jsfilter = HtmlFilter(self.rules, self.document, comments=self.comments, javascript=self.javascript) self.jsEnv.executeScript(script, ver) self.jsEnv.detachListener(self) self.jsfilter.flush() self.buffer.append([DATA, self.jsfilter.flushbuf()]) self.buffer += self.jsfilter.buffer self.jsfilter = None
ac3470728f7e970a92ce929b4fa85ae2f5e5d4ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/ac3470728f7e970a92ce929b4fa85ae2f5e5d4ae/Rewriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3828, 3651, 7740, 261, 2890, 16, 880, 16, 2653, 4672, 309, 486, 880, 30, 327, 468, 4148, 12, 44, 1099, 56, 67, 958, 67, 30099, 1784, 61, 16, 315, 2924, 3651, 7740, 3113, 880, 16, 265...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3828, 3651, 7740, 261, 2890, 16, 880, 16, 2653, 4672, 309, 486, 880, 30, 327, 468, 4148, 12, 44, 1099, 56, 67, 958, 67, 30099, 1784, 61, 16, 315, 2924, 3651, 7740, 3113, 880, 16, 265...
message_pattern = u'To: %(to_addr)s\n' \ u'From: %(from_addr)s\n' \ u'Subject: %(subject)s\n' \ u'\n' \ u'%(body)s\n'
message_pattern = ( u'To: %(to_addr)s\n' u'From: %(from_addr)s\n' u'Subject: %(subject)s\n' u'Content-Transfer-Encoding: 8bit\n' u'Content-Type: text/plain; charset="%(encoding)s"\n' u'\n' u'%(body)s\n')
def send_email(self, from_addr, to_addr, subject, body, **kw): context = get_context() handler_path = context.handler.get_abspath() method = context.method # Build the message message_pattern = u'To: %(to_addr)s\n' \ u'From: %(from_addr)s\n' \ u'Subject: %(subject)s\n' \ u'\n' \ u'%(body)s\n' message = message_pattern % {'to_addr': to_addr, 'from_addr': from_addr, 'subject': subject, 'body': body} message = message.encode('UTF-8') # Send email now = datetime.datetime.now().strftime('%d-%m-%Y %H:%M:%S') uri = "%s/;%s" % (handler_path , method)
ad84881c1322f363c3bbb6f30e365ad070f8adb2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/ad84881c1322f363c3bbb6f30e365ad070f8adb2/root.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 3652, 12, 2890, 16, 628, 67, 4793, 16, 358, 67, 4793, 16, 3221, 16, 1417, 16, 2826, 9987, 4672, 819, 273, 336, 67, 2472, 1435, 1838, 67, 803, 273, 819, 18, 4176, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 3652, 12, 2890, 16, 628, 67, 4793, 16, 358, 67, 4793, 16, 3221, 16, 1417, 16, 2826, 9987, 4672, 819, 273, 336, 67, 2472, 1435, 1838, 67, 803, 273, 819, 18, 4176, 18, 588, ...
PangoAttrList = struct__PangoAttrList
PangoAttrList = struct__PangoAttrList
def load_lib(name): libname = ctypes.util.find_library(name) if not libname: raise OSError("Could not find library '%s'" % name) else: return CDLL(libname)
92bb4862df49194567fad21ea00d921ffc62dd6a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10761/92bb4862df49194567fad21ea00d921ffc62dd6a/pango.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 2941, 12, 529, 4672, 2561, 529, 273, 6983, 18, 1367, 18, 4720, 67, 12083, 12, 529, 13, 309, 486, 2561, 529, 30, 1002, 10002, 2932, 4445, 486, 1104, 5313, 1995, 87, 4970, 738,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 2941, 12, 529, 4672, 2561, 529, 273, 6983, 18, 1367, 18, 4720, 67, 12083, 12, 529, 13, 309, 486, 2561, 529, 30, 1002, 10002, 2932, 4445, 486, 1104, 5313, 1995, 87, 4970, 738,...
return False, sorted(self.object.__dict__.iteritems())
return False, sorted([(mname, self.get_attr(self.object, mname)) for mname in self.object.__dict__])
def get_object_members(self, members=ALL): if members is not ALL: # specific members given ret = [] for mname in members: try: ret.append((mname, self.get_attr(self.object, mname))) except AttributeError: self.directive.warn('missing attribute %s in object %s: ' % (mname, self.fullname)) return False, ret elif self.options.inherited_members: # getmembers() uses dir() which pulls in members from all # base classes return False, inspect.getmembers(self.object) else: # __dict__ contains only the members directly defined in # the class return False, sorted(self.object.__dict__.iteritems())
d2a799f4b5426824765ac82cbb214fde0b5b6799 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7032/d2a799f4b5426824765ac82cbb214fde0b5b6799/autodoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1612, 67, 7640, 12, 2890, 16, 4833, 33, 4685, 4672, 309, 4833, 353, 486, 8061, 30, 468, 2923, 4833, 864, 325, 273, 5378, 364, 312, 529, 316, 4833, 30, 775, 30, 325, 18, 6923...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1612, 67, 7640, 12, 2890, 16, 4833, 33, 4685, 4672, 309, 4833, 353, 486, 8061, 30, 468, 2923, 4833, 864, 325, 273, 5378, 364, 312, 529, 316, 4833, 30, 775, 30, 325, 18, 6923...
def removeSiteFromMask(self,site):
def removeSiteFromMask( self, site ):
def removeSiteFromMask(self,site): """ Remove the given site from the mask """ ret = self._escapeString(site) if not ret['OK']: return ret site = ret['Value']
99c1bc850ba087890925b3180df206f65bb1d4b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/99c1bc850ba087890925b3180df206f65bb1d4b3/JobDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 4956, 1265, 5796, 12, 365, 16, 2834, 262, 30, 3536, 3581, 326, 864, 2834, 628, 326, 3066, 3536, 325, 273, 365, 6315, 6939, 780, 12, 4256, 13, 309, 486, 325, 3292, 3141, 3546, 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, 1206, 4956, 1265, 5796, 12, 365, 16, 2834, 262, 30, 3536, 3581, 326, 864, 2834, 628, 326, 3066, 3536, 325, 273, 365, 6315, 6939, 780, 12, 4256, 13, 309, 486, 325, 3292, 3141, 3546, 30,...
Please go to <a href="http://www.slac.stanford.edu/spires/">SPIRES</a> if you are here by mistake.</br></br>
Please go to <a href="http://www.slac.stanford.edu/spires/">SPIRES</a> if you are here by mistake.<br />
def tmpl_pageheader(self, req, ln=CFG_SITE_LANG, headertitle="", description="", keywords="", userinfobox="", useractivities_menu="", adminactivities_menu="", navtrailbox="", pageheaderadd="", uid=0, secure_page_p=0, navmenuid="admin", metaheaderadd="", rssurl=CFG_SITE_URL+"/rss", body_css_classes=None):
8e598dc8d14fab9d28129d2da6af04a524f8cb64 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14116/8e598dc8d14fab9d28129d2da6af04a524f8cb64/webstyle_templates_inspire.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 2433, 3374, 12, 2890, 16, 1111, 16, 7211, 33, 19727, 67, 20609, 67, 10571, 16, 910, 1051, 1280, 1546, 3113, 2477, 1546, 3113, 7093, 1546, 3113, 18297, 2147, 1546, 3113, 729, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 2433, 3374, 12, 2890, 16, 1111, 16, 7211, 33, 19727, 67, 20609, 67, 10571, 16, 910, 1051, 1280, 1546, 3113, 2477, 1546, 3113, 7093, 1546, 3113, 18297, 2147, 1546, 3113, 729, 2...
if result == e[1]:
if re.match(e[1], result):
def strftest(now): if verbose: print "strftime test for", time.ctime(now) nowsecs = str(long(now))[:-1] gmt = time.gmtime(now) now = time.localtime(now) if now[3] < 12: ampm='AM' else: ampm='PM' jan1 = time.localtime(time.mktime((now[0], 1, 1) + (0,)*6)) try: if now[8]: tz = time.tzname[1] else: tz = time.tzname[0] except AttributeError: tz = '' if now[3] > 12: clock12 = now[3] - 12 elif now[3] > 0: clock12 = now[3] else: clock12 = 12 expectations = ( ('%a', calendar.day_abbr[now[6]], 'abbreviated weekday name'), ('%A', calendar.day_name[now[6]], 'full weekday name'), ('%b', calendar.month_abbr[now[1]], 'abbreviated month name'), ('%B', calendar.month_name[now[1]], 'full month name'), # %c see below ('%d', '%02d' % now[2], 'day of month as number (00-31)'), ('%H', '%02d' % now[3], 'hour (00-23)'), ('%I', '%02d' % clock12, 'hour (01-12)'), ('%j', '%03d' % now[7], 'julian day (001-366)'), ('%m', '%02d' % now[1], 'month as number (01-12)'), ('%M', '%02d' % now[4], 'minute, (00-59)'), ('%p', ampm, 'AM or PM as appropriate'), ('%S', '%02d' % now[5], 'seconds of current time (00-60)'), ('%U', '%02d' % ((now[7] + jan1[6])/7), 'week number of the year (Sun 1st)'), ('%w', '%d' % ((1+now[6]) % 7), 'weekday as a number (Sun 1st)'), ('%W', '%02d' % ((now[7] + (jan1[6] - 1)%7)/7), 'week number of the year (Mon 1st)'), # %x see below ('%X', '%02d:%02d:%02d' % (now[3], now[4], now[5]), '%H:%M:%S'), ('%y', '%02d' % (now[0]%100), 'year without century'), ('%Y', '%d' % now[0], 'year with century'), # %Z see below ('%%', '%', 'single percent sign'), ) nonstandard_expectations = ( # These are standard but don't have predictable output ('%c', fixasctime(time.asctime(now)), 'near-asctime() format'), ('%x', '%02d/%02d/%02d' % (now[1], now[2], (now[0]%100)), '%m/%d/%y %H:%M:%S'), ('(%Z)', '(%s)' % tz, 'time zone name'), # These are some platform specific extensions ('%D', '%02d/%02d/%02d' % (now[1], now[2], (now[0]%100)), 'mm/dd/yy'), ('%e', '%2d' % now[2], 'day of month as number, blank padded ( 0-31)'), ('%h', calendar.month_abbr[now[1]], 'abbreviated month name'), ('%k', '%2d' % now[3], 'hour, blank padded ( 0-23)'), ('%n', '\n', 'newline character'), ('%r', '%02d:%02d:%02d %s' % (clock12, now[4], now[5], ampm), '%I:%M:%S %p'), ('%R', '%02d:%02d' % (now[3], now[4]), '%H:%M'), ('%s', nowsecs, 'seconds since the Epoch in UCT'), ('%t', '\t', 'tab character'), ('%T', '%02d:%02d:%02d' % (now[3], now[4], now[5]), '%H:%M:%S'), ('%3y', '%03d' % (now[0]%100), 'year without century rendered using fieldwidth'), ) if verbose: print "Strftime test, platform: %s, Python version: %s" % \ (sys.platform, string.split(sys.version)[0]) for e in expectations: try: result = time.strftime(e[0], now) except ValueError, error: print "Standard '%s' format gave error:" % e[0], error continue if result == e[1]: continue if result[0] == '%': print "Does not support standard '%s' format (%s)" % (e[0], e[2]) else: print "Conflict for %s (%s):" % (e[0], e[2]) print " Expected %s, but got %s" % (e[1], result) for e in nonstandard_expectations: try: result = time.strftime(e[0], now) except ValueError, result: if verbose: print "Error for nonstandard '%s' format (%s): %s" % \ (e[0], e[2], str(result)) continue if result == e[1]: if verbose: print "Supports nonstandard '%s' format (%s)" % (e[0], e[2]) elif result[0] == '%': if verbose: print "Does not appear to support '%s' format (%s)" % (e[0], e[2]) else: if verbose: print "Conflict for nonstandard '%s' format (%s):" % (e[0], e[2]) print " Expected %s, but got %s" % (e[1], result)
7944ea523ed1da2cfa99c922509caa07114b4096 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7944ea523ed1da2cfa99c922509caa07114b4096/test_strftime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 609, 1222, 395, 12, 3338, 4672, 309, 3988, 30, 1172, 315, 701, 9982, 1842, 364, 3113, 813, 18, 21261, 12, 3338, 13, 2037, 21317, 273, 609, 12, 5748, 12, 3338, 3719, 10531, 17, 21, 65, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 609, 1222, 395, 12, 3338, 4672, 309, 3988, 30, 1172, 315, 701, 9982, 1842, 364, 3113, 813, 18, 21261, 12, 3338, 13, 2037, 21317, 273, 609, 12, 5748, 12, 3338, 3719, 10531, 17, 21, 65, ...
print >> s, ' doskey libtbx.%ssetpaths="%s\\%ssetpaths.bat" $*' % ( un, self.bin_path, un)
print >> s, ' doskey libtbx.%ssetpaths=%s\\%ssetpaths.bat $*' % ( un, self.build_path, un)
def write_setpaths_bat(self): setpaths_path = self.under_build("setpaths.bat") unsetpaths_path = self.under_build("unsetpaths.bat") s = open_info(setpaths_path) u = open_info(unsetpaths_path) update_path = windows_update_path(self, s, u) for f in s, u: print >> f, '@ECHO off' print >> f, 'if not exist "%s" goto fatal_error' % self.python_exe print >> f, 'if not exist "%s" goto fatal_error' % self.path_utility print >> f, 'if exist "%s" goto update_path' % self.under_build( "bin/libtbx.python.exe") write_incomplete_libtbx_environment(f) print >> f, ' goto end_of_script' print >> f, ':update_path' update_path.write((" ", " "), "PATH", [self.bin_path]) for un in ["", "un"]: print >> s, ' doskey libtbx.%ssetpaths="%s\\%ssetpaths.bat" $*' % ( un, self.bin_path, un) print >> u, ' doskey libtbx.unsetpaths=' print >> s, ' if "%1" == "" goto end_of_script' print >> s, ' if not "%2" == "" goto show_usage' print >> s, ' if "%1" == "all" goto set_all' print >> s, ' if "%1" == "debug" goto set_all' print >> s, ':show_usage' print >> s, ' echo usage: setpaths [all^|debug]' print >> s, ' goto end_of_script' print >> s, ':set_all' print >> s, ' set %s="%s"' % ("LIBTBX_BUILD", self.build_path) print >> u, ' set %s=' % "LIBTBX_BUILD" for module in self.module_list: for name,path in module.name_and_dist_path_pairs(): var_name = name.upper() + "_DIST" print >> s, ' set %s="%s"' % (var_name, path) print >> u, ' set %s=' % var_name print >> s, ' if not "%1" == "debug" goto end_of_script' update_path.write((" ", " "), "PYTHONPATH", self.pythonpath) update_path.write((" ", " "), "PATH", [self.lib_path]) for f in s, u: print >> f, ':end_of_script' s.close() u.close()
64438d7883e0708b9643be0c227d60303fd6ed3b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/64438d7883e0708b9643be0c227d60303fd6ed3b/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 542, 4481, 67, 28260, 12, 2890, 4672, 444, 4481, 67, 803, 273, 365, 18, 9341, 67, 3510, 2932, 542, 4481, 18, 28260, 7923, 2646, 4481, 67, 803, 273, 365, 18, 9341, 67, 3510, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 542, 4481, 67, 28260, 12, 2890, 4672, 444, 4481, 67, 803, 273, 365, 18, 9341, 67, 3510, 2932, 542, 4481, 18, 28260, 7923, 2646, 4481, 67, 803, 273, 365, 18, 9341, 67, 3510, ...
return self.get_end_tag()
return '</%s>' % self.qname
def get_end_tag_as_html(self): if self.name in empty_elements: return '' return self.get_end_tag()
9b8cc9ff753836808bdfc6a5822bbfcac355b31a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/9b8cc9ff753836808bdfc6a5822bbfcac355b31a/XHTML.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 409, 67, 2692, 67, 345, 67, 2620, 12, 2890, 4672, 309, 365, 18, 529, 316, 1008, 67, 6274, 30, 327, 875, 327, 365, 18, 588, 67, 409, 67, 2692, 1435, 2, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 67, 409, 67, 2692, 67, 345, 67, 2620, 12, 2890, 4672, 309, 365, 18, 529, 316, 1008, 67, 6274, 30, 327, 875, 327, 365, 18, 588, 67, 409, 67, 2692, 1435, 2, -100, -100, -100, -1...
s.append('<li>"%s" (%s)</li>'%(name, esc(repr(info))))
s.append(_('<li>"%(name)s" (%(info)s)</li>') % {'name': name, 'info': esc(repr(info))})
def pt_html(context=5): esc = cgi.escape l = ['<h1>Templating Error</h1>', '<p><b>%s</b>: %s</p>'%(esc(str(sys.exc_type)), esc(str(sys.exc_value))), '<p class="help">Debugging information follows</p>', '<ol>',] from roundup.cgi.PageTemplates.Expressions import TraversalError t = inspect.trace(context) t.reverse() for frame, file, lnum, func, lines, index in t: args, varargs, varkw, locals = inspect.getargvalues(frame) if locals.has_key('__traceback_info__'): ti = locals['__traceback_info__'] if isinstance(ti, TraversalError): s = [] for name, info in ti.path: s.append('<li>"%s" (%s)</li>'%(name, esc(repr(info)))) s = '\n'.join(s) l.append('<li>Looking for "%s", current path:<ol>%s</ol></li>'%( ti.name, s)) else: l.append('<li>In %s</li>'%esc(str(ti))) if locals.has_key('__traceback_supplement__'): ts = locals['__traceback_supplement__'] if len(ts) == 2: supp, context = ts s = 'A problem occurred in your template "%s".'%str(context.id) if context._v_errors: s = s + '<br>' + '<br>'.join( [esc(x) for x in context._v_errors]) l.append('<li>%s</li>'%s) elif len(ts) == 3: supp, context, info = ts l.append('''
f8fb7de2f6d69a02b72966a8e8af2c65d4eec9d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f8fb7de2f6d69a02b72966a8e8af2c65d4eec9d4/cgitb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5818, 67, 2620, 12, 2472, 33, 25, 4672, 2904, 273, 276, 10052, 18, 6939, 328, 273, 10228, 32, 76, 21, 34, 26033, 1776, 1068, 1757, 76, 21, 1870, 16, 2368, 84, 4438, 70, 9822, 87, 175...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5818, 67, 2620, 12, 2472, 33, 25, 4672, 2904, 273, 276, 10052, 18, 6939, 328, 273, 10228, 32, 76, 21, 34, 26033, 1776, 1068, 1757, 76, 21, 1870, 16, 2368, 84, 4438, 70, 9822, 87, 175...
print "Issuing (%d)" % self.chunk, "via", self.url
def run(self): print "Issuing (%d)" % self.chunk, "via", self.url stats = time.qServQueryTimer[time.qServRunningName] taskName = "chunkQ_" + str(self.chunk) stats[taskName+"Start"] = time.time() self.successful = True handle = xrdOpen(self.url, os.O_RDWR) q = self.query wCount = xrdWrite(handle, charArray_frompointer(q), len(q))
f8e07b73274f1980951622393154f7ae4a9b8230 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6510/f8e07b73274f1980951622393154f7ae4a9b8230/app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 225, 3177, 273, 813, 18, 85, 827, 90, 1138, 6777, 63, 957, 18, 85, 827, 90, 7051, 461, 65, 20172, 273, 315, 6551, 53, 9548, 397, 609, 12, 2890, 18, 6551, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 225, 3177, 273, 813, 18, 85, 827, 90, 1138, 6777, 63, 957, 18, 85, 827, 90, 7051, 461, 65, 20172, 273, 315, 6551, 53, 9548, 397, 609, 12, 2890, 18, 6551, 13, ...
return result
return metadata
def get_matew_directory_metadata(self, subdir = None): ''' Return dictionary with meta data parsed from Matew like format. ''' if subdir is None: path = self.description_file else: path = os.path.join(self.source, subdir, MATEW_METADATA)
0072aa3fcb21238a79a805652e0dd4ec982a2bd5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4663/0072aa3fcb21238a79a805652e0dd4ec982a2bd5/lazygal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 81, 340, 91, 67, 5149, 67, 4165, 12, 2890, 16, 16921, 273, 599, 4672, 9163, 2000, 3880, 598, 2191, 501, 2707, 628, 490, 340, 91, 3007, 740, 18, 9163, 309, 16921, 353, 599, 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, 336, 67, 81, 340, 91, 67, 5149, 67, 4165, 12, 2890, 16, 16921, 273, 599, 4672, 9163, 2000, 3880, 598, 2191, 501, 2707, 628, 490, 340, 91, 3007, 740, 18, 9163, 309, 16921, 353, 599, 3...
print_records(req, results_cocited_recIDs, jrec, rg, of, ot, ln, search_pattern=p)
print_records(req, results_cocited_recIDs, jrec, rg, of, ot, ln, search_pattern=p, verbose=verbose)
def perform_request_search(req=None, cc=cdsname, c=None, p="", f="", rg=10, sf="", so="d", sp="", rm="", of="id", ot="", as=0, p1="", f1="", m1="", op1="", p2="", f2="", m2="", op2="", p3="", f3="", m3="", sc=0, jrec=0, recid=-1, recidb=-1, sysno="", id=-1, idb=-1, sysnb="", action="", d1y=0, d1m=0, d1d=0, d2y=0, d2m=0, d2d=0, verbose=0, ap=0, ln=cdslang, ec = None): """Perform search or browse request, without checking for authentication. Return list of recIDs found, if of=id. Otherwise create web page. The arguments are as follows: req - mod_python Request class instance. cc - current collection (e.g. "ATLAS"). The collection the user started to search/browse from. c - collectin list (e.g. ["Theses", "Books"]). The collections user may have selected/deselected when starting to search from 'cc'. p - pattern to search for (e.g. "ellis and muon or kaon"). f - field to search within (e.g. "author"). rg - records in groups of (e.g. "10"). Defines how many hits per collection in the search results page are displayed. sf - sort field (e.g. "title"). so - sort order ("a"=ascending, "d"=descending). sp - sort pattern (e.g. "CERN-") -- in case there are more values in a sort field, this argument tells which one to prefer rm - ranking method (e.g. "jif"). Defines whether results should be ranked by some known ranking method. of - output format (e.g. "hb"). Usually starting "h" means HTML output (and "hb" for HTML brief, "hd" for HTML detailed), "x" means XML output, "t" means plain text output, "id" means no output at all but to return list of recIDs found. (Suitable for high-level API.) ot - output only these MARC tags (e.g. "100,700,909C0b"). Useful if only some fields are to be shown in the output, e.g. for library to control some fields. as - advanced search ("0" means no, "1" means yes). Whether search was called from within the advanced search interface. p1 - first pattern to search for in the advanced search interface. Much like 'p'. f1 - first field to search within in the advanced search interface. Much like 'f'. m1 - first matching type in the advanced search interface. ("a" all of the words, "o" any of the words, "e" exact phrase, "p" partial phrase, "r" regular expression). op1 - first operator, to join the first and the second unit in the advanced search interface. ("a" add, "o" or, "n" not). p2 - second pattern to search for in the advanced search interface. Much like 'p'. f2 - second field to search within in the advanced search interface. Much like 'f'. m2 - second matching type in the advanced search interface. ("a" all of the words, "o" any of the words, "e" exact phrase, "p" partial phrase, "r" regular expression). op2 - second operator, to join the second and the third unit in the advanced search interface. ("a" add, "o" or, "n" not). p3 - third pattern to search for in the advanced search interface. Much like 'p'. f3 - third field to search within in the advanced search interface. Much like 'f'. m3 - third matching type in the advanced search interface. ("a" all of the words, "o" any of the words, "e" exact phrase, "p" partial phrase, "r" regular expression). sc - split by collection ("0" no, "1" yes). Governs whether we want to present the results in a single huge list, or splitted by collection. jrec - jump to record (e.g. "234"). Used for navigation inside the search results. recid - display record ID (e.g. "20000"). Do not search/browse but go straight away to the Detailed record page for the given recID. recidb - display record ID bis (e.g. "20010"). If greater than 'recid', then display records from recid to recidb. Useful for example for dumping records from the database for reformatting. sysno - display old system SYS number (e.g. ""). If you migrate to CDS Invenio from another system, and store your old SYS call numbers, you can use them instead of recid if you wish so. id - the same as recid, in case recid is not set. For backwards compatibility. idb - the same as recid, in case recidb is not set. For backwards compatibility. sysnb - the same as sysno, in case sysno is not set. For backwards compatibility. action - action to do. "SEARCH" for searching, "Browse" for browsing. Default is to search. d1y - first date year (e.g. "1998"). Useful for search limits on creation date. d1m - first date month (e.g. "08"). Useful for search limits on creation date. d1d - first date day (e.g. "23"). Useful for search limits on creation date. d2y - second date year (e.g. "1998"). Useful for search limits on creation date. d2m - second date month (e.g. "09"). Useful for search limits on creation date. d2d - second date day (e.g. "02"). Useful for search limits on creation date. verbose - verbose level (0=min, 9=max). Useful to print some internal information on the searching process in case something goes wrong. ap - alternative patterns (0=no, 1=yes). In case no exact match is found, the search engine can try alternative patterns e.g. to replace non-alphanumeric characters by a boolean query. ap defines if this is wanted. ln - language of the search interface (e.g. "en"). Useful for internationalization. ec - List of external search engines enabled. """ selected_external_collections_infos = None # wash all arguments requiring special care try: (cc, colls_to_display, colls_to_search) = wash_colls(cc, c, sc) # which colls to search and to display? except InvenioWebSearchUnknownCollectionError, exc: colname = exc.colname if of.startswith("h"): page_start(req, of, cc, as, ln, getUid(req), websearch_templates.tmpl_collection_not_found_page_title(colname, ln)) req.write(websearch_templates.tmpl_collection_not_found_page_body(colname, ln)) return page_end(req, of, ln) elif of == "id": return [] else: return page_end(req, of, ln) p = wash_pattern(p) f = wash_field(f) p1 = wash_pattern(p1) f1 = wash_field(f1) p2 = wash_pattern(p2) f2 = wash_field(f2) p3 = wash_pattern(p3) f3 = wash_field(f3) day1, day2 = wash_dates(d1y, d1m, d1d, d2y, d2m, d2d) _ = gettext_set_language(ln) # backwards compatibility: id, idb, sysnb -> recid, recidb, sysno (if applicable) if sysnb != "" and sysno == "": sysno = sysnb if id > 0 and recid == -1: recid = id if idb > 0 and recidb == -1: recidb = idb # TODO deduce passed search limiting criterias (if applicable) pl, pl_in_url = "", "" # no limits by default if action != "browse" and req and req.args: # we do not want to add options while browsing or while calling via command-line fieldargs = cgi.parse_qs(req.args) for fieldcode in get_fieldcodes(): if fieldargs.has_key(fieldcode): for val in fieldargs[fieldcode]: pl += "+%s:\"%s\" " % (fieldcode, val) pl_in_url += "&amp;%s=%s" % (urllib.quote(fieldcode), urllib.quote(val)) # deduce recid from sysno argument (if applicable): if sysno: # ALEPH SYS number was passed, so deduce DB recID for the record: recid = get_mysql_recid_from_aleph_sysno(sysno) # deduce collection we are in (if applicable): if recid > 0: cc = guess_primary_collection_of_a_record(recid) # deduce user id (if applicable): try: uid = getUid(req) except: uid = 0 ## 0 - start output if recid > 0: ## 1 - detailed record display title, description, keywords = \ websearch_templates.tmpl_record_page_header_content(req, recid, ln) page_start(req, of, cc, as, ln, uid, title, description, keywords) # Default format is hb but we are in detailed -> change 'of' if of == "hb": of = "hd" if record_exists(recid): if recidb <= recid: # sanity check recidb = recid + 1 if of == "id": return [recidx for recidx in range(recid, recidb) if record_exists(recidx)] else: print_records(req, range(recid, recidb), -1, -9999, of, ot, ln, search_pattern=p) if req and of.startswith("h"): # register detailed record page view event client_ip_address = str(req.get_remote_host(apache.REMOTE_NOLOOKUP)) register_page_view_event(recid, uid, client_ip_address) else: # record does not exist if of == "id": return [] elif of.startswith("h"): print_warning(req, "Requested record does not seem to exist.") elif action == "browse": ## 2 - browse needed page_start(req, of, cc, as, ln, uid, _("Browse")) if of.startswith("h"): req.write(create_search_box(cc, colls_to_display, p, f, rg, sf, so, sp, rm, of, ot, as, ln, p1, f1, m1, op1, p2, f2, m2, op2, p3, f3, m3, sc, pl, d1y, d1m, d1d, d2y, d2m, d2d, jrec, ec, action)) try: if as == 1 or (p1 or p2 or p3): browse_pattern(req, colls_to_search, p1, f1, rg) browse_pattern(req, colls_to_search, p2, f2, rg) browse_pattern(req, colls_to_search, p3, f3, rg) else: browse_pattern(req, colls_to_search, p, f, rg) except: if of.startswith("h"): req.write(create_error_box(req, verbose=verbose, ln=ln)) return page_end(req, of, ln) elif rm and p.startswith("recid:"): ## 3-ter - similarity search needed page_start(req, of, cc, as, ln, uid, _("Search Results")) if of.startswith("h"): req.write(create_search_box(cc, colls_to_display, p, f, rg, sf, so, sp, rm, of, ot, as, ln, p1, f1, m1, op1, p2, f2, m2, op2, p3, f3, m3, sc, pl, d1y, d1m, d1d, d2y, d2m, d2d, jrec, ec, action)) if record_exists(p[6:]) != 1: # record does not exist if of.startswith("h"): print_warning(req, "Requested record does not seem to exist.") if of == "id": return [] else: # record well exists, so find similar ones to it t1 = os.times()[4] results_similar_recIDs, results_similar_relevances, results_similar_relevances_prologue, results_similar_relevances_epilogue, results_similar_comments = \ rank_records(rm, 0, get_collection_reclist(cdsname), string.split(p), verbose) if results_similar_recIDs: t2 = os.times()[4] cpu_time = t2 - t1 if of.startswith("h"): req.write(print_search_info(p, f, sf, so, sp, rm, of, ot, cdsname, len(results_similar_recIDs), jrec, rg, as, ln, p1, p2, p3, f1, f2, f3, m1, m2, m3, op1, op2, sc, pl_in_url, d1y, d1m, d1d, d2y, d2m, d2d, cpu_time)) print_warning(req, results_similar_comments) print_records(req, results_similar_recIDs, jrec, rg, of, ot, ln, results_similar_relevances, results_similar_relevances_prologue, results_similar_relevances_epilogue, search_pattern=p) elif of=="id": return results_similar_recIDs else: # rank_records failed and returned some error message to display: if of.startswith("h"): print_warning(req, results_similar_relevances_prologue) print_warning(req, results_similar_relevances_epilogue) print_warning(req, results_similar_comments) if of == "id": return [] elif CFG_EXPERIMENTAL_FEATURES and p.startswith("cocitedwith:"): ## 3-terter - cited by search needed page_start(req, of, cc, as, ln, uid, _("Search Results")) if of.startswith("h"): req.write(create_search_box(cc, colls_to_display, p, f, rg, sf, so, sp, rm, of, ot, as, ln, p1, f1, m1, op1, p2, f2, m2, op2, p3, f3, m3, sc, pl, d1y, d1m, d1d, d2y, d2m, d2d, jrec, ec, action)) recID = p[12:] if record_exists(recID) != 1: # record does not exist if of.startswith("h"): print_warning(req, "Requested record does not seem to exist.") if of == "id": return [] else: # record well exists, so find co-cited ones: t1 = os.times()[4] results_cocited_recIDs = map(lambda x: x[0], calculate_co_cited_with_list(int(recID))) if results_cocited_recIDs: t2 = os.times()[4] cpu_time = t2 - t1 if of.startswith("h"): req.write(print_search_info(p, f, sf, so, sp, rm, of, ot, cdsname, len(results_cocited_recIDs), jrec, rg, as, ln, p1, p2, p3, f1, f2, f3, m1, m2, m3, op1, op2, sc, pl_in_url, d1y, d1m, d1d, d2y, d2m, d2d, cpu_time)) print_records(req, results_cocited_recIDs, jrec, rg, of, ot, ln, search_pattern=p) elif of=="id": return results_cocited_recIDs else: # cited rank_records failed and returned some error message to display: if of.startswith("h"): print_warning(req, "nothing found") if of == "id": return [] else: ## 3 - common search needed page_start(req, of, cc, as, ln, uid, _("Search Results")) if of.startswith("h"): req.write(create_search_box(cc, colls_to_display, p, f, rg, sf, so, sp, rm, of, ot, as, ln, p1, f1, m1, op1, p2, f2, m2, op2, p3, f3, m3, sc, pl, d1y, d1m, d1d, d2y, d2m, d2d, jrec, ec, action)) t1 = os.times()[4] results_in_any_collection = HitSet() if as == 1 or (p1 or p2 or p3): ## 3A - advanced search try: results_in_any_collection = search_pattern(req, p1, f1, m1, ap=ap, of=of, verbose=verbose, ln=ln) if results_in_any_collection._nbhits == 0: if of.startswith("h"): perform_external_collection_search(req, cc, [p, p1, p2, p3], f, ec, verbose, ln, selected_external_collections_infos) return page_end(req, of, ln) if p2: results_tmp = search_pattern(req, p2, f2, m2, ap=ap, of=of, verbose=verbose, ln=ln) if op1 == "a": # add results_in_any_collection.intersect(results_tmp) elif op1 == "o": # or results_in_any_collection.union(results_tmp) elif op1 == "n": # not results_in_any_collection.difference(results_tmp) else: if of.startswith("h"): print_warning(req, "Invalid set operation %s." % op1, "Error") results_in_any_collection.calculate_nbhits() if results_in_any_collection._nbhits == 0: if of.startswith("h"): perform_external_collection_search(req, cc, [p, p1, p2, p3], f, ec, verbose, ln, selected_external_collections_infos) return page_end(req, of, ln) if p3: results_tmp = search_pattern(req, p3, f3, m3, ap=ap, of=of, verbose=verbose, ln=ln) if op2 == "a": # add results_in_any_collection.intersect(results_tmp) elif op2 == "o": # or results_in_any_collection.union(results_tmp) elif op2 == "n": # not results_in_any_collection.difference(results_tmp) else: if of.startswith("h"): print_warning(req, "Invalid set operation %s." % op2, "Error") results_in_any_collection.calculate_nbhits() except: if of.startswith("h"): req.write(create_error_box(req, verbose=verbose, ln=ln)) perform_external_collection_search(req, cc, [p, p1, p2, p3], f, ec, verbose, ln, selected_external_collections_infos) return page_end(req, of, ln) else: ## 3B - simple search try: results_in_any_collection = search_pattern(req, p, f, ap=ap, of=of, verbose=verbose, ln=ln) except: if of.startswith("h"): req.write(create_error_box(req, verbose=verbose, ln=ln)) perform_external_collection_search(req, cc, [p, p1, p2, p3], f, ec, verbose, ln, selected_external_collections_infos) return page_end(req, of, ln) if results_in_any_collection._nbhits == 0: if of.startswith("h"): perform_external_collection_search(req, cc, [p, p1, p2, p3], f, ec, verbose, ln, selected_external_collections_infos) return page_end(req, of, ln)
845a99c9c5de9c5d99d06ec25bc8f5be515522e8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/845a99c9c5de9c5d99d06ec25bc8f5be515522e8/search_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 2293, 67, 3072, 12, 3658, 33, 7036, 16, 4946, 33, 71, 2377, 529, 16, 276, 33, 7036, 16, 293, 1546, 3113, 284, 1546, 3113, 14524, 33, 2163, 16, 9033, 1546, 3113, 1427, 1546, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 2293, 67, 3072, 12, 3658, 33, 7036, 16, 4946, 33, 71, 2377, 529, 16, 276, 33, 7036, 16, 293, 1546, 3113, 284, 1546, 3113, 14524, 33, 2163, 16, 9033, 1546, 3113, 1427, 1546, ...
if self.options['db_host']: self._generate_pgpassfile()
def die(cond, msg): if cond: print msg sys.exit(1)
2acfff6a931f436e108cde117aab5687c2fa3f3d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/2acfff6a931f436e108cde117aab5687c2fa3f3d/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10387, 12, 10013, 16, 1234, 4672, 309, 6941, 30, 1172, 1234, 2589, 18, 8593, 12, 21, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 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, 10387, 12, 10013, 16, 1234, 4672, 309, 6941, 30, 1172, 1234, 2589, 18, 8593, 12, 21, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self.temproot = tempfile.tempdir = tempfile.mkdtemp()
self.temproot = tempfile.tempdir = \ tempfile.mkdtemp(prefix="test-archivemail")
def setUp(self): if not self.temproot: assert(not tempfile.tempdir) self.temproot = tempfile.tempdir = tempfile.mkdtemp()
a8e76ead22d78add2ffdcb31fba0d8f7d47b4274 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1746/a8e76ead22d78add2ffdcb31fba0d8f7d47b4274/test_archivemail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 309, 486, 365, 18, 874, 685, 352, 30, 1815, 12, 902, 13275, 18, 5814, 1214, 13, 365, 18, 874, 685, 352, 273, 13275, 18, 5814, 1214, 273, 13275, 18, 24816, 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, 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, 24292, 12, 2890, 4672, 309, 486, 365, 18, 874, 685, 352, 30, 1815, 12, 902, 13275, 18, 5814, 1214, 13, 365, 18, 874, 685, 352, 273, 13275, 18, 5814, 1214, 273, 13275, 18, 24816, 72, ...
print " - %s use %s classes" % (viewId, len(deps[viewId]))
print " - %s uses %s classes" % (viewId, len(deps[viewId]))
def processViews(views, loadDeps, runDeps, output): global classes print ">>> Analysing %s views..." % len(views) classCounts = {} # Generating data structures for possible modules classMods = {} # for id in views: # Hint: IDs # # apiviewer # feedreader # webmail # apiviewer-feedreader # apiviewer-webmail # feedreader-webmail # apiviewer-feedreader-webmail # # Find all classes allIncludes = [] for id in views: allIncludes.extend(views[id]) allClasses = resolveDependencies(allIncludes, [], loadDeps, runDeps) print " - Using %s classes" % len(allClasses) # Caching dependencies of each view deps = {} for viewId in views: # Exclude all features of other views # and handle dependencies the smart way => # also exclude classes only needed by the # already excluded features exclude = [] for subViewId in views: if subViewId != viewId: exclude.extend(views[subViewId]) # Finally resolve the dependencies deps[viewId] = resolveDependencies(views[viewId], exclude, loadDeps, runDeps) print " - %s use %s classes" % (viewId, len(deps[viewId])) # Build bitmask ids for views # 1,2,4,8,16,32,64,128 bits = {} pos = 1 for id in views: bits[id] = pos pos = pos * 2 print bits
81b747f6b630b33c32656070c873a9a09a9e6100 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5718/81b747f6b630b33c32656070c873a9a09a9e6100/generator2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 9959, 12, 7061, 16, 1262, 14430, 16, 1086, 14430, 16, 876, 4672, 2552, 3318, 225, 1172, 315, 23012, 1922, 3646, 310, 738, 87, 7361, 7070, 738, 562, 12, 7061, 13, 225, 667, 9211, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 9959, 12, 7061, 16, 1262, 14430, 16, 1086, 14430, 16, 876, 4672, 2552, 3318, 225, 1172, 315, 23012, 1922, 3646, 310, 738, 87, 7361, 7070, 738, 562, 12, 7061, 13, 225, 667, 9211, ...
tx.moveCursor(offset + 0.5 * extraspace, 0)
m = offset + 0.5 * extraspace tx.moveCursor(m, 0)
def cleanBlockQuotedText(text): """This is an internal utility which takes triple- quoted text form within the document and returns (hopefully) the paragraph the user intended originally.""" stripped = string.strip(text) lines = string.split(stripped, '\n') trimmed_lines = map(string.lstrip, lines) return string.join(trimmed_lines, ' ')
52bd0f5ee571a9ff180340925cb777fdd03bc82b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/52bd0f5ee571a9ff180340925cb777fdd03bc82b/paragraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 1768, 15919, 1528, 12, 955, 4672, 3536, 2503, 353, 392, 2713, 12788, 1492, 5530, 14543, 17, 9298, 977, 646, 3470, 326, 1668, 471, 1135, 261, 76, 1306, 4095, 13, 326, 10190, 326, 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, 2721, 1768, 15919, 1528, 12, 955, 4672, 3536, 2503, 353, 392, 2713, 12788, 1492, 5530, 14543, 17, 9298, 977, 646, 3470, 326, 1668, 471, 1135, 261, 76, 1306, 4095, 13, 326, 10190, 326, 72...
r""" INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000100;a Number of compositions of n in which the maximum part size is 3. sage: a(0) 0 sage: a(1) 0 sage: a(2) 0 sage: a(3) 1 sage: a(11) 360 sage: a.list(12) [0, 0, 0, 1, 2, 5, 11, 23, 47, 94, 185, 360] AUTHOR: -- Jaap Spies (2007-01-26) """ def __init__(self):
def __init__(self): r""" INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000100;a Number of compositions of n in which the maximum part size is 3. sage: a(0) 0 sage: a(1) 0 sage: a(2) 0 sage: a(3) 1 sage: a(11) 360 sage: a.list(12) [0, 0, 0, 1, 2, 5, 11, 23, 47, 94, 185, 360] AUTHOR: -- Jaap Spies (2007-01-26) """
def _repr_(self): return "Sequence of Uppuluri-Carpenter numbers"
8b300fed02e947af57b58146f62dccfc715cf0b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/8b300fed02e947af57b58146f62dccfc715cf0b9/sloane_functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12715, 67, 12, 2890, 4672, 327, 315, 4021, 434, 1948, 84, 332, 1650, 17, 39, 11441, 2328, 5600, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12715, 67, 12, 2890, 4672, 327, 315, 4021, 434, 1948, 84, 332, 1650, 17, 39, 11441, 2328, 5600, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
nextLink = body.find('a', href=nextLinkPattern) if nextLink is not None: path = nextLink['href']
next_text = body.find(text=nextpattern) if next_text is not None: path = next_text.parent['href']
def getReferences(self, follow_redirects=True, withTemplateInclusion=True, onlyTemplateInclusion=False, redirectsOnly=False): """ Yield all pages that link to the page. If you need a full list of referring pages, use this:
5f6008d079b10b9c5ea277de249b8152a044835f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/5f6008d079b10b9c5ea277de249b8152a044835f/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5561, 2980, 12, 2890, 16, 2805, 67, 22715, 33, 5510, 16, 598, 2283, 382, 15335, 33, 5510, 16, 1338, 2283, 382, 15335, 33, 8381, 16, 18064, 3386, 33, 8381, 4672, 3536, 31666, 777, 4689, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5561, 2980, 12, 2890, 16, 2805, 67, 22715, 33, 5510, 16, 598, 2283, 382, 15335, 33, 5510, 16, 1338, 2283, 382, 15335, 33, 8381, 16, 18064, 3386, 33, 8381, 4672, 3536, 31666, 777, 4689, ...
self.modified = 1
self.modified = True
def itemNameEdited(self,a0): #sys.stdout.write("Edited Item %d named %s\n" % (self.ItemNameCombo.currentIndex(), a0)) if self.nocalc: return # Ignore side-effect signal textEditChanged() prior to activated() if self.ItemNameCombo.currentIndex() != 0: return # Don't update as we stumble upon a duplicate name, let them keep editing if self.ItemNameCombo.findText(a0) > -1: return item = self.itemattrlist[self.currentTabLabel] item.ItemName = unicode(self.ItemNameCombo.lineEdit().text()) # blockSignals will not have the desired effect, save/restore the cursor as they insert cursorpos = self.ItemNameCombo.lineEdit().cursorPosition() self.ItemNameCombo.setItemText(0,item.ItemName) self.ItemNameCombo.lineEdit().setCursorPosition(cursorpos) self.modified = 1
cdc9cf773cf0c254cf668f14ba48aa9d538724e6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6671/cdc9cf773cf0c254cf668f14ba48aa9d538724e6/ScWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23488, 4666, 329, 12, 2890, 16, 69, 20, 4672, 468, 9499, 18, 10283, 18, 2626, 2932, 4666, 329, 4342, 738, 72, 4141, 738, 87, 64, 82, 6, 738, 261, 2890, 18, 1180, 461, 16156, 18, 2972...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23488, 4666, 329, 12, 2890, 16, 69, 20, 4672, 468, 9499, 18, 10283, 18, 2626, 2932, 4666, 329, 4342, 738, 72, 4141, 738, 87, 64, 82, 6, 738, 261, 2890, 18, 1180, 461, 16156, 18, 2972...
if netloc:
if netloc or (scheme in uses_netloc and url[:2] == '//'):
def urlunparse((scheme, netloc, url, params, query, fragment)): if netloc: if url[:1] != '/': url = '/' + url url = '//' + netloc + url if scheme: url = scheme + ':' + url if params: url = url + ';' + params if query: url = url + '?' + query if fragment: url = url + '#' + fragment return url
5b9b288f227c810394eda4fa43db71247c9da5ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/5b9b288f227c810394eda4fa43db71247c9da5ba/urlparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 880, 318, 2670, 12443, 9068, 16, 17345, 16, 880, 16, 859, 16, 843, 16, 5481, 3719, 30, 309, 17345, 578, 261, 9068, 316, 4692, 67, 2758, 1829, 471, 880, 10531, 22, 65, 422, 19696, 4672,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 880, 318, 2670, 12443, 9068, 16, 17345, 16, 880, 16, 859, 16, 843, 16, 5481, 3719, 30, 309, 17345, 578, 261, 9068, 316, 4692, 67, 2758, 1829, 471, 880, 10531, 22, 65, 422, 19696, 4672,...
launch_success = 0
def launch(self): """Launch external editor""" use_locks = int(self.options.get('use_locks', 0)) if use_locks and self.metadata.get('lock-token'): # A lock token came down with the data, so the object is # already locked, see if we can borrow the lock if (int(self.options.get('always_borrow_locks', 0)) or self.metadata.get('borrow_lock') or askYesNo('This object is already locked by you in another' ' session.\n Do you want to borrow this lock' ' and continue?')): self.lock_token = 'opaquelocktoken:%s' \ % self.metadata['lock-token'] else: sys.exit() save_interval = float(self.options.get('save_interval')) launch_success = 0 last_mtime = os.path.getmtime(self.content_file) command = self.getEditorCommand()
d623ac4bc2b8c02ceef969713c1b9f16c48637d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/d623ac4bc2b8c02ceef969713c1b9f16c48637d3/zopeedit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8037, 12, 2890, 4672, 3536, 9569, 3903, 4858, 8395, 999, 67, 23581, 273, 509, 12, 2890, 18, 2116, 18, 588, 2668, 1202, 67, 23581, 2187, 374, 3719, 309, 999, 67, 23581, 471, 365, 18, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8037, 12, 2890, 4672, 3536, 9569, 3903, 4858, 8395, 999, 67, 23581, 273, 509, 12, 2890, 18, 2116, 18, 588, 2668, 1202, 67, 23581, 2187, 374, 3719, 309, 999, 67, 23581, 471, 365, 18, 41...
which are forwarded to the _dispatch method for handling. """
which are forwarded to the server's _dispatch method for handling. """
def do_POST(self): """Handles the HTTP POST request.
296497a20942d024558fc4b2a9158f4567167ac9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/296497a20942d024558fc4b2a9158f4567167ac9/SimpleXMLRPCServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 3798, 12, 2890, 4672, 3536, 8788, 326, 2239, 5485, 590, 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, 741, 67, 3798, 12, 2890, 4672, 3536, 8788, 326, 2239, 5485, 590, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
realend.forward_to_line_end() restofline = end_line.get_slice(realend) restofline.strip()
restofline = None if not realend.ends_line(): realend.forward_to_line_end() restofline = end_line.get_slice(realend) restofline.strip()
def _insert_at_cursor(self, tv, itera, tex, leng) : #We don't paste the bullet if tex.strip() != self.bullet1 : #print "text ###%s### inserted length = %s" %(tex,leng) #disable the insert signal to avoid recursion self.buff.disconnect(self.insert_sigid) self.insert_sigid = False self.buff.disconnect(self.modified_sigid) self.modified_sigid = False #First, we will get the actual indentation value #The nbr just before the \n line_nbr = itera.get_line() start_line = itera.copy() start_line.set_line(line_nbr) end_line = itera.copy() tags = start_line.get_tags() subtask_nbr = None current_indent = self._get_indent_level(itera) tags = itera.get_tags() for ta in tags : if ta.get_data('is_subtask') : subtask_nbr = ta.get_data('child') #Maybe we are simply at the end of the tag if not subtask_nbr and itera.ends_tag(): for ta in itera.get_toggled_tags(False) : if ta.get_data('is_subtask') : subtask_nbr = ta.get_data('child')
d668e165fcbfcec76c6a3b491d823fa6065d38a1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7036/d668e165fcbfcec76c6a3b491d823fa6065d38a1/taskview.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6387, 67, 270, 67, 9216, 12, 2890, 16, 13521, 16, 1400, 69, 16, 16573, 16, 562, 75, 13, 294, 468, 3218, 2727, 1404, 19401, 326, 31650, 309, 16573, 18, 6406, 1435, 480, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6387, 67, 270, 67, 9216, 12, 2890, 16, 13521, 16, 1400, 69, 16, 16573, 16, 562, 75, 13, 294, 468, 3218, 2727, 1404, 19401, 326, 31650, 309, 16573, 18, 6406, 1435, 480, 365, 18, ...
sage: L.axes_range(xmin=-1) sage: L.get_axes_range()
sage: L.set_axes_range(xmin=-1) sage: L._get_axes_range_dict()
def get_axes_range(self): """ EXAMPLES: sage: L = line([(1,2), (3,-4), (2, 5), (1,2)]) sage: L.get_axes_range() {} sage: L.axes_range(xmin=-1) sage: L.get_axes_range() {'xmin': -1.0} """ try: return self.__axes_range except AttributeError: self.__axes_range = {} return self.__axes_range
2d4c93e15da538091e72942b79d12955b54b0c82 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/2d4c93e15da538091e72942b79d12955b54b0c82/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 10855, 67, 3676, 12, 2890, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 511, 273, 980, 3816, 12, 21, 16, 22, 3631, 261, 23, 16, 17, 24, 3631, 261, 22, 16, 1381, 3631, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10855, 67, 3676, 12, 2890, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 511, 273, 980, 3816, 12, 21, 16, 22, 3631, 261, 23, 16, 17, 24, 3631, 261, 22, 16, 1381, 3631, ...
<dd> <code><strong class="fraise">$self.href(name)$</strong></code> </dd> - $self.docstring_to_html(descr, func_doc, 8)$
$self.labelled_list_item( "<code><strong class=\'fraise\'>" + self.href(name) + "</strong></code>", self.docstring_to_html(descr, func_doc, 8))$
def arg_name_to_html(self, func_doc, arg_name): """ A helper function used to format an argument name, for use in the argument description list under a routine's details entry. This just wraps strong & code tags around the arg name; and if the arg name is associated with a type, then adds it parenthetically after the name. """ s = '<strong class="pname"><code>%s</code></strong>' % arg_name if arg_name in func_doc.arg_types: typ = func_doc.arg_types[arg_name] typ_html = self.docstring_to_html(typ, func_doc, 10) s += " (<code>%s</code>)" % typ_html return s
a0087d4a151fbc748003be35f0418624fa61376a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/a0087d4a151fbc748003be35f0418624fa61376a/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1501, 67, 529, 67, 869, 67, 2620, 12, 2890, 16, 1326, 67, 2434, 16, 1501, 67, 529, 4672, 3536, 432, 4222, 445, 1399, 358, 740, 392, 1237, 508, 16, 364, 999, 316, 326, 1237, 2477, 666...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1501, 67, 529, 67, 869, 67, 2620, 12, 2890, 16, 1326, 67, 2434, 16, 1501, 67, 529, 4672, 3536, 432, 4222, 445, 1399, 358, 740, 392, 1237, 508, 16, 364, 999, 316, 326, 1237, 2477, 666...
self.avswitch.setInput("SCART")
if SystemInfo["ScartSwitch"]: self.avswitch.setInput("SCART") else: self.avswitch.setInput("AUX")
def __init__(self, session): Screen.__init__(self, session) self.avswitch = AVSwitch()
be53117395c453d1a62f878d42beba927ddfbfe1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/be53117395c453d1a62f878d42beba927ddfbfe1/Standby.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1339, 4672, 10146, 16186, 2738, 972, 12, 2890, 16, 1339, 13, 365, 18, 842, 9610, 273, 15068, 10200, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1339, 4672, 10146, 16186, 2738, 972, 12, 2890, 16, 1339, 13, 365, 18, 842, 9610, 273, 15068, 10200, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100...
return ["-Wl,shared"]
return ["-Wl,-shared"]
def get_flags_linker_so(self): if sys.platform=='darwin': return ['-unsharedf95','-Wl,-bundle,-flat_namespace,-undefined,suppress'] return ["-Wl,shared"]
8cfbbe13d9a2c94529e2d2c06a8e154d9892c8c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/8cfbbe13d9a2c94529e2d2c06a8e154d9892c8c4/nag.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7133, 67, 1232, 264, 67, 2048, 12, 2890, 4672, 309, 2589, 18, 9898, 18920, 28076, 4278, 327, 10228, 17, 318, 14419, 2180, 8778, 17023, 17, 59, 80, 16, 17, 9991, 16, 17, 15401,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7133, 67, 1232, 264, 67, 2048, 12, 2890, 4672, 309, 2589, 18, 9898, 18920, 28076, 4278, 327, 10228, 17, 318, 14419, 2180, 8778, 17023, 17, 59, 80, 16, 17, 9991, 16, 17, 15401,...
self.disabled = False
self.disabled = 0
def __init__(self, widget, label, format = "%5.2f", f = None): self.widget = widget self.label = label self.format = format self.f = f widget.callbackDeposit.append(self) self.disabled = False
85741d6f825457214a1913669cf163505ff1d54e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/85741d6f825457214a1913669cf163505ff1d54e/OWGUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3604, 16, 1433, 16, 740, 273, 2213, 25, 18, 22, 74, 3113, 284, 273, 599, 4672, 365, 18, 6587, 273, 3604, 365, 18, 1925, 273, 1433, 365, 18, 2139, 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, 1001, 2738, 972, 12, 2890, 16, 3604, 16, 1433, 16, 740, 273, 2213, 25, 18, 22, 74, 3113, 284, 273, 599, 4672, 365, 18, 6587, 273, 3604, 365, 18, 1925, 273, 1433, 365, 18, 2139, 273, ...
select A.ID, A.Value2 from Dec as A, Dec as B where A.Model >= %s and A.Model < %s and B.Model >= %s and B.Model < %s
select A.ID, A.Value2 from Dec as A, Dec as B where A.Model >= %s and A.Model < %s and B.Model >= %s and B.Model < %s
def MetaDataFileCheckPcdDuplicate(self): if EccGlobalData.gConfig.MetaDataFileCheckPcdDuplicate == '1' or EccGlobalData.gConfig.MetaDataFileCheckAll == '1' or EccGlobalData.gConfig.CheckAll == '1': EdkLogger.quiet("Checking for duplicate PCDs defined in both DSC and FDF files ...") SqlCommand = """ select A.ID, A.Value2, B.ID, B.Value2 from Dsc as A, Fdf as B where A.Model >= %s and A.Model < %s and B.Model >= %s and B.Model < %s and A.Value2 = B.Value2 and A.Enabled > -1 and B.Enabled > -1 group by A.ID """% (MODEL_PCD, MODEL_META_DATA_HEADER, MODEL_PCD, MODEL_META_DATA_HEADER) RecordSet = EccGlobalData.gDb.TblDsc.Exec(SqlCommand) for Record in RecordSet: if not EccGlobalData.gException.IsException(ERROR_META_DATA_FILE_CHECK_PCD_DUPLICATE, Record[1]): EccGlobalData.gDb.TblReport.Insert(ERROR_META_DATA_FILE_CHECK_PCD_DUPLICATE, OtherMsg = "The PCD [%s] is defined in both FDF file and DSC file" % (Record[1]), BelongsToTable = 'Dsc', BelongsToItem = Record[0]) if not EccGlobalData.gException.IsException(ERROR_META_DATA_FILE_CHECK_PCD_DUPLICATE, Record[3]): EccGlobalData.gDb.TblReport.Insert(ERROR_META_DATA_FILE_CHECK_PCD_DUPLICATE, OtherMsg = "The PCD [%s] is defined in both FDF file and DSC file" % (Record[3]), BelongsToTable = 'Fdf', BelongsToItem = Record[2])
a6e36e70878424fa438700e0b8e96c273ec9e985 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/914/a6e36e70878424fa438700e0b8e96c273ec9e985/Check.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27512, 812, 1564, 52, 4315, 11826, 12, 2890, 4672, 309, 512, 952, 5160, 751, 18, 75, 809, 18, 6998, 812, 1564, 52, 4315, 11826, 422, 296, 21, 11, 578, 512, 952, 5160, 751, 18, 75, 80...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27512, 812, 1564, 52, 4315, 11826, 12, 2890, 4672, 309, 512, 952, 5160, 751, 18, 75, 809, 18, 6998, 812, 1564, 52, 4315, 11826, 422, 296, 21, 11, 578, 512, 952, 5160, 751, 18, 75, 80...
def GetMenu(self): """Return the menu of this object @return: ed_menu.ED_Menu() """ menu = ed_menu.ED_Menu() menu.Append(ed_glob.ID_SHOW_SHELF, _("Show Shelf"), _("Show the Shelf")) menu.AppendSeparator() menu_items = list() for observer in self.observers: try: menu_i = observer.GetMenuEntry(menu) if menu_i: menu_items.append((menu_i.GetLabel(), menu_i)) except Exception, msg: self._log("[shelf][err] %s" % str(msg)) menu_items.sort() genmenu = ed_menu.ED_Menu() for item in menu_items: menu.AppendItem(item[1]) return menu
def GetItemStack(self): """Returns a list of ordered named items that are open in the shelf @return: list of strings
2875f4e5101473250cc46cf390c2d34f4fb7fccf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3530/2875f4e5101473250cc46cf390c2d34f4fb7fccf/iface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 1180, 2624, 12, 2890, 4672, 3536, 1356, 279, 666, 434, 5901, 4141, 1516, 716, 854, 1696, 316, 326, 699, 19079, 632, 2463, 30, 666, 434, 2064, 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, 968, 1180, 2624, 12, 2890, 4672, 3536, 1356, 279, 666, 434, 5901, 4141, 1516, 716, 854, 1696, 316, 326, 699, 19079, 632, 2463, 30, 666, 434, 2064, 2, -100, -100, -100, -100, -100, -100, ...
def dumps(params, methodname=None, methodresponse=None, encoding=None):
def dumps(params, methodname=None, methodresponse=None, encoding=None, allow_none=0):
def dumps(params, methodname=None, methodresponse=None, encoding=None): """data [,options] -> marshalled data Convert an argument tuple or a Fault instance to an XML-RPC request (or response, if the methodresponse option is used). In addition to the data object, the following options can be given as keyword arguments: methodname: the method name for a methodCall packet methodresponse: true to create a methodResponse packet. If this option is used with a tuple, the tuple must be a singleton (i.e. it can contain only one element). encoding: the packet encoding (default is UTF-8) All 8-bit strings in the data structure are assumed to use the packet encoding. Unicode strings are automatically converted, where necessary. """ assert isinstance(params, TupleType) or isinstance(params, Fault),\ "argument must be tuple or Fault instance" if isinstance(params, Fault): methodresponse = 1 elif methodresponse and isinstance(params, TupleType): assert len(params) == 1, "response tuple must be a singleton" if not encoding: encoding = "utf-8" if FastMarshaller: m = FastMarshaller(encoding) else: m = Marshaller(encoding) data = m.dumps(params) if encoding != "utf-8": xmlheader = "<?xml version='1.0' encoding='%s'?>\n" % str(encoding) else: xmlheader = "<?xml version='1.0'?>\n" # utf-8 is default # standard XML-RPC wrappings if methodname: # a method call if not isinstance(methodname, StringType): methodname = methodname.encode(encoding) data = ( xmlheader, "<methodCall>\n" "<methodName>", methodname, "</methodName>\n", data, "</methodCall>\n" ) elif methodresponse: # a method response, or a fault structure data = ( xmlheader, "<methodResponse>\n", data, "</methodResponse>\n" ) else: return data # return as is return string.join(data, "")
e4ce59fe534def1761c2db2c5bd315f721eedab5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e4ce59fe534def1761c2db2c5bd315f721eedab5/xmlrpclib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6711, 12, 2010, 16, 707, 529, 33, 7036, 16, 707, 2740, 33, 7036, 16, 2688, 33, 7036, 16, 1699, 67, 6102, 33, 20, 4672, 3536, 892, 306, 16, 2116, 65, 317, 10893, 1259, 501, 225, 4037,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6711, 12, 2010, 16, 707, 529, 33, 7036, 16, 707, 2740, 33, 7036, 16, 2688, 33, 7036, 16, 1699, 67, 6102, 33, 20, 4672, 3536, 892, 306, 16, 2116, 65, 317, 10893, 1259, 501, 225, 4037,...
def init_expected(indent, arg, argtype):
def init_expected(indent, arg, argtype, immediate=False):
def init_expected(indent, arg, argtype): out = '' varname = 'exp' out += init_variable(indent, arg, argtype, varname) return out
8976924ff6eb127faa58d059c4cb78dd8ae9e8a5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1804/8976924ff6eb127faa58d059c4cb78dd8ae9e8a5/shtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 3825, 12, 9355, 16, 1501, 16, 1501, 723, 16, 14483, 33, 8381, 4672, 596, 273, 875, 15434, 273, 296, 2749, 11, 596, 1011, 1208, 67, 6105, 12, 9355, 16, 1501, 16, 1501, 723, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 3825, 12, 9355, 16, 1501, 16, 1501, 723, 16, 14483, 33, 8381, 4672, 596, 273, 875, 15434, 273, 296, 2749, 11, 596, 1011, 1208, 67, 6105, 12, 9355, 16, 1501, 16, 1501, 723, ...
def __init__(self, treeView, session, **kw): if not treeView: self.client = session.Client(self, showObjectTree = True) treeView = self.client.objectTreeView super(ObjectView, self).__init__(treeView = treeView, session = session, **kw)
def makeGUI(self): self.client = self.session.Client(self, showObjectTree = True) self.treeView = self.client.objectTreeView
def __init__(self, treeView, session, **kw): if not treeView: self.client = session.Client(self, showObjectTree = True) treeView = self.client.objectTreeView super(ObjectView, self).__init__(treeView = treeView, session = session, **kw)
b52b21170296d5c58869e5d937601914028e5c0d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9377/b52b21170296d5c58869e5d937601914028e5c0d/gnomoire.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2151, 1767, 16, 1339, 16, 2826, 9987, 4672, 309, 486, 2151, 1767, 30, 365, 18, 2625, 273, 1339, 18, 1227, 12, 2890, 16, 2405, 921, 2471, 273, 1053, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2151, 1767, 16, 1339, 16, 2826, 9987, 4672, 309, 486, 2151, 1767, 30, 365, 18, 2625, 273, 1339, 18, 1227, 12, 2890, 16, 2405, 921, 2471, 273, 1053, 13, ...
return {'error': 'Could not get list of sets from Flickr.'} return sets
logging.error("Error getting list of sets from Flickr") return {'message': 'Could not get list of sets from Flickr.'}
def get_flickr_setlist(flickr, nsid): key = repr(flickr)+":nsid="+nsid+":type=sets" sets = memcache.get(key) if sets: logging.info("memcache hit for setlist") return sets logging.info("Getting set list from Flickr") try: sets = flickr.photosets_getList( format='json', nojsoncallback="1", nsid=nsid, ) sets = simplejson.loads(sets) if not memcache.add(key, sets, 3600): logging.warning("memcache set for setlist failed") except: return {'error': 'Could not get list of sets from Flickr.'} return sets
50fdbdb4f8af00e655d355c1d7a839f27421c76b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11110/50fdbdb4f8af00e655d355c1d7a839f27421c76b/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2242, 16254, 67, 542, 1098, 12, 2242, 16254, 16, 3153, 350, 4672, 498, 273, 8480, 12, 2242, 16254, 27921, 6877, 2387, 350, 1546, 15, 2387, 350, 15, 6877, 723, 33, 4424, 6, 167...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2242, 16254, 67, 542, 1098, 12, 2242, 16254, 16, 3153, 350, 4672, 498, 273, 8480, 12, 2242, 16254, 27921, 6877, 2387, 350, 1546, 15, 2387, 350, 15, 6877, 723, 33, 4424, 6, 167...
self._recaclulate_hidden_items() def _recaclulate_hidden_items(self):
self._recalculate_hidden_items() def _recalculate_hidden_items(self):
def set_search_text(self, search_text): self._search_text = search_text self._recaclulate_hidden_items()
50f7cf243721f70bea2282d173a65bd053cf9525 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/50f7cf243721f70bea2282d173a65bd053cf9525/itemlist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 3072, 67, 955, 12, 2890, 16, 1623, 67, 955, 4672, 365, 6315, 3072, 67, 955, 273, 1623, 67, 955, 365, 6315, 3927, 10150, 6243, 67, 6345, 67, 3319, 1435, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 3072, 67, 955, 12, 2890, 16, 1623, 67, 955, 4672, 365, 6315, 3072, 67, 955, 273, 1623, 67, 955, 365, 6315, 3927, 10150, 6243, 67, 6345, 67, 3319, 1435, 2, -100, -100, -100, ...
"payloadformat": [1124, RPM_STRING, None, 0],
"payloadformat": [1124, RPM_STRING, None, 0],
def isErasePreReq(x): return (x & _ERASE_ONLY_MASK) != 0
36064e9e7b8187b1d2723e47eb83915d362cf0b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/36064e9e7b8187b1d2723e47eb83915d362cf0b4/oldpyrpm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 41, 5648, 1386, 6113, 12, 92, 4672, 327, 261, 92, 473, 389, 654, 4429, 67, 10857, 67, 11704, 13, 480, 374, 282, 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, 353, 41, 5648, 1386, 6113, 12, 92, 4672, 327, 261, 92, 473, 389, 654, 4429, 67, 10857, 67, 11704, 13, 480, 374, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
last_status = status.get() last_message = '' if last_status: last_message = last_status.message
current_status = status.get() if not last_message and current_status: last_message = current_status.message
def get(self): """Sets the information to be displayed on the main page.""" (validated, is_admin) = self.ValidateUser() if not validated: return
09b02b98cc00384f33ef96999005f46c3cb5be41 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/476/09b02b98cc00384f33ef96999005f46c3cb5be41/status.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 4672, 3536, 2785, 326, 1779, 358, 506, 10453, 603, 326, 2774, 1363, 12123, 261, 877, 690, 16, 353, 67, 3666, 13, 273, 365, 18, 4270, 1299, 1435, 309, 486, 10266, 30, 327...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 4672, 3536, 2785, 326, 1779, 358, 506, 10453, 603, 326, 2774, 1363, 12123, 261, 877, 690, 16, 353, 67, 3666, 13, 273, 365, 18, 4270, 1299, 1435, 309, 486, 10266, 30, 327...
optlist, args = getopt.getopt(sys.argv[1:], 'np:u:g:d:')
optlist, args = getopt.getopt(sys.argv[1:], 'np:u:g:d:c:')
def createfile(pretend, fname, contents): if pretend: print "cat >%(fname)s <__EOF__\n%(contents)s__EOF__" % vars() else: f = open(fname, "w") f.write(contents) f.close()
d44c776a9d138bfe918edc514780e87e71ae8386 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1882/d44c776a9d138bfe918edc514780e87e71ae8386/zope-install.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 768, 12, 15089, 409, 16, 5299, 16, 2939, 4672, 309, 675, 17445, 30, 1172, 315, 2574, 405, 17105, 12749, 13, 87, 411, 972, 12706, 972, 64, 82, 17105, 3980, 13, 87, 972, 12706, 1443...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 768, 12, 15089, 409, 16, 5299, 16, 2939, 4672, 309, 675, 17445, 30, 1172, 315, 2574, 405, 17105, 12749, 13, 87, 411, 972, 12706, 972, 64, 82, 17105, 3980, 13, 87, 972, 12706, 1443...
def setVerbosity_(self, verbosity): self._verbosity = verbosity def verbosity(self): return self._verbosity
def initWithVerbosity_(self, verbosity): self = self.init() self.setVerbosity_(verbosity) return self
3dbe5364d1bb1b6f13a97c06192827e669a7ff2f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/97/3dbe5364d1bb1b6f13a97c06192827e669a7ff2f/Debugging.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 1190, 30594, 67, 12, 2890, 16, 11561, 4672, 365, 273, 365, 18, 2738, 1435, 365, 18, 542, 30594, 67, 12, 16629, 8807, 13, 327, 365, 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, 1208, 1190, 30594, 67, 12, 2890, 16, 11561, 4672, 365, 273, 365, 18, 2738, 1435, 365, 18, 542, 30594, 67, 12, 16629, 8807, 13, 327, 365, 2, -100, -100, -100, -100, -100, -100, -100, -1...
self.check_package (package, package_dir)
init_py = self.check_package (package, package_dir)
def find_modules (self): # Map package names to tuples of useful info about the package: # (package_dir, checked) # package_dir - the directory where we'll find source files for # this package # checked - true if we have checked that the package directory # is valid (exists, contains __init__.py, ... ?) packages = {}
e034cac4f15b1a44bcfe01d829c164f4bbe45cc5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e034cac4f15b1a44bcfe01d829c164f4bbe45cc5/build_py.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 6400, 261, 2890, 4672, 468, 1635, 2181, 1257, 358, 10384, 434, 5301, 1123, 2973, 326, 2181, 30, 468, 565, 261, 5610, 67, 1214, 16, 5950, 13, 468, 2181, 67, 1214, 300, 326, 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, 1104, 67, 6400, 261, 2890, 4672, 468, 1635, 2181, 1257, 358, 10384, 434, 5301, 1123, 2973, 326, 2181, 30, 468, 565, 261, 5610, 67, 1214, 16, 5950, 13, 468, 2181, 67, 1214, 300, 326, 18...
returnValue = returnValue[0]
returnValue = returnValue[1]
def __call__(self, selected): #needed by configlist self.checkValues()
5f39b42abcb870214a68502ac51d1b9c3ec17597 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/5f39b42abcb870214a68502ac51d1b9c3ec17597/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 3170, 4672, 1082, 202, 7, 17471, 635, 642, 1098, 365, 18, 1893, 1972, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 3170, 4672, 1082, 202, 7, 17471, 635, 642, 1098, 365, 18, 1893, 1972, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
return 48
return 128
def thumb_width(self): width = self.width if not width: return 48 else: return min(width, 48)
2380b796d6d89ce550878b88ef8bc5baf59c1b57 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12262/2380b796d6d89ce550878b88ef8bc5baf59c1b57/widget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11156, 67, 2819, 12, 2890, 4672, 1835, 273, 365, 18, 2819, 309, 486, 1835, 30, 327, 8038, 469, 30, 327, 1131, 12, 2819, 16, 9934, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11156, 67, 2819, 12, 2890, 4672, 1835, 273, 365, 18, 2819, 309, 486, 1835, 30, 327, 8038, 469, 30, 327, 1131, 12, 2819, 16, 9934, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100,...
self.sts = -1
def __init__(self, cmd, capturestderr=0, bufsize=-1): """The parameter 'cmd' is the shell command to execute in a sub-process. The 'capturestderr' flag, if true, specifies that the object should capture standard error output of the child process. The default is false. If the 'bufsize' parameter is specified, it specifies the size of the I/O buffers to/from the child process.""" if type(cmd) == type(''): cmd = ['/bin/sh', '-c', cmd] p2cread, p2cwrite = os.pipe() c2pread, c2pwrite = os.pipe() if capturestderr: errout, errin = os.pipe() self.pid = os.fork() if self.pid == 0: # Child os.close(0) os.close(1) if os.dup(p2cread) <> 0: sys.stderr.write('popen2: bad read dup\n') if os.dup(c2pwrite) <> 1: sys.stderr.write('popen2: bad write dup\n') if capturestderr: os.close(2) if os.dup(errin) <> 2: pass for i in range(3, MAXFD): try: os.close(i) except: pass try: os.execvp(cmd[0], cmd) finally: os._exit(1) # Shouldn't come here, I guess os._exit(1) os.close(p2cread) self.tochild = os.fdopen(p2cwrite, 'w', bufsize) os.close(c2pwrite) self.fromchild = os.fdopen(c2pread, 'r', bufsize) if capturestderr: os.close(errin) self.childerr = os.fdopen(errout, 'r', bufsize) else: self.childerr = None self.sts = -1 # Child not completed yet _active.append(self)
153a739f731cf942200e8506e1610b6782ce3e60 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/153a739f731cf942200e8506e1610b6782ce3e60/popen2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1797, 16, 7477, 11241, 33, 20, 16, 1681, 1467, 29711, 21, 4672, 3536, 1986, 1569, 296, 4172, 11, 353, 326, 5972, 1296, 358, 1836, 316, 279, 720, 17, 2567...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1797, 16, 7477, 11241, 33, 20, 16, 1681, 1467, 29711, 21, 4672, 3536, 1986, 1569, 296, 4172, 11, 353, 326, 5972, 1296, 358, 1836, 316, 279, 720, 17, 2567...
if int(self.cleaned_data.get('right')) - int(self.cleaned_data.get('left')) < 96:
if not self.cleaned_data.get('right') or not self.cleaned_data.get('left') or int(self.cleaned_data.get('right')) - int(self.cleaned_data.get('left')) < 96:
def clean(self): if int(self.cleaned_data.get('right')) - int(self.cleaned_data.get('left')) < 96: raise forms.ValidationError(_("You must select a portion of the image with a minimum of 96x96 pixels.")) else: return self.cleaned_data
4f65761778b0ce2655889fb80088250a42e06f2f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12976/4f65761778b0ce2655889fb80088250a42e06f2f/forms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 12, 2890, 4672, 309, 486, 365, 18, 6200, 329, 67, 892, 18, 588, 2668, 4083, 6134, 578, 486, 365, 18, 6200, 329, 67, 892, 18, 588, 2668, 4482, 6134, 578, 509, 12, 2890, 18, 6200...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 12, 2890, 4672, 309, 486, 365, 18, 6200, 329, 67, 892, 18, 588, 2668, 4083, 6134, 578, 486, 365, 18, 6200, 329, 67, 892, 18, 588, 2668, 4482, 6134, 578, 509, 12, 2890, 18, 6200...
verify(u'\u20ac'.encode('utf-8') == \ ''.join((chr(0xe2), chr(0x82), chr(0xac))) ) verify(u'\ud800\udc02'.encode('utf-8') == \ ''.join((chr(0xf0), chr(0x90), chr(0x80), chr(0x82))) ) verify(u'\ud84d\udc56'.encode('utf-8') == \ ''.join((chr(0xf0), chr(0xa3), chr(0x91), chr(0x96))) )
verify(u'\u20ac'.encode('utf-8') == '\xe2\x82\xac') verify(u'\ud800\udc02'.encode('utf-8') == '\xf0\x90\x80\x82') verify(u'\ud84d\udc56'.encode('utf-8') == '\xf0\xa3\x91\x96') verify(u'\ud800'.encode('utf-8') == '\xed\xa0\x80') verify(u'\udc00'.encode('utf-8') == '\xed\xb0\x80') verify((u'\ud800\udc02'*1000).encode('utf-8') == '\xf0\x90\x80\x82'*1000)
def __str__(self): return self.x
d0f8b80511e67229514f5b54cab614cae1402b4d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/d0f8b80511e67229514f5b54cab614cae1402b4d/test_unicode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 365, 18, 92, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 365, 18, 92, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
self.treeview.insert_column_with_attributes(2, _("Rating"), renderer, text=2)
column = gtk.TreeViewColumn(_("Rating"), renderer, text=2) column.set_resizable(False) self.treeview.append_column(column)
def os_build_dialog(self, action, totem_object): builder = self.load_interface("opensubtitles.ui", True, self.totem.get_main_window(), self)
bfc0862e29accad3115a3e05e25b0a4a35ab27c2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11070/bfc0862e29accad3115a3e05e25b0a4a35ab27c2/opensubtitles.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1140, 67, 3510, 67, 12730, 12, 2890, 16, 1301, 16, 9997, 351, 67, 1612, 4672, 2089, 273, 365, 18, 945, 67, 5831, 2932, 20346, 373, 17643, 18, 4881, 3113, 1053, 16, 365, 18, 3307, 351, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1140, 67, 3510, 67, 12730, 12, 2890, 16, 1301, 16, 9997, 351, 67, 1612, 4672, 2089, 273, 365, 18, 945, 67, 5831, 2932, 20346, 373, 17643, 18, 4881, 3113, 1053, 16, 365, 18, 3307, 351, ...
self.tempFile.write(Output.get(self.__comp)) self.tempFile.flush() self.__gff=""
outData=Output.get(self.__comp) if len(outData)>0: self.tempFile.write(outData) self.tempFile.flush()
def condRemoveTmp(tmpName): try: os.remove(tmpName) except OSError: pass
0b509e9d23f79ee53b58645e619167d477523278 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11674/0b509e9d23f79ee53b58645e619167d477523278/Interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6941, 3288, 9161, 12, 5645, 461, 4672, 775, 30, 1140, 18, 4479, 12, 5645, 461, 13, 1335, 10002, 30, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6941, 3288, 9161, 12, 5645, 461, 4672, 775, 30, 1140, 18, 4479, 12, 5645, 461, 13, 1335, 10002, 30, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
* r) * n.cos((90.0 - dec) * r) \
* r) * n.cos((90.0 - dec_p) * r) \
def psf_select(alpha_j, delta_j): """This function will select the nearest psf from the psflist""" distance = 9999.0 psffile = 'test.fits' psflist = c.psflist r = 3.14159265 / 180.0 for element in psflist: p=pyfits.open(element) header = p[0].header if (header.has_key('RA_TARG')): ra = header['RA_TARG'] if (header.has_key('DEC_TARG')): dec= header['DEC_TARG'] p.close()
af072f86d1e2c1d6ebdef47be572a6a33b931606 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8867/af072f86d1e2c1d6ebdef47be572a6a33b931606/pipeline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28687, 67, 4025, 12, 5429, 67, 78, 16, 3622, 67, 78, 4672, 3536, 2503, 445, 903, 2027, 326, 11431, 28687, 628, 326, 28687, 1098, 8395, 3888, 273, 30082, 18, 20, 28687, 768, 273, 296, 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, 28687, 67, 4025, 12, 5429, 67, 78, 16, 3622, 67, 78, 4672, 3536, 2503, 445, 903, 2027, 326, 11431, 28687, 628, 326, 28687, 1098, 8395, 3888, 273, 30082, 18, 20, 28687, 768, 273, 296, 3...
start_period_ids = []
start_period_ids = [0]
def parse(self, cursor, user, content, objects, datas, context): if context is None: context = {} context = context.copy() account_obj = self.pool.get('account.account') period_obj = self.pool.get('account.period') company_obj = self.pool.get('company.company')
ee36aa0c050e503d571eba48377ed4ab12e84ec3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9290/ee36aa0c050e503d571eba48377ed4ab12e84ec3/account.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 3347, 16, 729, 16, 913, 16, 2184, 16, 5386, 16, 819, 4672, 309, 819, 353, 599, 30, 819, 273, 2618, 819, 273, 819, 18, 3530, 1435, 2236, 67, 2603, 273, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 3347, 16, 729, 16, 913, 16, 2184, 16, 5386, 16, 819, 4672, 309, 819, 353, 599, 30, 819, 273, 2618, 819, 273, 819, 18, 3530, 1435, 2236, 67, 2603, 273, 365, 18, ...
return namespace['config']
return namespace
def readconfig(): """Read a configuration file, if it doesn't exist create it.""" configname = sys.argv[0] + '.config' if not os.path.exists(configname): confstr = """config = [ ("^.*\.cp$", ":unweave-src"), ("^.*\.h$", ":unweave-include"),
24ad536efd2df16be0b70e331446b693b987e1c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/24ad536efd2df16be0b70e331446b693b987e1c8/unweave.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 1425, 13332, 3536, 1994, 279, 1664, 585, 16, 309, 518, 3302, 1404, 1005, 752, 518, 12123, 642, 529, 273, 2589, 18, 19485, 63, 20, 65, 397, 2418, 1425, 11, 309, 486, 1140, 18, 803,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 1425, 13332, 3536, 1994, 279, 1664, 585, 16, 309, 518, 3302, 1404, 1005, 752, 518, 12123, 642, 529, 273, 2589, 18, 19485, 63, 20, 65, 397, 2418, 1425, 11, 309, 486, 1140, 18, 803,...
self.add_condor_cmd('environment',"KMP_LIBRARY=serial;MKL_SERIAL=yes") self.set_sub_file(name+'.sub') self.set_stdout_file(self.outputPath+'/logs/'+name+'-$(macroid).out') self.set_stderr_file(self.outputPath+'/logs/'+name+'-$(macroid).err')
try: self.add_condor_cmd('environment',"KMP_LIBRARY=serial;MKL_SERIAL=yes") except: pass self.set_sub_file(self.name+'.sub') self.set_stdout_file(self.outputPath+'/logs/'+self.name+'-$(macroid).out') self.set_stderr_file(self.outputPath+'/logs/'+self.name+'-$(macroid).err')
def setupJob(self, name, dir= '', tag_base=None, cp=None): # Give this job a name. Then make directories for the log files and such # This name is important since these directories will be included in # the web tree. if dir and not os.path.isdir(dir): os.mkdir(dir) self.name = name if dir: self.relPath = dir + '/' + name else: self.relPath = name #path = name + '/' + dir self.outputPath = os.getcwd() + '/' + self.relPath + '/' if not os.path.isdir(self.relPath): os.mkdir(self.relPath) if not os.path.isdir(self.relPath+'/logs'): os.mkdir(self.relPath+'/logs') if not os.path.isdir(self.relPath+'/Images'): os.mkdir(self.relPath+'/Images') if not os.path.isdir(self.relPath+'/DataProducts'): os.mkdir(self.relPath+'/DataProducts') # Set up the usual stuff and name the log files appropriately self.tag_base = tag_base self.add_condor_cmd('environment',"KMP_LIBRARY=serial;MKL_SERIAL=yes") self.set_sub_file(name+'.sub') self.set_stdout_file(self.outputPath+'/logs/'+name+'-$(macroid).out') self.set_stderr_file(self.outputPath+'/logs/'+name+'-$(macroid).err') if cp: if cp.has_section("condor-memory-requirement") and cp.has_option("condor-memory-requirement",name): requirement = cp.getint("condor-memory-requirement",name) self.add_condor_cmd("Requirements", "(Memory > " + str(requirement) + ")")
e7dc96264f8fa6761fca7488785053e6db4d6c14 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/e7dc96264f8fa6761fca7488785053e6db4d6c14/stfu_pipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 2278, 12, 2890, 16, 508, 16, 1577, 33, 10226, 1047, 67, 1969, 33, 7036, 16, 3283, 33, 7036, 4672, 468, 22374, 333, 1719, 279, 508, 18, 225, 9697, 1221, 6402, 364, 326, 613, 1390,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 2278, 12, 2890, 16, 508, 16, 1577, 33, 10226, 1047, 67, 1969, 33, 7036, 16, 3283, 33, 7036, 4672, 468, 22374, 333, 1719, 279, 508, 18, 225, 9697, 1221, 6402, 364, 326, 613, 1390,...
cvs:cvs.mozilla.org/cvsroot:mozilla/browser/app/nsBrowserApp.cpp:1.36"""
cvs:cvs.mozilla.org/cvsroot:mozilla/browser/app/nsBrowserApp.cpp:1.36 2) the unmodified root information if it exists"""
def GetVCSFilename(file, srcdir): """Given a full path to a file, and the top source directory, look for version control information about this file, and return a specially formatted filename that contains the VCS type, VCS location, relative filename, and revision number, formatted like: vcs:vcs location:filename:revision For example: cvs:cvs.mozilla.org/cvsroot:mozilla/browser/app/nsBrowserApp.cpp:1.36""" (path, filename) = os.path.split(file) if path == '' or filename == '': return file fileInfo = None if file in vcsFileInfoCache: # Already cached this info, use it. fileInfo = vcsFileInfoCache[file] else: if os.path.isdir(os.path.join(path, "CVS")): fileInfo = CVSFileInfo(file, srcdir) elif os.path.isdir(os.path.join(path, ".svn")) or \ os.path.isdir(os.path.join(path, "_svn")): fileInfo = SVNFileInfo(file); vcsFileInfoCache[file] = fileInfo if fileInfo: file = fileInfo.filename # we want forward slashes on win32 paths return file.replace("\\", "/")
758a6b78450ffab940532ff75cb7103acc041684 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13067/758a6b78450ffab940532ff75cb7103acc041684/symbolstore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 58, 4596, 5359, 12, 768, 16, 1705, 1214, 4672, 3536, 6083, 279, 1983, 589, 358, 279, 585, 16, 471, 326, 1760, 1084, 1867, 16, 2324, 364, 1177, 3325, 1779, 2973, 333, 585, 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, 968, 58, 4596, 5359, 12, 768, 16, 1705, 1214, 4672, 3536, 6083, 279, 1983, 589, 358, 279, 585, 16, 471, 326, 1760, 1084, 1867, 16, 2324, 364, 1177, 3325, 1779, 2973, 333, 585, 16, 471,...
print "NOT YET IMPLEMENTED: DELETE FOLDER %s" % foldername
self.ui.warn("NOT YET IMPLEMENTED: DELETE FOLDER %s" % foldername)
def deletefolder(self, foldername): print "NOT YET IMPLEMENTED: DELETE FOLDER %s" % foldername
09ed5e2fcc7129f20f2d180fe4dafa67b6f3505a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5335/09ed5e2fcc7129f20f2d180fe4dafa67b6f3505a/Maildir.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 5609, 12, 2890, 16, 3009, 529, 4672, 1172, 315, 4400, 1624, 1584, 15694, 28485, 6404, 30, 8568, 478, 11753, 738, 87, 6, 738, 3009, 529, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 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, 1430, 5609, 12, 2890, 16, 3009, 529, 4672, 1172, 315, 4400, 1624, 1584, 15694, 28485, 6404, 30, 8568, 478, 11753, 738, 87, 6, 738, 3009, 529, 2, -100, -100, -100, -100, -100, -100, -100,...
self.__automorphisms = Auts
def _automorphisms(self): """ Compute the automorphisms of self. These are always given by raising to a power, so the return value is a list of integers.
59b9d951da50fd609601a8510ce35029ae856971 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/59b9d951da50fd609601a8510ce35029ae856971/dirichlet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5854, 362, 7657, 23749, 12, 2890, 4672, 3536, 8155, 326, 18472, 7657, 23749, 434, 365, 18, 8646, 854, 3712, 864, 635, 28014, 358, 279, 7212, 16, 1427, 326, 327, 460, 353, 279, 666, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5854, 362, 7657, 23749, 12, 2890, 4672, 3536, 8155, 326, 18472, 7657, 23749, 434, 365, 18, 8646, 854, 3712, 864, 635, 28014, 358, 279, 7212, 16, 1427, 326, 327, 460, 353, 279, 666, ...
return '\n'.join( (GridSizerDTC.writeImports(self),
return '\n'.join( (GridSizerDTC.writeImports(self),
def writeImports(self): return '\n'.join( (GridSizerDTC.writeImports(self), 'from wxPython.lib.rcsizer import RowColSizer') )
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 13347, 12, 2890, 4672, 327, 2337, 82, 10332, 5701, 12, 261, 6313, 20512, 9081, 39, 18, 2626, 13347, 12, 2890, 3631, 296, 2080, 7075, 15774, 18, 2941, 18, 1310, 87, 1824, 1930, 6556...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 13347, 12, 2890, 4672, 327, 2337, 82, 10332, 5701, 12, 261, 6313, 20512, 9081, 39, 18, 2626, 13347, 12, 2890, 3631, 296, 2080, 7075, 15774, 18, 2941, 18, 1310, 87, 1824, 1930, 6556...
WHERE registration.lasignup = True
WHERE registration.signup LIKE '%linuxaustralia%'
def linux_australia_signup(self): """ People who ticked "I want to sign up for (free) Linux Australia membership!" [Mailing Lists] """
94a59f80c53c67011918b16d11212461493ecd25 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12856/94a59f80c53c67011918b16d11212461493ecd25/admin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19725, 67, 69, 27008, 287, 1155, 67, 2977, 416, 12, 2890, 4672, 3536, 19622, 11763, 10354, 4024, 329, 315, 45, 2545, 358, 1573, 731, 364, 261, 9156, 13, 13318, 432, 27008, 287, 1155, 124...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19725, 67, 69, 27008, 287, 1155, 67, 2977, 416, 12, 2890, 4672, 3536, 19622, 11763, 10354, 4024, 329, 315, 45, 2545, 358, 1573, 731, 364, 261, 9156, 13, 13318, 432, 27008, 287, 1155, 124...
opts, args = getopt.getopt(sys.argv[1:], "a:d:e:hr:s:t:v:c:i:D:", ["affinity=", "directory=", "end=", "help", "retry=", "start=", "title=", "verbose=", "command=", "dependencies="])
opts, args = getopt.getopt(sys.argv[1:], "a:d:e:hr:s:t:v:c:i:D:p:", ["affinity=", "directory=", "end=", "help", "retry=", "start=", "title=", "verbose=", "command=", "dependencies=", "priority"])
def usage(): print ("Usage: control.py [OPTIONS] SERVER_URL ACTION [COMMAND]") print ("Control the Coalition server located at SERVER_URL.\n") print("Actions:") print(" add: add a job, use option -c for command") print(" list: list the jobs on the server") print(" remove: remove job designated by id, option -id is necessary") print ("Options:") print (" -h, --help\t\tShow this help") print (" -c, --command=COMMAND\t\tIf action is add, add command to server") print (" -d, --directory=DIR\tWorking directory (default: "+dir+")") print (" -t, --title=TITLE\tSet the job title (default: "+title+")") print (" -p, --priority=PRIORITY\tPriority of the job (default: "+str(priority)+")") print (" -r, --retry=RETRY\tNumber of retry this jobs can do (default: "+str(retry)+")") print (" -a, --affinity=AFFINITY\tAffinity words to workers, separated by a comma (default: \"\"") print(" -i, --jobid=JOBID\tID of the Job") print(" -D, --dependencies=DEPS\tIDs of the dependent jobs (exemple : \"21 22 23\"") print (" -v, --verbose\t\tIncrease verbosity") print ("\nExample : control -t \"Job\" -a \"Linux\" -c \"echo Hello world!\" http://localhost:8080 add")
03a41aa49a72eaa6d626d48e7d2008524af89efd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1233/03a41aa49a72eaa6d626d48e7d2008524af89efd/control.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 7566, 5357, 30, 3325, 18, 2074, 306, 12422, 65, 15061, 67, 1785, 11385, 306, 19104, 4279, 13, 1172, 7566, 3367, 326, 7695, 287, 608, 1438, 13801, 622, 15061, 67, 1785, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 7566, 5357, 30, 3325, 18, 2074, 306, 12422, 65, 15061, 67, 1785, 11385, 306, 19104, 4279, 13, 1172, 7566, 3367, 326, 7695, 287, 608, 1438, 13801, 622, 15061, 67, 1785, ...
self.max_duration = LIGOTimeGPS(max([event.duration for event in self]))
def make_index(self): """ Sort events by peak time so that a bisection search can retrieve them. Note that the bisection search relies on the __cmp__() method of the SnglBurst row class having previously been set to compare the event's peak time to a LIGOTimeGPS. """ # sort by peak time self.sort(lambda a, b: cmp(a.peak_time, b.peak_time) or cmp(a.peak_time_ns, b.peak_time_ns)) self.max_duration = LIGOTimeGPS(max([event.duration for event in self]))
fc3c2a0737150edebb95018fd9bc56554946f52f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3592/fc3c2a0737150edebb95018fd9bc56554946f52f/ligolw_burca.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 1615, 12, 2890, 4672, 3536, 5928, 2641, 635, 11148, 813, 1427, 716, 279, 324, 784, 349, 1623, 848, 4614, 2182, 18, 225, 3609, 716, 326, 324, 784, 349, 1623, 14719, 281, 603, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 1615, 12, 2890, 4672, 3536, 5928, 2641, 635, 11148, 813, 1427, 716, 279, 324, 784, 349, 1623, 848, 4614, 2182, 18, 225, 3609, 716, 326, 324, 784, 349, 1623, 14719, 281, 603, ...
miniFrame.SetAutoLayout(True)
def __init__(self, pos, size): wx.Frame.__init__(self, None, -1, '', pos, size) global frame frame = g.frame = self bar = self.CreateStatusBar(2) bar.SetStatusWidths([-1, 40]) self.SetIcon(images.getIconIcon())
2702a0c1bf81b553f493320776918fe5d9259e7e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12725/2702a0c1bf81b553f493320776918fe5d9259e7e/xrced.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 949, 16, 963, 4672, 7075, 18, 3219, 16186, 2738, 972, 12, 2890, 16, 599, 16, 300, 21, 16, 10226, 949, 16, 963, 13, 2552, 2623, 2623, 273, 314, 18, 3789...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 949, 16, 963, 4672, 7075, 18, 3219, 16186, 2738, 972, 12, 2890, 16, 599, 16, 300, 21, 16, 10226, 949, 16, 963, 13, 2552, 2623, 2623, 273, 314, 18, 3789...
self.__commaSymbol = ";"
self.__commaSymbol = ","
def __init__(self, format=False): if format: self.__semicolonSymbol = ";\n" self.__commaSymbol = ",\n" else: self.__semicolonSymbol = ";" self.__commaSymbol = ";" self.__forcedSemicolon = False
877b878b87b287b8d437e551ed69b2c277b4a25f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/877b878b87b287b8d437e551ed69b2c277b4a25f/Compressor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 740, 33, 8381, 4672, 309, 740, 30, 365, 16186, 12000, 17280, 5335, 273, 30750, 82, 6, 365, 16186, 25034, 5335, 273, 31726, 82, 6, 469, 30, 365, 16186, 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 740, 33, 8381, 4672, 309, 740, 30, 365, 16186, 12000, 17280, 5335, 273, 30750, 82, 6, 365, 16186, 25034, 5335, 273, 31726, 82, 6, 469, 30, 365, 16186, 12...
l = string.split(dopen('/proc/%s/cmdline' % pid).read(), '\0')
l = string.split(dopen('/proc/%s/cmdline' % self.val['pid']).read(), '\0')
def extract(self): max = 0.0 for pid in os.listdir('/proc/'): try: int(pid) except: continue if os.path.exists('/proc/%s/stat' % pid): if pid == self.pid: continue if not self.cn1.has_key(pid): self.cn1[pid] = 0
80e3628c81440d7841c779e567b129587befc31a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1442/80e3628c81440d7841c779e567b129587befc31a/dstat_app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 12, 2890, 4672, 943, 273, 374, 18, 20, 364, 4231, 316, 1140, 18, 1098, 1214, 2668, 19, 9381, 2473, 4672, 775, 30, 509, 12, 6610, 13, 1335, 30, 1324, 309, 1140, 18, 803, 18, 180...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 12, 2890, 4672, 943, 273, 374, 18, 20, 364, 4231, 316, 1140, 18, 1098, 1214, 2668, 19, 9381, 2473, 4672, 775, 30, 509, 12, 6610, 13, 1335, 30, 1324, 309, 1140, 18, 803, 18, 180...
else
else:
def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 41) else quickfix.StringField.__init__(self, 41, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 20170, 13, 469, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 20170, 13, 469, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972...
addrfamily, mac = struct.unpack("16xh6s8x",get_if(iff,SIOCGIFHWADDR))
addrfamily, mac = get_if_raw_hwaddr(iff)
def get_if_hwaddr(iff): addrfamily, mac = struct.unpack("16xh6s8x",get_if(iff,SIOCGIFHWADDR)) if addrfamily in [ARPHDR_ETHER,ARPHDR_LOOPBACK]: return str2mac(mac) else: raise Exception("Unsupported address family (%i)"%addrfamily)
e331990b0d8485c2b144b8e75bc86ef78d647e42 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/e331990b0d8485c2b144b8e75bc86ef78d647e42/scapy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 430, 67, 20701, 4793, 12, 3048, 4672, 3091, 9309, 16, 5318, 273, 336, 67, 430, 67, 1899, 67, 20701, 4793, 12, 3048, 13, 309, 3091, 9309, 316, 306, 985, 8939, 6331, 67, 1584, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 430, 67, 20701, 4793, 12, 3048, 4672, 3091, 9309, 16, 5318, 273, 336, 67, 430, 67, 1899, 67, 20701, 4793, 12, 3048, 13, 309, 3091, 9309, 316, 306, 985, 8939, 6331, 67, 1584, ...
data = query.GetData(params, self,site(), encodeTitle = False)['query']['pages']
data = query.GetData(params, self.site(), encodeTitle = False)['query']['pages']
def getLatestEditors(self, limit = 1): """ Function to get the last editors of a page """ #action=query&prop=revisions&titles=API&rvprop=timestamp|user|comment params = { 'action' :'query', 'prop' :'revisions', 'rvprop' :'user|timestamp', 'rvlimit' :limit, 'titles' :self.title(), } try: data = query.GetData(params, self,site(), encodeTitle = False)['query']['pages'] except KeyError: raise NoPage(u'API Error, nothing found in the APIs')
96d78da9eb52f3b14fd31dc70b766e99524d6677 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/96d78da9eb52f3b14fd31dc70b766e99524d6677/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 18650, 4666, 1383, 12, 2890, 16, 1800, 273, 404, 4672, 3536, 4284, 358, 336, 326, 1142, 29431, 434, 279, 1363, 3536, 468, 1128, 33, 2271, 10, 5986, 33, 29892, 10, 17643, 33, 2557, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18650, 4666, 1383, 12, 2890, 16, 1800, 273, 404, 4672, 3536, 4284, 358, 336, 326, 1142, 29431, 434, 279, 1363, 3536, 468, 1128, 33, 2271, 10, 5986, 33, 29892, 10, 17643, 33, 2557, ...
log.log(pexLog.Log.INFO, "templateBBoxProperties: %s" % ("; ".join(outStrList))
log.log(pexLog.Log.INFO, "templateBBoxProperties: %s" % (";".join(outStrList)))
def process(self): log = pexLog.Log(pexLog.Log.getDefaultLog(), "ip.diffim.TemplateBBoxStage")
8015e680bcb271ad8d0f728ae7271286818d7561 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6527/8015e680bcb271ad8d0f728ae7271286818d7561/TemplateBBoxStage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 2890, 4672, 613, 273, 293, 338, 1343, 18, 1343, 12, 84, 338, 1343, 18, 1343, 18, 588, 1868, 1343, 9334, 315, 625, 18, 5413, 381, 18, 2283, 30944, 8755, 7923, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 2890, 4672, 613, 273, 293, 338, 1343, 18, 1343, 12, 84, 338, 1343, 18, 1343, 18, 588, 1868, 1343, 9334, 315, 625, 18, 5413, 381, 18, 2283, 30944, 8755, 7923, 2, -100, -100, ...
stream_location = os.path.join(CFG_LOGDIR, '/invenio.' + stream)
stream_location = os.path.join(CFG_LOGDIR, 'invenio.' + stream)
def register_errors(errors_or_warnings_list, stream, req=None): """ log errors to invenio.err and warnings to invenio.log errors will be logged with client information (if req is given) and a tracestack warnings will be logged with just the warning message @param errors_or_warnings_list: list of tuples (err_name, err_msg) err_name = ERR_ + %(module_directory_name)s + _ + %(error_name)s #ALL CAPS err_name must be stored in file: module_directory_name + _config.py as the key for dict with name: CFG_ + %(module_directory_name)s + _ERROR_MESSAGES @param stream: 'error' or 'warning' @param req = mod_python request @return tuple integer 1 if successfully wrote to stream, integer 0 if not will append another error to errors_list if unsuccessful """ client_info_dict = "" if stream == "error": # call the stack trace now tracestack_pretty = get_tracestack() # if req is given, get client info if req: client_info_dict = get_client_info(req) if client_info_dict: client_info = \
2d10cfc88fc0de0f3689b82959187ff2ef3a7aa4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/2d10cfc88fc0de0f3689b82959187ff2ef3a7aa4/errorlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 67, 4324, 12, 4324, 67, 280, 67, 12103, 67, 1098, 16, 1407, 16, 1111, 33, 7036, 4672, 3536, 613, 1334, 358, 2198, 275, 1594, 18, 370, 471, 5599, 358, 2198, 275, 1594, 18, 1330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 67, 4324, 12, 4324, 67, 280, 67, 12103, 67, 1098, 16, 1407, 16, 1111, 33, 7036, 4672, 3536, 613, 1334, 358, 2198, 275, 1594, 18, 370, 471, 5599, 358, 2198, 275, 1594, 18, 1330, ...
message = "A file or folder with this name already exists. Please chose a different project name and try again."
message = "A file or folder with this name already exists. Please choose a different project name and try again."
def OnOK(self, button): name = self.name.get_text() author = self.author.get_text() folder = self.folder.get_current_folder() try: project=Project.CreateNew(folder,name, author) except Project.CreateProjectError, e: if e.errno == 1: message = "Could not initialize project." elif e.errno == 2: message = "A file or folder with this name already exists. Please chose a different project name and try again." elif e.errno == 3: message = "The file or folder location is write-protected.", dlg = gtk.MessageDialog(self.dlg, gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT, gtk.MESSAGE_ERROR, gtk.BUTTONS_OK, "Unable to create project.\n\n%s" % message) dlg.run() dlg.destroy() else: self.parent.SetProject(project) self.dlg.destroy()
a14870d4abdcc7b8996e34ac114059037f790784 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/a14870d4abdcc7b8996e34ac114059037f790784/NewProjectDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 3141, 12, 2890, 16, 3568, 4672, 508, 273, 365, 18, 529, 18, 588, 67, 955, 1435, 2869, 273, 365, 18, 4161, 18, 588, 67, 955, 1435, 3009, 273, 365, 18, 5609, 18, 588, 67, 2972, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3141, 12, 2890, 16, 3568, 4672, 508, 273, 365, 18, 529, 18, 588, 67, 955, 1435, 2869, 273, 365, 18, 4161, 18, 588, 67, 955, 1435, 3009, 273, 365, 18, 5609, 18, 588, 67, 2972, ...
self.aq_parent.reindexObject()
self.reindexObject()
def PUT(self, REQUEST, RESPONSE): """ HTTP PUT handler with marshalling support """ if not self.Schema().hasLayer('marshall'): RESPONSE.setStatus(501) # Not implemented return RESPONSE
0621e9edd9b0eafb4f56c21a8891ba72327f1cc5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/0621e9edd9b0eafb4f56c21a8891ba72327f1cc5/BaseContent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11443, 12, 2890, 16, 12492, 16, 20645, 4672, 3536, 2239, 11443, 1838, 598, 1833, 310, 2865, 3536, 309, 486, 365, 18, 3078, 7675, 5332, 4576, 2668, 12201, 11, 4672, 20645, 18, 542, 1482, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11443, 12, 2890, 16, 12492, 16, 20645, 4672, 3536, 2239, 11443, 1838, 598, 1833, 310, 2865, 3536, 309, 486, 365, 18, 3078, 7675, 5332, 4576, 2668, 12201, 11, 4672, 20645, 18, 542, 1482, ...
if getattr(self.fp, 'unread'):
if hasattr(self.fp, 'unread'):
def readheaders(self): """Read header lines. Read header lines up to the entirely blank line that terminates them. The (normally blank) line that ends the headers is skipped, but not included in the returned list. If a non-header line ends the headers, (which is an error), an attempt is made to backspace over it; it is never included in the returned list. The variable self.status is set to the empty string if all went well, otherwise it is an error message. The variable self.headers is a completely uninterpreted list of lines contained in the header (so printing them will reproduce the header exactly as it appears in the file). """ self.dict = {} self.unixfrom = '' self.headers = list = [] self.status = '' headerseen = "" firstline = 1 while 1: line = self.fp.readline() if not line: self.status = 'EOF in headers' break # Skip unix From name time lines if firstline and line[:5] == 'From ': self.unixfrom = self.unixfrom + line continue firstline = 0 if headerseen and line[0] in ' \t': # It's a continuation line. list.append(line) x = (self.dict[headerseen] + "\n " + string.strip(line)) self.dict[headerseen] = string.strip(x) continue elif self.iscomment(line): # It's a comment. Ignore it. continue elif self.islast(line): # Note! No pushback here! The delimiter line gets eaten. break headerseen = self.isheader(line) if headerseen: # It's a legal header line, save it. list.append(line) self.dict[headerseen] = string.strip(line[len(headerseen)+2:]) continue else: # It's not a header line; throw it back and stop here. if not self.dict: self.status = 'No headers' else: self.status = 'Non-header line where header expected' # Try to undo the read. if getattr(self.fp, 'unread'): self.fp.unread(line) elif self.seekable: self.fp.seek(-len(line), 1) else: self.status = self.status + '; bad seek' break
2f5de96c77ca2a74f59c2f3b09b939a2628e6874 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2f5de96c77ca2a74f59c2f3b09b939a2628e6874/rfc822.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 2485, 12, 2890, 4672, 3536, 1994, 1446, 2362, 18, 225, 2720, 1446, 2362, 731, 358, 326, 21658, 7052, 980, 716, 30559, 2182, 18, 225, 1021, 261, 7959, 1230, 7052, 13, 980, 716, 3930,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2485, 12, 2890, 4672, 3536, 1994, 1446, 2362, 18, 225, 2720, 1446, 2362, 731, 358, 326, 21658, 7052, 980, 716, 30559, 2182, 18, 225, 1021, 261, 7959, 1230, 7052, 13, 980, 716, 3930,...
iLine = line.number
iLine = line
def apply(self, lines): vList = [] for line in lines: iLine = line.number
cb6d1c1b9da3a15f55b42e7ffc55f274aee325d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6529/cb6d1c1b9da3a15f55b42e7ffc55f274aee325d2/style.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 12, 2890, 16, 2362, 4672, 331, 682, 273, 5378, 364, 980, 316, 2362, 30, 277, 1670, 273, 980, 18, 2696, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 12, 2890, 16, 2362, 4672, 331, 682, 273, 5378, 364, 980, 316, 2362, 30, 277, 1670, 273, 980, 18, 2696, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if (not os.path.isfile(path)): continue
if (not op.isfile(path)): continue
def reset_dispatcher_bookkeeping(self): self._dispatcher_registry = {} self._dispatcher_include_at_start = [] self._dispatcher_include_before_command = [] include_files = [] for file_name in os.listdir(self.build_path): path = self.under_build(file_name) if (not os.path.isfile(path)): continue if ( file_name.startswith("dispatcher_include") and file_name.endswith(".sh") and file_name != "dispatcher_include_template.sh"): include_files.append(path) include_files.sort() for path in include_files: print "Processing: %s" % show_string(path) try: lines = open(path).read().splitlines() except IOError, e: raise Sorry(str(e)) lines_at_start = [] lines_before_command = [] buffer = lines_before_command for line in lines: l = " ".join(line.split()).lower() if (l.startswith("#include ")): l = "# " + l[1:] if (l == "# include at start"): buffer = lines_at_start elif (l == "# include before command"): buffer = lines_before_command else: buffer.append(line) for buffer,target in [(lines_at_start, self._dispatcher_include_at_start), (lines_before_command, self._dispatcher_include_before_command)]: if (len(buffer) == 0): continue buffer.insert(0, "# included from %s" % path) highlight_dispatcher_include_lines(buffer) target.extend(buffer)
621ff93ea6f104ac4c6d943d7e9d6c18b1468502 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/621ff93ea6f104ac4c6d943d7e9d6c18b1468502/env_config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 67, 18495, 67, 3618, 10102, 310, 12, 2890, 4672, 365, 6315, 18495, 67, 9893, 273, 2618, 365, 6315, 18495, 67, 6702, 67, 270, 67, 1937, 273, 5378, 365, 6315, 18495, 67, 6702, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 67, 18495, 67, 3618, 10102, 310, 12, 2890, 4672, 365, 6315, 18495, 67, 9893, 273, 2618, 365, 6315, 18495, 67, 6702, 67, 270, 67, 1937, 273, 5378, 365, 6315, 18495, 67, 6702, 67, ...
self.Bind(wx.EVT_MENU, self.on_setname, mi)
self.Bind(wx.EVT_MENU, self.on_about, mi)
def __init__(self, notify_cb): wx.Frame.__init__(self, None, title='Eru P2P', size=(200, 400)) self.notify_cb = notify_cb # custom close event self.Bind(wx.EVT_CLOSE, self.on_close) self.peer_listbox = wx.ListBox(self) self.peer_listbox.Bind(wx.EVT_LEFT_DCLICK, self.on_dclick_peers) # mb = menubar, m = menu, mi = menuitem mb = wx.MenuBar() m = wx.Menu() mi = m.Append(-1, text='&Connect') self.Bind(wx.EVT_MENU, self.on_connect, mi) mi = m.Append(-1, text='Set &Name...') self.Bind(wx.EVT_MENU, self.on_setname, mi) m.AppendSeparator() mi = m.Append(-1, text='&Quit') self.Bind(wx.EVT_MENU, self.on_quit, mi) mb.Append(m, '&Server') m = wx.Menu() mi = m.Append(-1, '&About') self.Bind(wx.EVT_MENU, self.on_setname, mi) mb.Append(m, '&Help') self.SetMenuBar(mb)
5869735aa920d4ebd9cf416dbc71712da4730ddb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4811/5869735aa920d4ebd9cf416dbc71712da4730ddb/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5066, 67, 7358, 4672, 225, 7075, 18, 3219, 16186, 2738, 972, 12, 2890, 16, 599, 16, 2077, 2218, 41, 8653, 453, 22, 52, 2187, 963, 28657, 6976, 16, 7409, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5066, 67, 7358, 4672, 225, 7075, 18, 3219, 16186, 2738, 972, 12, 2890, 16, 599, 16, 2077, 2218, 41, 8653, 453, 22, 52, 2187, 963, 28657, 6976, 16, 7409, ...
r = excuse_unsat_deps(p, None, arch, 'testing', None, excluded=broken, conflicts=True)
r = check_installable(p, arch, 'testing', excluded=broken, conflicts=True)
def iter_packages(self, packages, output): extra = [] nuninst_comp = self.get_nuninst()
1f9ba4410c75a5f4cafac19e8033b8218b3b49ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/1f9ba4410c75a5f4cafac19e8033b8218b3b49ba/britney.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 67, 10308, 12, 2890, 16, 5907, 16, 876, 4672, 2870, 273, 5378, 290, 318, 8591, 67, 2919, 273, 365, 18, 588, 67, 82, 318, 8591, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 67, 10308, 12, 2890, 16, 5907, 16, 876, 4672, 2870, 273, 5378, 290, 318, 8591, 67, 2919, 273, 365, 18, 588, 67, 82, 318, 8591, 1435, 2, -100, -100, -100, -100, -100, -100, -100, ...
if node:
if node and node.get_n_children() > n:
def node_nth_child(self, nid, n): toreturn = None if self.static: node = self.__get_static_node(nid) if node: toreturn = node.get_nth_child(n) else: toreturn = self.__ft.node_nth_child(nid,n) return toreturn
161ab217adcbfc6fc628b674d568d093c4baab0b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7036/161ab217adcbfc6fc628b674d568d093c4baab0b/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 756, 67, 82, 451, 67, 3624, 12, 2890, 16, 19416, 16, 290, 4672, 358, 2463, 273, 599, 309, 365, 18, 3845, 30, 756, 273, 365, 16186, 588, 67, 3845, 67, 2159, 12, 31030, 13, 309, 756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 756, 67, 82, 451, 67, 3624, 12, 2890, 16, 19416, 16, 290, 4672, 358, 2463, 273, 599, 309, 365, 18, 3845, 30, 756, 273, 365, 16186, 588, 67, 3845, 67, 2159, 12, 31030, 13, 309, 756, ...
emails.extend(_getAllValidEmailsFromGroup(putils, acl_users, group))
if inBcc: emails_bcc.extend(_getAllValidEmailsFromGroup(putils, acl_users, group)) else: emails.extend(_getAllValidEmailsFromGroup(putils, acl_users, group))
def _getSendToValues(object): """Load the portal configuration for the notify system and obtain a list of emails. If the sendto_all is True, the mail will be sent to all members of the Plone site. The sendto_values value is used to look for name of groups, then name on users in the portal and finally for normal emails. @return a list of emails """ sendto_all, sendto_values = _getConfiguration(object) acl_users = getToolByName(object, 'acl_users') putils = getToolByName(object, 'plone_utils') emails = [] if sendto_all: users = acl_users.getUsers() emails.extend([m.getProperty('email') for m in users if putils.validateSingleEmailAddress(m.getProperty('email'))]) for entry in sendto_values: group = acl_users.getGroupById(entry) # 1 - is a group? if group: emails.extend(_getAllValidEmailsFromGroup(putils, acl_users, group)) continue # 2 - is a member? user = acl_users.getUserById(entry) if user: email = user.getProperty('email') if putils.validateSingleEmailAddress(email): emails.append(email) continue # 3 - is a valid email address? if putils.validateSingleEmailAddress(entry): emails.append(entry) return emails
e59e0114eb7869bdd9aeedf9219ffa0129e23af0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10089/e59e0114eb7869bdd9aeedf9219ffa0129e23af0/notify.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 3826, 774, 1972, 12, 1612, 4672, 3536, 2563, 326, 11899, 1664, 364, 326, 5066, 2619, 471, 7161, 279, 666, 434, 14255, 18, 971, 326, 1366, 869, 67, 454, 353, 1053, 16, 326, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 3826, 774, 1972, 12, 1612, 4672, 3536, 2563, 326, 11899, 1664, 364, 326, 5066, 2619, 471, 7161, 279, 666, 434, 14255, 18, 971, 326, 1366, 869, 67, 454, 353, 1053, 16, 326, 47...
gcl.os.chdir('somewhere') self.mox.ReplayAll() gcl.UploadCL(change_info, args) self.mox.VerifyAll()
gcl.os.chdir('somewhere') self.mox.ReplayAll() gcl.UploadCL(change_info, args)
def testServerOverride(self): change_info = gcl.ChangeInfo('naame', '', 'deescription', ['aa', 'bb']) change_info.Save = self.mox.CreateMockAnything() args = ['--server=a'] change_info.Save() gcl.DoPresubmitChecks(change_info, committing=False).AndReturn(True) gcl.GetCodeReviewSetting('CODE_REVIEW_SERVER').AndReturn('my_server') gcl.tempfile.mkstemp(text=True).AndReturn((42, 'descfile')) gcl.os.write(42, change_info.description) gcl.os.close(42) gcl.GetCodeReviewSetting('CC_LIST') gcl.os.getcwd().AndReturn('somewhere') gcl.os.chdir(gcl.GetRepositoryRoot().AndReturn(None)) gcl.GenerateDiff(change_info.FileList()) gcl.upload.RealMain(['upload.py', '-y', '--server=my_server', '--server=a', "--description_file=descfile", "--message=deescription"], change_info.patch).AndReturn(("1", "2")) gcl.os.remove('descfile') gcl.SendToRietveld("/lint/issue%s_%s" % ('1', '2'), timeout=0.5) #gcl.GetCodeReviewSetting('TRY_ON_UPLOAD').AndReturn('True') #gcl.TryChange(change_info, # ['--issue', '1', '--patchset', '2'], # swallow_exception=True) gcl.os.chdir('somewhere') self.mox.ReplayAll() gcl.UploadCL(change_info, args) self.mox.VerifyAll()
eb12bebc49c62a9d7b5359ea09518c40d497b197 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6076/eb12bebc49c62a9d7b5359ea09518c40d497b197/gcl_unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2081, 6618, 12, 2890, 4672, 2549, 67, 1376, 273, 314, 830, 18, 3043, 966, 2668, 6582, 339, 2187, 10226, 296, 323, 1389, 2187, 10228, 7598, 2187, 296, 9897, 19486, 2549, 67, 1376, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2081, 6618, 12, 2890, 4672, 2549, 67, 1376, 273, 314, 830, 18, 3043, 966, 2668, 6582, 339, 2187, 10226, 296, 323, 1389, 2187, 10228, 7598, 2187, 296, 9897, 19486, 2549, 67, 1376, 1...
self.Bind( wx.colheader.EVT_COLUMNHEADER_SELCHANGED, self.OnColumnHeaderClick, ch1 )
self.Bind( wx.colheader.EVT_COLUMNHEADER_SELCHANGED, self.OnClickColumnHeader, ch1 )
def __init__( self, parent, log ): wx.Panel.__init__( self, parent, -1, style=wx.NO_FULL_REPAINT_ON_RESIZE ) self.log = log
6d021842b3ffdeb8b9c605b4f0ac48e94294bf83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/6d021842b3ffdeb8b9c605b4f0ac48e94294bf83/ColumnHeader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 982, 16, 613, 262, 30, 7075, 18, 5537, 16186, 2738, 972, 12, 365, 16, 982, 16, 300, 21, 16, 2154, 33, 27226, 18, 3417, 67, 18111, 67, 862, 4066, 3217, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 982, 16, 613, 262, 30, 7075, 18, 5537, 16186, 2738, 972, 12, 365, 16, 982, 16, 300, 21, 16, 2154, 33, 27226, 18, 3417, 67, 18111, 67, 862, 4066, 3217, ...
return ret_val
return (ret_val, dest_paths)
def flush(self): pass
657f10b268a2970e94754672191e5733ed11ce2a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9162/657f10b268a2970e94754672191e5733ed11ce2a/convert.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3663, 12, 2890, 4672, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3663, 12, 2890, 4672, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
elif 'U' in self.data and 'T' in self.data:
elif 'U' in self._data and 'T' in self._data:
def complement(self): """Returns the complement sequence. New Seq object.
cfd18f549209e113f9acb2de74eeaf74108ccd1d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7167/cfd18f549209e113f9acb2de74eeaf74108ccd1d/Seq.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17161, 12, 2890, 4672, 3536, 1356, 326, 17161, 3102, 18, 1166, 14367, 733, 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, ...
[ 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, 17161, 12, 2890, 4672, 3536, 1356, 326, 17161, 3102, 18, 1166, 14367, 733, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
<dt><A href="../yourbaskets.py/display">%(your_baskets)s</A>
<dt><A href="../yourbaskets.py/display?ln=%(ln)s">%(your_baskets)s</A>
def tmpl_account_info(self, ln, uid, guest, cfg_cern_site): """ Displays the account information
3a0a1175062a33241e371559b1e5cbfaec2cd7e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/3a0a1175062a33241e371559b1e5cbfaec2cd7e9/websession_templates.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 4631, 67, 1376, 12, 2890, 16, 7211, 16, 4555, 16, 13051, 16, 2776, 67, 14770, 67, 4256, 4672, 3536, 9311, 87, 326, 2236, 1779, 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, 10720, 67, 4631, 67, 1376, 12, 2890, 16, 7211, 16, 4555, 16, 13051, 16, 2776, 67, 14770, 67, 4256, 4672, 3536, 9311, 87, 326, 2236, 1779, 2, -100, -100, -100, -100, -100, -100, -100, -...
node=api.GetNodes(interface['node_id'])[0] return node_belong_to_person (api, node, person)
node=Nodes(api,[interface['node_id']])[0] return AuthorizeHelpers.node_belong_to_person (api, node, person)
def interface_belongs_to_person (api,interface, person): try: node=api.GetNodes(interface['node_id'])[0] return node_belong_to_person (api, node, person) except: return False
d35362b6d7c96dec551a846a9316d17c22d25be6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7598/d35362b6d7c96dec551a846a9316d17c22d25be6/AuthorizeHelpers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1560, 67, 13285, 7260, 67, 869, 67, 12479, 261, 2425, 16, 5831, 16, 6175, 4672, 775, 30, 756, 33, 3205, 12, 2425, 16, 63, 5831, 3292, 2159, 67, 350, 3546, 5717, 63, 20, 65, 327, 2385...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1560, 67, 13285, 7260, 67, 869, 67, 12479, 261, 2425, 16, 5831, 16, 6175, 4672, 775, 30, 756, 33, 3205, 12, 2425, 16, 63, 5831, 3292, 2159, 67, 350, 3546, 5717, 63, 20, 65, 327, 2385...
self.assertEquals(response.status_code, 200)
self.assertEquals(response.status_code, 302)
def testCloseOpenUnpausedEntry(self): #-------------------------------------------------- # 4. ENTRY THAT IS OPEN AND NOT PAUSED id = 4
0a1d6b76b1d7dbcd79da40247c144b7a9be43ef4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12134/0a1d6b76b1d7dbcd79da40247c144b7a9be43ef4/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 4605, 3678, 984, 8774, 3668, 1622, 12, 2890, 4672, 468, 9634, 413, 468, 1059, 18, 25516, 7662, 789, 4437, 11919, 4116, 4269, 15662, 20093, 612, 273, 1059, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 1842, 4605, 3678, 984, 8774, 3668, 1622, 12, 2890, 4672, 468, 9634, 413, 468, 1059, 18, 25516, 7662, 789, 4437, 11919, 4116, 4269, 15662, 20093, 612, 273, 1059, 2, -100, -100, -100, -100, ...