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
for ext in ('.py', '.pyc', '.pyo'):
for ext in ('.py', '.pyc', '.pyo', '$py.class'):
def ispackage(path): """Guess whether a path refers to a package directory.""" if os.path.isdir(path): for ext in ('.py', '.pyc', '.pyo'): if os.path.isfile(os.path.join(path, '__init__' + ext)): return True return False
d26b68d2b26c07989d49eda165bb79caeb72cdc2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6753/d26b68d2b26c07989d49eda165bb79caeb72cdc2/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 5610, 12, 803, 4672, 3536, 15977, 2856, 279, 589, 21368, 358, 279, 2181, 1867, 12123, 309, 1140, 18, 803, 18, 291, 1214, 12, 803, 4672, 364, 1110, 316, 7707, 18, 2074, 2187, 2418, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 5610, 12, 803, 4672, 3536, 15977, 2856, 279, 589, 21368, 358, 279, 2181, 1867, 12123, 309, 1140, 18, 803, 18, 291, 1214, 12, 803, 4672, 364, 1110, 316, 7707, 18, 2074, 2187, 2418, ...
event in trash or
def addFB(event): free = vfree.add('freebusy') free.fbtype_param = transparencyMap[event.transparency] return free
1a61cde39925e8eb2914a7dbd3006c7345df03f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/1a61cde39925e8eb2914a7dbd3006c7345df03f3/ICalendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 22201, 12, 2575, 4672, 4843, 273, 331, 9156, 18, 1289, 2668, 9156, 9274, 93, 6134, 4843, 18, 19192, 723, 67, 891, 273, 27472, 863, 63, 2575, 18, 2338, 18258, 65, 327, 4843, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 22201, 12, 2575, 4672, 4843, 273, 331, 9156, 18, 1289, 2668, 9156, 9274, 93, 6134, 4843, 18, 19192, 723, 67, 891, 273, 27472, 863, 63, 2575, 18, 2338, 18258, 65, 327, 4843, 2, -10...
if arg[0] == '"' and arg[-1] == '
if arg[0] == '"' and arg[-1] == '"':
def strip_scons_quotes(arg): if arg[0] == '"' and arg[-1] == '#': return arg[1:-1] return arg
a1b61dfaf2bee345fb1cf0f88cc7733c7df8fa8b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6220/a1b61dfaf2bee345fb1cf0f88cc7733c7df8fa8b/scons.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2569, 67, 87, 8559, 67, 18653, 12, 3175, 4672, 309, 1501, 63, 20, 65, 422, 4754, 471, 1501, 18919, 21, 65, 422, 2946, 4278, 327, 1501, 63, 21, 30, 17, 21, 65, 327, 1501, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2569, 67, 87, 8559, 67, 18653, 12, 3175, 4672, 309, 1501, 63, 20, 65, 422, 4754, 471, 1501, 18919, 21, 65, 422, 2946, 4278, 327, 1501, 63, 21, 30, 17, 21, 65, 327, 1501, 2, -100, -...
if f and options.test_compiled: print 'Backend', options.backend, 'test successful! (not tested actually)'
if options.test_compiled: pythonReturn = f(*arguments) assert backendReturn == pythonReturn print 'Backend', options.backend, 'compiled code returns same as python script (%s)' % backendReturn else: print 'Backend', options.backend, 'compiled code returns (%s)' % backendReturn, '[use -t to perform a sanity check]'
def main(argv=[]): options = Options(argv) modname = options.python_script if '/' in modname: modname = modname.replace('/', '.') if modname[-3:] == '.py': modname = modname[:-3] exec "import %(modname)s as testmodule" % locals() if '(' in options.entry_function: entry_function, arguments = options.entry_function.spl...
609fdb7526c1e46b5a0002e6bd2832e8ea8c17fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/609fdb7526c1e46b5a0002e6bd2832e8ea8c17fc/compyle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 33, 8526, 4672, 702, 273, 5087, 12, 19485, 13, 225, 16037, 273, 702, 18, 8103, 67, 4263, 309, 2023, 316, 16037, 30, 16037, 273, 16037, 18, 2079, 2668, 19, 2187, 2611, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 33, 8526, 4672, 702, 273, 5087, 12, 19485, 13, 225, 16037, 273, 702, 18, 8103, 67, 4263, 309, 2023, 316, 16037, 30, 16037, 273, 16037, 18, 2079, 2668, 19, 2187, 2611, ...
return "cvs:%s:%s:%s" % (self.root, file, self.revision)
return "cvs:%s:%s:%s" % (self.clean_root, file, self.revision)
def GetFilename(self): file = self.file if self.revision and self.root: if self.srcdir: # strip the base path off # but we actually want the last dir in srcdir file = os.path.normpath(file) # the lower() is to handle win32+vc8, where # the source filenames come out all lowercase, # but the srcdir can be mixed case if f...
0a664656fecf2b6ec004785f3fab3d7ee1d79c8d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11102/0a664656fecf2b6ec004785f3fab3d7ee1d79c8d/symbolstore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 5359, 12, 2890, 4672, 585, 273, 365, 18, 768, 309, 365, 18, 13057, 471, 365, 18, 3085, 30, 309, 365, 18, 4816, 1214, 30, 468, 2569, 326, 1026, 589, 3397, 468, 1496, 732, 6013, 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, 968, 5359, 12, 2890, 4672, 585, 273, 365, 18, 768, 309, 365, 18, 13057, 471, 365, 18, 3085, 30, 309, 365, 18, 4816, 1214, 30, 468, 2569, 326, 1026, 589, 3397, 468, 1496, 732, 6013, 2...
def get_preferred_language(email, default='de'):
def get_preferred_language(email, default='en'):
def get_preferred_language(email, default='de'): found = self.pas.searchUsers(email=args['mail_to']) if found: owner = self.membership_tool.getMemberById(found[0]['userid']).getUser() return owner.getProperty('preferred_language', default) else: return default
f71293d440addf09542afa70fa6080b95178dd12 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10562/f71293d440addf09542afa70fa6080b95178dd12/email.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 23616, 67, 4923, 12, 3652, 16, 805, 2218, 275, 11, 4672, 1392, 273, 365, 18, 84, 345, 18, 3072, 6588, 12, 3652, 33, 1968, 3292, 4408, 67, 869, 19486, 309, 1392, 30, 3410, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 23616, 67, 4923, 12, 3652, 16, 805, 2218, 275, 11, 4672, 1392, 273, 365, 18, 84, 345, 18, 3072, 6588, 12, 3652, 33, 1968, 3292, 4408, 67, 869, 19486, 309, 1392, 30, 3410, 27...
results = []
results = {}
def getAssignableUsers(self): """Collect users with a given role and return them in a list. """ context = self.context.aq_inner role = 'Reader' results = [] pas_tool = getToolByName(context, 'acl_users') utils_tool = getToolByName(context, 'plone_utils')
e748acd68e64f321866f47a28ea1004cc5220bf3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11890/e748acd68e64f321866f47a28ea1004cc5220bf3/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 7961, 6588, 12, 2890, 4672, 3536, 10808, 3677, 598, 279, 864, 2478, 471, 327, 2182, 316, 279, 666, 18, 3536, 819, 273, 365, 18, 2472, 18, 69, 85, 67, 7872, 2478, 273, 296, 2514, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7961, 6588, 12, 2890, 4672, 3536, 10808, 3677, 598, 279, 864, 2478, 471, 327, 2182, 316, 279, 666, 18, 3536, 819, 273, 365, 18, 2472, 18, 69, 85, 67, 7872, 2478, 273, 296, 2514, ...
print 'usage: aml.py source.txt'
print 'usage: yaml.py source.txt'
def getClassDoc(self, modulename, classname, pathname=None): """Documents the class and its public methods""" docco = codegrab.getObjectsDefinedIn(modulename, pathname) found = 0 for cls in docco.classes: if cls.name == classname: found = 1 self._results.append(('Preformatted','FunctionHeader', 'Class %s:' % cls.name))...
2d7f46beb2c77c8e7d5a6796693cc6c30d66d7d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/2d7f46beb2c77c8e7d5a6796693cc6c30d66d7d9/yaml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2900, 1759, 12, 2890, 16, 31961, 16, 7479, 16, 9806, 33, 7036, 4672, 3536, 12922, 326, 667, 471, 2097, 1071, 2590, 8395, 997, 2894, 273, 981, 2752, 70, 18, 588, 4710, 8116, 382, 12, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2900, 1759, 12, 2890, 16, 31961, 16, 7479, 16, 9806, 33, 7036, 4672, 3536, 12922, 326, 667, 471, 2097, 1071, 2590, 8395, 997, 2894, 273, 981, 2752, 70, 18, 588, 4710, 8116, 382, 12, 17...
print >> sys.stderr, msg print >> sys.stderr, __doc__
print(msg, file=sys.stderr) print(__doc__, file=sys.stderr)
def usage(msg=None): if msg is not None: print >> sys.stderr, msg print >> sys.stderr, __doc__
6247fdbf93a8c72e1be40d396102b7f1a1271c95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/6247fdbf93a8c72e1be40d396102b7f1a1271c95/reindent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 12, 3576, 33, 7036, 4672, 309, 1234, 353, 486, 599, 30, 1172, 12, 3576, 16, 585, 33, 9499, 18, 11241, 13, 1172, 12, 972, 2434, 972, 16, 585, 33, 9499, 18, 11241, 13, 225, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 12, 3576, 33, 7036, 4672, 309, 1234, 353, 486, 599, 30, 1172, 12, 3576, 16, 585, 33, 9499, 18, 11241, 13, 1172, 12, 972, 2434, 972, 16, 585, 33, 9499, 18, 11241, 13, 225, 2, ...
'on_value_spinbutton_changed' : self.changeValue,
'on_value_spinbutton_changed' : self.changeValue, 'input_value': self.changeValue, 'input_concentration': self.inputConcentration,
def __init__( self, dirname, data, pluginmanager, root=None ): OsogoPluginWindow.__init__( self, dirname, data, pluginmanager, root )
30bce103d9f34982fce5f0fc5e1245ea73d045a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/30bce103d9f34982fce5f0fc5e1245ea73d045a1/VariableWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 4283, 16, 225, 501, 16, 1909, 4181, 16, 1365, 33, 7036, 262, 30, 225, 31799, 717, 83, 3773, 3829, 16186, 2738, 972, 12, 365, 16, 4283, 16, 501, 16, 1909...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 2738, 972, 12, 365, 16, 4283, 16, 225, 501, 16, 1909, 4181, 16, 1365, 33, 7036, 262, 30, 225, 31799, 717, 83, 3773, 3829, 16186, 2738, 972, 12, 365, 16, 4283, 16, 501, 16, 1909...
handlerFunc = self._atomProcessors[atom[0]]
handlerFunc = self._elementProcessors[elem[0]]
def _processAtom(self,atom, sessionID): # The first element of the 'atom' list is a # string describing the type of the atom (== the name of # the XML tag). The second element is a dictionary # containing attributes passed to the XML tag. Any # remaining elements are atom-specific, and should be # treated as addition...
cdb5ca51cf362e7f41cc166060e200bc84fcb1e8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6428/cdb5ca51cf362e7f41cc166060e200bc84fcb1e8/Kernel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2567, 3641, 12, 2890, 16, 7466, 16, 13737, 4672, 468, 1021, 1122, 930, 434, 326, 296, 7466, 11, 666, 353, 279, 468, 533, 16868, 326, 618, 434, 326, 3179, 261, 631, 326, 508, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2567, 3641, 12, 2890, 16, 7466, 16, 13737, 4672, 468, 1021, 1122, 930, 434, 326, 296, 7466, 11, 666, 353, 279, 468, 533, 16868, 326, 618, 434, 326, 3179, 261, 631, 326, 508, 434, ...
if release in range(1,num_of_colls):
if release in range(1,num_of_colls+1):
def f(x): return x.package.name == pkg_name #and x.collectionid==release
9a4623808b55b1c902b660fd26ce44810c33f860 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9953/9a4623808b55b1c902b660fd26ce44810c33f860/search.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 12, 92, 4672, 327, 619, 18, 5610, 18, 529, 422, 3475, 67, 529, 468, 464, 619, 18, 5548, 350, 631, 9340, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 12, 92, 4672, 327, 619, 18, 5610, 18, 529, 422, 3475, 67, 529, 468, 464, 619, 18, 5548, 350, 631, 9340, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
s.connect('changed', self.__changed, 'player', 'pre_amp_gain')
def __init__(self): super(PreferencesWindow.Player, self).__init__(spacing=12) self.set_border_width(12) self.title = _("Player")
b6e19e74d47ed6438a8e3a5fd778f2bcd1746d77 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4764/b6e19e74d47ed6438a8e3a5fd778f2bcd1746d77/prefs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 2240, 12, 12377, 3829, 18, 12148, 16, 365, 2934, 972, 2738, 972, 12, 14080, 33, 2138, 13, 365, 18, 542, 67, 8815, 67, 2819, 12, 2138, 13, 365, 18, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 2240, 12, 12377, 3829, 18, 12148, 16, 365, 2934, 972, 2738, 972, 12, 14080, 33, 2138, 13, 365, 18, 542, 67, 8815, 67, 2819, 12, 2138, 13, 365, 18, 26...
return self.get_data(cursor, user, uri, context=context, cache=cache)
return self.get_data(cursor, user, uri, context=context, cache=cache)\ .decode('utf-8')
def get_calendar_data(self, cursor, user, uri, context=None, cache=None): return self.get_data(cursor, user, uri, context=context, cache=cache)
b724135baa9a5a9a7a5fd94b2ef423590514dd4b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9294/b724135baa9a5a9a7a5fd94b2ef423590514dd4b/webdav.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 11650, 67, 892, 12, 2890, 16, 3347, 16, 729, 16, 2003, 16, 819, 33, 7036, 16, 1247, 33, 7036, 4672, 327, 365, 18, 588, 67, 892, 12, 9216, 16, 729, 16, 2003, 16, 819, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 11650, 67, 892, 12, 2890, 16, 3347, 16, 729, 16, 2003, 16, 819, 33, 7036, 16, 1247, 33, 7036, 4672, 327, 365, 18, 588, 67, 892, 12, 9216, 16, 729, 16, 2003, 16, 819, 33, ...
return s+val.encode('utf-16')[2:]+b"\0\0"
if isinstance(val, str): return s+val.encode('utf-16')[2:]+b"\0\0" elif isinstance(val, bytes): return s+val
def addfield(self, pkt, s, val): # CIFS-TR-1p00_FINAL.pdf 665616b44740177c86051c961fdf6768 # page 35 # In all cases where a string is passed in Unicode format, the Unicode string # must be word-aligned with respect to the beginning of the SMB. Should the string not naturally # fall on a two-byte boundary, a null byte o...
a9d0a541ca5964ea62d21ac22eaff990c4e2bf95 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8801/a9d0a541ca5964ea62d21ac22eaff990c4e2bf95/fieldtypes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 1518, 12, 2890, 16, 11536, 16, 272, 16, 1244, 4672, 468, 17166, 4931, 17, 4349, 17, 21, 84, 713, 67, 7263, 1013, 18, 7699, 22342, 4313, 2313, 70, 6334, 5608, 1611, 4700, 71, 28, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 1518, 12, 2890, 16, 11536, 16, 272, 16, 1244, 4672, 468, 17166, 4931, 17, 4349, 17, 21, 84, 713, 67, 7263, 1013, 18, 7699, 22342, 4313, 2313, 70, 6334, 5608, 1611, 4700, 71, 28, ...
lat=lat, lng=long, style='short'))
lat=lat, lng=long, style='short'), use_float=True)
def placeName(lat, long): geonames = restkit.Resource('http://ws.geonames.org/') addr = jsonlib.read(geonames.get("findNearestAddressJSON", lat=lat, lng=long)) if 'address' in addr: addr = addr['address'] return "%s %s, %s %s" % (addr['streetNumber'], addr['street'] or addr['adminName2'], addr['placename'], addr['admin...
98396c4c0f7a38852979a0dacb0787b4be6a15bc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12883/98396c4c0f7a38852979a0dacb0787b4be6a15bc/map2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3166, 461, 12, 4801, 16, 1525, 4672, 8244, 265, 753, 273, 3127, 8691, 18, 1420, 2668, 2505, 2207, 4749, 18, 908, 265, 753, 18, 3341, 2473, 13, 3091, 273, 1163, 2941, 18, 896, 12, 908, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3166, 461, 12, 4801, 16, 1525, 4672, 8244, 265, 753, 273, 3127, 8691, 18, 1420, 2668, 2505, 2207, 4749, 18, 908, 265, 753, 18, 3341, 2473, 13, 3091, 273, 1163, 2941, 18, 896, 12, 908, ...
patternstop_vx_name = "%03d-%03d-%s"%(bundle.pattern.pattern_id,i,service_id)
patternstop_vx_name = "%03d-%03d"%(bundle.pattern.pattern_id,i+1)
def load_bundle_to_boardalight_graph(g, bundle, service_id, sc, tz): stop_time_bundles = list(bundle.stop_time_bundles(service_id)) # If there's less than two stations on this trip bundle, the trip bundle doesn't actually span two places if len(stop_time_bundles)<2: return #add board edges for i, stop_time_bundle in ...
e65123a23781fb60fef775499bee2d612a5da38b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10974/e65123a23781fb60fef775499bee2d612a5da38b/compile_graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 9991, 67, 869, 67, 3752, 287, 750, 67, 4660, 12, 75, 16, 3440, 16, 1156, 67, 350, 16, 888, 16, 6016, 4672, 2132, 67, 957, 67, 22773, 273, 666, 12, 9991, 18, 5681, 67, 957...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 9991, 67, 869, 67, 3752, 287, 750, 67, 4660, 12, 75, 16, 3440, 16, 1156, 67, 350, 16, 888, 16, 6016, 4672, 2132, 67, 957, 67, 22773, 273, 666, 12, 9991, 18, 5681, 67, 957...
top = TopHandler(preffile, log_file, histfile)
def run(args): preffile = os.path.join(os.environ['HOME'], '.openipmigui.startup') histfile = os.path.join(os.environ['HOME'], '.openipmigui.history') debug_msg = False debug_rawmsg = False debug_mem = False do_trace = False read_preffile = True log_file = None # Skip program name. carg = 1 while (carg < len(args)):...
193034388cfe5d94e0af2df90c4bdc4858107ce7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3867/193034388cfe5d94e0af2df90c4bdc4858107ce7/openipmigui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 1968, 4672, 11307, 768, 273, 1140, 18, 803, 18, 5701, 12, 538, 18, 28684, 3292, 14209, 17337, 2418, 3190, 625, 81, 360, 4881, 18, 23939, 6134, 5356, 768, 273, 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, 1086, 12, 1968, 4672, 11307, 768, 273, 1140, 18, 803, 18, 5701, 12, 538, 18, 28684, 3292, 14209, 17337, 2418, 3190, 625, 81, 360, 4881, 18, 23939, 6134, 5356, 768, 273, 1140, 18, 803, ...
digits = charset('0123456789')
digit = charset('0123456789') digits = digit + '+'
def sniff_encoding(xml): """Detects the XML encoding as per XML 1.0 section F.1.""" enc = sniff_bom_encoding(xml) # Now the fun really starts. We compile the encoded sniffer regexp. # We must use an encoder to handle utf_8_sig properly. encode = codecs.lookup(enc).incrementalencoder().encode prefix = encode('') L = lam...
f1e2722fde16f8590e966d559bbe355f0df65883 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10679/f1e2722fde16f8590e966d559bbe355f0df65883/xhtmlify.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26974, 67, 5999, 12, 2902, 4672, 3536, 12081, 87, 326, 3167, 2688, 487, 1534, 3167, 404, 18, 20, 2442, 478, 18, 21, 12123, 2446, 273, 26974, 67, 70, 362, 67, 5999, 12, 2902, 13, 468, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26974, 67, 5999, 12, 2902, 4672, 3536, 12081, 87, 326, 3167, 2688, 487, 1534, 3167, 404, 18, 20, 2442, 478, 18, 21, 12123, 2446, 273, 26974, 67, 70, 362, 67, 5999, 12, 2902, 13, 468, ...
self.parser.parseError()
self.parser.parseError(_("Unexpected end tag (" + name +\ "). Ignored."))
def endTagIgnore(self, name): self.parser.parseError()
7995adb4565ddffcd5bde7e78328f8c7e8fc9c90 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9368/7995adb4565ddffcd5bde7e78328f8c7e8fc9c90/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 3777, 12, 2890, 16, 508, 4672, 365, 18, 4288, 18, 2670, 668, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 29765, 3777, 12, 2890, 16, 508, 4672, 365, 18, 4288, 18, 2670, 668, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
res = obj.read(cr, uid, ids, ['code', 'name'], context)
res = obj.read(cr, uid, ids, ['code', 'name'], context=context)
def _lang_get(self, cr, uid, context={}): obj = self.pool.get('res.lang') ids = obj.search(cr, uid, [('translatable','=',True)]) res = obj.read(cr, uid, ids, ['code', 'name'], context) res = [(r['code'], r['name']) for r in res] return res
b4e5c513112036bb6d6eee7e16eda547ccda80eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/b4e5c513112036bb6d6eee7e16eda547ccda80eb/res_user.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4936, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 819, 12938, 4672, 1081, 273, 365, 18, 6011, 18, 588, 2668, 455, 18, 4936, 6134, 3258, 273, 1081, 18, 3072, 12, 3353, 16, 4555, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4936, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 819, 12938, 4672, 1081, 273, 365, 18, 6011, 18, 588, 2668, 455, 18, 4936, 6134, 3258, 273, 1081, 18, 3072, 12, 3353, 16, 4555, 1...
import pdb pdb.set_trace()
def get_memory(self, cr, obj, ids, name, user=None, context=None, values=None): if not context: context = {} if not values: values = [] res = {} for i in ids: val = None for v in values: if v['id'] == i: val = v[name] break
dd226ca700f94cafdf2967cdd254053dc25e96d1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/dd226ca700f94cafdf2967cdd254053dc25e96d1/fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7858, 12, 2890, 16, 4422, 16, 1081, 16, 3258, 16, 508, 16, 729, 33, 7036, 16, 819, 33, 7036, 16, 924, 33, 7036, 4672, 309, 486, 819, 30, 819, 273, 2618, 309, 486, 924, 30,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7858, 12, 2890, 16, 4422, 16, 1081, 16, 3258, 16, 508, 16, 729, 33, 7036, 16, 819, 33, 7036, 16, 924, 33, 7036, 4672, 309, 486, 819, 30, 819, 273, 2618, 309, 486, 924, 30,...
page = urllib2.urlopen(filename).read() [print_track(t) for t in parse_albumpage(page)[1]]
print retrieve_album('file:///home/keith/fandango.htm')
def applyPrefs(self, args): self._getcover = args[0] self.preferences[0][2] = self._getcover cparser = PuddleConfig() cparser.set('amg', 'retrievecovers', self._getcover)
34d080fca460820bcfff0c01f9f174a199bbced0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3907/34d080fca460820bcfff0c01f9f174a199bbced0/amg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 1386, 2556, 12, 2890, 16, 833, 4672, 365, 6315, 588, 3165, 273, 833, 63, 20, 65, 365, 18, 23219, 63, 20, 6362, 22, 65, 273, 365, 6315, 588, 3165, 276, 4288, 273, 453, 20567, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 1386, 2556, 12, 2890, 16, 833, 4672, 365, 6315, 588, 3165, 273, 833, 63, 20, 65, 365, 18, 23219, 63, 20, 6362, 22, 65, 273, 365, 6315, 588, 3165, 276, 4288, 273, 453, 20567, 29...
except libvirt.libvirtError, le:
except Exception, le:
def _getDomain(self, inst): import libvirt.libvirtError try: if inst.backend_id in self.libvirtConn.listDomainsID(): d = self._getDomainByName(inst) else: raise BackendException("backend domain not found: %s" % inst.getName()) except libvirt.libvirtError, le: raise BackendException("backend domain not found: %s" % inst...
5bc3f52645f33742cb6a2e427c9991b314560eee /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2459/5bc3f52645f33742cb6a2e427c9991b314560eee/xen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 3748, 12, 2890, 16, 1804, 4672, 1930, 16388, 18, 2941, 14035, 668, 775, 30, 309, 1804, 18, 9993, 67, 350, 316, 365, 18, 2941, 14035, 3543, 18, 1098, 15531, 734, 13332, 302, 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, 389, 588, 3748, 12, 2890, 16, 1804, 4672, 1930, 16388, 18, 2941, 14035, 668, 775, 30, 309, 1804, 18, 9993, 67, 350, 316, 365, 18, 2941, 14035, 3543, 18, 1098, 15531, 734, 13332, 302, 2...
'size', 'text', 'publication_time', 'state', 'download_count', 'url', 'matching', 'indexed')
'size', 'text', 'publication_time', 'url', 'host', 'port', 'login')
def selectContaining(cls, cursor, words, mimetype=None, offset=0, allowPrivate=False): if not words: return [] query, params = cls._selectContainingQuery(words, mimetype, offset=offset, allowPrivate=allowPrivate) if query: cursor.execute(query, params) results = cursor.fetchall() return [cls(**dict(zip(['db_document_id...
5fa8511180c66f7097fa1f996ff7ed967120001e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2259/5fa8511180c66f7097fa1f996ff7ed967120001e/dbentity.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 24344, 12, 6429, 16, 3347, 16, 4511, 16, 12595, 33, 7036, 16, 1384, 33, 20, 16, 1699, 6014, 33, 8381, 4672, 309, 486, 4511, 30, 327, 5378, 843, 16, 859, 273, 2028, 6315, 4025, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 24344, 12, 6429, 16, 3347, 16, 4511, 16, 12595, 33, 7036, 16, 1384, 33, 20, 16, 1699, 6014, 33, 8381, 4672, 309, 486, 4511, 30, 327, 5378, 843, 16, 859, 273, 2028, 6315, 4025, ...
%s
%(start_string_prefix)s
def parse(self, text, lineno, memo, parent): """ Return 2 lists: nodes (text and inline elements), and system_messages.
a5c0eb6861885d1f50c31667ba475c9c99a4acf6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/a5c0eb6861885d1f50c31667ba475c9c99a4acf6/states.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 977, 16, 7586, 16, 11063, 16, 982, 4672, 3536, 2000, 576, 6035, 30, 2199, 261, 955, 471, 6370, 2186, 3631, 471, 2619, 67, 6833, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 977, 16, 7586, 16, 11063, 16, 982, 4672, 3536, 2000, 576, 6035, 30, 2199, 261, 955, 471, 6370, 2186, 3631, 471, 2619, 67, 6833, 18, 2, -100, -100, -100, -100, -100,...
log.msg(repr(ord(packet[0]))) log.msg(repr(hasattr(self, 'first'))) log.msg(repr(len(self.buf)))
def dataReceived(self, data): self.buf = self.buf+data if not self.gotVersion: parts = self.buf.split('\n') for p in parts: if p[: 4] == 'SSH-': self.gotVersion = 1 self.otherVersionString = p.strip() if p.split('-')[1]not in('1.99', '2.0'): # bad version self.sendDisconnect(DISCONNECT_PROTOCOL_VERSION_NOT_SUPPORTED, '...
181b3107822517e7a93072b4c84b501aaa8b23d8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/181b3107822517e7a93072b4c84b501aaa8b23d8/transport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 501, 8872, 12, 2890, 16, 501, 4672, 365, 18, 4385, 273, 365, 18, 4385, 15, 892, 309, 486, 365, 18, 13212, 1444, 30, 2140, 273, 365, 18, 4385, 18, 4939, 2668, 64, 82, 6134, 364, 293, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 501, 8872, 12, 2890, 16, 501, 4672, 365, 18, 4385, 273, 365, 18, 4385, 15, 892, 309, 486, 365, 18, 13212, 1444, 30, 2140, 273, 365, 18, 4385, 18, 4939, 2668, 64, 82, 6134, 364, 293, ...
return psData[5]
return psData[2]
def GetPrivateBytes(pid): """Calculate the amount of private, writeable memory allocated to a process. """ psData = GetProcessData(pid) return psData[5]
fbd50777e5ac7ab17d2fdcd56e6215f32d9b25ed /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13067/fbd50777e5ac7ab17d2fdcd56e6215f32d9b25ed/cmanager_mac.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 6014, 2160, 12, 6610, 4672, 3536, 8695, 326, 3844, 434, 3238, 16, 30223, 3778, 11977, 358, 279, 1207, 18, 3536, 4250, 751, 273, 968, 2227, 751, 12, 6610, 13, 327, 4250, 751, 63, 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, 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, 6014, 2160, 12, 6610, 4672, 3536, 8695, 326, 3844, 434, 3238, 16, 30223, 3778, 11977, 358, 279, 1207, 18, 3536, 4250, 751, 273, 968, 2227, 751, 12, 6610, 13, 327, 4250, 751, 63, 2...
input.AddString("hello") input.AddString("foo")
input.AddString("aaba")
def testTranslation(self): input = openfst.StdVectorFst() input.AddString("hello") input.AddString("foo") fst = openfst.StdVectorFst() fst.AddTranslation("hello","world") fst.Write("trans.fst") result = openfst.StdVectorFst() openfst.Compose(input,fst,result) shortest = openfst.StdVectorFst() openfst.ShortestPath(resul...
925b2d4611c04131e050b3dc88593e61d4f10a2a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5933/925b2d4611c04131e050b3dc88593e61d4f10a2a/test-openfst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 6717, 12, 2890, 4672, 810, 273, 1696, 74, 334, 18, 10436, 5018, 42, 334, 1435, 810, 18, 986, 780, 2932, 69, 378, 69, 7923, 20223, 273, 1696, 74, 334, 18, 10436, 5018, 42, 334, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 6717, 12, 2890, 4672, 810, 273, 1696, 74, 334, 18, 10436, 5018, 42, 334, 1435, 810, 18, 986, 780, 2932, 69, 378, 69, 7923, 20223, 273, 1696, 74, 334, 18, 10436, 5018, 42, 334, ...
"""Return a list of methods in the order they were specified."""
r"""Return a list of methods in the order they were specified. Example:: >>> import pprint >>> pprint = pprint.PrettyPrinter(width=69).pprint >>> from tests import getInterfaceDetails >>> details = getInterfaceDetails() >>> methods = details.getMethods() >>> methods = [m.items() for m in methods] >>> methods = [m fo...
def getMethods(self): """Return a list of methods in the order they were specified.""" methods = [] return [{'name': method.getName(), 'signature': method.getSignatureString(), 'doc': stx2html(method.getDoc() or '', 3)} for method in _get(self.context, IMethod).values()]
8473912e22d1506b9091ee78e7e1c2f1b2eab272 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9672/8473912e22d1506b9091ee78e7e1c2f1b2eab272/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15429, 12, 2890, 4672, 436, 8395, 990, 279, 666, 434, 2590, 316, 326, 1353, 2898, 4591, 1269, 18, 225, 5090, 2866, 225, 4080, 1930, 18771, 4080, 18771, 273, 18771, 18, 20491, 12149, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15429, 12, 2890, 4672, 436, 8395, 990, 279, 666, 434, 2590, 316, 326, 1353, 2898, 4591, 1269, 18, 225, 5090, 2866, 225, 4080, 1930, 18771, 4080, 18771, 273, 18771, 18, 20491, 12149, 12, ...
self.mainFrame.UpdateWindowUI (wx.UPDATE_UI_FROMIDLE | wx.UPDATE_UI_RECURSE)
self.mainFrame.UpdateWindowUI(wx.UPDATE_UI_FROMIDLE | wx.UPDATE_UI_RECURSE)
def OnIdle(self, event): # Adding a handler for catching a set focus event doesn't catch # every change to the focus. It's difficult to preprocess every event # so we check for focus changes in OnIdle. Also call UpdateUI when # focus changes.
1542a92c6602afb900ac254b11a088425513fec0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/1542a92c6602afb900ac254b11a088425513fec0/Application.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 13834, 12, 2890, 16, 871, 4672, 468, 21240, 279, 1838, 364, 1044, 310, 279, 444, 7155, 871, 3302, 1404, 1044, 468, 3614, 2549, 358, 326, 7155, 18, 2597, 1807, 3122, 17551, 358, 179...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13834, 12, 2890, 16, 871, 4672, 468, 21240, 279, 1838, 364, 1044, 310, 279, 444, 7155, 871, 3302, 1404, 1044, 468, 3614, 2549, 358, 326, 7155, 18, 2597, 1807, 3122, 17551, 358, 179...
self.text.append(self.new_line)
self.text.append(self.new_line)
def process_br(self, node): self.text.append(self.new_line) # without this, std multi-line text below some heading misses a whitespace # when it gets merged to float text, like word word wordword word word
835c8a2014edf1bcbe23882c0c60e3954b5ae187 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/835c8a2014edf1bcbe23882c0c60e3954b5ae187/text_html_text_moin_wiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2848, 12, 2890, 16, 756, 4672, 365, 18, 955, 18, 6923, 12, 2890, 18, 2704, 67, 1369, 13, 468, 2887, 333, 16, 2044, 3309, 17, 1369, 977, 5712, 2690, 11053, 12543, 281, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2848, 12, 2890, 16, 756, 4672, 365, 18, 955, 18, 6923, 12, 2890, 18, 2704, 67, 1369, 13, 468, 2887, 333, 16, 2044, 3309, 17, 1369, 977, 5712, 2690, 11053, 12543, 281, 279, ...
def addFeed(self, url, showTemplate = None):
def addFeed(self, url, showTemplate = None, selected = '1'):
def addFeed(self, url, showTemplate = None): db.beginUpdate() db.saveCursor()
a8e50d0023a7f5b1e17606ba03ceb09258eeb438 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/a8e50d0023a7f5b1e17606ba03ceb09258eeb438/app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 8141, 12, 2890, 16, 880, 16, 2405, 2283, 273, 599, 16, 3170, 273, 296, 21, 11, 4672, 1319, 18, 10086, 1891, 1435, 1319, 18, 5688, 6688, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 527, 8141, 12, 2890, 16, 880, 16, 2405, 2283, 273, 599, 16, 3170, 273, 296, 21, 11, 4672, 1319, 18, 10086, 1891, 1435, 1319, 18, 5688, 6688, 1435, 2, -100, -100, -100, -100, -100, -100...
test('join', u' ', u'w x y z', Sequence())
test('join', u' ', u'w x y z', Sequence('wxyz'))
def __getitem__(self, i): return self.seq[i]
6f1b6b81fb8b054ff55e54b5803518ea00cea159 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/6f1b6b81fb8b054ff55e54b5803518ea00cea159/test_unicode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 277, 4672, 327, 365, 18, 5436, 63, 77, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 277, 4672, 327, 365, 18, 5436, 63, 77, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if tag[0] is '{':
if tag[0] == '{':
def local(tag): """Extract the local tag from a namespaced tag name.""" if tag[0] is '{': return tag[tag.index('}')+1:] return tag
5f38465441061de22d67bc9df2281f70d7ac37ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/5f38465441061de22d67bc9df2281f70d7ac37ce/PhyloXMLIO.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1191, 12, 2692, 4672, 3536, 4976, 326, 1191, 1047, 628, 279, 22264, 1047, 508, 12123, 309, 1047, 63, 20, 65, 422, 2292, 4278, 327, 1047, 63, 2692, 18, 1615, 2668, 1713, 27921, 21, 26894,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1191, 12, 2692, 4672, 3536, 4976, 326, 1191, 1047, 628, 279, 22264, 1047, 508, 12123, 309, 1047, 63, 20, 65, 422, 2292, 4278, 327, 1047, 63, 2692, 18, 1615, 2668, 1713, 27921, 21, 26894,...
ase.io.write('POSCAR', self.atoms_sorted, format='vasp')
def calculate(self, atoms): """Generate necessary files in the working directory. If the directory does not exist it will be created. """ positions = atoms.get_positions() self.write_incar(atoms) self.write_potcar() ase.io.write('POSCAR', self.atoms_sorted, format='vasp') self.write_kpoints()
928f0c1dcd0d64306be926255024138ca075f48e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1380/928f0c1dcd0d64306be926255024138ca075f48e/vasp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4604, 12, 2890, 16, 9006, 4672, 3536, 4625, 4573, 1390, 316, 326, 5960, 1867, 18, 225, 971, 326, 1867, 1552, 486, 1005, 518, 903, 506, 2522, 18, 3536, 6865, 273, 9006, 18, 588, 67, 123...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4604, 12, 2890, 16, 9006, 4672, 3536, 4625, 4573, 1390, 316, 326, 5960, 1867, 18, 225, 971, 326, 1867, 1552, 486, 1005, 518, 903, 506, 2522, 18, 3536, 6865, 273, 9006, 18, 588, 67, 123...
security.declareProtected(CMFCorePermissions.ModifyPortalContent,
security.declareProtected(permissions.ModifyPortalContent,
def addSchemata(self, name): """Create a new schema by adding a new field with schemata 'name' """ from Products.Archetypes.Field import StringField
209dd0431121be615174f562fcf89fd6fae6c083 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/209dd0431121be615174f562fcf89fd6fae6c083/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 55, 1036, 396, 12, 2890, 16, 508, 4672, 3536, 1684, 279, 394, 1963, 635, 6534, 279, 394, 652, 598, 30140, 396, 296, 529, 11, 3536, 628, 8094, 87, 18, 12269, 15180, 18, 974, 1930, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 55, 1036, 396, 12, 2890, 16, 508, 4672, 3536, 1684, 279, 394, 1963, 635, 6534, 279, 394, 652, 598, 30140, 396, 296, 529, 11, 3536, 628, 8094, 87, 18, 12269, 15180, 18, 974, 1930, ...
run( "cd %s; DEBFULLNAME='CLAM Team' DEBEMAIL='clam@iua.upf.edu' dch -d 'Autobuilt package'"%(srcdir) ) run ( "dpkg-source -b %s"%(srcdir))
run( "tar cvfz %s %s"%(tarball, srcdir) ) run( "cd %s; DEBFULLNAME='CLAM Team' DEBEMAIL='clam@iua.upf.edu' dch -d 'Autobuilt package' --distribution='UNRELEASED'"%(srcdir) ) run( "dpkg-source -b %s"%(srcdir))
def phase(desc) : print "\033[33m== ", desc, "\033[0m"
9613494dff77aa6051659e49b19015cf236a0482 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1456/9613494dff77aa6051659e49b19015cf236a0482/doDebianPackages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6855, 12, 5569, 13, 294, 1172, 1548, 15265, 63, 3707, 81, 631, 3104, 3044, 16, 1548, 15265, 63, 20, 81, 6, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6855, 12, 5569, 13, 294, 1172, 1548, 15265, 63, 3707, 81, 631, 3104, 3044, 16, 1548, 15265, 63, 20, 81, 6, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if path[:n] != prefix: del cache[path]
if not path.startswith(prefix): forget(path)
def forget_except_prefix(prefix): """Remove all pathnames except with a given prefix. Normally used with prefix = '/' after a chdir().""" n = len(prefix) for path in cache.keys(): if path[:n] != prefix: del cache[path]
0149e84af280523f74bc2bccb6505eb12cf5bf9c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/0149e84af280523f74bc2bccb6505eb12cf5bf9c/statcache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13776, 67, 14137, 67, 3239, 12, 3239, 4672, 3536, 3288, 777, 589, 1973, 1335, 598, 279, 864, 1633, 18, 24773, 1230, 1399, 598, 1633, 273, 2023, 1839, 279, 14029, 1435, 12123, 290, 273, 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, 13776, 67, 14137, 67, 3239, 12, 3239, 4672, 3536, 3288, 777, 589, 1973, 1335, 598, 279, 864, 1633, 18, 24773, 1230, 1399, 598, 1633, 273, 2023, 1839, 279, 14029, 1435, 12123, 290, 273, 5...
conduit=conduit, format=format)
conduit=conduit, format=format, view=self.itsView)
def onImportIcalendarEvent(self, event): # triggered from "Test | Import iCalendar" Menu parent = self.findPath("//userdata/contentitems")
3a8ade707789b9283f70a35612703d5e667f9b8e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/3a8ade707789b9283f70a35612703d5e667f9b8e/Main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 5010, 45, 11650, 1133, 12, 2890, 16, 871, 4672, 468, 10861, 628, 315, 4709, 571, 6164, 277, 7335, 6, 9809, 982, 273, 365, 18, 4720, 743, 2932, 759, 1355, 892, 19, 1745, 3319, 7923...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 5010, 45, 11650, 1133, 12, 2890, 16, 871, 4672, 468, 10861, 628, 315, 4709, 571, 6164, 277, 7335, 6, 9809, 982, 273, 365, 18, 4720, 743, 2932, 759, 1355, 892, 19, 1745, 3319, 7923...
visits.append(visit(child(**kwargs)))
visits.append(visit(child, **kwargs))
def parallel_queue(queue, **kwargs): """Run tasks in the queue in sequence. The queue will run each task in the queue in sequence. If the queue is empty, it will stall until the queue receives new items. Note: the queue task *never* returns a success or failure code. The queue should be an object implementing pop()....
28841d8ccf54b3b5329f2dd4e561353bcc6c597a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13175/28841d8ccf54b3b5329f2dd4e561353bcc6c597a/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7230, 67, 4000, 12, 4000, 16, 2826, 4333, 4672, 3536, 1997, 4592, 316, 326, 2389, 316, 3102, 18, 225, 1021, 2389, 903, 1086, 1517, 1562, 316, 326, 2389, 316, 3102, 18, 971, 326, 2389, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7230, 67, 4000, 12, 4000, 16, 2826, 4333, 4672, 3536, 1997, 4592, 316, 326, 2389, 316, 3102, 18, 225, 1021, 2389, 903, 1086, 1517, 1562, 316, 326, 2389, 316, 3102, 18, 971, 326, 2389, ...
if len(self.chan_dict[program.channel_id].programs) and \ self.chan_dict[program.channel_id].programs[-1].stop > program.start:
p = self.chan_dict[program.channel_id].programs if len(p) and p[-1].start < program.stop and p[-1].stop > program.start:
def AddProgram(self, program): # The channel must be present, or the program is # silently dropped if self.chan_dict.has_key(program.channel_id): if len(self.chan_dict[program.channel_id].programs) and \ self.chan_dict[program.channel_id].programs[-1].stop > program.start: # the tv guide is corrupt, the last entry has ...
7c4133a45ebb14c05b3c5878ec56bf25d402f387 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/7c4133a45ebb14c05b3c5878ec56bf25d402f387/epg_types.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1436, 9459, 12, 2890, 16, 5402, 4672, 468, 1021, 1904, 1297, 506, 3430, 16, 578, 326, 5402, 353, 468, 22274, 14611, 309, 365, 18, 7472, 67, 1576, 18, 5332, 67, 856, 12, 12890, 18, 4327...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1436, 9459, 12, 2890, 16, 5402, 4672, 468, 1021, 1904, 1297, 506, 3430, 16, 578, 326, 5402, 353, 468, 22274, 14611, 309, 365, 18, 7472, 67, 1576, 18, 5332, 67, 856, 12, 12890, 18, 4327...
if uri.startswith(baseuri): return uri
def resolveuri(baseuri, uri): if uri.startswith(baseuri): return uri if uri.startswith('/'): scheme, netloc, _path = urlsplit(baseuri) return '%s://%s%s' % (scheme, netloc, uri) return '%s/%s' % (baseuri, uri)
29c370e1e04fb9695602f2cdcbd6962d02def7bb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/373/29c370e1e04fb9695602f2cdcbd6962d02def7bb/comm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 1650, 12, 1969, 1650, 16, 2003, 4672, 309, 2003, 18, 17514, 1918, 2668, 2473, 4672, 4355, 16, 17345, 16, 389, 803, 273, 880, 4939, 12, 1969, 1650, 13, 327, 1995, 87, 23155, 87, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 1650, 12, 1969, 1650, 16, 2003, 4672, 309, 2003, 18, 17514, 1918, 2668, 2473, 4672, 4355, 16, 17345, 16, 389, 803, 273, 880, 4939, 12, 1969, 1650, 13, 327, 1995, 87, 23155, 87, 9...
return DTMLDocument.__call__(self,client,REQUEST,RESPONSE,**kw)
return DTMLDocument.__call__( self.__of__(self.folder()), client, REQUEST, RESPONSE, **kw)
def evaluatePreRenderedAsDtml(self,client=None, REQUEST={}, RESPONSE=None, **kw): # optimization: to save memory, avoid unnecessarily calling DTML # and generating _v_blocks data if not self.hasDynamicContent(): return self.preRendered() return DTMLDocument.__call__(self,client,REQUEST,RESPONSE,**kw)
67cdb1b268b85ba3888d1ec09da653b6ee1d514c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5225/67cdb1b268b85ba3888d1ec09da653b6ee1d514c/ZWikiPage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5956, 1386, 19222, 1463, 40, 1419, 12, 2890, 16, 2625, 33, 7036, 16, 12492, 28793, 20645, 33, 7036, 16, 2826, 9987, 4672, 468, 14850, 30, 358, 1923, 3778, 16, 4543, 16209, 21513, 4440, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5956, 1386, 19222, 1463, 40, 1419, 12, 2890, 16, 2625, 33, 7036, 16, 12492, 28793, 20645, 33, 7036, 16, 2826, 9987, 4672, 468, 14850, 30, 358, 1923, 3778, 16, 4543, 16209, 21513, 4440, 4...
cmndef = r'\underline{' + cmndef + '}'
cmndef += r'\let\$$@ul=\underline'
cmndef = r'\underline{' + cmndef + '}'
4d385e994dd93f663c8e5897bfa9d153388d863a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6148/4d385e994dd93f663c8e5897bfa9d153388d863a/latex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 5003, 82, 536, 273, 436, 8314, 9341, 1369, 27828, 397, 5003, 82, 536, 397, 9571, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 5003, 82, 536, 273, 436, 8314, 9341, 1369, 27828, 397, 5003, 82, 536, 397, 9571, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
for l in text[1:]: lines.append (big_indent + l)
def generate_help (self, header=None): """Generate help text (a list of strings, one per suggested line of output) from the option table for this FancyGetopt object."""
373dbfa723e79d33c97007194f4a674afedd5c96 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/373dbfa723e79d33c97007194f4a674afedd5c96/fancy_getopt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 5201, 261, 2890, 16, 1446, 33, 7036, 4672, 3536, 4625, 2809, 977, 261, 69, 666, 434, 2064, 16, 1245, 1534, 22168, 980, 434, 876, 13, 628, 326, 1456, 1014, 364, 333, 478, 1251...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 5201, 261, 2890, 16, 1446, 33, 7036, 4672, 3536, 4625, 2809, 977, 261, 69, 666, 434, 2064, 16, 1245, 1534, 22168, 980, 434, 876, 13, 628, 326, 1456, 1014, 364, 333, 478, 1251...
>>> element = ET.Element("tag", key="value")
>>> element = ET.Element("t\xe4g", key="value")
def interface(): """ Test element tree interface. >>> element = ET.Element("tag") >>> check_element(element) >>> tree = ET.ElementTree(element) >>> check_element(tree.getroot()) >>> element = ET.Element("tag", key="value") >>> tree = ET.ElementTree(element) >>> repr(element) # doctest: +ELLIPSIS "<Element 'tag' at ...
e67eb8aec36bc3fe66d209e17c0c82e324b9e076 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/e67eb8aec36bc3fe66d209e17c0c82e324b9e076/test_xml_etree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1560, 13332, 3536, 7766, 930, 2151, 1560, 18, 225, 4080, 930, 273, 4518, 18, 1046, 2932, 2692, 7923, 4080, 866, 67, 2956, 12, 2956, 13, 4080, 2151, 273, 4518, 18, 1046, 2471, 12, 2956, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13332, 3536, 7766, 930, 2151, 1560, 18, 225, 4080, 930, 273, 4518, 18, 1046, 2932, 2692, 7923, 4080, 866, 67, 2956, 12, 2956, 13, 4080, 2151, 273, 4518, 18, 1046, 2471, 12, 2956, ...
print matrix_string
def convert(self, matrix):
05e86db0fbca14063d3168010cfa6ef30bb1e07e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3290/05e86db0fbca14063d3168010cfa6ef30bb1e07e/Mat2symop.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 12, 2890, 16, 3148, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 12, 2890, 16, 3148, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
root = self.logger
root = self.log
def tagLogger(self, jobid): idstr = [] if not jobid: # clear out the previous info if self.jobid: for key in self.jobid.keys(): self._resetLogJobId(self.jobid, key) else: self.jobid = {} jobid = self.jobid idstr.append("unknown") else: self.jobid = jobid for key in self.jobid.keys(): idstr.append("%s=%s" % (key, str(jo...
44baa16a26a9b230a94f0b9a4363757280ab7dc4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6545/44baa16a26a9b230a94f0b9a4363757280ab7dc4/pipeline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1047, 3328, 12, 2890, 16, 1719, 350, 4672, 612, 701, 273, 5378, 309, 486, 1719, 350, 30, 468, 2424, 596, 326, 2416, 1123, 309, 365, 18, 4688, 350, 30, 364, 498, 316, 365, 18, 4688, 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, 1047, 3328, 12, 2890, 16, 1719, 350, 4672, 612, 701, 273, 5378, 309, 486, 1719, 350, 30, 468, 2424, 596, 326, 2416, 1123, 309, 365, 18, 4688, 350, 30, 364, 498, 316, 365, 18, 4688, 3...
self.timer.stop()
self.continue_updating = False
def update(self): if self.entry_count <= 0: self.timer.stop() self.pd.hide() self.process_duplicates() return
df3208a4b5ae0194a2f572763c1c31a713a629f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/df3208a4b5ae0194a2f572763c1c31a713a629f7/add.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 309, 365, 18, 4099, 67, 1883, 1648, 374, 30, 365, 18, 17143, 67, 5533, 1776, 273, 1083, 365, 18, 22353, 18, 11248, 1435, 365, 18, 2567, 67, 22449, 1435, 327, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 309, 365, 18, 4099, 67, 1883, 1648, 374, 30, 365, 18, 17143, 67, 5533, 1776, 273, 1083, 365, 18, 22353, 18, 11248, 1435, 365, 18, 2567, 67, 22449, 1435, 327, 2, ...
print "if no directory arguments, -l sys.path is assumed"
print " if no directory arguments, -l sys.path is assumed" print "-x regexp: skip files matching the regular expression regexp" print " the regexp is search for in the full path of the file"
def main(): """Script main program.""" import getopt try: opts, args = getopt.getopt(sys.argv[1:], 'lfd:') except getopt.error, msg: print msg print "usage: compileall [-l] [-f] [-d destdir] [directory ...]" print "-l: don't recurse down" print "-f: force rebuild even if timestamps are up-to-date" print "-d destdir: pu...
c8123ba8709fb01b32659d2d930ad099c5e995e2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/c8123ba8709fb01b32659d2d930ad099c5e995e2/compileall.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 3651, 2774, 5402, 12123, 1930, 336, 3838, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 296, 80, 8313, 2497, 13, 1335...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 3651, 2774, 5402, 12123, 1930, 336, 3838, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 296, 80, 8313, 2497, 13, 1335...
vulcan_datadir = path.joinpath(download_path,"data_dir.zip")
base_path = path(os.getcwd().strip("buildscripts")) vulcan_datadir = path.joinpath(base_path,"data_dir")
def unpack_datadir(): ''' Unzips data_dir.zip into data_dir/ ''' vulcan_datadir = path.joinpath(download_path,"data_dir.zip") info("Moving data_dir into %s" % source_path) copy(path.joinpath(download_path,'data_dir.zip'),source_path) with pushd(source_path): unzip_file("data_dir.zip") os.rename("data","data_dir") os.re...
1bd170c7ba5b44a276f50c2ebe8fad07f47a124a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3279/1bd170c7ba5b44a276f50c2ebe8fad07f47a124a/pavement.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6167, 67, 3404, 361, 481, 13332, 9163, 1351, 4450, 87, 501, 67, 1214, 18, 4450, 1368, 501, 67, 1214, 19, 9163, 1026, 67, 803, 273, 225, 589, 12, 538, 18, 588, 11089, 7675, 6406, 2932, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6167, 67, 3404, 361, 481, 13332, 9163, 1351, 4450, 87, 501, 67, 1214, 18, 4450, 1368, 501, 67, 1214, 19, 9163, 1026, 67, 803, 273, 225, 589, 12, 538, 18, 588, 11089, 7675, 6406, 2932, ...
row_result[description[i]]=cPickle.loads(base64.decode(row[i]))
row_result[description[i]]=cPickle.loads(base64.decodestring(row[i]))
def convert(description=[],rows=[],oneItem=False,decode=[]): result=[] for row in rows: row_result={} for i in xrange(0,len(description)): if description[i] in decode: row_result[description[i]]=cPickle.loads(base64.decode(row[i])) else: row_result[description[i]]=row[i] result.append(row_result) if oneItem: if len(res...
50e83370fa87a661dafd19a9f7103839c585ebd9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8886/50e83370fa87a661dafd19a9f7103839c585ebd9/Session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 12, 3384, 22850, 6487, 3870, 22850, 6487, 476, 1180, 33, 8381, 16, 3922, 33, 8526, 4672, 563, 33, 8526, 364, 1027, 316, 2595, 30, 1027, 67, 2088, 12938, 364, 277, 316, 12314, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 12, 3384, 22850, 6487, 3870, 22850, 6487, 476, 1180, 33, 8381, 16, 3922, 33, 8526, 4672, 563, 33, 8526, 364, 1027, 316, 2595, 30, 1027, 67, 2088, 12938, 364, 277, 316, 12314, 12, ...
model = str(self._metadata['Exif.Image.Model']).strip()
model = self.get_tag_value('Exif.Image.Model').strip()
def get_camera_name(self): ''' Gets vendor and model name from EXIF and tries to construct camera name out of this. This is a bit fuzzy, because diferent vendors put different information to both tags. ''' try: model = str(self._metadata['Exif.Image.Model']).strip() # Terminate string at \x00 pos = model.find('\x00') i...
1d7d22744884dda5fa3f30068b7831073b97ade4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4663/1d7d22744884dda5fa3f30068b7831073b97ade4/metadata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 26426, 67, 529, 12, 2890, 4672, 9163, 11881, 8556, 471, 938, 508, 628, 5675, 5501, 471, 9327, 358, 4872, 10836, 508, 596, 434, 333, 18, 1220, 353, 279, 2831, 21315, 16, 2724, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26426, 67, 529, 12, 2890, 4672, 9163, 11881, 8556, 471, 938, 508, 628, 5675, 5501, 471, 9327, 358, 4872, 10836, 508, 596, 434, 333, 18, 1220, 353, 279, 2831, 21315, 16, 2724, ...
for w in works if limit is None else works[:limit]
for w in works if limit is None else works[:limit]:
def get_covers(limit=20): collect = [] for w in works if limit is None else works[:limit] i = { 'key': w.key, 'title': w.title, 'authors': [dict(a) for a in w.authors], } if w.get('cover_edition_key', None): i['cover_edition_key'] = w.cover_edition_key collect.append(i) return collect
d685fd7b6c1a1ed42a0e85a03ba02ba24eac3354 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/d685fd7b6c1a1ed42a0e85a03ba02ba24eac3354/code.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 14014, 414, 12, 3595, 33, 3462, 4672, 3274, 273, 5378, 364, 341, 316, 6330, 309, 1800, 353, 599, 469, 6330, 10531, 3595, 14542, 277, 273, 288, 296, 856, 4278, 341, 18, 856, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 14014, 414, 12, 3595, 33, 3462, 4672, 3274, 273, 5378, 364, 341, 316, 6330, 309, 1800, 353, 599, 469, 6330, 10531, 3595, 14542, 277, 273, 288, 296, 856, 4278, 341, 18, 856, 16...
result[tag] = data
metadata[tag] = data
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...
return make_uid(new.instancemethod(obj, None, cls))
return make_uid(new.instancemethod(obj, None, cls), container, name)
def findUID(name, container, docmap=None): """ Attempt to find the UID for the object that can be accessed with the name C{name} from the module C{module}. @param name: The name used to identify the object. @type name: C{string} @param container: The UID of the class or module containing the object. @type container: L...
bc6fdb1f7c2fbb84eaa1f05b7b62cee151e2b503 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/bc6fdb1f7c2fbb84eaa1f05b7b62cee151e2b503/uid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 3060, 12, 529, 16, 1478, 16, 997, 1458, 33, 7036, 4672, 3536, 12864, 358, 1104, 326, 10034, 364, 326, 733, 716, 848, 506, 15539, 598, 326, 508, 385, 95, 529, 97, 628, 326, 1605, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3060, 12, 529, 16, 1478, 16, 997, 1458, 33, 7036, 4672, 3536, 12864, 358, 1104, 326, 10034, 364, 326, 733, 716, 848, 506, 15539, 598, 326, 508, 385, 95, 529, 97, 628, 326, 1605, ...
f()
self.f()
def f(): return 1
416309cb7a3f1bd0bd7f6fa6ac03d6f554342776 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/416309cb7a3f1bd0bd7f6fa6ac03d6f554342776/test_trace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 13332, 327, 404, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 13332, 327, 404, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
return '<%s %s>' % (`self.__class__`, self.whole_name())
return '<%s %s, %s>' % (`self.__class__`, self.whole_name(), self.date)
def __repr__(self): return '<%s %s>' % (`self.__class__`, self.whole_name())
8dc74ecad542ac5861dfd44d6e8aa27d1cd65e16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8dc74ecad542ac5861dfd44d6e8aa27d1cd65e16/ZopeFTP.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 2368, 9, 87, 738, 87, 1870, 738, 21863, 2890, 16186, 1106, 972, 9191, 365, 18, 3350, 790, 67, 529, 10756, 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, 1001, 12715, 972, 12, 2890, 4672, 327, 2368, 9, 87, 738, 87, 1870, 738, 21863, 2890, 16186, 1106, 972, 9191, 365, 18, 3350, 790, 67, 529, 10756, 2, -100, -100, -100, -100, -100, -100, ...
users = defaultdict(list) pages = defaultdict(int)
users = {} pages = {}
def print_recent_changes(self, days=7, show=10): now = datetime.utcnow() then = now - timedelta(days=days) print "From %s to %s" % (then, now) changes = self.get_recent_changes(now=now, then=then) num_changes = len(changes) print "%d wiki changes in the past week" % num_changes if num_changes == 500: print "Warning: Nu...
ba6df619ca5568706fa7715f5cf7b072d14d8a48 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9952/ba6df619ca5568706fa7715f5cf7b072d14d8a48/wiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 20872, 67, 6329, 12, 2890, 16, 4681, 33, 27, 16, 2405, 33, 2163, 4672, 2037, 273, 3314, 18, 17892, 3338, 1435, 1508, 273, 2037, 300, 10661, 12, 9810, 33, 9810, 13, 1172, 315,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 20872, 67, 6329, 12, 2890, 16, 4681, 33, 27, 16, 2405, 33, 2163, 4672, 2037, 273, 3314, 18, 17892, 3338, 1435, 1508, 273, 2037, 300, 10661, 12, 9810, 33, 9810, 13, 1172, 315,...
while not self.state:
if not self.state:
def wait(self): self.posted.acquire() while not self.state: self.posted.wait() self.posted.release()
e4cf5ba7ed7864da1ef95b75e2136b62314dd27f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e4cf5ba7ed7864da1ef95b75e2136b62314dd27f/sync.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 12, 2890, 4672, 365, 18, 2767, 329, 18, 1077, 1039, 1435, 309, 486, 365, 18, 2019, 30, 365, 18, 2767, 329, 18, 7048, 1435, 365, 18, 2767, 329, 18, 9340, 1435, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 12, 2890, 4672, 365, 18, 2767, 329, 18, 1077, 1039, 1435, 309, 486, 365, 18, 2019, 30, 365, 18, 2767, 329, 18, 7048, 1435, 365, 18, 2767, 329, 18, 9340, 1435, 2, -100, -100, -1...
th = ConnectionThread(term)
th = ConnectionThread(term, idx)
def run(self): self.terminal.connect()
8ff643f3c3cc95b3308c8ec93abb975815ecf8cc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13269/8ff643f3c3cc95b3308c8ec93abb975815ecf8cc/pytty.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 365, 18, 15979, 18, 3612, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1086, 12, 2890, 4672, 365, 18, 15979, 18, 3612, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
self.block_start = block_start self.clock_start = clock_start
self.chunk.block_start = block_start self.chunk.clock_start = clock_start
def load_state(self): current_block = self.db_manager.state_query('current_block') block_start = self.db_manager.state_query('block_start') clock_start = self.db_manager.state_query('clock_start') old_clock = self.db_manager.state_query('old_clock') time_elapsed = self.db_manager.state_query('time_elapsed')
984b2e3c8365963f15bb5b4ee2fffecd2cdf0d7a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8549/984b2e3c8365963f15bb5b4ee2fffecd2cdf0d7a/dvr-recover.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 2019, 12, 2890, 4672, 783, 67, 2629, 273, 365, 18, 1966, 67, 4181, 18, 2019, 67, 2271, 2668, 2972, 67, 2629, 6134, 1203, 67, 1937, 273, 365, 18, 1966, 67, 4181, 18, 2019, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 2019, 12, 2890, 4672, 783, 67, 2629, 273, 365, 18, 1966, 67, 4181, 18, 2019, 67, 2271, 2668, 2972, 67, 2629, 6134, 1203, 67, 1937, 273, 365, 18, 1966, 67, 4181, 18, 2019, 6...
path = self.device_node grub_model.append([path])
path = self.device_node
def build_partitions(self): gtk.gdk.threads_enter() self.window.set_sensitive(False) # "busy" cursor. cursor = gtk.gdk.Cursor(gtk.gdk.WATCH) self.window.window.set_cursor(cursor) from progress import ProgressDialog dialog = ProgressDialog() dialog.show(title=_("Installer"), label=_("Scanning disk %s for partitions") % ...
1cfbc4bd61d7c105fb066905a095f8a0565e6206 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1953/1cfbc4bd61d7c105fb066905a095f8a0565e6206/gtk_interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 21275, 12, 2890, 4672, 22718, 18, 75, 2883, 18, 12495, 67, 2328, 1435, 365, 18, 5668, 18, 542, 67, 23481, 12, 8381, 13, 468, 315, 9274, 93, 6, 3347, 18, 3347, 273, 22718, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 21275, 12, 2890, 4672, 22718, 18, 75, 2883, 18, 12495, 67, 2328, 1435, 365, 18, 5668, 18, 542, 67, 23481, 12, 8381, 13, 468, 315, 9274, 93, 6, 3347, 18, 3347, 273, 22718, 1...
weight = 0.0
def stiffline_wls(x, y, sigmay, xa, epsilon, a=None): d = 1 maxiter = 10000 tolerance = 1e-6 * epsilon matcha = stiffline_match(x, xa) # initialize na = len(xa) if a == None: a = zeros(na) + mean(y) iter = 0 dchi2 = 100 * tolerance chi2 = stiffline_chi2(x, y, sigmay, xa, a, epsilon) while (iter < maxiter) and (dchi2 > ...
77584d5d988b57c9e19f1c5bb695f072f7aa3bbf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11440/77584d5d988b57c9e19f1c5bb695f072f7aa3bbf/crossvalidate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 384, 3048, 1369, 67, 91, 3251, 12, 92, 16, 677, 16, 3553, 24877, 16, 14139, 16, 12263, 16, 279, 33, 7036, 4672, 302, 273, 404, 25743, 273, 12619, 10673, 273, 404, 73, 17, 26, 380, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 384, 3048, 1369, 67, 91, 3251, 12, 92, 16, 677, 16, 3553, 24877, 16, 14139, 16, 12263, 16, 279, 33, 7036, 4672, 302, 273, 404, 25743, 273, 12619, 10673, 273, 404, 73, 17, 26, 380, 12...
saved = {}
saved = self.vars.copy()
def push_vars (self, **dict): """ For each named argument "key=val", save the value of variable "key" and assign it the value "val". """ saved = {} for (key, val) in dict.items(): saved[key] = self.vars[key] self.vars[key] = val self.vars_stack.append(saved)
ce7bd4fb6fecd708f029caa5338a8916e16fd148 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10102/ce7bd4fb6fecd708f029caa5338a8916e16fd148/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1817, 67, 4699, 261, 2890, 16, 2826, 1576, 4672, 3536, 2457, 1517, 4141, 1237, 315, 856, 33, 1125, 3113, 1923, 326, 460, 434, 2190, 315, 856, 6, 471, 2683, 518, 326, 460, 315, 1125, 96...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1817, 67, 4699, 261, 2890, 16, 2826, 1576, 4672, 3536, 2457, 1517, 4141, 1237, 315, 856, 33, 1125, 3113, 1923, 326, 460, 434, 2190, 315, 856, 6, 471, 2683, 518, 326, 460, 315, 1125, 96...
help="The Recipient of email. "
help="The Recipient of email. "
def change_model(self, cursor, user, ids, object_name, context=None): if object_name: mod_name = self.pool.get('ir.model').read( cursor, user, object_name, ['model'], context)['model'] else: mod_name = False return { 'value':{'model_int_name':mod_name} }
c73e17329c92d262f57a45e57664e059f5ce62c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/c73e17329c92d262f57a45e57664e059f5ce62c3/email_template.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 67, 2284, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 733, 67, 529, 16, 819, 33, 7036, 4672, 309, 733, 67, 529, 30, 681, 67, 529, 273, 365, 18, 6011, 18, 588, 2668, 481, 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, 2549, 67, 2284, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 733, 67, 529, 16, 819, 33, 7036, 4672, 309, 733, 67, 529, 30, 681, 67, 529, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, ...
while TOPSerial.inWaiting() > 0: result = result + TOPSerial.read(TOPSerial.inWaiting()) sleep(0.1) self.replace_text(result) else: module = models.models[chosen_model] exec('from models.%s import ModelConnector' % module) mc = ModelConnector(chosen_port) try: mc.open() except serial.SerialException, detail: e = Err...
tops_graphs.GraphSimple(parsed_points,sd)
def connect_action(self, event): chosen_model = self.optionMODEL_value.get() chosen_port = self.option1_value.get() if chosen_model == 'Custom': # FIXME : convert this section to the new Connector API. # No more string construction! cs = "serial.Serial(" for k,v in self.options.items(): print k,v n, t = v cs = cs...
83690b2a74db17b210065808720c3c663969cfc4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3067/83690b2a74db17b210065808720c3c663969cfc4/tkops.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 67, 1128, 12, 2890, 16, 871, 4672, 225, 10447, 67, 2284, 273, 365, 18, 3482, 17391, 67, 1132, 18, 588, 1435, 10447, 67, 655, 273, 365, 18, 3482, 21, 67, 1132, 18, 588, 1435, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 67, 1128, 12, 2890, 16, 871, 4672, 225, 10447, 67, 2284, 273, 365, 18, 3482, 17391, 67, 1132, 18, 588, 1435, 10447, 67, 655, 273, 365, 18, 3482, 21, 67, 1132, 18, 588, 1435, 22...
return dict(status=True, retirement=retirement)
return dict(status=True, retirement=retirement, aclStatusFields=self.acl_status_translations)
def toggle_retirement(self, pkg_listing_id): '''Retire/Unretire package
82821c2c60c261bc181b5644e2fb854c426d3132 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9953/82821c2c60c261bc181b5644e2fb854c426d3132/dispatcher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10486, 67, 1349, 577, 475, 12, 2890, 16, 3475, 67, 21228, 67, 350, 4672, 9163, 7055, 577, 19, 984, 1349, 577, 2181, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10486, 67, 1349, 577, 475, 12, 2890, 16, 3475, 67, 21228, 67, 350, 4672, 9163, 7055, 577, 19, 984, 1349, 577, 2181, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if len(self.equiv.keys()) > 0: if heading: print _("\nSELinux fcontext Equivalence \n") for src in self.equiv.keys(): print "%s == %s" % (src, self.equiv[src])
def list(self, heading = 1, locallist = 0 ): if heading: print "%-50s %-18s %s\n" % (_("SELinux fcontext"), _("type"), _("Context")) fcon_dict = self.get_all(locallist) keys = fcon_dict.keys() keys.sort() for k in keys: if fcon_dict[k]: if is_mls_enabled: print "%-50s %-18s %s:%s:%s:%s " % (k[0], k[1], fcon_dict[k][0],...
ae50dd55e064525c40cfe257581d52dbc4808a22 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7147/ae50dd55e064525c40cfe257581d52dbc4808a22/seobject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 12, 2890, 16, 11053, 273, 404, 16, 1515, 454, 376, 273, 374, 262, 30, 309, 11053, 30, 1172, 2213, 17, 3361, 87, 738, 17, 2643, 87, 738, 87, 64, 82, 6, 738, 261, 67, 2932, 1090...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 12, 2890, 16, 11053, 273, 404, 16, 1515, 454, 376, 273, 374, 262, 30, 309, 11053, 30, 1172, 2213, 17, 3361, 87, 738, 17, 2643, 87, 738, 87, 64, 82, 6, 738, 261, 67, 2932, 1090...
We do an example with a split prime and show byother the quo and lift maps:
We do an example with a split prime and show both the quo and lift maps:
def _p_quotient(self, p): """ This is an internal technical function that is used for example for computing the quotient of the ring of integers by a prime ideal.
13e3fe44ffe14f673d90f019b674e3e59cac6cd9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/13e3fe44ffe14f673d90f019b674e3e59cac6cd9/number_field_ideal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 84, 67, 9270, 1979, 12, 2890, 16, 293, 4672, 3536, 1220, 353, 392, 2713, 17734, 1706, 445, 716, 353, 1399, 364, 3454, 364, 20303, 326, 26708, 434, 326, 9221, 434, 12321, 635, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 84, 67, 9270, 1979, 12, 2890, 16, 293, 4672, 3536, 1220, 353, 392, 2713, 17734, 1706, 445, 716, 353, 1399, 364, 3454, 364, 20303, 326, 26708, 434, 326, 9221, 434, 12321, 635, 279, ...
if hasattr(socket, 'SHUT_RDWR'): self.server.socket.shutdown(socket.SHUT_RDWR) else: self.server.socket.shutdown(2)
if os.name <> 'nt': if hasattr(socket, 'SHUT_RDWR'): self.server.socket.shutdown(socket.SHUT_RDWR) else: self.server.socket.shutdown(2)
def stop(self): self.running = False if hasattr(socket, 'SHUT_RDWR'): self.server.socket.shutdown(socket.SHUT_RDWR) else: self.server.socket.shutdown(2) self.server.socket.close()
b1a5b029a73dd2ac3d508dedcf33ab1e7c71bdcd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/b1a5b029a73dd2ac3d508dedcf33ab1e7c71bdcd/netsvc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 12, 2890, 4672, 365, 18, 8704, 273, 1083, 309, 1140, 18, 529, 2813, 296, 496, 4278, 309, 3859, 12, 7814, 16, 296, 2664, 1693, 67, 20403, 7181, 11, 4672, 365, 18, 3567, 18, 7814, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 12, 2890, 4672, 365, 18, 8704, 273, 1083, 309, 1140, 18, 529, 2813, 296, 496, 4278, 309, 3859, 12, 7814, 16, 296, 2664, 1693, 67, 20403, 7181, 11, 4672, 365, 18, 3567, 18, 7814, ...
sleep(0)
gevent.sleep(0)
def waiter(): try: result = e.wait() log.append(('received', result)) except Exception, ex: log.append(('catched', ex))
6fcac4536d1dde591716b50e8f283932991072e6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10423/6fcac4536d1dde591716b50e8f283932991072e6/test__event.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17522, 13332, 775, 30, 563, 273, 425, 18, 7048, 1435, 613, 18, 6923, 12, 2668, 15213, 2187, 563, 3719, 1335, 1185, 16, 431, 30, 613, 18, 6923, 12, 2668, 14683, 329, 2187, 431, 3719, 2,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17522, 13332, 775, 30, 563, 273, 425, 18, 7048, 1435, 613, 18, 6923, 12, 2668, 15213, 2187, 563, 3719, 1335, 1185, 16, 431, 30, 613, 18, 6923, 12, 2668, 14683, 329, 2187, 431, 3719, 2,...
funct = r.function_id and (", " + r.function_id.name) or ""
funct = r.function and (", " + r.function) or ""
def name_get(self, cr, uid, ids, context={}): """ @param self: The object pointer @param cr: the current row, from the database cursor, @param user: the current user, @param ids: List of partner address’s IDs @param context: A standard dictionary for contextual values """
f1a7cf722b621ba83ffc5aa65e3ea20a5f692363 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/f1a7cf722b621ba83ffc5aa65e3ea20a5f692363/base_contact.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 508, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 3536, 632, 891, 365, 30, 1021, 733, 4407, 632, 891, 4422, 30, 326, 783, 1027, 16, 628, 326, 2063, 3347, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 508, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 3536, 632, 891, 365, 30, 1021, 733, 4407, 632, 891, 4422, 30, 326, 783, 1027, 16, 628, 326, 2063, 3347, 16...
os.path.expanduser("~/.urk"), os.path.expanduser("~/.urk/scripts"),
os.path.join(os.path.expanduser("~"), ".urk"), os.path.join(os.path.expanduser("~"), ".urk/scripts"),
def path(filename=""): urkpath = os.path.dirname(inspect.getfile(sys.modules[__name__])) if filename: return os.path.join(urkpath, filename) else: return urkpath
59876d3b4dce35d3cc8c52b317415c19106190bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10693/59876d3b4dce35d3cc8c52b317415c19106190bc/urk.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 589, 12, 3459, 1546, 6, 4672, 8896, 79, 803, 273, 1140, 18, 803, 18, 12287, 12, 12009, 18, 588, 768, 12, 9499, 18, 6400, 63, 972, 529, 972, 22643, 225, 309, 1544, 30, 327, 1140, 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, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 589, 12, 3459, 1546, 6, 4672, 8896, 79, 803, 273, 1140, 18, 803, 18, 12287, 12, 12009, 18, 588, 768, 12, 9499, 18, 6400, 63, 972, 529, 972, 22643, 225, 309, 1544, 30, 327, 1140, 18, ...
Bin object representing a LAL file cache. The objects attribute contains a list of glue.lal.CacheEntry objects, and the size attribute holds a glue.segments.segmentlistdict object summarizing the times spanned by the files in the cache.
Subclass of the packing.Bin class representing a LAL file cache. The files contained in the bin are available in the .objects attribute, which is a list of glue.lal.CacheEntry objects. The .size attribute holds a glue.segments.segmentlistdict object giving the times spanned by the files in the bin. The .extent attrib...
def segmentlistdict_unnormalize(seglistdict, origin): """ The opposite of segmentlistdict_normalize(), restores the times in a segmentlist dictionary to absolute times. The modification is done in place. """ for seglist in seglistdict.itervalues(): for i, seg in enumerate(seglist): seglist[i] = segments.segment(origin...
626a80ee3e03d7a3edce4a5fa7cb1998f6a34c6c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/626a80ee3e03d7a3edce4a5fa7cb1998f6a34c6c/ligolw_cafe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3267, 1098, 1576, 67, 318, 12237, 12, 5680, 1098, 1576, 16, 4026, 4672, 3536, 1021, 20759, 434, 3267, 1098, 1576, 67, 12237, 9334, 3127, 3485, 326, 4124, 316, 279, 3267, 1098, 3880, 358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3267, 1098, 1576, 67, 318, 12237, 12, 5680, 1098, 1576, 16, 4026, 4672, 3536, 1021, 20759, 434, 3267, 1098, 1576, 67, 12237, 9334, 3127, 3485, 326, 4124, 316, 279, 3267, 1098, 3880, 358, ...
warn(PROXY, 'read buffer full')
warn(PROXY, '%s read buffer full', str(self))
def handle_read (self): if not self.connected: # It's been closed (presumably recently) return
d561d4434dfd8778f12ecf8ab54dd36be8fa04d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/d561d4434dfd8778f12ecf8ab54dd36be8fa04d1/Connection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 896, 261, 2890, 4672, 309, 486, 365, 18, 8537, 30, 468, 2597, 1807, 2118, 4375, 261, 12202, 379, 6906, 19907, 13, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 896, 261, 2890, 4672, 309, 486, 365, 18, 8537, 30, 468, 2597, 1807, 2118, 4375, 261, 12202, 379, 6906, 19907, 13, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
html.BR().join(hints),
unicode(html.BR()).join(hints),
def searchHints(f, hints): """ Return a paragraph showing hints for a search @param f: the formatter to use @param hints: list of hints (as strings) to show """ return ''.join([ f.paragraph(1, attr={'class': 'searchhint'}), html.BR().join(hints), f.paragraph(0), ])
2b68565eb5f307bc74ebbdedb6750096e15e1ec1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/2b68565eb5f307bc74ebbdedb6750096e15e1ec1/fullsearch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 13368, 12, 74, 16, 13442, 4672, 3536, 2000, 279, 10190, 17253, 13442, 364, 279, 1623, 225, 632, 891, 284, 30, 326, 4453, 358, 999, 632, 891, 13442, 30, 666, 434, 13442, 261, 345, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 13368, 12, 74, 16, 13442, 4672, 3536, 2000, 279, 10190, 17253, 13442, 364, 279, 1623, 225, 632, 891, 284, 30, 326, 4453, 358, 999, 632, 891, 13442, 30, 666, 434, 13442, 261, 345, ...
cookedResponse = self.onTransaction(command, args, rawResponse) self.push(cookedResponse) self.request = '' if timedOut: while True: line = self.serverIn.readline() if not line: isClosing = True break elif line == '.\r\n': self.push(line) break else: self.push(line) if isClosing:
cooked = self.onTransaction(self.command, self.args, self.response) self.push(cooked) if self.isClosing:
def found_terminator(self): """Asynchat override.""" # Send the request to the server and read the reply. if self.request.strip().upper() == 'KILL': self.serverSocket.sendall('QUIT\r\n') self.send("+OK, dying.\r\n") self.shutdown(2) self.close() raise SystemExit self.serverSocket.sendall(self.request + '\r\n') if self....
f52f2d890498484d13b002f537e7616e27a554aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/f52f2d890498484d13b002f537e7616e27a554aa/pop3proxy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1392, 67, 9505, 639, 12, 2890, 4672, 3536, 1463, 2515, 270, 3849, 12123, 468, 2479, 326, 590, 358, 326, 1438, 471, 855, 326, 4332, 18, 309, 365, 18, 2293, 18, 6406, 7675, 5797, 1435, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1392, 67, 9505, 639, 12, 2890, 4672, 3536, 1463, 2515, 270, 3849, 12123, 468, 2479, 326, 590, 358, 326, 1438, 471, 855, 326, 4332, 18, 309, 365, 18, 2293, 18, 6406, 7675, 5797, 1435, 4...
value += self._safe_read(amt)
value.append(self._safe_read(amt))
def _read_chunked(self, amt): assert self.chunked != _UNKNOWN chunk_left = self.chunk_left value = b""
5a86acb6d643dd798673dbc59f314952a4514b17 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/5a86acb6d643dd798673dbc59f314952a4514b17/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 67, 6551, 329, 12, 2890, 16, 25123, 4672, 1815, 365, 18, 6551, 329, 480, 389, 14737, 2441, 67, 4482, 273, 365, 18, 6551, 67, 4482, 460, 273, 324, 3660, 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, 389, 896, 67, 6551, 329, 12, 2890, 16, 25123, 4672, 1815, 365, 18, 6551, 329, 480, 389, 14737, 2441, 67, 4482, 273, 365, 18, 6551, 67, 4482, 460, 273, 324, 3660, 2, -100, -100, -100, ...
return 1
return ret
def __cmp__(self, other): """ Sort yum repos. by cost, and then by alphanumeric on their id. """ if other is None: return 1 if hasattr(other, 'cost'): ocost = other.cost else: ocost = 1000 ret = cmp(self.cost, ocost) if ret: return 1 return cmp(self.id, other.id)
aeb59bee6dfbd551bbd1fda4a0b35bcf1c441282 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5445/aeb59bee6dfbd551bbd1fda4a0b35bcf1c441282/yumRepo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9625, 972, 12, 2890, 16, 1308, 4672, 3536, 5928, 677, 379, 13686, 18, 635, 6991, 16, 471, 1508, 635, 27374, 603, 3675, 612, 18, 3536, 309, 1308, 353, 599, 30, 327, 325, 309, 3859...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9625, 972, 12, 2890, 16, 1308, 4672, 3536, 5928, 677, 379, 13686, 18, 635, 6991, 16, 471, 1508, 635, 27374, 603, 3675, 612, 18, 3536, 309, 1308, 353, 599, 30, 327, 325, 309, 3859...
if key.startswith('FILE') or key == 'MYPROFILE':
if key == 'MYPROFILE' or key.startswith('FILE'):
def EnvironmentInfo(): """Returns a string of the systems information @return: System information string """ info = list() info.append("#---- System Information ----#") info.append("%s Version: %s" % (ed_glob.prog_name, ed_glob.version)) info.append("Operating System: %s" % wx.GetOsDescription()) if sys.platform == 'd...
908f3d44b333fc5cd134cad4752941fa9826048e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3530/908f3d44b333fc5cd134cad4752941fa9826048e/dev_tool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7518, 966, 13332, 3536, 1356, 279, 533, 434, 326, 14908, 1779, 632, 2463, 30, 2332, 1779, 533, 225, 3536, 1123, 273, 666, 1435, 1123, 18, 6923, 2932, 7, 553, 2332, 15353, 27927, 7, 7923,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7518, 966, 13332, 3536, 1356, 279, 533, 434, 326, 14908, 1779, 632, 2463, 30, 2332, 1779, 533, 225, 3536, 1123, 273, 666, 1435, 1123, 18, 6923, 2932, 7, 553, 2332, 15353, 27927, 7, 7923,...
for product_name in os.listdir(product_dir):
product_names=os.listdir(product_dir) product_names.sort() for product_name in product_names:
def install_products(): # Install a list of products into the basic folder class, so # that all folders know about top-level objects, aka products path_join=os.path.join product_dir=path_join(SOFTWARE_HOME,'Products') isdir=os.path.isdir exists=os.path.exists app =Globals.Bobobase['Application'] meta_types=list...
9e77c365e68ef6099ea6639f42ba0bc0164d55fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/9e77c365e68ef6099ea6639f42ba0bc0164d55fc/Application.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 67, 18736, 13332, 468, 10284, 279, 666, 434, 10406, 1368, 326, 5337, 3009, 667, 16, 1427, 468, 716, 777, 9907, 5055, 2973, 1760, 17, 2815, 2184, 16, 28105, 10406, 225, 589, 67, 570...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 67, 18736, 13332, 468, 10284, 279, 666, 434, 10406, 1368, 326, 5337, 3009, 667, 16, 1427, 468, 716, 777, 9907, 5055, 2973, 1760, 17, 2815, 2184, 16, 28105, 10406, 225, 589, 67, 570...
amount = amount / to_unit.factor
amount = amount * to_unit.factor
def _compute_price(self, cr, uid, from_uom_id, price, to_uom_id=False): if not from_uom_id or not price or not to_uom_id: return price uoms = self.browse(cr, uid, [from_uom_id, to_uom_id]) if uoms[0].id == from_uom_id: from_unit, to_unit = uoms[0], uoms[-1] else: from_unit, to_unit = uoms[-1], uoms[0] if from_unit.cate...
13d5db21a25802c368d46dbed26d0d89d1890200 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/13d5db21a25802c368d46dbed26d0d89d1890200/product.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9200, 67, 8694, 12, 2890, 16, 4422, 16, 4555, 16, 628, 67, 89, 362, 67, 350, 16, 6205, 16, 358, 67, 89, 362, 67, 350, 33, 8381, 4672, 309, 486, 628, 67, 89, 362, 67, 350, 57...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9200, 67, 8694, 12, 2890, 16, 4422, 16, 4555, 16, 628, 67, 89, 362, 67, 350, 16, 6205, 16, 358, 67, 89, 362, 67, 350, 33, 8381, 4672, 309, 486, 628, 67, 89, 362, 67, 350, 57...
sage: octave.set('x', '2')
sage: octave.set('x', '2')
def set(self, var, value): """ Set the variable var to the given value.
3e7984be0cba18d41902b83e4bf202a7d98bedfe /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/3e7984be0cba18d41902b83e4bf202a7d98bedfe/octave.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 12, 2890, 16, 569, 16, 460, 4672, 3536, 1000, 326, 2190, 569, 358, 326, 864, 460, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 12, 2890, 16, 569, 16, 460, 4672, 3536, 1000, 326, 2190, 569, 358, 326, 864, 460, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
num=data['data'][o].shape[1]
if len(data['data'][o].shape)==1: num=1 else: num=data['data'][o].shape[0]
def write(self, data): self.check_sparse(data['data'])
5143efc8a8a43d6b9de0f7507a750cfebb170672 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12567/5143efc8a8a43d6b9de0f7507a750cfebb170672/h5_arff.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 501, 4672, 365, 18, 1893, 67, 17472, 12, 892, 3292, 892, 19486, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 501, 4672, 365, 18, 1893, 67, 17472, 12, 892, 3292, 892, 19486, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if obj not in self.valdocs: return None
if obj not in self.module_set: return None
def url(self, obj): """ Return the URL for the given object, which can be a C{VariableDoc}, a C{ValueDoc}, or a C{DottedName}. """ # Module: <canonical_name>-module.html if isinstance(obj, ModuleDoc): if obj not in self.valdocs: return None return urllib.quote('%s'%obj.canonical_name) + '-module.html' # Class: <canonic...
896efdcbc34c9ccecca07067a434506c3fb65345 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/896efdcbc34c9ccecca07067a434506c3fb65345/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 880, 12, 2890, 16, 1081, 4672, 3536, 2000, 326, 1976, 364, 326, 864, 733, 16, 1492, 848, 506, 279, 385, 95, 3092, 1759, 5779, 279, 385, 95, 620, 1759, 5779, 578, 279, 385, 95, 10412, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 16, 1081, 4672, 3536, 2000, 326, 1976, 364, 326, 864, 733, 16, 1492, 848, 506, 279, 385, 95, 3092, 1759, 5779, 279, 385, 95, 620, 1759, 5779, 578, 279, 385, 95, 10412, ...
self.run_build(gyp_file) def build_target(self, gyp_file, target):
self.run_build(gyp_file, **kw) def build_target(self, gyp_file, target, **kw):
def build_default(self, gyp_file): """ Runs Make with no additional command-line arguments to get the default build for the Makefiles generated from the specified gyp_file. """ self.run_build(gyp_file)
78c46126ef5794f557a8eff8c82e1227fbf0f84c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6220/78c46126ef5794f557a8eff8c82e1227fbf0f84c/TestGyp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 1886, 12, 2890, 16, 314, 879, 67, 768, 4672, 3536, 1939, 87, 4344, 598, 1158, 3312, 1296, 17, 1369, 1775, 358, 336, 326, 805, 1361, 364, 326, 4344, 2354, 4374, 628, 326, 1269...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 1886, 12, 2890, 16, 314, 879, 67, 768, 4672, 3536, 1939, 87, 4344, 598, 1158, 3312, 1296, 17, 1369, 1775, 358, 336, 326, 805, 1361, 364, 326, 4344, 2354, 4374, 628, 326, 1269...
self.todayButton = CollectionCanvas.CanvasTextButton(self, today.Format("%b %d, %Y"), self.bigFont, self.bigFontColor, self.bgColor)
def OnInit(self): super (wxWeekHeaderCanvas, self).OnInit()
9e9b4d2bc2170532af0a700002daa49f8ec3c160 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/9e9b4d2bc2170532af0a700002daa49f8ec3c160/CalendarCanvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 2570, 12, 2890, 4672, 2240, 261, 27226, 6630, 1864, 12971, 16, 365, 2934, 1398, 2570, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 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, 2755, 2570, 12, 2890, 4672, 2240, 261, 27226, 6630, 1864, 12971, 16, 365, 2934, 1398, 2570, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
>>> x array([[[1, 1, 1], [2, 2, 2], [3, 3, 3]]])
def squeeze(a): """Remove single-dimensional entries from the shape of a. Examples -------- >>> x = array([[[1,1,1],[2,2,2],[3,3,3]]]) >>> x array([[[1, 1, 1], [2, 2, 2], [3, 3, 3]]]) >>> x.shape (1, 3, 3) >>> squeeze(x).shape (3, 3) """ try: squeeze = a.squeeze except AttributeError: return _wrapit(a, 'squeeze') ret...
2634ce0819396e55c8ba0e3014c1c22cb722ddac /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14925/2634ce0819396e55c8ba0e3014c1c22cb722ddac/fromnumeric.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17173, 12, 69, 4672, 3536, 3288, 2202, 17, 31236, 3222, 628, 326, 2179, 434, 279, 18, 225, 19830, 27093, 4080, 619, 273, 526, 3816, 31128, 21, 16, 21, 16, 21, 6487, 63, 22, 16, 22, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17173, 12, 69, 4672, 3536, 3288, 2202, 17, 31236, 3222, 628, 326, 2179, 434, 279, 18, 225, 19830, 27093, 4080, 619, 273, 526, 3816, 31128, 21, 16, 21, 16, 21, 6487, 63, 22, 16, 22, 1...
item = self.fm.env.get_directory(name)
try: item = self.fm.env.get_directory(name) except: item = Directory(name)
def load_bit_by_bit(self): """Loads the contents of the directory. Use this sparingly since it takes rather long. """
f13e7310ef7b9fa91f219c91e03f46573d42d2ed /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5729/f13e7310ef7b9fa91f219c91e03f46573d42d2ed/directory.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 3682, 67, 1637, 67, 3682, 12, 2890, 4672, 3536, 7968, 326, 2939, 434, 326, 1867, 18, 2672, 333, 272, 12583, 715, 3241, 518, 5530, 9178, 1525, 18, 3536, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 3682, 67, 1637, 67, 3682, 12, 2890, 4672, 3536, 7968, 326, 2939, 434, 326, 1867, 18, 2672, 333, 272, 12583, 715, 3241, 518, 5530, 9178, 1525, 18, 3536, 2, -100, -100, -100, -...
(user.username, repo.name ))
(user.username, repo_subssh.name ))
def permissions_hook(ui, repo_hg, **kwargs):
0494ad1a0ba9dc36f3f8f585b203e892f4d61ecf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13178/0494ad1a0ba9dc36f3f8f585b203e892f4d61ecf/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4371, 67, 4476, 12, 4881, 16, 3538, 67, 26981, 16, 2826, 4333, 4672, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4371, 67, 4476, 12, 4881, 16, 3538, 67, 26981, 16, 2826, 4333, 4672, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
report_pops(num_pops)
if report_pops: report_pops(num_pops)
def init_pop(): my_pop = [] for i in range(num_loci): my_pop.append({}) return my_pop
d1c94fd4834103f1470af6959ea8bc4515454e63 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7167/d1c94fd4834103f1470af6959ea8bc4515454e63/Utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 5120, 13332, 3399, 67, 5120, 273, 5378, 364, 277, 316, 1048, 12, 2107, 67, 1829, 77, 4672, 3399, 67, 5120, 18, 6923, 23506, 13, 327, 3399, 67, 5120, 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, 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, 67, 5120, 13332, 3399, 67, 5120, 273, 5378, 364, 277, 316, 1048, 12, 2107, 67, 1829, 77, 4672, 3399, 67, 5120, 18, 6923, 23506, 13, 327, 3399, 67, 5120, 2, -100, -100, -100, -100...
filepath = os.path.normpath(os.path.abspath('web\\'))
filepath = os.path.normpath( os.path.abspath( 'web/' ) )
def run( self ):
03aa1b9acfbc8f3ae5c1277299af543472feb06d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/03aa1b9acfbc8f3ae5c1277299af543472feb06d/webadmin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 365, 262, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1086, 12, 365, 262, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
sage: db=digraphs.DeBruijn(2,2)
sage: db=digraphs.DeBruijn(2,2); db De Bruijn digraph (n=2, k=2): Looped digraph on 4 vertices
def DeBruijn(self,n,k): r""" Returns the De Bruijn diraph with parameters `n,k`.
61bbe1cebccced5851e1137f8603db211fa85fa2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/61bbe1cebccced5851e1137f8603db211fa85fa2/graph_generators.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1505, 19114, 4881, 78, 82, 12, 2890, 16, 82, 16, 79, 4672, 436, 8395, 2860, 326, 1505, 605, 86, 4881, 78, 82, 4314, 1483, 598, 1472, 1375, 82, 16, 79, 8338, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1505, 19114, 4881, 78, 82, 12, 2890, 16, 82, 16, 79, 4672, 436, 8395, 2860, 326, 1505, 605, 86, 4881, 78, 82, 4314, 1483, 598, 1472, 1375, 82, 16, 79, 8338, 2, -100, -100, -100, -100...
"CVSRevision":"$Revision: 1.164 $",
"CVSRevision":"$Revision: 1.165 $",
def callingparams(self): """Returns list of parameters to save with results.""" #Test whether k has been set try: self.k except (NameError, AttributeError): self.k=None try: self.mass except (NameError, AttributeError): self.mass=None #Form dictionary of inputs params = {"ystart":self.ystart, "tstart":self.tstart, "te...
7203645d13930e87b688cd0b8af3d32f3550960e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7283/7203645d13930e87b688cd0b8af3d32f3550960e/cosmomodels.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4440, 2010, 12, 2890, 4672, 3536, 1356, 666, 434, 1472, 358, 1923, 598, 1686, 12123, 468, 4709, 2856, 417, 711, 2118, 444, 775, 30, 365, 18, 79, 1335, 261, 461, 668, 16, 6394, 4672, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4440, 2010, 12, 2890, 4672, 3536, 1356, 666, 434, 1472, 358, 1923, 598, 1686, 12123, 468, 4709, 2856, 417, 711, 2118, 444, 775, 30, 365, 18, 79, 1335, 261, 461, 668, 16, 6394, 4672, 36...
lst_ = importsTipper.GenerateTip(complete, os.path.dirname(fn)) print lst_ if self.ac_w is None: self.ac_w = AutoCompletionWindow(self.editor, iter2, complete, lst_, self.plugin.pida.mainwindow) else: self.ac_w.set_list(self.editor, iter2, complete, lst_, self.plugin.pida.mainwindow)
try: lst_ = importsTipper.GenerateTip(complete, os.path.dirname(fn)) if self.ac_w is None: self.ac_w = AutoCompletionWindow(self.editor, iter2, complete, lst_, self.plugin.pida.mainwindow) else: self.ac_w.set_list(self.editor, iter2, complete, lst_, self.plugin.pida.mainwindow) except: pass
def insert_at_cursor_cb(self, buff, iter, text, length): complete = "" if self.ac_w is not None: self.ac_w.hide() if text in special_chars: buff, fn = self.get_current() iter2 = buff.get_iter_at_mark(buff.get_insert()) complete = self.get_context(buff, iter2) if complete.isdigit(): # to avoid problems with floating poi...
78a722f0396c592ef573cc75ed610029ace70168 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/78a722f0396c592ef573cc75ed610029ace70168/edit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 67, 270, 67, 9216, 67, 7358, 12, 2890, 16, 6139, 16, 1400, 16, 977, 16, 769, 4672, 3912, 273, 1408, 309, 365, 18, 1077, 67, 91, 353, 486, 599, 30, 365, 18, 1077, 67, 91, 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, 2243, 67, 270, 67, 9216, 67, 7358, 12, 2890, 16, 6139, 16, 1400, 16, 977, 16, 769, 4672, 3912, 273, 1408, 309, 365, 18, 1077, 67, 91, 353, 486, 599, 30, 365, 18, 1077, 67, 91, 18, ...
def writeI18NFiles(self, globalCodes, script):
def writeI18NPackages(self, script):
def writePackage(self, content, filePath, script): if script.scriptCompress: filetool.gzip(filePath, content) else: filetool.save(filePath, content)
02a8e5eb70bb158e8ce997caa78bb39583801a35 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/02a8e5eb70bb158e8ce997caa78bb39583801a35/CodeGenerator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 2261, 12, 2890, 16, 913, 16, 4612, 16, 2728, 4672, 309, 2728, 18, 4263, 16552, 30, 661, 278, 1371, 18, 17380, 12, 22787, 16, 913, 13, 469, 30, 661, 278, 1371, 18, 5688, 12, 227...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2261, 12, 2890, 16, 913, 16, 4612, 16, 2728, 4672, 309, 2728, 18, 4263, 16552, 30, 661, 278, 1371, 18, 17380, 12, 22787, 16, 913, 13, 469, 30, 661, 278, 1371, 18, 5688, 12, 227...
class dm_campaign(osv.osv):
class dm_campaign(osv.osv):
def _overlay_code(self, cr, uid, ids, name, args, context={}): result ={} for id in ids:
7ee897432c7e7d5a5c8e889fc429c3c1b66627fd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/7ee897432c7e7d5a5c8e889fc429c3c1b66627fd/dm_campaign.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 17312, 67, 710, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 12938, 4672, 563, 273, 2916, 364, 612, 316, 3258, 30, 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, 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, 389, 17312, 67, 710, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 12938, 4672, 563, 273, 2916, 364, 612, 316, 3258, 30, 2, -100, -100, -100, -100, -100, -100, -...
results.append((namePat,linked))
results.append((namePat,fullNames[0]))
def findData(dir,names,excludes=[]): '''Search for a list of extra files that can be found from $PATH where bin was replaced by *dir*.''' results = [] for namePat, absolutePath in names: if absolutePath: # absolute paths only occur when the search has already been # executed and completed successfuly. results.append((n...
b4796f12253039e6a154e7c6028fd2f4e9ade2a2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1360/b4796f12253039e6a154e7c6028fd2f4e9ade2a2/dws.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 751, 12, 1214, 16, 1973, 16, 338, 8993, 33, 8526, 4672, 9163, 2979, 364, 279, 666, 434, 2870, 1390, 716, 848, 506, 1392, 628, 271, 4211, 1625, 4158, 1703, 8089, 635, 380, 1214, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 751, 12, 1214, 16, 1973, 16, 338, 8993, 33, 8526, 4672, 9163, 2979, 364, 279, 666, 434, 2870, 1390, 716, 848, 506, 1392, 628, 271, 4211, 1625, 4158, 1703, 8089, 635, 380, 1214, 1...