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
def serve (request, path, document_root=None, show_indexes=False) :
def serve (request, path, document_root=None, show_indexes=False, force_mimetype=None) :
def serve (request, path, document_root=None, show_indexes=False) : __argument = request.GET.copy() force_mimetype = __argument.get("force_mimetype", "").strip() use_cache = not __argument.has_key("update") if __argument.get("compress", "").lower() not in ("gzip", "deflate", ) : compress = None else : if True not in [...
2118876cfc0781514d6850cbb57e6fa839c862e8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4349/2118876cfc0781514d6850cbb57e6fa839c862e8/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12175, 261, 2293, 16, 589, 16, 1668, 67, 3085, 33, 7036, 16, 2405, 67, 11265, 33, 8381, 16, 2944, 67, 22571, 33, 7036, 13, 294, 1001, 3446, 273, 590, 18, 3264, 18, 3530, 1435, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12175, 261, 2293, 16, 589, 16, 1668, 67, 3085, 33, 7036, 16, 2405, 67, 11265, 33, 8381, 16, 2944, 67, 22571, 33, 7036, 13, 294, 1001, 3446, 273, 590, 18, 3264, 18, 3530, 1435, 225, 2...
self.out = self.body
self.pop_output_collector()
def depart_footer(self, node): self.out.append('}') self.requirements['~footer'] = ''.join(self.out) self.out = self.body
d1a332cc00a1b10df4c2b8fa6efdd3ca79dbf763 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1278/d1a332cc00a1b10df4c2b8fa6efdd3ca79dbf763/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26000, 67, 14723, 12, 2890, 16, 756, 4672, 365, 18, 659, 18, 6923, 2668, 1713, 13, 365, 18, 16175, 3292, 98, 14723, 3546, 273, 875, 18, 5701, 12, 2890, 18, 659, 13, 365, 18, 659, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26000, 67, 14723, 12, 2890, 16, 756, 4672, 365, 18, 659, 18, 6923, 2668, 1713, 13, 365, 18, 16175, 3292, 98, 14723, 3546, 273, 875, 18, 5701, 12, 2890, 18, 659, 13, 365, 18, 659, 273...
m = p**self.__prec
m = integer.Integer(p**self.__prec)
def rational_reconstruction(self): r""" Try to lift the p-adic number to the rationals using rational reconstruction, as follows: Suppose the p-adic number is $p^{r}\cdot (u+O(p^n))$, where u is a unit. Using rational reconstruction, try to find the unique rational number a/b such that a/b is congruent to u modulo $p^...
10ce4ffd13ba19146db5dc3b78b4ad38056c2b1c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/10ce4ffd13ba19146db5dc3b78b4ad38056c2b1c/padic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 436, 8371, 67, 266, 591, 4549, 12, 2890, 4672, 436, 8395, 6161, 358, 28080, 326, 293, 17, 20333, 1300, 358, 326, 436, 367, 1031, 1450, 436, 8371, 25792, 4549, 16, 487, 13040, 30, 3425, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 436, 8371, 67, 266, 591, 4549, 12, 2890, 4672, 436, 8395, 6161, 358, 28080, 326, 293, 17, 20333, 1300, 358, 326, 436, 367, 1031, 1450, 436, 8371, 25792, 4549, 16, 487, 13040, 30, 3425, ...
if DEBUG: print 'ProgramDisplay: event = %s' % event
if DEBUG: print _('ProgramDisplay: event = %s') % event
def eventhandler(self, event, menuw=None): if DEBUG: print 'ProgramDisplay: event = %s' % event
3f1bf13731efb133a4dcfea793c7ae04515d4079 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/3f1bf13731efb133a4dcfea793c7ae04515d4079/program_display.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 871, 4176, 12, 2890, 16, 871, 16, 3824, 91, 33, 7036, 4672, 309, 6369, 30, 1172, 296, 9459, 4236, 30, 871, 273, 738, 87, 11, 738, 871, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 871, 4176, 12, 2890, 16, 871, 16, 3824, 91, 33, 7036, 4672, 309, 6369, 30, 1172, 296, 9459, 4236, 30, 871, 273, 738, 87, 11, 738, 871, 2, -100, -100, -100, -100, -100, -100, -100, -1...
profilers = self.job.profilers if not profilers.only(): for i in range(iterations): utils.system(self.srcdir + '/scrashme ' + args) if profilers.present(): profilers.start(self) utils.system(self.srcdir + '/scrashme ' + args) profilers.stop(self) profilers.report(self)
utils.system(self.srcdir + '/scrashme ' + args)
def execute(self, iterations = 1, args_list = ''): if len(args_list) != 0: args = '' + args_list else: args = '-c100 -z'
6216e2a050d3389df25b032e8d0fb01c0da0bd14 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/6216e2a050d3389df25b032e8d0fb01c0da0bd14/scrashme.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 16, 11316, 273, 404, 16, 833, 67, 1098, 273, 875, 4672, 309, 562, 12, 1968, 67, 1098, 13, 480, 374, 30, 833, 273, 875, 397, 833, 67, 1098, 469, 30, 833, 273, 2400, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1836, 12, 2890, 16, 11316, 273, 404, 16, 833, 67, 1098, 273, 875, 4672, 309, 562, 12, 1968, 67, 1098, 13, 480, 374, 30, 833, 273, 875, 397, 833, 67, 1098, 469, 30, 833, 273, 2400, ...
return self._set_coercer(arg, self._float_types,
return self._set_coercer(arg, self._float_types,
def _set_float(self, arg): return self._set_coercer(arg, self._float_types, self._float_primitives, self._to_float)
45aba0a37f17a0ed93125a6ff449818c6cb8ca9e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7408/45aba0a37f17a0ed93125a6ff449818c6cb8ca9e/javaargcoercer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 5659, 12, 2890, 16, 1501, 4672, 327, 365, 6315, 542, 67, 2894, 264, 2750, 12, 3175, 16, 365, 6315, 5659, 67, 2352, 16, 365, 6315, 5659, 67, 683, 18116, 16, 365, 6315, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 542, 67, 5659, 12, 2890, 16, 1501, 4672, 327, 365, 6315, 542, 67, 2894, 264, 2750, 12, 3175, 16, 365, 6315, 5659, 67, 2352, 16, 365, 6315, 5659, 67, 683, 18116, 16, 365, 6315, 8...
pyrpm.rpmconfig.nofileconflictcheck = 1
pyrpm.rpmconfig.nofileconflicts = 1
def progress_write(msg): if devpts == 1: sys.stdout.write("\r") sys.stdout.write(msg) if devpts == 0: sys.stdout.write("\n") sys.stdout.flush()
58ae1ab85de9d6398bb48388e12860a9da17caaa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1143/58ae1ab85de9d6398bb48388e12860a9da17caaa/rpmgraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4007, 67, 2626, 12, 3576, 4672, 309, 4461, 1092, 422, 404, 30, 2589, 18, 10283, 18, 2626, 31458, 86, 7923, 2589, 18, 10283, 18, 2626, 12, 3576, 13, 309, 4461, 1092, 422, 374, 30, 2589,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4007, 67, 2626, 12, 3576, 4672, 309, 4461, 1092, 422, 404, 30, 2589, 18, 10283, 18, 2626, 31458, 86, 7923, 2589, 18, 10283, 18, 2626, 12, 3576, 13, 309, 4461, 1092, 422, 374, 30, 2589,...
writeToFile('wrap_chkconfig.ltx', '%s\n%s\n\\input{chkconfig.ltx}\n', docbook_cmd)
writeToFile('wrap_chkconfig.ltx', '%s\n\\input{chkconfig.ltx}\n' % docbook_cmd)
def checkLatexConfig(check_config, bool_docbook): ''' Explore the LaTeX configuration Return None (will be passed to sys.exit()) for success. ''' print 'checking LaTeX configuration... ', # if --without-latex-config is forced, or if there is no previous # version of textclass.lst, re-generate a default file. if not os....
3caeb344b8acd34186a533b816ff6f9127b913b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7514/3caeb344b8acd34186a533b816ff6f9127b913b1/configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 6607, 338, 809, 12, 1893, 67, 1425, 16, 1426, 67, 2434, 3618, 4672, 9163, 7784, 383, 266, 326, 21072, 21575, 60, 1664, 2000, 599, 261, 20194, 506, 2275, 358, 2589, 18, 8593, 10756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 6607, 338, 809, 12, 1893, 67, 1425, 16, 1426, 67, 2434, 3618, 4672, 9163, 7784, 383, 266, 326, 21072, 21575, 60, 1664, 2000, 599, 261, 20194, 506, 2275, 358, 2589, 18, 8593, 10756, ...
try: ctool.addIndex('topics', 'KeywordIndex', extra={'indexed_attrs' : 'main_topics, sub_topics'}) ctool.manage_reindexIndex(['topics']) except: pass
if not 'topics' in ctool.indexes(): try: ctool.addIndex('topics', 'KeywordIndex', extra={'indexed_attrs' : 'main_topics, sub_topics'}) ctool.manage_reindexIndex(['topics']) except: print 'Failed to create topics index. Naaya Expert content type may not work properly' if not 'title_field' in ctool.indexes(): try: ctoo...
def setupContentType(site): from skel import TOPICS ptool = site.getPortletsTool() itopics = getattr(ptool, 'experts_topics', None) if not itopics: ptool.manage_addRefList('experts_topics') for k, v in TOPICS.items(): ptool.experts_topics.manage_add_item(k, v) #Create catalog index if it doesn't exist ctool = site.getC...
43ee4c7245f4ce96d56e195aba4e81f399c40792 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3287/43ee4c7245f4ce96d56e195aba4e81f399c40792/expert_item.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 8046, 12, 4256, 4672, 628, 4343, 292, 1930, 8493, 1102, 4596, 293, 6738, 273, 2834, 18, 588, 2617, 17307, 6364, 1435, 518, 556, 2102, 273, 3869, 12, 337, 1371, 16, 296, 338, 672, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 8046, 12, 4256, 4672, 628, 4343, 292, 1930, 8493, 1102, 4596, 293, 6738, 273, 2834, 18, 588, 2617, 17307, 6364, 1435, 518, 556, 2102, 273, 3869, 12, 337, 1371, 16, 296, 338, 672, ...
(os.getenv('HOME', ''), '.mozilla', 'firefox', '*', 'places.sqlite'), (os.getenv('APPDATA', ''), 'Mozilla', 'Firefox', 'Profiles', '*',
(os.getenv('HOME', False), '.mozilla', 'firefox', '*', 'places.sqlite'), (os.getenv('APPDATA', False), 'Mozilla', 'Firefox', 'Profiles', '*',
def FirefoxHistoryPath(self): paths = ( (os.getenv('HOME', ''), 'Library', 'Application Support', 'Firefox', 'Profiles', '*', 'places.sqlite'), (os.getenv('HOME', ''), '.mozilla', 'firefox', '*', 'places.sqlite'), (os.getenv('APPDATA', ''), 'Mozilla', 'Firefox', 'Profiles', '*', 'places.sqlite') ) return paths
1647d5424a70f624d0cd52eb19742058f6087530 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4170/1647d5424a70f624d0cd52eb19742058f6087530/history_parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22950, 5623, 743, 12, 2890, 4672, 2953, 273, 261, 261, 538, 18, 588, 3074, 2668, 14209, 2187, 875, 3631, 296, 9313, 2187, 296, 3208, 13619, 2187, 296, 9723, 13873, 2187, 296, 12450, 2187, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22950, 5623, 743, 12, 2890, 4672, 2953, 273, 261, 261, 538, 18, 588, 3074, 2668, 14209, 2187, 875, 3631, 296, 9313, 2187, 296, 3208, 13619, 2187, 296, 9723, 13873, 2187, 296, 12450, 2187, ...
if str(user_agent).find(ua.keyword) != -1:
if unicode(user_agent).find(ua.keyword) != -1:
def process_request(self, request): # don't process AJAX requests if request.is_ajax(): return
7c74163196be738174e70d9f121da680cf9cdf66 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7421/7c74163196be738174e70d9f121da680cf9cdf66/middleware.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2293, 12, 2890, 16, 590, 4672, 468, 2727, 1404, 1207, 22355, 3285, 309, 590, 18, 291, 67, 12813, 13332, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2293, 12, 2890, 16, 590, 4672, 468, 2727, 1404, 1207, 22355, 3285, 309, 590, 18, 291, 67, 12813, 13332, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
path = site.family.version_history_address(self.site().language(), self.urlname()) if not hasattr(self, '_versionhistory') or forceReload: output(u'Getting version history of %s' % self.title()) txt = site.getUrl(path) self._versionhistory = txt
def getVersionHistory(self, forceReload = False): """ Loads the version history page and returns a list of tuples, where each tuple represents one edit and is built of edit date/time, user name, and edit summary. """ site = self.site() path = site.family.version_history_address(self.site().language(), self.urlname())
4c8498265509176dccdffe6986ff7f6869d05129 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/4c8498265509176dccdffe6986ff7f6869d05129/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8343, 5623, 12, 2890, 16, 2944, 13013, 273, 1083, 4672, 3536, 4444, 87, 326, 1177, 4927, 1363, 471, 1135, 279, 666, 434, 10384, 16, 1625, 1517, 3193, 8686, 1245, 3874, 471, 353, 6650, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8343, 5623, 12, 2890, 16, 2944, 13013, 273, 1083, 4672, 3536, 4444, 87, 326, 1177, 4927, 1363, 471, 1135, 279, 666, 434, 10384, 16, 1625, 1517, 3193, 8686, 1245, 3874, 471, 353, 6650, 43...
'''Get items from the request Queue, process them with func(), put the results along with the Thread's name into the response Queue. Stop running when item is None.''' while 1: tuple_item_key = request.get() if tuple_item_key is None: break (key, item) = tuple_item_key (url, file, download_size, checksum) = stripper(...
'''Get items from the request Queue, process them with func(), put the results along with the Thread's name into the response Queue. Stop running when item is None.''' while 1: tuple_item_key = request.get() if tuple_item_key is None: break (key, item) = tuple_item_key (url, file, download_size, checksum) = stripper(it...
def run(request, response, func=find_first_match): '''Get items from the request Queue, process them with func(), put the results along with the Thread's name into the response Queue. Stop running when item is None.''' while 1: tuple_item_key = request.get() if tuple_item_key is None: break (key, item) = tuple_item_k...
633e729fafe639c8598b2bed45f16557d7c7726b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12499/633e729fafe639c8598b2bed45f16557d7c7726b/pypt_core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2293, 16, 766, 16, 1326, 33, 4720, 67, 3645, 67, 1916, 4672, 9163, 967, 1516, 628, 326, 590, 7530, 16, 1207, 2182, 598, 1326, 9334, 1378, 326, 1686, 7563, 598, 326, 4884, 180...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2293, 16, 766, 16, 1326, 33, 4720, 67, 3645, 67, 1916, 4672, 9163, 967, 1516, 628, 326, 590, 7530, 16, 1207, 2182, 598, 1326, 9334, 1378, 326, 1686, 7563, 598, 326, 4884, 180...
optarg_data = cmd_dict[cmd] handler = commands.CommandHandler(argv[2:], optarg_data)
run_cmd(cmd, argv[2:])
def start_cmd(argv): cmd_arg = '' if len(argv) > 1: cmd_arg = argv[1] # change common help args to help command if cmd_arg in ('--help', '-h', '--usage', '-u', '/?'): cmd_arg = 'usage' completions = complete_command(cmd_arg) if cmd_arg and len(completions) > 0: if len(completions) == 1: # get the only completion ...
42ce2fdf18b769d6d568447ff569276e0f22919f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7412/42ce2fdf18b769d6d568447ff569276e0f22919f/hm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 67, 4172, 12, 19485, 4672, 225, 1797, 67, 3175, 273, 875, 309, 562, 12, 19485, 13, 405, 404, 30, 1797, 67, 3175, 273, 5261, 63, 21, 65, 225, 468, 2549, 2975, 2809, 833, 358, 280...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 67, 4172, 12, 19485, 4672, 225, 1797, 67, 3175, 273, 875, 309, 562, 12, 19485, 13, 405, 404, 30, 1797, 67, 3175, 273, 5261, 63, 21, 65, 225, 468, 2549, 2975, 2809, 833, 358, 280...
else: write( " (State changed" ) write(")\n")
else: write( " ( State changed" ) write(")\n")
def report( config, url, down, known_earlier, last_change, state_pos ): """Report the state and eventual change""" if down: state = "down" color = Fore.RED space = "" else: state = "up" color = Fore.GREEN space = " " write( "%s%s%s%s%s" % (color, space, (state_pos-len(url))*" ", state, Fore.RESET)) if known_earlier...
93c9ab984ccc93a0c029af178b80ab03a5112f4b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14735/93c9ab984ccc93a0c029af178b80ab03a5112f4b/alive.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2605, 12, 642, 16, 880, 16, 2588, 16, 4846, 67, 2091, 9800, 16, 1142, 67, 3427, 16, 919, 67, 917, 262, 30, 3536, 4820, 326, 919, 471, 871, 1462, 2549, 8395, 225, 309, 2588, 30, 919, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2605, 12, 642, 16, 880, 16, 2588, 16, 4846, 67, 2091, 9800, 16, 1142, 67, 3427, 16, 919, 67, 917, 262, 30, 3536, 4820, 326, 919, 471, 871, 1462, 2549, 8395, 225, 309, 2588, 30, 919, ...
for x in (0,1,2,3,4,5,6):
for x in range(max_db_ver[1]+1):
def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
143a070fa0acf40dada5b2ec2384bf8fb58d5229 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/143a070fa0acf40dada5b2ec2384bf8fb58d5229/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
Mixed Integer Linear Programming. (This problem is known to be NP-Hard).
Mixed Integer Linear Programming. (This problem is known to be NP-Hard).
def longest_path(self, s=None, t=None, weighted=False, algorithm="MILP", solver=None, verbose=0): r""" Returns a longest path of ``self``.
34c1e50f6f1e024964d30bd503da4e0a040658da /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/34c1e50f6f1e024964d30bd503da4e0a040658da/generic_graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12163, 67, 803, 12, 2890, 16, 272, 33, 7036, 16, 268, 33, 7036, 16, 13747, 33, 8381, 16, 4886, 1546, 49, 2627, 52, 3113, 12776, 33, 7036, 16, 3988, 33, 20, 4672, 436, 8395, 2860, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12163, 67, 803, 12, 2890, 16, 272, 33, 7036, 16, 268, 33, 7036, 16, 13747, 33, 8381, 16, 4886, 1546, 49, 2627, 52, 3113, 12776, 33, 7036, 16, 3988, 33, 20, 4672, 436, 8395, 2860, 279...
i = self.chunkListBox.count() - 1
i = self.w.pasteComboBox.currentItem()
def _clipboardPageView(self): '''Updates the clipboard page. ''' if not self.currentPageOpen(ClipboardPage): # (old code permitted this to be false below in 'if len(list):', # but failed to check for it in the 'else' clause, # thus causing bug 1627 [I think], now fixed in our caller) print "bug: _clipboardPageView ca...
de7622a4b8a0fbae2806330e0c0ea4e7d2476764 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/de7622a4b8a0fbae2806330e0c0ea4e7d2476764/MMKit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 14161, 3752, 1964, 1767, 12, 2890, 4672, 9163, 5121, 326, 20304, 1363, 18, 9163, 309, 486, 365, 18, 2972, 1964, 3678, 12, 15339, 3752, 1964, 4672, 468, 261, 1673, 981, 15498, 333, 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, 389, 14161, 3752, 1964, 1767, 12, 2890, 4672, 9163, 5121, 326, 20304, 1363, 18, 9163, 309, 486, 365, 18, 2972, 1964, 3678, 12, 15339, 3752, 1964, 4672, 468, 261, 1673, 981, 15498, 333, 3...
f.write("<title>Directory listing for %s</title>\n" % self.path) f.write("<h2>Directory listing for %s</h2>\n" % self.path)
displaypath = cgi.escape(urllib.unquote(self.path)) f.write("<title>Directory listing for %s</title>\n" % displaypath) f.write("<h2>Directory listing for %s</h2>\n" % displaypath)
def list_directory(self, path): """Helper to produce a directory listing (absent index.html).
5dcf9d1ab0190c876777a4b04fd10fed4a27f68d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/5dcf9d1ab0190c876777a4b04fd10fed4a27f68d/SimpleHTTPServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 5149, 12, 2890, 16, 589, 4672, 3536, 2276, 358, 11402, 279, 1867, 11591, 261, 5113, 319, 770, 18, 2620, 2934, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 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, 666, 67, 5149, 12, 2890, 16, 589, 4672, 3536, 2276, 358, 11402, 279, 1867, 11591, 261, 5113, 319, 770, 18, 2620, 2934, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
register_cygwin=options.register_cygwin)
register_cygwin=options.register_cygwin, run_background=options.run_background)
def Stop(self, force=False): if not force and not self.IsRunning(): return
94e06b80bdb729d777d22f7bd215616d26778efd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/94e06b80bdb729d777d22f7bd215616d26778efd/http_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5131, 12, 2890, 16, 2944, 33, 8381, 4672, 309, 486, 2944, 471, 486, 365, 18, 2520, 7051, 13332, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5131, 12, 2890, 16, 2944, 33, 8381, 4672, 309, 486, 2944, 471, 486, 365, 18, 2520, 7051, 13332, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self.body_prefix.append('\\chapter*{Front Matter\label{front}}\n')
self.body_prefix.append('\\chapter*{Front Matter\\label{front}}\n')
def astext(self): title = '\\title{%s}\n' % self.title if self.docinfo.has_key('revision'): self.head.append('\\release{%s}\n' % self.docinfo['revision']) if self.docinfo.has_key('date'): self.head.append('\\date{%s}\n' % self.docinfo['date']) if self.docinfo.has_key('author'): self.head.append('\\author{%s}\n' % self....
f1c936c7b824a9c68698c2d6eb95c28f15eb4fbe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/f1c936c7b824a9c68698c2d6eb95c28f15eb4fbe/python_latex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3364, 408, 12, 2890, 4672, 2077, 273, 3718, 2649, 95, 9, 87, 6280, 82, 11, 738, 365, 18, 2649, 309, 365, 18, 2434, 1376, 18, 5332, 67, 856, 2668, 13057, 11, 4672, 365, 18, 1978, 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, 3364, 408, 12, 2890, 4672, 2077, 273, 3718, 2649, 95, 9, 87, 6280, 82, 11, 738, 365, 18, 2649, 309, 365, 18, 2434, 1376, 18, 5332, 67, 856, 2668, 13057, 11, 4672, 365, 18, 1978, 18, ...
self.modflag_asserts()
self.modflag_asserts()
def changed(self): """Record the fact that this assembly (or something it contains) has been changed, in the sense that saving it into a file would produce meaningfully different file contents than if that had been done before the change. Note that some state changes (such as selecting chunks or atoms) affect some obse...
919c650d1866d690c83c42d8865a6dc45e13b966 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/919c650d1866d690c83c42d8865a6dc45e13b966/assembly.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3550, 12, 2890, 4672, 3536, 2115, 326, 5410, 716, 333, 19931, 261, 280, 5943, 518, 1914, 13, 711, 2118, 3550, 16, 316, 326, 12764, 716, 12392, 518, 1368, 279, 585, 4102, 11402, 12256, 40...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3550, 12, 2890, 4672, 3536, 2115, 326, 5410, 716, 333, 19931, 261, 280, 5943, 518, 1914, 13, 711, 2118, 3550, 16, 316, 326, 12764, 716, 12392, 518, 1368, 279, 585, 4102, 11402, 12256, 40...
datasetlist = simple_split(self.filesPerJob, inputs)
datasetlist = self._splitFiles(inputs)
def split(self,job): if self.filesPerJob < 1: logger.error('filesPerJob must be greater than 0.') raise SplittingError('filesPerJob < 1 : %d' % self.filesPerJob)
8385e24ccc423d9e8872e04e2ab47b68da5dd72a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/8385e24ccc423d9e8872e04e2ab47b68da5dd72a/Splitters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 12, 2890, 16, 4688, 4672, 309, 365, 18, 2354, 2173, 2278, 411, 404, 30, 1194, 18, 1636, 2668, 2354, 2173, 2278, 1297, 506, 6802, 2353, 374, 1093, 13, 1002, 5385, 1787, 668, 2668, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 12, 2890, 16, 4688, 4672, 309, 365, 18, 2354, 2173, 2278, 411, 404, 30, 1194, 18, 1636, 2668, 2354, 2173, 2278, 1297, 506, 6802, 2353, 374, 1093, 13, 1002, 5385, 1787, 668, 2668, ...
self.exe = './bin/gs -q -I$HOME/fonts'
self.exe = './main/obj/pcl6'
def __init__(self): # set defaults self.batch = False self.update = False self.verbose = False self.testpath = os.path.join(os.environ['HOME'], 'tests') #self.exe = './language_switch/obj/pspcl6' self.exe = './bin/gs -q -I$HOME/fonts' self.test = 'comparefiles'
41ee84fbebcbc455632df8b9a3dceaa8cb74234b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/675/41ee84fbebcbc455632df8b9a3dceaa8cb74234b/regress.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 468, 444, 3467, 365, 18, 5303, 273, 1083, 365, 18, 2725, 273, 1083, 365, 18, 11369, 273, 1083, 365, 18, 3813, 803, 273, 1140, 18, 803, 18, 5701, 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, 1001, 2738, 972, 12, 2890, 4672, 468, 444, 3467, 365, 18, 5303, 273, 1083, 365, 18, 2725, 273, 1083, 365, 18, 11369, 273, 1083, 365, 18, 3813, 803, 273, 1140, 18, 803, 18, 5701, 12, ...
def __new__(klass, parent, parent_pool):
def __init__(self, parent, parent_pool):
def __new__(klass, parent, parent_pool): """ Create a new pool that is a sub-pool of `parent_pool`, and arrange for `self.close` to be called up when the `parent` object is destroyed. The `parent` object must be weak-referenceable. The returned `Pool` instance will have the value of the newly created pool. """ self =...
c9263c6155dde638ad3fc97a6ac57e24d18c7b72 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/c9263c6155dde638ad3fc97a6ac57e24d18c7b72/svn_fs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 982, 67, 6011, 4672, 3536, 1788, 279, 394, 2845, 716, 353, 279, 720, 17, 6011, 434, 1375, 2938, 67, 6011, 9191, 471, 2454, 726, 364, 1375, 2890,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 982, 67, 6011, 4672, 3536, 1788, 279, 394, 2845, 716, 353, 279, 720, 17, 6011, 434, 1375, 2938, 67, 6011, 9191, 471, 2454, 726, 364, 1375, 2890,...
ob = SurveyAttachment(id, title, description, coverage, keywords, sortorder, '', precondition, content_type, downloadfilename, contributor, releasedate, lang)
ob = SurveyAttachment(id, contributor) container._setObject(ob.getId(), ob) ob = container._getOb(id) ob.saveProperties(title=title, description=description, coverage=coverage, keywords=keywords, sortorder=sortorder, precondition=precondition, content_type=content_type, downloadfilename=downloadfilename, releasedate=re...
def addSurveyAttachment(container, id='', title='', description='', coverage='', keywords='', sortorder='', source='file', file='', url='', precondition='', content_type='', downloadfilename='', contributor=None, releasedate='', discussion='', lang=None, REQUEST=None, **kwargs): """ """ if source=='file': id = cookId(i...
78ebc20be43b60c5ca38cd2484bc63a3c395e4ff /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3287/78ebc20be43b60c5ca38cd2484bc63a3c395e4ff/SurveyAttachment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 22165, 6803, 12, 3782, 16, 612, 2218, 2187, 2077, 2218, 2187, 2477, 2218, 2187, 11196, 2218, 2187, 7093, 2218, 2187, 1524, 1019, 2218, 2187, 1084, 2218, 768, 2187, 585, 2218, 2187, 88...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 22165, 6803, 12, 3782, 16, 612, 2218, 2187, 2077, 2218, 2187, 2477, 2218, 2187, 11196, 2218, 2187, 7093, 2218, 2187, 1524, 1019, 2218, 2187, 1084, 2218, 768, 2187, 585, 2218, 2187, 88...
self.generate_thumbs(image, steps)
neighbor.generate_thumbs(image, steps)
def populate_neighbors(self, template_full, size, steps, now): """docstring for thumbs""" # refresh neighbors background_image_name with overlap neighbors_keys = self.neighbors() neighbors = Square.objects.neighbors(self) for neighbor in neighbors: index = neighbors_keys[tuple((neighbor.pos_x, neighbor.pos_y))] loggin...
1e386b38286a3d11dbf39e7772477bbdb5dd2e22 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4038/1e386b38286a3d11dbf39e7772477bbdb5dd2e22/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6490, 67, 17549, 12, 2890, 16, 1542, 67, 2854, 16, 963, 16, 6075, 16, 2037, 4672, 3536, 24675, 364, 286, 10099, 8395, 225, 468, 4460, 11003, 5412, 67, 2730, 67, 529, 598, 7227, 11003, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6490, 67, 17549, 12, 2890, 16, 1542, 67, 2854, 16, 963, 16, 6075, 16, 2037, 4672, 3536, 24675, 364, 286, 10099, 8395, 225, 468, 4460, 11003, 5412, 67, 2730, 67, 529, 598, 7227, 11003, ...
if self.dirty_version: backconf = '%s.bak' % conffile shutil.move(conffile, backconf)
def __init__(self): self.opts = Config() self.help = {} self.types = {} self.dirty_version = False
811f40d18897df363e415fbddbc50077a4c1a880 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/811f40d18897df363e415fbddbc50077a4c1a880/options.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 4952, 273, 1903, 1435, 365, 18, 5201, 273, 2618, 365, 18, 2352, 273, 2618, 365, 18, 18013, 67, 1589, 273, 1083, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 4952, 273, 1903, 1435, 365, 18, 5201, 273, 2618, 365, 18, 2352, 273, 2618, 365, 18, 18013, 67, 1589, 273, 1083, 2, -100, -100, -100, -100, -10...
except yum.Errors.MiscError:
except Errors.MiscError:
def installLocal(self, pkg, po=None, updateonly=False): """ handles installs/updates of rpms provided on the filesystem in a local dir (ie: not from a repo)
94b17130e0386c0078ad522d4387625c84a03df5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5445/94b17130e0386c0078ad522d4387625c84a03df5/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 2042, 12, 2890, 16, 3475, 16, 8275, 33, 7036, 16, 1089, 3700, 33, 8381, 4672, 3536, 7372, 31011, 19, 14703, 434, 8715, 959, 2112, 603, 326, 6496, 316, 279, 1191, 1577, 261, 1385, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3799, 2042, 12, 2890, 16, 3475, 16, 8275, 33, 7036, 16, 1089, 3700, 33, 8381, 4672, 3536, 7372, 31011, 19, 14703, 434, 8715, 959, 2112, 603, 326, 6496, 316, 279, 1191, 1577, 261, 1385, ...
try: self.win.addch(*args) except (_curses.error, TypeError): pass except UnicodeEncodeError: try: self.win.addch(*(ascii_only(obj) for obj in args)) except (_curses.error, TypeError): pass
self._addxyz_wrapper(self.win.addch, args)
def addch(self, *args): try: self.win.addch(*args) except (_curses.error, TypeError): pass except UnicodeEncodeError: try: self.win.addch(*(ascii_only(obj) for obj in args)) except (_curses.error, TypeError): pass
5cb67eeb96d337b55deea20131fc44a3d5447251 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5729/5cb67eeb96d337b55deea20131fc44a3d5447251/curses_shortcuts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 343, 12, 2890, 16, 380, 1968, 4672, 775, 30, 365, 18, 8082, 18, 1289, 343, 30857, 1968, 13, 1335, 261, 67, 1397, 2420, 18, 1636, 16, 3580, 4672, 1342, 1335, 9633, 5509, 668, 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, 527, 343, 12, 2890, 16, 380, 1968, 4672, 775, 30, 365, 18, 8082, 18, 1289, 343, 30857, 1968, 13, 1335, 261, 67, 1397, 2420, 18, 1636, 16, 3580, 4672, 1342, 1335, 9633, 5509, 668, 30, ...
syslog(LOG_ERR, "Failed to locate basefile for %s" % name)
syslog(LOG_ERR, "Cfg: Failed to locate basefile for %s" % name)
def GetConfigFile(self, entry, metadata): '''Fetch config file from repository''' name = entry.attrib['name'] filedata = "" # first find basefile try: basefile = [bfile for bfile in self.basefiles if metadata.Applies(bfile)][-1] except IndexError: syslog(LOG_ERR, "Failed to locate basefile for %s" % name) raise Generat...
d95d4eea0cb84903bf9b68fe0f5821bfe5d4a183 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/d95d4eea0cb84903bf9b68fe0f5821bfe5d4a183/Cfg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 13705, 12, 2890, 16, 1241, 16, 1982, 4672, 9163, 5005, 642, 585, 628, 3352, 26418, 508, 273, 1241, 18, 14588, 3292, 529, 3546, 585, 892, 273, 1408, 468, 1122, 1104, 1026, 768, 775, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 13705, 12, 2890, 16, 1241, 16, 1982, 4672, 9163, 5005, 642, 585, 628, 3352, 26418, 508, 273, 1241, 18, 14588, 3292, 529, 3546, 585, 892, 273, 1408, 468, 1122, 1104, 1026, 768, 775, ...
files = map(os.path.relpath, manifest.split('\n'))
files = [os.path.relpath(f.strip()) for f in manifest.split('\n') if f.strip()]
def load_vcs_archive_manifest(config, archive): logging.debug("Loading manifest for %s" % archive) cmd = config["vcs_show_files"] if "vcs_show_files" in config \ else DARCS_SHOW_FILES cmd = cmd.split(' ') cmd.append(archive) sf = StringIO.StringIO() check_call(cmd, stdout=sf) manifest = sf.getvalue() sf.close() # ASSUM...
63c55deaca77c7f0049c619a61f844b105f646b2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5132/63c55deaca77c7f0049c619a61f844b105f646b2/musdex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 18982, 67, 10686, 67, 14357, 12, 1425, 16, 5052, 4672, 2907, 18, 4148, 2932, 10515, 5643, 364, 738, 87, 6, 738, 5052, 13, 1797, 273, 642, 9614, 18982, 67, 4500, 67, 2354, 119...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18982, 67, 10686, 67, 14357, 12, 1425, 16, 5052, 4672, 2907, 18, 4148, 2932, 10515, 5643, 364, 738, 87, 6, 738, 5052, 13, 1797, 273, 642, 9614, 18982, 67, 4500, 67, 2354, 119...
self.upDir = self.inventory.upDir self.normalDir = self.inventory.normalDir
self.upDir = map(float, self.inventory.upDir) self.normalDir = map(float, self.inventory.normalDir)
def _configure(self): """ Setup members using inventory. """ Component._configure(self) self.id = self.inventory.id self.label = self.inventory.label self.upDir = self.inventory.upDir self.normalDir = self.inventory.normalDir self.quadrature = self.inventory.quadrature self.matDB = self.inventory.matDB return
8a7ba31478b5f6850350fde7e88129958e2e4680 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8645/8a7ba31478b5f6850350fde7e88129958e2e4680/Fault.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 14895, 12, 2890, 4672, 3536, 10939, 4833, 1450, 13086, 18, 3536, 5435, 6315, 14895, 12, 2890, 13, 365, 18, 350, 273, 365, 18, 26024, 18, 350, 365, 18, 1925, 273, 365, 18, 26024, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14895, 12, 2890, 4672, 3536, 10939, 4833, 1450, 13086, 18, 3536, 5435, 6315, 14895, 12, 2890, 13, 365, 18, 350, 273, 365, 18, 26024, 18, 350, 365, 18, 1925, 273, 365, 18, 26024, 1...
res.append((invoice.id, invoice.number or invoice.invoice_date + \ invoice.partner.name))
res.append((invoice.id, invoice.number or '/' + ' ' + invoice.partner.name))
def name_get(self, cursor, user, ids, context=None): if not ids: return [] if isinstance(ids, (int, long)): ids = [ids] res = [] for invoice in self.browse(cursor, user, ids, context=context): res.append((invoice.id, invoice.number or invoice.invoice_date + \ invoice.partner.name)) return res
7a8bd9e11f72b053e4b85b67d89d677905f32bbf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9267/7a8bd9e11f72b053e4b85b67d89d677905f32bbf/invoice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 508, 67, 588, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 819, 33, 7036, 4672, 309, 486, 3258, 30, 327, 5378, 309, 1549, 12, 2232, 16, 261, 474, 16, 1525, 3719, 30, 3258, 273, 306, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3347, 16, 729, 16, 3258, 16, 819, 33, 7036, 4672, 309, 486, 3258, 30, 327, 5378, 309, 1549, 12, 2232, 16, 261, 474, 16, 1525, 3719, 30, 3258, 273, 306, ...
m[i,j] = l[i] return m
mat[i,j] = l[i] return mat
def hecke_matrix(self, m, n, use_recurrence = False, exact_arith = False): r""" Calculate the matrix of the `T_m` operator in the basis of this space, truncated to an `n \times n` matrix. Conventions are that operators act on the left on column vectors (this is the opposite of the conventions of the sage.modules.matrix...
3585551616e64b7ecefd90f53b929dc9de8efd18 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/3585551616e64b7ecefd90f53b929dc9de8efd18/genus0.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 366, 762, 73, 67, 5667, 12, 2890, 16, 312, 16, 290, 16, 999, 67, 266, 17131, 273, 1083, 16, 5565, 67, 297, 483, 273, 1083, 4672, 436, 8395, 9029, 326, 3148, 434, 326, 1375, 56, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 366, 762, 73, 67, 5667, 12, 2890, 16, 312, 16, 290, 16, 999, 67, 266, 17131, 273, 1083, 16, 5565, 67, 297, 483, 273, 1083, 4672, 436, 8395, 9029, 326, 3148, 434, 326, 1375, 56, 67, ...
key_tag=graphics_type+':'
key_tag=graphics_type+u':'
def getGraphics(self, graphics_type): """Retrieve Poster or Fan Art or Banner or Episode image graphics URL(s) return None if no graphics URLs were found return a string of URLs """ banners=u'_banners' series_name=self.config['series_name'] season=self.config['season_num'] episode=self.config['episode_num'] episode_nam...
881a9111c0613ff73ff321ac94e0e0ed204b9de1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/881a9111c0613ff73ff321ac94e0e0ed204b9de1/jamu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 17558, 12, 2890, 16, 17313, 67, 723, 4672, 3536, 5767, 5616, 264, 578, 478, 304, 9042, 578, 31218, 578, 512, 84, 11802, 1316, 17313, 1976, 12, 87, 13, 327, 599, 309, 1158, 17313, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17558, 12, 2890, 16, 17313, 67, 723, 4672, 3536, 5767, 5616, 264, 578, 478, 304, 9042, 578, 31218, 578, 512, 84, 11802, 1316, 17313, 1976, 12, 87, 13, 327, 599, 309, 1158, 17313, ...
if index.column() in ( DESCRIPCION, IDCUENTA ):
if index.column() in ( 1, 2 ):
def setModelData( self, editor, model, index ):
874b6d5efd407a40438246e28019332bf2770ea1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11009/874b6d5efd407a40438246e28019332bf2770ea1/cheques.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19027, 751, 12, 365, 16, 4858, 16, 938, 16, 770, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19027, 751, 12, 365, 16, 4858, 16, 938, 16, 770, 262, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
"%(appname)s was unable to save its database: Disk Full.\n" "We suggest deleting files from the full disk or " "simply deleting some movies from your collection.\n" "Recent changes may be lost.", {"appname": config.get(prefs.SHORT_APP_NAME)} )
"%(appname)s was unable to save its database.\n\n" "If your disk is full, we suggest freeing up some space and " "retrying. If your disk is not full, it's possible that " "retrying will work.\n\n" "If retrying did not work, please quit %(appname)s and restart. " "Recent changes may be lost.\n\n" "Error: %(error_text)...
def _handle_operational_error(self): title = _("%(appname)s database save failed", {"appname": config.get(prefs.SHORT_APP_NAME)}) description = _( "%(appname)s was unable to save its database: Disk Full.\n" "We suggest deleting files from the full disk or " "simply deleting some movies from your collection.\n" "Recent ...
8240fe5443e7a51b36f08b9cb2e610d7e52e5252 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/8240fe5443e7a51b36f08b9cb2e610d7e52e5252/storedatabase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 67, 22716, 67, 1636, 12, 2890, 4672, 2077, 273, 389, 2932, 17105, 2910, 529, 13, 87, 2063, 1923, 2535, 3113, 12528, 2910, 529, 6877, 642, 18, 588, 12, 1484, 2556, 18, 15993, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4110, 67, 22716, 67, 1636, 12, 2890, 4672, 2077, 273, 389, 2932, 17105, 2910, 529, 13, 87, 2063, 1923, 2535, 3113, 12528, 2910, 529, 6877, 642, 18, 588, 12, 1484, 2556, 18, 15993, ...
return "\'%s\':\'%s\', " % (option, value.strformat("%Y-%m-%d %H:%M:%S"))
return "\'%s\':\'%s\', " % (option, value.strftime("%Y-%m-%d %H:%M:%S"))
def _datetime_option(self, option, value): """Returns the string 'option': 'value' where value is a date object formatted in string as yyyy-mm-dd hh:mm:ss. If value is None, then we return ''.
83012e559756373ef19add9ed3d26f1bf779a22c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/231/83012e559756373ef19add9ed3d26f1bf779a22c/testopia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6585, 67, 3482, 12, 2890, 16, 1456, 16, 460, 4672, 3536, 1356, 326, 533, 296, 3482, 4278, 296, 1132, 11, 1625, 460, 353, 279, 1509, 733, 4955, 316, 533, 487, 24025, 17, 7020, 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, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6585, 67, 3482, 12, 2890, 16, 1456, 16, 460, 4672, 3536, 1356, 326, 533, 296, 3482, 4278, 296, 1132, 11, 1625, 460, 353, 279, 1509, 733, 4955, 316, 533, 487, 24025, 17, 7020, 17, ...
rpm_args.extend(['--define',
rpm_cmd.extend(['--define',
def run (self):
64988d2ae018b34f23a3cbdc33a117147f1438da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/64988d2ae018b34f23a3cbdc33a117147f1438da/bdist_rpm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 261, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1086, 261, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
raise RuntimeError('Remove constraint before modifying atoms.')
from ase.constraints import FixAtoms fixed_only = True fixed_atoms = [False for a in self] have_constraints = True for con in self.constraints: if isinstance(con, FixAtoms): for i in con.index: fixed_atoms[i] = True else: fixed_only = False if not fixed_only: raise RuntimeError('Remove all constraints beyond FixAtoms b...
def __imul__(self, m): if len(self._constraints) > 0: raise RuntimeError('Remove constraint before modifying atoms.') if isinstance(m, int): m = (m, m, m) M = np.product(m) n = len(self) for name, a in self.arrays.items(): self.arrays[name] = np.tile(a, (M,) + (1,) * (len(a.shape) - 1))
139197219dc2ae25e3b5329e354c8c3c854c1f65 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5735/139197219dc2ae25e3b5329e354c8c3c854c1f65/atoms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 381, 332, 972, 12, 2890, 16, 312, 4672, 309, 562, 12, 2890, 6315, 11967, 13, 405, 374, 30, 628, 26561, 18, 11967, 1930, 12139, 14280, 5499, 67, 3700, 273, 1053, 5499, 67, 14937, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 381, 332, 972, 12, 2890, 16, 312, 4672, 309, 562, 12, 2890, 6315, 11967, 13, 405, 374, 30, 628, 26561, 18, 11967, 1930, 12139, 14280, 5499, 67, 3700, 273, 1053, 5499, 67, 14937, ...
types_insertProblematic = [StringType,DictType] def export_insertProblematic(self,source,fileMetadata):
types_insertProblematic = [StringType, DictType] def export_insertProblematic( self, source, fileMetadata ):
def export_incrementProblematicRetry(self,fileID): """ Update the retry count for supplied file ID. """ gLogger.info("DataIntegrityHandler.incrementProblematicRetry: Attempting to increment retries for file %s." % (fileID)) res = integrityDB.incrementProblematicRetry(fileID) if not res['OK']: gLogger.error("DataIntegri...
c1b7c4db986dd1c0291dea482456ba2b1cdb51b8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/c1b7c4db986dd1c0291dea482456ba2b1cdb51b8/DataIntegrityHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 15016, 13719, 2126, 7539, 12, 2890, 16, 768, 734, 4672, 3536, 2315, 326, 3300, 1056, 364, 4580, 585, 1599, 18, 3536, 314, 3328, 18, 1376, 2932, 751, 30669, 1503, 18, 15016, 137...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 15016, 13719, 2126, 7539, 12, 2890, 16, 768, 734, 4672, 3536, 2315, 326, 3300, 1056, 364, 4580, 585, 1599, 18, 3536, 314, 3328, 18, 1376, 2932, 751, 30669, 1503, 18, 15016, 137...
log.prepare_constant("preparing ptr", value)
log.prepareconstant("preparing ptr", value)
def prepare_constant(self, type_, value): if isinstance(type_, lltype.Primitive): #log.prepare_constant(value, "(is primitive)") return if isinstance(type_, lltype.Ptr): type_ = type_.TO value = value._obj
032b67279cec660c370f9883129aa9bab8e22ade /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/032b67279cec660c370f9883129aa9bab8e22ade/database.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 67, 14384, 12, 2890, 16, 618, 67, 16, 460, 4672, 309, 1549, 12, 723, 67, 16, 6579, 723, 18, 9840, 4672, 468, 1330, 18, 9366, 67, 14384, 12, 1132, 16, 7751, 291, 8225, 2225, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 67, 14384, 12, 2890, 16, 618, 67, 16, 460, 4672, 309, 1549, 12, 723, 67, 16, 6579, 723, 18, 9840, 4672, 468, 1330, 18, 9366, 67, 14384, 12, 1132, 16, 7751, 291, 8225, 2225, 13,...
if (o and o in overrides) or not o: self.delVarFlag(append, "_append")
def finalize(self): """Performs final steps upon the datastore, including application of overrides"""
c354955d26d34316b3dbf0e2175526838401f3b6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8123/c354955d26d34316b3dbf0e2175526838401f3b6/data_smart.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12409, 12, 2890, 4672, 3536, 9409, 727, 6075, 12318, 326, 9290, 16, 6508, 2521, 434, 9515, 8395, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12409, 12, 2890, 4672, 3536, 9409, 727, 6075, 12318, 326, 9290, 16, 6508, 2521, 434, 9515, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
print "osname:", os_name()
def generated_targets(self, sources, prop_set, project, name = None): name = sources[0].name return Generator.generated_targets(self, sources, prop_set, project, name)
58cfa3c7bd452fe0320abbe925106903c7ce52c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9981/58cfa3c7bd452fe0320abbe925106903c7ce52c0/gcc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4374, 67, 11358, 12, 2890, 16, 5550, 16, 2270, 67, 542, 16, 1984, 16, 508, 273, 599, 4672, 508, 273, 5550, 63, 20, 8009, 529, 327, 10159, 18, 11168, 67, 11358, 12, 2890, 16, 5550, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4374, 67, 11358, 12, 2890, 16, 5550, 16, 2270, 67, 542, 16, 1984, 16, 508, 273, 599, 4672, 508, 273, 5550, 63, 20, 8009, 529, 327, 10159, 18, 11168, 67, 11358, 12, 2890, 16, 5550, 16...
'title': answer.get('w_name-assessment'),
'title': answer.get('w_assessment-name'),
def extract_survey_answer_data(answer): attrs = { 'id': answer.getId(), 'title': answer.get('w_name-assessment'), 'geo_location': answer.get('w_location'), 'uploader': answer.get('w_15-information-about-data-uploader'), 'geo_type': extract_geo_type(answer), 'description': "", 'target_path': path_in_site(answer), } if ...
cb9c16dc9167e3eac1b178e3f160ffeb6db85b84 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/cb9c16dc9167e3eac1b178e3f160ffeb6db85b84/shadow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 21448, 67, 13490, 67, 892, 12, 13490, 4672, 3422, 273, 288, 296, 350, 4278, 5803, 18, 26321, 9334, 296, 2649, 4278, 5803, 18, 588, 2668, 91, 67, 18222, 17, 529, 19899, 296, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 21448, 67, 13490, 67, 892, 12, 13490, 4672, 3422, 273, 288, 296, 350, 4278, 5803, 18, 26321, 9334, 296, 2649, 4278, 5803, 18, 588, 2668, 91, 67, 18222, 17, 529, 19899, 296, 1...
dom = [] if column._domain and not isinstance(column._domain, (str, unicode)): dom = column._domain dom += eval(node.get('domain','[]'), {'uid':user, 'time':time}) context.update(eval(node.get('context','{}'))) attrs['selection'] = self.pool.get(relation).name_search(cr, user, '', dom, context=context,limit=None) if (n...
else: dom = [] if column._domain and not isinstance(column._domain, (str, unicode)): dom = column._domain dom += eval(node.get('domain','[]'), {'uid':user, 'time':time}) context.update(eval(node.get('context','{}'))) attrs['selection'] = self.pool.get(relation)._name_search(cr, user, '', dom, context=context,limit=None...
def encode(s): if isinstance(s, unicode): return s.encode('utf8') return s
43885464599c129aa3047d213235920204bb59b1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/43885464599c129aa3047d213235920204bb59b1/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 12, 87, 4672, 309, 1549, 12, 87, 16, 5252, 4672, 327, 272, 18, 3015, 2668, 3158, 28, 6134, 327, 272, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 12, 87, 4672, 309, 1549, 12, 87, 16, 5252, 4672, 327, 272, 18, 3015, 2668, 3158, 28, 6134, 327, 272, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
(auth_code, auth_message) = acc_authorize_action(uid, 'runbibedit')
(auth_code, auth_message) = acc_authorize_action(uid, 'runbibedit')
def format(bfo, style): """ Prints a link to BibEdit, if authorization is granted @param style the CSS style to be applied to the link. """ from invenio.config import weburl from invenio.access_control_engine import acc_authorize_action out = "" uid = bfo.uid req = bfo.req if uid is not None: if req: (auth_code, aut...
967afa2c68aff3818b3f4fb0d61059b3b356b266 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/967afa2c68aff3818b3f4fb0d61059b3b356b266/bfe_edit_record.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 12, 70, 617, 16, 2154, 4672, 3536, 3038, 87, 279, 1692, 358, 605, 495, 4666, 16, 309, 6093, 353, 17578, 225, 632, 891, 2154, 326, 6765, 2154, 358, 506, 6754, 358, 326, 1692, 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, 740, 12, 70, 617, 16, 2154, 4672, 3536, 3038, 87, 279, 1692, 358, 605, 495, 4666, 16, 309, 6093, 353, 17578, 225, 632, 891, 2154, 326, 6765, 2154, 358, 506, 6754, 358, 326, 1692, 18, ...
substring(l.create_date for 7)|| '-01' as name,
substring(l.create_date for 10) as name, substring(l.create_date for 7)|| '-01' as month,
def init(self, cr): cr.execute("""create or replace view report_auction_object_date as (select min(l.id) as id, substring(l.create_date for 7)|| '-01' as name, count(l.obj_num) as obj_num, l.state as state, l.create_uid as user, l.ach_uid as ach_uid from auction_lots l group by substring(l.create_date for 7),l.state,l....
83af9d311c1190113a797464e4f3eac921eb3569 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7339/83af9d311c1190113a797464e4f3eac921eb3569/auction.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 12, 2890, 16, 4422, 4672, 4422, 18, 8837, 2932, 3660, 2640, 578, 1453, 1476, 2605, 67, 69, 4062, 67, 1612, 67, 712, 487, 261, 4025, 1131, 12, 80, 18, 350, 13, 487, 612, 16, 301...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 12, 2890, 16, 4422, 4672, 4422, 18, 8837, 2932, 3660, 2640, 578, 1453, 1476, 2605, 67, 69, 4062, 67, 1612, 67, 712, 487, 261, 4025, 1131, 12, 80, 18, 350, 13, 487, 612, 16, 301...
try: citation_list = get_cited_by_dictionary().get(record_id, []) except TypeError: pass
if cache_cited_by_dictionary: citation_list = cache_cited_by_dictionary.get(record_id, [])
def get_cited_by_list(record_id): """return citation list dictionary of record_id """ citation_list = [] try: citation_list = get_cited_by_dictionary().get(record_id, []) except TypeError: pass return citation_list
6c30fb66dc2e78240c36f16778c6a0b21f4c42df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/6c30fb66dc2e78240c36f16778c6a0b21f4c42df/bibrank_citation_searcher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 71, 16261, 67, 1637, 67, 1098, 12, 3366, 67, 350, 4672, 3536, 2463, 21145, 666, 3880, 434, 1409, 67, 350, 3536, 21145, 67, 1098, 273, 5378, 309, 1247, 67, 71, 16261, 67, 1637,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 71, 16261, 67, 1637, 67, 1098, 12, 3366, 67, 350, 4672, 3536, 2463, 21145, 666, 3880, 434, 1409, 67, 350, 3536, 21145, 67, 1098, 273, 5378, 309, 1247, 67, 71, 16261, 67, 1637,...
return((name, version, description, state, upgradeablepng, divpng))
return((name, version, _(description), state, upgradeablepng, divpng))
def buildEntryComponent(self, name, version, description, state): divpng = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/div-h.png")) if state == 'installed': installedpng = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_PLUGIN, "SystemPlugins/SoftwareManager/installed.png")...
8600c86a6928e70d8468a55970d6933bbb9f71c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/8600c86a6928e70d8468a55970d6933bbb9f71c3/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 1622, 1841, 12, 2890, 16, 508, 16, 1177, 16, 2477, 16, 919, 4672, 3739, 6446, 273, 4444, 21816, 1458, 12, 7097, 33, 5510, 16, 589, 33, 10828, 5359, 12, 19444, 67, 15487, 67, 1112...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1622, 1841, 12, 2890, 16, 508, 16, 1177, 16, 2477, 16, 919, 4672, 3739, 6446, 273, 4444, 21816, 1458, 12, 7097, 33, 5510, 16, 589, 33, 10828, 5359, 12, 19444, 67, 15487, 67, 1112...
type, reduce_factories(factory, for_), name, for_, provides, layer),
type, factory, name, for_, provides, layer),
def proxyView(context, request, factory=factory[-1], checker=checker): return proxify(factory(context, request), checker)
aa7adf06e408affb776189758679dd6527424c57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9537/aa7adf06e408affb776189758679dd6527424c57/metaconfigure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2889, 1767, 12, 2472, 16, 590, 16, 3272, 33, 6848, 18919, 21, 6487, 12489, 33, 19243, 4672, 327, 8617, 1164, 12, 6848, 12, 2472, 16, 590, 3631, 12489, 13, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2889, 1767, 12, 2472, 16, 590, 16, 3272, 33, 6848, 18919, 21, 6487, 12489, 33, 19243, 4672, 327, 8617, 1164, 12, 6848, 12, 2472, 16, 590, 3631, 12489, 13, 2, -100, -100, -100, -100, -1...
labreport=Label(f5c2,text='Rpt',width=4) report=Entry(f5c2, width=4) report.insert(0,'26') labreport.pack(side=RIGHT,expand=1,fill=BOTH) report.pack(side=RIGHT,expand=1,fill=BOTH) shmsg=Checkbutton(f5c,text='Sh Msg',justify=RIGHT,variable=ShOK, command=restart2)
def update(): global root_geom,isec0,naz,nel,ndmiles,ndkm,nhotaz,nhotabetter,nopen, \ im,pim,cmap0,isync,isync_save,idsec,first,itol,txsnrdb,tx6alt,\ bm_geom utc=time.gmtime(time.time()+0.1*idsec) isec=utc[5] if isec != isec0: #Do once per second isec0=isec t=time.strftime('%Y %b %d\n%H:%M:%...
f15c753982ab17e3b44954cd158dec3caeb6c649 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2394/f15c753982ab17e3b44954cd158dec3caeb6c649/map65.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 13332, 2552, 1365, 67, 10049, 16, 291, 557, 20, 16, 82, 1561, 16, 3084, 16, 4880, 81, 1449, 16, 82, 2883, 81, 16, 82, 15224, 1561, 16, 82, 15224, 378, 11214, 16, 82, 3190, 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, 1089, 13332, 2552, 1365, 67, 10049, 16, 291, 557, 20, 16, 82, 1561, 16, 3084, 16, 4880, 81, 1449, 16, 82, 2883, 81, 16, 82, 15224, 1561, 16, 82, 15224, 378, 11214, 16, 82, 3190, 16, ...
return self.runInteractionNow(self._txn_get_active_buildset_ids) def _txn_get_active_buildset_ids(self, t): raise NotImplementedError t.execute("SELECT id FROM buildsets WHERE complete=0") return [bsid for (bsid,) in t.fetchall()]
bsids = bset_obj.search([('complete', '=', False)]) return list(bsids)
def get_active_buildset_ids(self): return self.runInteractionNow(self._txn_get_active_buildset_ids)
a202817cd2cb8d6b165e49ef57e7118af25a3dce /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12355/a202817cd2cb8d6b165e49ef57e7118af25a3dce/connector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3535, 67, 3510, 542, 67, 2232, 12, 2890, 4672, 327, 365, 18, 2681, 17419, 8674, 12, 2890, 6315, 24790, 67, 588, 67, 3535, 67, 3510, 542, 67, 2232, 13, 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, 336, 67, 3535, 67, 3510, 542, 67, 2232, 12, 2890, 4672, 327, 365, 18, 2681, 17419, 8674, 12, 2890, 6315, 24790, 67, 588, 67, 3535, 67, 3510, 542, 67, 2232, 13, 2, -100, -100, -100, -...
matchExpr = Group( FollowedBy(lastExpr + opExpr + thisExpr) + lastExpr + OneOrMore( opExpr + thisExpr ) )
if opExpr is not None: matchExpr = FollowedBy(lastExpr + opExpr + thisExpr) + Group( lastExpr + OneOrMore( opExpr + thisExpr ) ) else: matchExpr = FollowedBy(lastExpr + thisExpr) + Group( lastExpr + OneOrMore( thisExpr ) ) elif arity == 3: matchExpr = FollowedBy(lastExpr + opExpr1 + thisExpr + opExpr2 + thisExpr) + \ G...
def operatorPrecedence( baseExpr, opList ): """Helper method for constructing grammars of expressions made up of operators working in a precedence hierarchy. Operators may be unary or binary, left- or right-associative. Parse actions can also be attached to operator expressions. Parameters: - baseExpr - expression r...
e11e354180d47d9e1233615eda3a3bb17da06d82 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3693/e11e354180d47d9e1233615eda3a3bb17da06d82/pyparsing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3726, 1386, 24092, 12, 1026, 4742, 16, 27571, 262, 30, 3536, 2276, 707, 364, 27389, 6473, 87, 434, 8041, 7165, 731, 434, 12213, 5960, 316, 279, 14172, 9360, 18, 225, 7692, 3062, 2026, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3726, 1386, 24092, 12, 1026, 4742, 16, 27571, 262, 30, 3536, 2276, 707, 364, 27389, 6473, 87, 434, 8041, 7165, 731, 434, 12213, 5960, 316, 279, 14172, 9360, 18, 225, 7692, 3062, 2026, 50...
cr.execute('select id,number_next,number_increment,prefix,suffix,padding from ir_sequence where '+test+' and active=True FOR UPDATE', (sequence_id,))
cr.execute('select id from ir_sequence where '+test+' and active=%s', (sequence_id, True,))
def get_id(self, cr, uid, sequence_id, test='id=%s', context={}): cr.execute('select id,number_next,number_increment,prefix,suffix,padding from ir_sequence where '+test+' and active=True FOR UPDATE', (sequence_id,)) res = cr.dictfetchone() if res: for line in self.browse(cr, uid, res['id'], context=context).fiscal_ids:...
e616d4d4e22431191b2b6bda2bec9eefe58043e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/e616d4d4e22431191b2b6bda2bec9eefe58043e3/sequence.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 350, 12, 2890, 16, 4422, 16, 4555, 16, 3102, 67, 350, 16, 1842, 2218, 350, 5095, 87, 2187, 819, 12938, 4672, 4422, 18, 8837, 2668, 4025, 612, 628, 9482, 67, 6178, 1625, 15126,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 350, 12, 2890, 16, 4422, 16, 4555, 16, 3102, 67, 350, 16, 1842, 2218, 350, 5095, 87, 2187, 819, 12938, 4672, 4422, 18, 8837, 2668, 4025, 612, 628, 9482, 67, 6178, 1625, 15126,...
self.interaction(frame, None)
if self.bp_commands(frame): self.interaction(frame, None) def bp_commands(self,frame): """ Call every command that was set for the current active breakpoint (if there is one) Returns True if the normal interaction function must be called, False otherwise """ if getattr(self,"currentbp",False) and self.currentbp in se...
def user_line(self, frame): """This function is called when we stop or break at this line.""" if self._wait_for_mainpyfile: if (self.mainpyfile != self.canonic(frame.f_code.co_filename) or frame.f_lineno<= 0): return self._wait_for_mainpyfile = 0 self.interaction(frame, None)
56bc4eacbe023477f3d34492b81dc65571e0de8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/56bc4eacbe023477f3d34492b81dc65571e0de8b/pdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 729, 67, 1369, 12, 2890, 16, 2623, 4672, 3536, 2503, 445, 353, 2566, 1347, 732, 2132, 578, 898, 622, 333, 980, 12123, 309, 365, 6315, 7048, 67, 1884, 67, 5254, 2074, 768, 30, 309, 261,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 729, 67, 1369, 12, 2890, 16, 2623, 4672, 3536, 2503, 445, 353, 2566, 1347, 732, 2132, 578, 898, 622, 333, 980, 12123, 309, 365, 6315, 7048, 67, 1884, 67, 5254, 2074, 768, 30, 309, 261,...
println('type(my_%s), pointer, intent(in) :: this' % t.name)
println('type(quippy_%s), pointer, intent(in) :: this' % t.name)
def join_and_split_lines(args, max_length=80): args_str = '' line = '' args = args[:] # make a copy while args: line += args.pop(0) if args: line += ', ' if args and len(line) >= max_length: args_str += '%s&\n%s' % (line, ' '*(indent+3)) line = '' args_str += line return args_str
04b3ebf0437b0c5e7d27b8ec54d4b98a4935630a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8914/04b3ebf0437b0c5e7d27b8ec54d4b98a4935630a/f2py_wrapper_gen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1233, 67, 464, 67, 4939, 67, 3548, 12, 1968, 16, 943, 67, 2469, 33, 3672, 4672, 833, 67, 701, 273, 875, 980, 273, 875, 833, 273, 833, 10531, 65, 468, 1221, 279, 1610, 1323, 833, 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, 1233, 67, 464, 67, 4939, 67, 3548, 12, 1968, 16, 943, 67, 2469, 33, 3672, 4672, 833, 67, 701, 273, 875, 980, 273, 875, 833, 273, 833, 10531, 65, 468, 1221, 279, 1610, 1323, 833, 30, ...
self.__firstProxyStep = step checkProxyParth = False
self.__firstProxyStep = step-1 checkProxyPart = False
def __checkProxyness( self ): self.__firstProxyStep = len( self.__certList )-2 # -1 is user cert by default, -2 is first proxy step self.__isProxy = True checkProxyPart = True #If less than 2 steps in the chain is no proxy if len( self.__certList ) < 2: self.__isProxy = False return #Check proxyness in steps for step i...
4be08f9f800e2f322b0bde36a8e3d07835a36457 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/4be08f9f800e2f322b0bde36a8e3d07835a36457/X509Chain.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1893, 16155, 878, 403, 12, 365, 262, 30, 365, 16186, 3645, 3886, 4160, 273, 562, 12, 365, 16186, 7593, 682, 262, 17, 22, 468, 300, 21, 353, 729, 3320, 635, 805, 16, 300, 22, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1893, 16155, 878, 403, 12, 365, 262, 30, 365, 16186, 3645, 3886, 4160, 273, 562, 12, 365, 16186, 7593, 682, 262, 17, 22, 468, 300, 21, 353, 729, 3320, 635, 805, 16, 300, 22, 35...
"""[experimental method by bruce 040922] or make a sibling method! [bruce 041223] Show a warning to the user, without interrupting them (i.e. not in a dialog) unless bother_user_with_dialog is true, or unless ensure_visible is true and there's no other way to be sure they'll see the message. (If neither of these o...
""" [experimental method by bruce 040922] or make a sibling method! [bruce 041223] Show a warning to the user, without interrupting them (i.e. not in a dialog) unless bother_user_with_dialog is true, or unless ensure_visible is true and there's no other way to be sure they'll see the message. (If neither of these o...
def warning(self, str, bother_user_with_dialog = 0, ensure_visible = 1): """[experimental method by bruce 040922]
9dc95351096c9deab5f64e3e704bde7a93f95b49 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/9dc95351096c9deab5f64e3e704bde7a93f95b49/GLPane.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3436, 12, 2890, 16, 609, 16, 23440, 67, 1355, 67, 1918, 67, 12730, 273, 374, 16, 3387, 67, 8613, 273, 404, 4672, 225, 3536, 63, 18142, 287, 707, 635, 5186, 3965, 16486, 5908, 3787, 65,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3436, 12, 2890, 16, 609, 16, 23440, 67, 1355, 67, 1918, 67, 12730, 273, 374, 16, 3387, 67, 8613, 273, 404, 4672, 225, 3536, 63, 18142, 287, 707, 635, 5186, 3965, 16486, 5908, 3787, 65,...
@return: inverse function value, or C{None} if ${y} is out of admissible range
@return: inverse function value, or C{None} if C{y} is out of admissible range
def inverse(self, y) : """Compute inverse.
4271f12956710e7490322b5392e5f46a662eee50 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1770/4271f12956710e7490322b5392e5f46a662eee50/optim.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8322, 12, 2890, 16, 677, 13, 294, 3536, 7018, 8322, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8322, 12, 2890, 16, 677, 13, 294, 3536, 7018, 8322, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if not sys.platform.startswith('win'):
if (sysconfig.get_config_var('Py_ENABLE_SHARED') and not sys.platform.startswith('win')):
def _fixup_command(self, cmd): # When Python was build with --enable-shared, -L. is not good enough # to find the libpython<blah>.so. This is because regrtest runs it # under a tempdir, not in the top level where the .so lives. By the # time we've gotten here, Python's already been chdir'd to the # tempdir. # # To fu...
54052c00a7d9b509fd5424389a5d3e217c276b8c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/54052c00a7d9b509fd5424389a5d3e217c276b8c/test_build_ext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 904, 416, 67, 3076, 12, 2890, 16, 1797, 4672, 468, 5203, 6600, 1703, 1361, 598, 1493, 7589, 17, 11574, 16, 300, 48, 18, 353, 486, 7494, 7304, 468, 358, 1104, 326, 2561, 8103, 32, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 904, 416, 67, 3076, 12, 2890, 16, 1797, 4672, 468, 5203, 6600, 1703, 1361, 598, 1493, 7589, 17, 11574, 16, 300, 48, 18, 353, 486, 7494, 7304, 468, 358, 1104, 326, 2561, 8103, 32, ...
fft_map.apply_sigma_scaling(resolution_factor=resolution_factor)
fft_map.apply_sigma_scaling()
def update_map_from_miller_array (self, map_id, map_coeffs, resolution_factor=0.33) : assert map_coeffs.is_complex_array() fft_map = map_coeffs.fft_map(resolution_factor=resolution_factor) fft_map.apply_sigma_scaling(resolution_factor=resolution_factor) self.update_map(map_id, fft_map)
cdae8d7730aefad6235cabcb61828f022c1d70d4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/696/cdae8d7730aefad6235cabcb61828f022c1d70d4/wx_combined_viewer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 1458, 67, 2080, 67, 81, 24462, 67, 1126, 261, 2890, 16, 852, 67, 350, 16, 852, 67, 30463, 16, 7861, 67, 6812, 33, 20, 18, 3707, 13, 294, 1815, 852, 67, 30463, 18, 291, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 1458, 67, 2080, 67, 81, 24462, 67, 1126, 261, 2890, 16, 852, 67, 350, 16, 852, 67, 30463, 16, 7861, 67, 6812, 33, 20, 18, 3707, 13, 294, 1815, 852, 67, 30463, 18, 291, 67...
self.client.error_message.append(_('Incorrect password'))
self.client.error_message.append(self._('Incorrect password'))
def handle(self): """Attempt to log a user in.
ade743793a8c591cf5f28a2d1c898d9c49ebe4f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/ade743793a8c591cf5f28a2d1c898d9c49ebe4f6/actions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12, 2890, 4672, 3536, 7744, 358, 613, 279, 729, 316, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12, 2890, 4672, 3536, 7744, 358, 613, 279, 729, 316, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
mail = Mail(mfrom, mto, messageText,
mail = Mail(mfrom, mto, message,
def __A_SYNC_send( self, mfrom, mto, messageText, debug=False): """Send the message """ if not isistance(messageText, email.MIMEText.MIMEText): message = email.message_from_string(messageText) else: message = messageText from asyncmailer import mailQueue, initializeMailThread initializeMailThread() mail = Mail(mfrom, m...
03394384eca7ab550ce4aac43823dc3aa7ec838c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/03394384eca7ab550ce4aac43823dc3aa7ec838c/SecureMailHost.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 37, 67, 25142, 67, 4661, 12, 365, 16, 312, 2080, 16, 312, 869, 16, 883, 1528, 16, 1198, 33, 8381, 4672, 3536, 3826, 326, 883, 3536, 309, 486, 353, 13145, 12, 2150, 1528, 16, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 37, 67, 25142, 67, 4661, 12, 365, 16, 312, 2080, 16, 312, 869, 16, 883, 1528, 16, 1198, 33, 8381, 4672, 3536, 3826, 326, 883, 3536, 309, 486, 353, 13145, 12, 2150, 1528, 16, 26...
dirname_check = "dirname = '%s' and " % dirname
dirname_check = "dirname = \"%s\" and " % dirname
def searchFiles(self, name, strict=False): """search primary if file will be in there, if not, search filelists, use globs, if possible""" # optimizations: # if it is not glob, then see if it is in the primary.xml filelists, # if so, just use those for the lookup glob = True querytype = 'glob' if strict or not re.ma...
6a72fa2e46ee90215f8d9da0a27178daab4d4469 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5445/6a72fa2e46ee90215f8d9da0a27178daab4d4469/sqlitesack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 2697, 12, 2890, 16, 508, 16, 5490, 33, 8381, 4672, 3536, 3072, 3354, 309, 585, 903, 506, 316, 1915, 16, 309, 486, 16, 1623, 661, 292, 1486, 16, 999, 4715, 87, 16, 309, 3323, 83...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2697, 12, 2890, 16, 508, 16, 5490, 33, 8381, 4672, 3536, 3072, 3354, 309, 585, 903, 506, 316, 1915, 16, 309, 486, 16, 1623, 661, 292, 1486, 16, 999, 4715, 87, 16, 309, 3323, 83...
tz = time.strftime('%z')
if time.daylight: offset = time.altzone else: offset = time.timezone if offset <= 0: sign, offset = '+', -offset else: sign = '-' offset = '%s%02d%02d' % (sign, offset / 3600, (offset % 3600) / 60)
def getaddrs(opt, prpt, default = None): addrs = opts[opt] or (ui.config('email', opt) or ui.config('patchbomb', opt) or prompt(prpt, default = default)).split(',') return [a.strip() for a in addrs if a.strip()]
8987be83873e8fad8c93dc0df953b37a9fba599d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/8987be83873e8fad8c93dc0df953b37a9fba599d/patchbomb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 23305, 12, 3838, 16, 846, 337, 16, 805, 273, 599, 4672, 11755, 273, 1500, 63, 3838, 65, 578, 261, 4881, 18, 1425, 2668, 3652, 2187, 2153, 13, 578, 5915, 18, 1425, 2668, 2272, 70, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 23305, 12, 3838, 16, 846, 337, 16, 805, 273, 599, 4672, 11755, 273, 1500, 63, 3838, 65, 578, 261, 4881, 18, 1425, 2668, 3652, 2187, 2153, 13, 578, 5915, 18, 1425, 2668, 2272, 70, ...
"Divide two Rats, returning quotient and remainder (reversed args)."""
"""Divide two Rats, returning quotient and remainder (reversed args)."""
def __rdivmod__(self, other): "Divide two Rats, returning quotient and remainder (reversed args).""" if isint(other): other = Rat(other) elif not isRat(other): return NotImplemented return divmod(other, self)
7f5c88801018da1f3551e55f4183bfe07e5379e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/7f5c88801018da1f3551e55f4183bfe07e5379e6/test_binop.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 86, 2892, 1711, 972, 12, 2890, 16, 1308, 4672, 3536, 7244, 831, 2795, 534, 2323, 16, 5785, 26708, 471, 10022, 261, 266, 7548, 833, 13, 12123, 309, 353, 474, 12, 3011, 4672, 1308, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 86, 2892, 1711, 972, 12, 2890, 16, 1308, 4672, 3536, 7244, 831, 2795, 534, 2323, 16, 5785, 26708, 471, 10022, 261, 266, 7548, 833, 13, 12123, 309, 353, 474, 12, 3011, 4672, 1308, ...
message = "I/O error(%s): %s" % (errno, strerror)
message = "Error opening: " +\ os.path.join(os.path.expanduser(DEFAULT_SOURCE), DEFAULT_DBTABL) +\ " I/O error(%s): %s" % (errno, strerror)
def create_database(name): try: f = open(os.path.join(DEFAULT_SERVER, DEFAULT_DBTAB), 'r') s = f.read() f.close() except IOError, (errno, strerror): message = "I/O error(%s): %s" % (errno, strerror) raise InstallError(message) out = commands.getstatusoutput("echo \"" + s + "\" | sqlite3 " +\ os.path.join(os.path.expa...
acf559e6e5de1c1854bbf63e6dc9e1b4740212a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8183/acf559e6e5de1c1854bbf63e6dc9e1b4740212a6/tomb-install-dist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 6231, 12, 529, 4672, 775, 30, 284, 273, 1696, 12, 538, 18, 803, 18, 5701, 12, 5280, 67, 4370, 16, 3331, 67, 2290, 28899, 3631, 296, 86, 6134, 272, 273, 284, 18, 896, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 6231, 12, 529, 4672, 775, 30, 284, 273, 1696, 12, 538, 18, 803, 18, 5701, 12, 5280, 67, 4370, 16, 3331, 67, 2290, 28899, 3631, 296, 86, 6134, 272, 273, 284, 18, 896, 1435, ...
if code>0:
if code>0 and len(err)>0:
def system_call(item, command, divert_output_to_log = True): """ Makes a system call. @params item: a text specifying the content of the text (e.g. number of the GRB the message is associated with) (see also 'info') @params command: the command to be executed on the bash @params divert_output_to_log: If this flag is se...
95499224566e9b069470bbc218a52002020d0f64 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/95499224566e9b069470bbc218a52002020d0f64/pylal_exttrig_llutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2619, 67, 1991, 12, 1726, 16, 1296, 16, 3739, 1051, 67, 2844, 67, 869, 67, 1330, 273, 1053, 4672, 3536, 490, 3223, 279, 2619, 745, 18, 632, 2010, 761, 30, 279, 977, 13664, 326, 913, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2619, 67, 1991, 12, 1726, 16, 1296, 16, 3739, 1051, 67, 2844, 67, 869, 67, 1330, 273, 1053, 4672, 3536, 490, 3223, 279, 2619, 745, 18, 632, 2010, 761, 30, 279, 977, 13664, 326, 913, ...
``raise`` after ``exception_handler``, which (when given no argument)
``raise`` after ``handle_exception``, which (when given no argument)
def handle_exception(exc_info, error_stream, html=True, debug_mode=False, error_email=None, error_log=None, show_exceptions_in_wsgi_errors=False, error_email_from='errors@localhost', smtp_server='localhost', smtp_username=None, smtp_password=None, smtp_use_tls=False, error_subject_prefix='', error_message=None, simple_...
154049cc67d8bbbbaef267bdd7d2ae76cf3bcad7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2097/154049cc67d8bbbbaef267bdd7d2ae76cf3bcad7/errormiddleware.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 4064, 12, 10075, 67, 1376, 16, 555, 67, 3256, 16, 1729, 33, 5510, 16, 1198, 67, 3188, 33, 8381, 16, 555, 67, 3652, 33, 7036, 16, 555, 67, 1330, 33, 7036, 16, 2405, 67, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 4064, 12, 10075, 67, 1376, 16, 555, 67, 3256, 16, 1729, 33, 5510, 16, 1198, 67, 3188, 33, 8381, 16, 555, 67, 3652, 33, 7036, 16, 555, 67, 1330, 33, 7036, 16, 2405, 67, 11...
shift, coe = xcorr(tr1.data.astype('float32'),
shift, coe = xcorr(tr1.data.astype('float32'),
def xcorrEvents(starttime, endtime, network_id='*', station_id='*', location_id='', channel_id='EHE', phase='P', time_window=(-10, 40), winlen=10.0): """ """ # get all events betwenn start and end time event_list = client.event.getList(datetime = (starttime, endtime)) for event in event_list: print "EVENT:", event['dat...
eaae164587ff3e53e5bb057afc519a3a6dac28e5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10470/eaae164587ff3e53e5bb057afc519a3a6dac28e5/eventcluster.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 619, 17515, 3783, 12, 1937, 957, 16, 31361, 16, 2483, 67, 350, 2218, 14, 2187, 13282, 67, 350, 2218, 14, 2187, 2117, 67, 350, 2218, 2187, 1904, 67, 350, 2218, 41, 3900, 2187, 6855, 221...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 619, 17515, 3783, 12, 1937, 957, 16, 31361, 16, 2483, 67, 350, 2218, 14, 2187, 13282, 67, 350, 2218, 14, 2187, 2117, 67, 350, 2218, 2187, 1904, 67, 350, 2218, 41, 3900, 2187, 6855, 221...
for newDestinationDir in tokens[:len(tokens)-1]: print "newDestinationDir ", newDestinationDir, "\n"; newDir = os.path.join(destinationDir, newDestinationDir) destinationDir = newDir print "destinationDir ", destinationDir, "\n"; dest1 = os.path.join(destinationDir, destinationFile); print "dest1 ", dest1; print "...
if tokensLength > 1: for newDestinationDir in tokens[:len(tokens)-1]: newDir = os.path.join(destinationDir, newDestinationDir) destinationDir = newDir dest1 = os.path.join(destinationDir, destinationFile) localGridName = "%s%s" % ("file://", filename) self.logger.log(Log.DEBUG, "localGridName " + localGridName) r...
def deploySetup(self): self.logger.log(Log.DEBUG, "AbePipelineManager:deploySetup")
7c06e23fce83865fbdfe0d0f9e37b70137eebee0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6549/7c06e23fce83865fbdfe0d0f9e37b70137eebee0/AbePipelineManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7286, 7365, 12, 2890, 4672, 365, 18, 4901, 18, 1330, 12, 1343, 18, 9394, 16, 315, 37, 2196, 8798, 1318, 30, 12411, 7365, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7286, 7365, 12, 2890, 4672, 365, 18, 4901, 18, 1330, 12, 1343, 18, 9394, 16, 315, 37, 2196, 8798, 1318, 30, 12411, 7365, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
ckmsg(s, "'continue' not supported inside 'finally' clause")
if sys.platform.startswith('java'): print "'continue' not supported inside 'finally' clause" print "ok" else: ckmsg(s, "'continue' not supported inside 'finally' clause")
def ckmsg(src, msg): try: compile(src, '<fragment>', 'exec') except SyntaxError, e: print e.msg if e.msg == msg: print "ok" else: print "expected:", msg else: print "failed to get expected SyntaxError"
4b7557c37c2b47b46719f0e60f85e7d9f35da077 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/4b7557c37c2b47b46719f0e60f85e7d9f35da077/test_exceptions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12622, 3576, 12, 4816, 16, 1234, 4672, 775, 30, 4074, 12, 4816, 16, 2368, 11956, 1870, 16, 296, 4177, 6134, 1335, 18453, 16, 425, 30, 1172, 425, 18, 3576, 309, 425, 18, 3576, 422, 1234...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12622, 3576, 12, 4816, 16, 1234, 4672, 775, 30, 4074, 12, 4816, 16, 2368, 11956, 1870, 16, 296, 4177, 6134, 1335, 18453, 16, 425, 30, 1172, 425, 18, 3576, 309, 425, 18, 3576, 422, 1234...
if mi.authors:
from calibre.ebooks.mobi.from_any import config if mi.author_sort and config().parse().prefer_author_sort: authors = mi.author_sort recs.append((100, authors.encode(self.codec, 'replace'))) elif mi.authors:
def update(self, mi): recs = [] if mi.authors: authors = '; '.join(mi.authors) recs.append((100, authors.encode(self.codec, 'replace'))) if mi.publisher: recs.append((101, mi.publisher.encode(self.codec, 'replace'))) if mi.comments: recs.append((103, mi.comments.encode(self.codec, 'replace'))) if mi.isbn: recs.append((...
fa341347de3885c6769d06621afabf314f9e4c9d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/fa341347de3885c6769d06621afabf314f9e4c9d/mobi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 12837, 4672, 27255, 273, 5378, 628, 26139, 266, 18, 73, 12567, 18, 81, 30875, 18, 2080, 67, 2273, 1930, 642, 309, 12837, 18, 4161, 67, 3804, 471, 642, 7675, 2670, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 12837, 4672, 27255, 273, 5378, 628, 26139, 266, 18, 73, 12567, 18, 81, 30875, 18, 2080, 67, 2273, 1930, 642, 309, 12837, 18, 4161, 67, 3804, 471, 642, 7675, 2670, 7...
if isinstance(label, str):
if isinstance(label, bytes):
def ToUnicode(label): # Step 1: Check for ASCII if isinstance(label, str): pure_ascii = True else: try: label = label.encode("ascii") pure_ascii = True except UnicodeError: pure_ascii = False if not pure_ascii: # Step 2: Perform nameprep label = nameprep(label) # It doesn't say this, but apparently, it should be ASCII ...
7b6468869ce7e52bb0025defb5869bd1b0bb6c32 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/7b6468869ce7e52bb0025defb5869bd1b0bb6c32/idna.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2974, 16532, 12, 1925, 4672, 468, 8693, 404, 30, 2073, 364, 11768, 309, 1549, 12, 1925, 16, 1731, 4672, 16618, 67, 9184, 273, 1053, 469, 30, 775, 30, 1433, 273, 1433, 18, 3015, 2932, 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, 2974, 16532, 12, 1925, 4672, 468, 8693, 404, 30, 2073, 364, 11768, 309, 1549, 12, 1925, 16, 1731, 4672, 16618, 67, 9184, 273, 1053, 469, 30, 775, 30, 1433, 273, 1433, 18, 3015, 2932, 9...
raise OSError, 'objdump command not found'
raise OSError('objdump command not found')
def _get_soname(f): # assuming GNU binutils / ELF if not f: return None cmd = 'if ! type objdump >/dev/null 2>&1; then exit 10; fi;' \ "objdump -p -j .dynamic 2>/dev/null " + f f = os.popen(cmd) dump = f.read() rv = f.close() if rv == 10: raise OSError, 'objdump command not found' f = os.popen(cmd) try: data = f.read()...
5735012a937323842e18c4d23e120f235268b02f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/5735012a937323842e18c4d23e120f235268b02f/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 816, 339, 12, 74, 4672, 468, 15144, 611, 50, 57, 4158, 5471, 342, 512, 9105, 309, 486, 284, 30, 327, 599, 1797, 273, 296, 430, 401, 618, 1081, 8481, 405, 19, 5206, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 816, 339, 12, 74, 4672, 468, 15144, 611, 50, 57, 4158, 5471, 342, 512, 9105, 309, 486, 284, 30, 327, 599, 1797, 273, 296, 430, 401, 618, 1081, 8481, 405, 19, 5206, 19, ...
Node.kill(self)
for atm in self.atoms: self.rematom(atm) Node.kill(self)
def kill(self): #e don't we need to remove self from all our atoms' a.jigs? [guess: yes] ####@@@@ # [bruce question 041105; looks like a bug but i will ask josh] Node.kill(self)
7d4fdcdc4137d39623ed92fdeed0b5e195b4610c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/7d4fdcdc4137d39623ed92fdeed0b5e195b4610c/gadgets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8673, 12, 2890, 4672, 468, 73, 2727, 1404, 732, 1608, 358, 1206, 365, 628, 777, 3134, 9006, 11, 279, 18, 78, 360, 87, 35, 306, 20885, 30, 12465, 65, 11849, 7, 30989, 30989, 468, 306, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8673, 12, 2890, 4672, 468, 73, 2727, 1404, 732, 1608, 358, 1206, 365, 628, 777, 3134, 9006, 11, 279, 18, 78, 360, 87, 35, 306, 20885, 30, 12465, 65, 11849, 7, 30989, 30989, 468, 306, ...
_inlineRE = re.compile(r'( *).. +inline: *(.*)') _inlineAllRE = re.compile(r'( *).. +inline-all: *') _ignoreRE = re.compile(r'( *).. ignore: *(.*)\n?')
_inlineRE = re.compile(r'( *).. +inline:: *(.*)') _inlineAllRE = re.compile(r'( *).. +inline-all:: *') _ignoreRE = re.compile(r'( *).. ignore:: *(.*)\n?')
def __init__(self, rootNode): self.rootNode = rootNode
3fb5207b7aebb8f12f00f5c614aa43e8a5a8ce4e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/3fb5207b7aebb8f12f00f5c614aa43e8a5a8ce4e/extractor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 10181, 4672, 365, 18, 3085, 907, 273, 10181, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 10181, 4672, 365, 18, 3085, 907, 273, 10181, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.peek(length+1) in u'\0 \t\r\n\x28\u2028\u2029') \
self.peek(length+1) in u'\0 \t\r\n\x85\u2028\u2029') \
def scan_plain(self): # See the specification for details. # We add an additional restriction for the flow context: # plain scalars in the flow context cannot contain ',', ':' and '?'. # We also keep track of the `allow_simple_key` flag here. # Indentation rules are loosed for the flow context. chunks = [] start_mark...
8184778637356b9fcd2e58a111aebe6ea5ada69b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5889/8184778637356b9fcd2e58a111aebe6ea5ada69b/scanner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4135, 67, 7446, 12, 2890, 4672, 468, 2164, 326, 7490, 364, 3189, 18, 468, 1660, 527, 392, 3312, 9318, 364, 326, 4693, 819, 30, 468, 282, 7351, 23743, 316, 326, 4693, 819, 2780, 912, 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, 4135, 67, 7446, 12, 2890, 4672, 468, 2164, 326, 7490, 364, 3189, 18, 468, 1660, 527, 392, 3312, 9318, 364, 326, 4693, 819, 30, 468, 282, 7351, 23743, 316, 326, 4693, 819, 2780, 912, 22...
for d in required_dirs: addDir(d) for f in os.listdir('./'): if f[-15:]=='.module.damnvid': os.remove(f) for f in os.listdir('./modules/'): if f[-15:]=='.module.damnvid': os.remove('./modules/'+f) for f in os.listdir('./modules/'): if os.path.isdir('./modules/'+f) and f.find('.svn')==-1: procs(['python', 'build-any' + ...
def addDir(d): for f in os.listdir(d): if goodFile(f): if os.path.isdir(d+os.sep+f): addDir(d + os.sep + f) else: addFile(d + os.sep + f)
94652ffc633e3e937358a57a9c4c87aff3211d3a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11142/94652ffc633e3e937358a57a9c4c87aff3211d3a/build-required-files.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 1621, 12, 72, 4672, 364, 284, 316, 1140, 18, 1098, 1214, 12, 72, 4672, 309, 7494, 812, 12, 74, 4672, 309, 1140, 18, 803, 18, 291, 1214, 12, 72, 15, 538, 18, 10814, 15, 74, 467...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1621, 12, 72, 4672, 364, 284, 316, 1140, 18, 1098, 1214, 12, 72, 4672, 309, 7494, 812, 12, 74, 4672, 309, 1140, 18, 803, 18, 291, 1214, 12, 72, 15, 538, 18, 10814, 15, 74, 467...
self.write('while (%s) {' % self.generatecond(node.cond))
self.write('while (%s) {' % self.generatecond(self.adoptcond(node.cond)))
def generate_While(self, node): if self.debugging: self.dumpcomplex(self)
0f4992cce44f3fbf1046ec1c6c981bc4fad023f7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2040/0f4992cce44f3fbf1046ec1c6c981bc4fad023f7/c.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 15151, 12, 2890, 16, 756, 4672, 309, 365, 18, 4148, 1998, 30, 365, 18, 8481, 14259, 12, 2890, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 15151, 12, 2890, 16, 756, 4672, 309, 365, 18, 4148, 1998, 30, 365, 18, 8481, 14259, 12, 2890, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
def test_should_build(self): for files, platforms in self._should_build_tests: for platform in ["win"]: should_build = platform in platforms or "*" in platforms self.assertEqual(build.should_build(platform, files), should_build, "%s should%s have built but did%s (files: %s)" % (platform, "" if should_build else "n't"...
base_platform = target_platform.split("-")[0] for directory, platforms in directories: if re.search(r"/?\b%s\b/" % directory, file): return target_platform in platforms or base_platform in platforms for pattern, platforms in patterns: if re.search(pattern, file): return target_platform in platforms or base_platform...
def test_should_build(self): for files, platforms in self._should_build_tests: # FIXME: We should test more platforms here once # build._should_file_trigger_build is implemented for them. for platform in ["win"]: should_build = platform in platforms or "*" in platforms self.assertEqual(build.should_build(platform, file...
a7348edd1920524045bca09dc79682cdff867bb1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/a7348edd1920524045bca09dc79682cdff867bb1/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 13139, 67, 3510, 12, 2890, 4672, 364, 1390, 16, 17422, 316, 365, 6315, 13139, 67, 3510, 67, 16341, 30, 468, 9852, 30, 1660, 1410, 1842, 1898, 17422, 2674, 3647, 468, 1361, 6315...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 13139, 67, 3510, 12, 2890, 4672, 364, 1390, 16, 17422, 316, 365, 6315, 13139, 67, 3510, 67, 16341, 30, 468, 9852, 30, 1660, 1410, 1842, 1898, 17422, 2674, 3647, 468, 1361, 6315...
config.conf["mouse"]["reportObjectUnderMouse"]=not config.conf["mouse"]["reportObjectUnderMouse"]
def script_toggleReportObjectUnderMouse(self,keyPress,nextScript): config.conf["mouse"]["reportObjectUnderMouse"]=not config.conf["mouse"]["reportObjectUnderMouse"] if config.conf["mouse"]["reportObjectUnderMouse"]: speech.speakMessage(_("speak object under mouse")) else: speech.speakMessage(_("don't speak object under...
a2ca0834af8a6c4a703d14603ae5569502d59de9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/a2ca0834af8a6c4a703d14603ae5569502d59de9/_default.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2728, 67, 14401, 4820, 921, 14655, 9186, 12, 2890, 16, 856, 11840, 16, 4285, 3651, 4672, 309, 642, 18, 3923, 9614, 11697, 6, 6362, 6, 6006, 921, 14655, 9186, 11929, 30, 24556, 18, 87, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2728, 67, 14401, 4820, 921, 14655, 9186, 12, 2890, 16, 856, 11840, 16, 4285, 3651, 4672, 309, 642, 18, 3923, 9614, 11697, 6, 6362, 6, 6006, 921, 14655, 9186, 11929, 30, 24556, 18, 87, ...
shutil.copy2(builddirpath, '%(destdir)s%(debugsrcdir)s/'%self.dm +file)
targetfile = '%(destdir)s%(debugsrcdir)s/'%self.dm +filename shutil.copy2(builddirpath, targetfile) os.chmod(targetfile, 0644)
def postProcess(self): if self.debuginfo: for file in sorted(self.debugfiles): builddirpath = '%(topbuilddir)s/' % self.dm +file dir = os.path.dirname(file) util.mkdirChain('%(destdir)s%(debugsrcdir)s/'%self.dm +dir) try: shutil.copy2(builddirpath, '%(destdir)s%(debugsrcdir)s/'%self.dm +file) except IOError, msg: if ms...
322e597215db6c69ca6e8e5c9fe3700a14fcc5c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/322e597215db6c69ca6e8e5c9fe3700a14fcc5c4/destdirpolicy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 2227, 12, 2890, 4672, 309, 365, 18, 4148, 1376, 30, 364, 585, 316, 3115, 12, 2890, 18, 4148, 2354, 4672, 25666, 330, 449, 481, 803, 273, 21063, 3669, 70, 89, 330, 449, 481, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 2227, 12, 2890, 4672, 309, 365, 18, 4148, 1376, 30, 364, 585, 316, 3115, 12, 2890, 18, 4148, 2354, 4672, 25666, 330, 449, 481, 803, 273, 21063, 3669, 70, 89, 330, 449, 481, 13, ...
class DataIntegrityHandler(RequestHandler):
class DataIntegrityHandler( RequestHandler ):
def initializeDataIntegrityHandler(serviceInfo): global integrityDB integrityDB = DataIntegrityDB() return S_OK()
c1b7c4db986dd1c0291dea482456ba2b1cdb51b8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/c1b7c4db986dd1c0291dea482456ba2b1cdb51b8/DataIntegrityHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 751, 30669, 1503, 12, 3278, 966, 4672, 225, 2552, 24425, 2290, 24425, 2290, 273, 1910, 30669, 2290, 1435, 327, 348, 67, 3141, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 4046, 751, 30669, 1503, 12, 3278, 966, 4672, 225, 2552, 24425, 2290, 24425, 2290, 273, 1910, 30669, 2290, 1435, 327, 348, 67, 3141, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, ...
assert pngs_equal('test_docPaint_a.png', 'test_docPaint_b.png', exact=False)
assert pngs_equal('test_docPaint_a.png', 'test_docPaint_b.png')
def docPaint(): b1 = brush.Brush() b1.load_from_string(open('../brushes/s008.myb').read()) b2 = brush.Brush() b2.load_from_string(open('../brushes/redbrush.myb').read()) b2.set_color_hsv((0.3, 0.4, 0.35)) # test some actions doc = document.Document() doc.undo() # nop events = loadtxt('painting30sec.dat.gz') events = e...
99bcb84a1eb5277244d6e9af26a837eb85305b25 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7129/99bcb84a1eb5277244d6e9af26a837eb85305b25/test_mypaintlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 12699, 13332, 324, 21, 273, 5186, 1218, 18, 19114, 1218, 1435, 324, 21, 18, 945, 67, 2080, 67, 1080, 12, 3190, 2668, 6216, 2848, 1218, 281, 19, 87, 713, 28, 18, 4811, 70, 16063, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 12699, 13332, 324, 21, 273, 5186, 1218, 18, 19114, 1218, 1435, 324, 21, 18, 945, 67, 2080, 67, 1080, 12, 3190, 2668, 6216, 2848, 1218, 281, 19, 87, 713, 28, 18, 4811, 70, 16063, ...
print vars
def MergeMSVSBatFile(env, version, batfilename=None, vars=["INCLUDE", "LIB", "LIBPATH", "PATH"]): """Find MSVC/MSVS bat file for given version (but use batfilename instead if provided), then run that bat file, parse the result for new variables, and update the env with those variables.""" if not batfilename: batfilenam...
ecbb972d81841dc1248537ca65df479634e8ac6f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12817/ecbb972d81841dc1248537ca65df479634e8ac6f/MSVCCommon.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8964, 3537, 58, 14541, 270, 812, 12, 3074, 16, 1177, 16, 27464, 3459, 33, 7036, 16, 4153, 33, 9614, 26003, 3113, 315, 14484, 3113, 315, 14484, 4211, 3113, 315, 4211, 11929, 4672, 3536, 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, 8964, 3537, 58, 14541, 270, 812, 12, 3074, 16, 1177, 16, 27464, 3459, 33, 7036, 16, 4153, 33, 9614, 26003, 3113, 315, 14484, 3113, 315, 14484, 4211, 3113, 315, 4211, 11929, 4672, 3536, 3...
def find(self, node): i = 0 for path in self.child_list: spath = str(path) if spath >= node: return i i+=1 return -1 def get_path_pos(self): return 0 def _row_changed(self): tree_path = (0,) iter = self.model.get_iter(tree_path) self.model.row_changed(tree_path, iter)
def find(self, node): i = 0 for path in self.child_list: spath = str(path) if spath >= node: return i
29e46f4c980daf59bdf05cd501c0d0ab2f17449d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5682/29e46f4c980daf59bdf05cd501c0d0ab2f17449d/introspect_data.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 12, 2890, 16, 756, 4672, 277, 273, 374, 364, 589, 316, 365, 18, 3624, 67, 1098, 30, 272, 803, 273, 609, 12, 803, 13, 309, 272, 803, 1545, 756, 30, 327, 277, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 12, 2890, 16, 756, 4672, 277, 273, 374, 364, 589, 316, 365, 18, 3624, 67, 1098, 30, 272, 803, 273, 609, 12, 803, 13, 309, 272, 803, 1545, 756, 30, 327, 277, 2, -100, -100, -1...
system = processPackage('localimporttest')
system = processPackage('basic')
def test_diff(): system = processPackage('localimporttest') root = server.EditingPyDoctorResource(system) ob = system.allobjects['localimporttest.mod1.C'] performEdit(root, ob, repr("This *is* a docstring")) args = {'ob':ob.fullName(), 'revA':'0', 'revB':'1'} difftext = getTextOfPage(root, 'diff', args) assert "*is*...
d3bf21f55d5f937ae38dd7eb7acb68f0d293f3e8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5471/d3bf21f55d5f937ae38dd7eb7acb68f0d293f3e8/test_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5413, 13332, 2619, 273, 1207, 2261, 2668, 13240, 6134, 1365, 273, 1438, 18, 28029, 9413, 3244, 30206, 1420, 12, 4299, 13, 225, 3768, 273, 2619, 18, 287, 383, 489, 87, 3292, 372...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5413, 13332, 2619, 273, 1207, 2261, 2668, 13240, 6134, 1365, 273, 1438, 18, 28029, 9413, 3244, 30206, 1420, 12, 4299, 13, 225, 3768, 273, 2619, 18, 287, 383, 489, 87, 3292, 372...
return 'static'
return 'fixed'
def default_cost_price_method(self, cursor, user, context=None): return 'static'
175deb06e2651d767c6ba59caea2ee92953c54fc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9285/175deb06e2651d767c6ba59caea2ee92953c54fc/template.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 805, 67, 12398, 67, 8694, 67, 2039, 12, 2890, 16, 3347, 16, 729, 16, 819, 33, 7036, 4672, 327, 296, 3845, 11, 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, 805, 67, 12398, 67, 8694, 67, 2039, 12, 2890, 16, 3347, 16, 729, 16, 819, 33, 7036, 4672, 327, 296, 3845, 11, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if client.get_bool("/system/http_proxy/use_authentication"): user = client.get_string("/system/http_proxy/authentication_user") password = client.get_string("/system/http_proxy/authentication_password") if user and user != "": url = "http://%s:%s@%s:%d" % (user, password, host, port)
def get_gnome_proxy_retry(client, attempts, sleep): attempts -= 1 global PROXY if PROXY != None: return try: if client.get_bool("/system/http_proxy/use_http_proxy"): host = client.get_string("/system/http_proxy/host") port = client.get_int("/system/http_proxy/port") if host is None or host == "" or port == 0: ret...
def get_gnome_proxy(client): if client.get_bool("/system/http_proxy/use_http_proxy"): host = client.get_string("/system/http_proxy/host") port = client.get_int("/system/http_proxy/port") if host is None or host == "" or port == 0: # gnome proxy is not valid, use enviroment if available return None if client.get_bool("...
6121f5b9a6438bfde3e0da3a9920827d3a75344b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11078/6121f5b9a6438bfde3e0da3a9920827d3a75344b/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1600, 1742, 67, 5656, 12, 2625, 4672, 309, 1004, 18, 588, 67, 6430, 2932, 19, 4299, 19, 2505, 67, 5656, 19, 1202, 67, 2505, 67, 5656, 6, 4672, 1479, 273, 1004, 18, 588, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1600, 1742, 67, 5656, 12, 2625, 4672, 309, 1004, 18, 588, 67, 6430, 2932, 19, 4299, 19, 2505, 67, 5656, 19, 1202, 67, 2505, 67, 5656, 6, 4672, 1479, 273, 1004, 18, 588, 67, ...
if not client.password: client.message('You need a password to use all your privileges, but I have none on file. Ask the administrator to set a password for you.') return else: message = 'Login via console: %s %s !login yourpassword' %(self._pmcomm, client.cid) client.message(message) return
if not client.password: client.message('You need a password to use all your privileges, but I have none on file. Ask the administrator to set a password for you.') return else: message = 'Login via console: %s %s !login yourpassword' %(self._pmcomm, client.cid) client.message(message) return
def onAuth(self, client): if client.maxLevel > self.threshold and not client.isvar(self, 'loggedin'):
ca632c1ba40101368b0df23291b023db8b2e8f1f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12909/ca632c1ba40101368b0df23291b023db8b2e8f1f/login.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 1730, 12, 2890, 16, 1004, 4672, 309, 1004, 18, 1896, 2355, 405, 365, 18, 8699, 471, 486, 1004, 18, 291, 1401, 12, 2890, 16, 296, 19385, 267, 11, 4672, 2, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 1730, 12, 2890, 16, 1004, 4672, 309, 1004, 18, 1896, 2355, 405, 365, 18, 8699, 471, 486, 1004, 18, 291, 1401, 12, 2890, 16, 296, 19385, 267, 11, 4672, 2, -100, -100, -100, -100, ...
def _func_summary(self, functions, heading='Function Summary'):
def _func_summary(self, functions, sort_order, heading='Function Summary'):
def _func_summary(self, functions, heading='Function Summary'): 'Return a summary of the functions in a class or module' functions = self._sort(functions) if len(functions) == 0: return '' str = self._table_header(heading, 'summary') for link in functions: func = link.target() fname = link.name() if not self._docmap.h...
29127a15ecd548178da747376d81226f0a835ef6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/29127a15ecd548178da747376d81226f0a835ef6/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 644, 67, 7687, 12, 2890, 16, 4186, 16, 1524, 67, 1019, 16, 11053, 2218, 2083, 17967, 11, 4672, 296, 990, 279, 4916, 434, 326, 4186, 316, 279, 667, 578, 1605, 11, 4186, 273, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 644, 67, 7687, 12, 2890, 16, 4186, 16, 1524, 67, 1019, 16, 11053, 2218, 2083, 17967, 11, 4672, 296, 990, 279, 4916, 434, 326, 4186, 316, 279, 667, 578, 1605, 11, 4186, 273, 365, ...
sqlite_setup_debug = True
sqlite_setup_debug = False
def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
87949ecca00b63f3383a2037a83e9f865ca5b733 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/87949ecca00b63f3383a2037a83e9f865ca5b733/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
entry_id = entries_map[(row[0], row[1])]
key = (row[0], row[1]) if entries_map.get(key, None): entry_id = entries_map[key] else: find_cursor.execute("Select id from reports_entries where name=%s and kind=%s", key) row = find_cursor.fetchone() entry_id = row[0]
def _merge_database_table_entries(): cursor = connection.cursor() insert_cursor = connection.cursor() cursor.execute(""" Select name, kind from reports_bad union select name, kind from reports_modified union select name, kind from reports_extra """) # this fetch could be better done entries_map={} for row in cursor.fet...
156950c2f3822ecba05e526d1949f65d364f6675 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11867/156950c2f3822ecba05e526d1949f65d364f6675/updatefix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2702, 67, 6231, 67, 2121, 67, 8219, 13332, 3347, 273, 1459, 18, 9216, 1435, 2243, 67, 9216, 273, 1459, 18, 9216, 1435, 3347, 18, 8837, 2932, 3660, 6766, 508, 16, 3846, 628, 10557, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2702, 67, 6231, 67, 2121, 67, 8219, 13332, 3347, 273, 1459, 18, 9216, 1435, 2243, 67, 9216, 273, 1459, 18, 9216, 1435, 3347, 18, 8837, 2932, 3660, 6766, 508, 16, 3846, 628, 10557, ...
def __init__(self, title="Working...", maxval=100, label="", id=263):
def __init__(self, title="Working...", maxval=0, label="", id=263):
def __init__(self, title="Working...", maxval=100, label="", id=263): self.w = None self.d = None self.maxval = maxval self.curval = -1 self.d = GetNewDialog(id, -1) self.w = self.d.GetDialogWindow() self.label(label) self._update(0) self.d.AutoSizeDialog() self.title(title) self.w.ShowWindow() self.d.DrawDialog()
16b3c5a666fe0052001a2d6a5906ff2b9c20e75c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/16b3c5a666fe0052001a2d6a5906ff2b9c20e75c/EasyDialogs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2077, 1546, 14836, 7070, 16, 30443, 33, 20, 16, 1433, 1546, 3113, 612, 33, 22, 4449, 4672, 365, 18, 91, 273, 599, 365, 18, 72, 273, 599, 365, 18, 1896,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2077, 1546, 14836, 7070, 16, 30443, 33, 20, 16, 1433, 1546, 3113, 612, 33, 22, 4449, 4672, 365, 18, 91, 273, 599, 365, 18, 72, 273, 599, 365, 18, 1896,...
SConsEnvironment.Install = MyInstall
if False: SConsEnvironment.Install = MyInstall
def MyInstall(env, dest, files): """Like Install, but remove the target when cleaning if files is a directory""" if CleanFlagIsSet(): try: if os.path.isdir(files): dir = os.path.join(dest, files) print >> sys.stderr, "Removing", dir shutil.rmtree(dir, ignore_errors=True) except TypeError: pass #...
801518982d542526c3a829e85618606056f1204d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6561/801518982d542526c3a829e85618606056f1204d/SConsUtils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8005, 6410, 12, 3074, 16, 1570, 16, 1390, 4672, 3536, 8804, 10284, 16, 1496, 1206, 326, 1018, 1347, 24225, 309, 1390, 353, 279, 1867, 8395, 225, 309, 9645, 4678, 15737, 13332, 775, 30, 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, 8005, 6410, 12, 3074, 16, 1570, 16, 1390, 4672, 3536, 8804, 10284, 16, 1496, 1206, 326, 1018, 1347, 24225, 309, 1390, 353, 279, 1867, 8395, 225, 309, 9645, 4678, 15737, 13332, 775, 30, 3...
else:
elif pdbID != chain.getPdbID():
def loadAllChains(cls, filename, qparent=None): ''' This loads all the chains specified in a PDB file. ''' chain = None pdbID = None chains = [] chainIDs = cls.getChainIDsFromPDB(filename,qparent) while True: try: chanIDs.remove('NULL') except: break if not chainIDs: chainIDs = [None] for whichChainID in chainIDs: chai...
e7719f4212ecc1352f8f703a09693a297ee213d6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4399/e7719f4212ecc1352f8f703a09693a297ee213d6/Chain.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 1595, 15945, 12, 6429, 16, 1544, 16, 1043, 2938, 33, 7036, 4672, 9163, 1220, 6277, 777, 326, 13070, 1269, 316, 279, 21601, 585, 18, 9163, 2687, 273, 599, 10892, 734, 273, 599, 1307...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1595, 15945, 12, 6429, 16, 1544, 16, 1043, 2938, 33, 7036, 4672, 9163, 1220, 6277, 777, 326, 13070, 1269, 316, 279, 21601, 585, 18, 9163, 2687, 273, 599, 10892, 734, 273, 599, 1307...
num%sp == 0 and ' special' or '', mw, (num%st and ' ' or num)) + line
num%sp == 0 and ' special' or '', mw, (num%st and ' ' or num)) + line
def _wrap_inlinelinenos(self, inner): # need a list of lines since we need the width of a single number :( lines = list(inner) sp = self.linenospecial st = self.linenostep num = self.linenostart mw = len(str(len(lines) + num - 1))
301b1b0cae7fcc3c345037719a419835a225495c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2885/301b1b0cae7fcc3c345037719a419835a225495c/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4113, 67, 267, 7511, 292, 267, 275, 538, 12, 2890, 16, 3443, 4672, 468, 1608, 279, 666, 434, 2362, 3241, 732, 1608, 326, 1835, 434, 279, 2202, 1300, 294, 12, 2362, 273, 666, 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, 389, 4113, 67, 267, 7511, 292, 267, 275, 538, 12, 2890, 16, 3443, 4672, 468, 1608, 279, 666, 434, 2362, 3241, 732, 1608, 326, 1835, 434, 279, 2202, 1300, 294, 12, 2362, 273, 666, 12, ...