rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
self.language = languages.getlanguage(document.language_code)
self.language = languages.get_language(document.language_code)
def run(self, input_lines, document, input_offset=0, match_titles=1, inliner=None): """ Parse `input_lines` and return a `docutils.nodes.document` instance.
adfb78ef90dd44e1b7511785faa0dc614d1f5856 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/adfb78ef90dd44e1b7511785faa0dc614d1f5856/states.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 810, 67, 3548, 16, 1668, 16, 810, 67, 3348, 33, 20, 16, 845, 67, 17643, 33, 21, 16, 316, 7511, 264, 33, 7036, 4672, 3536, 2884, 1375, 2630, 67, 3548, 68, 471, 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, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 810, 67, 3548, 16, 1668, 16, 810, 67, 3348, 33, 20, 16, 845, 67, 17643, 33, 21, 16, 316, 7511, 264, 33, 7036, 4672, 3536, 2884, 1375, 2630, 67, 3548, 68, 471, 3...
while _handle.peekline().find("LOCUS") < 0:
while _handle.peekline() and _handle.peekline().find("LOCUS") < 0:
def __init__(self, handle, parser = None, has_header = 0): """Initialize the iterator.
1f09c7a97f054f0bee746b2f573fc375a47a11a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/1f09c7a97f054f0bee746b2f573fc375a47a11a2/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1640, 16, 2082, 273, 599, 16, 711, 67, 3374, 273, 374, 4672, 3536, 7520, 326, 2775, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1640, 16, 2082, 273, 599, 16, 711, 67, 3374, 273, 374, 4672, 3536, 7520, 326, 2775, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
return math.exp(x / 1000.)
return math.pow(10, x / 1000.)
def label_function(x): return math.exp(x / 1000.)
165ca7c39e7dc341d61764ed36821e9d89caebd7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5595/165ca7c39e7dc341d61764ed36821e9d89caebd7/genslides.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1433, 67, 915, 12, 92, 4672, 327, 4233, 18, 2749, 12, 92, 342, 4336, 12998, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1433, 67, 915, 12, 92, 4672, 327, 4233, 18, 2749, 12, 92, 342, 4336, 12998, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
self.valueOf_ = get_all_text_(node) if node.text is not None: obj_ = self.mixedclass_(MixedContainer.CategoryText, MixedContainer.TypeNone, '', node.text) self.content_.append(obj_)
def build(self, node): self.buildAttributes(node, node.attrib, []) self.valueOf_ = get_all_text_(node) if node.text is not None: obj_ = self.mixedclass_(MixedContainer.CategoryText, MixedContainer.TypeNone, '', node.text) self.content_.append(obj_) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-...
9c12e50d449fa27d6f8f3415ece228ae97bb0266 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/9c12e50d449fa27d6f8f3415ece228ae97bb0266/_nexml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 12, 2890, 16, 756, 4672, 365, 18, 3510, 2498, 12, 2159, 16, 756, 18, 14588, 16, 5378, 13, 364, 1151, 316, 756, 30, 7553, 67, 273, 4034, 67, 4951, 27799, 1916, 12, 3624, 18, 269...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 12, 2890, 16, 756, 4672, 365, 18, 3510, 2498, 12, 2159, 16, 756, 18, 14588, 16, 5378, 13, 364, 1151, 316, 756, 30, 7553, 67, 273, 4034, 67, 4951, 27799, 1916, 12, 3624, 18, 269...
yield "<h2>No error log available</h2>\n"
yield "<h2>No error log available</h2>"
def render(self, myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail"""
6f759d61aa9f4714f83d32476fcc23e0c846d5e7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7314/6f759d61aa9f4714f83d32476fcc23e0c846d5e7/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 3399, 2890, 16, 2151, 16, 1479, 16, 5274, 16, 5588, 16, 7351, 67, 10011, 33, 8381, 4672, 3536, 1945, 1245, 1361, 316, 7664, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 3399, 2890, 16, 2151, 16, 1479, 16, 5274, 16, 5588, 16, 7351, 67, 10011, 33, 8381, 4672, 3536, 1945, 1245, 1361, 316, 7664, 8395, 2, -100, -100, -100, -100, -100, -...
print "__int__:", args
def __int__(self, *args): print "__int__:", args return 1
6c016a3e555a636a0dfc3960a70885989bbcf82f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/6c016a3e555a636a0dfc3960a70885989bbcf82f/test_class.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 474, 972, 12, 2890, 16, 380, 1968, 4672, 327, 404, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 1001, 474, 972, 12, 2890, 16, 380, 1968, 4672, 327, 404, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
print "listening on port", options.port
print >> sys.stderr, "listening on port", options.port
def __init__(self): asyncore.dispatcher.__init__(self) self.create_socket(socket.AF_INET, socket.SOCK_STREAM) self.bind((options.interface, options.port)) self.listen(5) print "listening on port", options.port
77faffa7c2dbdcd4bf464c39e195af9b791426f7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3111/77faffa7c2dbdcd4bf464c39e195af9b791426f7/throxy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 4326, 479, 18, 18495, 16186, 2738, 972, 12, 2890, 13, 365, 18, 2640, 67, 7814, 12, 7814, 18, 6799, 67, 18819, 16, 2987, 18, 3584, 3507, 67, 13693, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 4326, 479, 18, 18495, 16186, 2738, 972, 12, 2890, 13, 365, 18, 2640, 67, 7814, 12, 7814, 18, 6799, 67, 18819, 16, 2987, 18, 3584, 3507, 67, 13693, 13, ...
subscriptions = channel.subscriptions.values() results.extend( [s for s in subscriptions if query_string in repr(s)])
for subscriptions in channel.subscriptions.values(): results.extend( [s for s in subscriptions if query_string in repr(s)])
def search(self, query_string): channels = component.getUtility(interfaces.IChannelLookup)() results = []
d2405e8facab1ff648bf93a7487e20aa7c010b40 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9844/d2405e8facab1ff648bf93a7487e20aa7c010b40/vocabularies.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 12, 2890, 16, 843, 67, 1080, 4672, 5750, 273, 1794, 18, 588, 6497, 12, 15898, 18, 45, 2909, 6609, 13, 1435, 1686, 273, 5378, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 12, 2890, 16, 843, 67, 1080, 4672, 5750, 273, 1794, 18, 588, 6497, 12, 15898, 18, 45, 2909, 6609, 13, 1435, 1686, 273, 5378, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
'''
"""
def which (filename): '''This takes a given filename and tries to find it in the environment path and check if it is executable. ''' # Special case where filename already contains a path. if os.path.split(filename)[0] != '': if os.access (filename, os.X_OK): return filename if not os.environ.has_key('PATH') or os.env...
a6436229531e4cc3cceb58c0322f4ecc258e53d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9386/a6436229531e4cc3cceb58c0322f4ecc258e53d4/pexpect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1492, 261, 3459, 4672, 9163, 2503, 5530, 279, 864, 1544, 471, 9327, 358, 1104, 518, 316, 326, 3330, 589, 471, 866, 309, 518, 353, 9070, 18, 3536, 225, 468, 13409, 648, 1625, 1544, 1818, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1492, 261, 3459, 4672, 9163, 2503, 5530, 279, 864, 1544, 471, 9327, 358, 1104, 518, 316, 326, 3330, 589, 471, 866, 309, 518, 353, 9070, 18, 3536, 225, 468, 13409, 648, 1625, 1544, 1818, ...
if not view_name.startswith('@@'):
if not view_name.startswith('@@') and not view_name.startswith('++'):
def validate_access(self): content = self.context.form.context view_name = self.request.getURL().split('/')[-3] # /path/to/obj/++widget++wname/@@autocomplete-search?q=foo
df6274f5745056b5cb8b45fb6c879c78b69105dd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12258/df6274f5745056b5cb8b45fb6c879c78b69105dd/widget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 67, 3860, 12, 2890, 4672, 225, 913, 273, 365, 18, 2472, 18, 687, 18, 2472, 1476, 67, 529, 273, 365, 18, 2293, 18, 588, 1785, 7675, 4939, 2668, 2473, 13, 18919, 23, 65, 468, 342...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 67, 3860, 12, 2890, 4672, 225, 913, 273, 365, 18, 2472, 18, 687, 18, 2472, 1476, 67, 529, 273, 365, 18, 2293, 18, 588, 1785, 7675, 4939, 2668, 2473, 13, 18919, 23, 65, 468, 342...
(self.last_email_checksum == msg.post_id)
(self.last_email_checksum == msg.post_id) or False
def chk_msg_tight_loop(self, msg): assert hasattr(self, 'last_email_checksum'), "no last_email_checksum" retval = self.last_email_checksum and \ (self.last_email_checksum == msg.post_id) assert type(retval) == bool, "type was %s, not bool" % type(retval) return retval
2ff00adb79a6306a9ac345fb8eae5180a29974ba /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6274/2ff00adb79a6306a9ac345fb8eae5180a29974ba/XWFMailingList.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15000, 67, 3576, 67, 88, 750, 67, 6498, 12, 2890, 16, 1234, 4672, 1815, 3859, 12, 2890, 16, 296, 2722, 67, 3652, 67, 15149, 19899, 315, 2135, 1142, 67, 3652, 67, 15149, 6, 5221, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15000, 67, 3576, 67, 88, 750, 67, 6498, 12, 2890, 16, 1234, 4672, 1815, 3859, 12, 2890, 16, 296, 2722, 67, 3652, 67, 15149, 19899, 315, 2135, 1142, 67, 3652, 67, 15149, 6, 5221, 273, ...
self.running = False
def __init__(self, adapter): self.running = False self.adapter = adapter self.script = None self.actIter = None self.currentAct = None
0f480f77544479b3e0af7149a7938cf52f76a9f1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14397/0f480f77544479b3e0af7149a7938cf52f76a9f1/adapter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4516, 4672, 365, 18, 10204, 273, 4516, 365, 18, 4263, 273, 599, 365, 18, 621, 2360, 273, 599, 365, 18, 2972, 2459, 273, 599, 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, 1001, 2738, 972, 12, 2890, 16, 4516, 4672, 365, 18, 10204, 273, 4516, 365, 18, 4263, 273, 599, 365, 18, 621, 2360, 273, 599, 365, 18, 2972, 2459, 273, 599, 2, -100, -100, -100, -100, ...
return
continue
def run(self): while True: job = self.input_queue.get() # # Worker threads continue running until explicitly told to stop with # a special job. # if job.is_break: return # # If the global interrupt handler sets the thread_exit variable, # we stop doing real work and just report back a "break" in the # normal command pr...
dfe457a872422d4f93764131572439eabf9ef0fa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11087/dfe457a872422d4f93764131572439eabf9ef0fa/test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1323, 1053, 30, 1719, 273, 365, 18, 2630, 67, 4000, 18, 588, 1435, 468, 468, 11016, 7403, 1324, 3549, 3180, 8122, 268, 1673, 358, 2132, 598, 468, 279, 4582, 1719, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1323, 1053, 30, 1719, 273, 365, 18, 2630, 67, 4000, 18, 588, 1435, 468, 468, 11016, 7403, 1324, 3549, 3180, 8122, 268, 1673, 358, 2132, 598, 468, 279, 4582, 1719, ...
if get_python_version()>="2.4":
if sys.version[:3]=="2.4":
def scan_module(egg_dir, base, name, stubs): """Check whether module possibly uses unsafe-for-zipfile stuff""" filename = os.path.join(base,name) if filename[:-1] in stubs: return True # Extension module pkg = base[len(egg_dir)+1:].replace(os.sep,'.') module = pkg+(pkg and '.' or '')+os.path.splitext(name)[0] f = ...
dcd12bd1088713adb87cfc1344ca30b10869ae36 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/495/dcd12bd1088713adb87cfc1344ca30b10869ae36/bdist_egg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4135, 67, 2978, 12, 23171, 67, 1214, 16, 1026, 16, 508, 16, 7168, 87, 4672, 3536, 1564, 2856, 1605, 10016, 4692, 7127, 17, 1884, 17, 4450, 768, 10769, 8395, 225, 1544, 273, 1140, 18, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4135, 67, 2978, 12, 23171, 67, 1214, 16, 1026, 16, 508, 16, 7168, 87, 4672, 3536, 1564, 2856, 1605, 10016, 4692, 7127, 17, 1884, 17, 4450, 768, 10769, 8395, 225, 1544, 273, 1140, 18, 8...
sys.stderr.write("%\n" % msg)
sys.stderr.write("%s\n" % msg)
def main(): # expect to be called with # <freq> <semaphore-name> <module-name> args if len(sys.argv) < 4: Usage(sys.stderr) sys.exit(1) (freq,semname,modname)=sys.argv[1:4] run_args=sys.argv[4:] cloudinit.logging_set_from_cfg_file() log = logging.getLogger() log.info("cloud-init-run-module %s" % sys.argv[1:]) cloud...
93c4e5e186fcaf97c04956c72315fe612df4c87f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7197/93c4e5e186fcaf97c04956c72315fe612df4c87f/cloud-init-run-module.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 4489, 358, 506, 2566, 598, 468, 282, 411, 10212, 34, 411, 307, 1458, 76, 479, 17, 529, 34, 411, 2978, 17, 529, 34, 833, 309, 562, 12, 9499, 18, 19485, 13, 411, 1059...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 4489, 358, 506, 2566, 598, 468, 282, 411, 10212, 34, 411, 307, 1458, 76, 479, 17, 529, 34, 411, 2978, 17, 529, 34, 833, 309, 562, 12, 9499, 18, 19485, 13, 411, 1059...
case([(System.groups == None,1),(System.groups.any(User.groups.any(User.user_id == user.user_id)),1)],else_ = 0),
def available(cls, user,systems=None): """ Builds on all. Only systems which this user has permission to reserve. If a system is loaned then its only available for that person. """ if systems: query = systems else: query = System.all(user) query = query.filter(and_( System.status==SystemStatus.by_name(u'Working'), ca...
79dd818c50c4fb7e66a560dedc70832156083cea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14755/79dd818c50c4fb7e66a560dedc70832156083cea/model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2319, 12, 6429, 16, 729, 16, 4299, 87, 33, 7036, 4672, 3536, 3998, 87, 603, 777, 18, 225, 5098, 14908, 1492, 333, 729, 711, 4132, 358, 20501, 18, 971, 279, 2619, 353, 28183, 329, 1508,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2319, 12, 6429, 16, 729, 16, 4299, 87, 33, 7036, 4672, 3536, 3998, 87, 603, 777, 18, 225, 5098, 14908, 1492, 333, 729, 711, 4132, 358, 20501, 18, 971, 279, 2619, 353, 28183, 329, 1508,...
return DBShelfCursor(self.dbc.dup(flags))
c = DBShelfCursor(self.dbc.dup(flags)) c.protocol = self.protocol return c
def dup(self, flags=0): return DBShelfCursor(self.dbc.dup(flags))
b7de61bf49a6659663f54be6387c3445a40702d4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/b7de61bf49a6659663f54be6387c3445a40702d4/dbshelve.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9417, 12, 2890, 16, 2943, 33, 20, 4672, 327, 2383, 1555, 19079, 6688, 12, 2890, 18, 9137, 18, 26427, 12, 7133, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9417, 12, 2890, 16, 2943, 33, 20, 4672, 327, 2383, 1555, 19079, 6688, 12, 2890, 18, 9137, 18, 26427, 12, 7133, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
original_note_id = Valid_id( none_okay = True )( row[ note_id_column ].strip() )
try: original_note_id = Valid_id( none_okay = True )( row[ note_id_column ].strip() ) except ValueError: original_note_id = None
def import_csv( self, file_id, content_column, title_column, plaintext, import_button, user_id = None ): """ Import a previously uploaded CSV file of notes as a new notebook. Delete the file once the import is complete.
32da3d3db21fdf0b09e39f860c54d3c3cfbe3edd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6754/32da3d3db21fdf0b09e39f860c54d3c3cfbe3edd/Notebooks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 6715, 12, 365, 16, 585, 67, 350, 16, 913, 67, 2827, 16, 2077, 67, 2827, 16, 11917, 16, 1930, 67, 5391, 16, 729, 67, 350, 273, 599, 262, 30, 3536, 6164, 279, 7243, 9140, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 6715, 12, 365, 16, 585, 67, 350, 16, 913, 67, 2827, 16, 2077, 67, 2827, 16, 11917, 16, 1930, 67, 5391, 16, 729, 67, 350, 273, 599, 262, 30, 3536, 6164, 279, 7243, 9140, 1...
self.configLine('installFlavor %s' % contents, filePath, 1)
self.configLine('sense %s' % contents, filePath, 1)
def __init__(self, name, path):
7c7c6778790540de7c61f52de04d8fcb0cf08365 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/7c7c6778790540de7c61f52de04d8fcb0cf08365/flavorcfg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 16, 589, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 16, 589, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
str += I+'<TH CLASS="navbar">&nbsp;&nbsp;&nbsp;'+\ '<A CLASS="navbar" HREF="'+`self._module`+'.html">'+\ 'Module</A>&nbsp;&nbsp;&nbsp;</TH>\n'
str += I+'<th class="navbar">&nbsp;&nbsp;&nbsp;' str += '<a class="navbar" href="'+`self._module`+'.html">' str += 'Module</a>&nbsp;&nbsp;&nbsp;</th>\n'
def _navbar(self, where, uid=None): """ @param where: What page the navbar is being displayed on.. """ str = self._start_of('Navbar') str += '<TABLE CLASS="navbar" BORDER="0" WIDTH="100%"' str += ' CELLPADDING="0" BGCOLOR="#a0c0ff" CELLSPACING="0">\n' str += ' <TR>\n' str += ' <TD WIDTH="100%">\n' str += ' <TA...
1b52b16120989cc834166571a9a1e9b8676d968f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/1b52b16120989cc834166571a9a1e9b8676d968f/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11589, 3215, 12, 2890, 16, 1625, 16, 4555, 33, 7036, 4672, 3536, 632, 891, 1625, 30, 18734, 1363, 326, 8775, 3215, 353, 3832, 10453, 603, 838, 3536, 609, 273, 365, 6315, 1937, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11589, 3215, 12, 2890, 16, 1625, 16, 4555, 33, 7036, 4672, 3536, 632, 891, 1625, 30, 18734, 1363, 326, 8775, 3215, 353, 3832, 10453, 603, 838, 3536, 609, 273, 365, 6315, 1937, 67, ...
["../waste/Static Libraries"])
["../"*n + "waste/Static Libraries" for n in (0,1,2,3,4)])
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')
724d5310a4d0913e19ce2e49faf530a46da68dde /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/724d5310a4d0913e19ce2e49faf530a46da68dde/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, ...
'Slider: alpha [2--|3==4|---5]' """ return "Slider: %s [%s--|%s==%s|---%s]"%(self.label(), self.values()[0],
'Range Slider: alpha [2--|3==4|---5]' """ return "Range Slider: %s [%s--|%s==%s|---%s]"%(self.label(), self.values()[0],
def __repr__(self): """ Return string representation of this slider. EXAMPLES: sage: range_slider(2, 5, 1/5, (3,4), 'alpha').__repr__() 'Slider: alpha [2--|3==4|---5]' """ return "Slider: %s [%s--|%s==%s|---%s]"%(self.label(), self.values()[0], self.values()[self.default_index()[0]], self.values()[self.default_index()...
9ccf8b49a8a600d5436a55ad38b69bcd69a4619e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/9ccf8b49a8a600d5436a55ad38b69bcd69a4619e/interact.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 3536, 2000, 533, 4335, 434, 333, 18442, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 1048, 67, 28372, 12, 22, 16, 1381, 16, 404, 19, 25, 16, 261, 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, 1001, 12715, 972, 12, 2890, 4672, 3536, 2000, 533, 4335, 434, 333, 18442, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 1048, 67, 28372, 12, 22, 16, 1381, 16, 404, 19, 25, 16, 261, 2...
return gdata.data.feed_from_string(response.read(), version=2)
return gdata.data.feed_from_string(response_body, version=2)
def v2_feed_from_response(response): """Experimental converter which gets an Atom feed from the response.""" return gdata.data.feed_from_string(response.read(), version=2)
4dfd2a0cf42477496b06bfd9cf6dc6b202b7c3e8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5609/4dfd2a0cf42477496b06bfd9cf6dc6b202b7c3e8/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 331, 22, 67, 7848, 67, 2080, 67, 2740, 12, 2740, 4672, 3536, 22338, 287, 6027, 1492, 5571, 392, 7149, 4746, 628, 326, 766, 12123, 327, 314, 892, 18, 892, 18, 7848, 67, 2080, 67, 1080, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 331, 22, 67, 7848, 67, 2080, 67, 2740, 12, 2740, 4672, 3536, 22338, 287, 6027, 1492, 5571, 392, 7149, 4746, 628, 326, 766, 12123, 327, 314, 892, 18, 892, 18, 7848, 67, 2080, 67, 1080, ...
stderr = "(scons: \*\*\* \[failed\d+] Error 2\n)+",
stderr = re_errors,
def fail_action(target = None, source = None, env = None): return 2
4feb688e4af7e13dfc04f99db3e0b0d2e205270c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12817/4feb688e4af7e13dfc04f99db3e0b0d2e205270c/multiple-parents.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2321, 67, 1128, 12, 3299, 273, 599, 16, 1084, 273, 599, 16, 1550, 273, 599, 4672, 327, 576, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 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, 2321, 67, 1128, 12, 3299, 273, 599, 16, 1084, 273, 599, 16, 1550, 273, 599, 4672, 327, 576, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if hasattr(sys, 'pypy_version_info'):
if hasattr(sys, 'pypy_version_info') and hasattr(sys, 'prefix'):
def addsitepackages(known_paths): """Add site-packages to sys.path, in a PyPy-specific way.""" if hasattr(sys, 'pypy_version_info'): from distutils.sysconfig import get_python_lib sitedir = get_python_lib(standard_lib=False) if os.path.isdir(sitedir): addsitedir(sitedir, known_paths) return None
29e0ba7d86281561959b67743848911ea563d615 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/29e0ba7d86281561959b67743848911ea563d615/site.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4831, 305, 881, 484, 1023, 12, 2994, 67, 4481, 4672, 3536, 986, 2834, 17, 10308, 358, 2589, 18, 803, 16, 316, 279, 4707, 9413, 17, 12524, 4031, 12123, 309, 3859, 12, 9499, 16, 296, 226...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4831, 305, 881, 484, 1023, 12, 2994, 67, 4481, 4672, 3536, 986, 2834, 17, 10308, 358, 2589, 18, 803, 16, 316, 279, 4707, 9413, 17, 12524, 4031, 12123, 309, 3859, 12, 9499, 16, 296, 226...
os.chdir(self.dist_dir)
def run(self):
db0a16bb80b05ae5107db243b42aa230a3f39f41 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12852/db0a16bb80b05ae5107db243b42aa230a3f39f41/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 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, 12, 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, -...
print cmdlist[0] + ': ' + res.replace("\n", " ")
print 'as: ' + res.replace("\n", " ")
def print_as_ver(): if os.path.exists('a.out'): print print "WARNING: a file named a.out exists, and getting the version of the 'as' assembler writes to that filename, so I'm not attempting to get the version of 'as'." return try: res = subprocess.Popen(['as', '-version'], stdin=open(os.devnull), stderr=subprocess.PIPE...
39f206bd792b5d0abdaa594f0c43db1e50905ada /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11791/39f206bd792b5d0abdaa594f0c43db1e50905ada/show-tool-versions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 345, 67, 502, 13332, 309, 1140, 18, 803, 18, 1808, 2668, 69, 18, 659, 11, 4672, 1172, 1172, 315, 9511, 30, 279, 585, 4141, 279, 18, 659, 1704, 16, 471, 8742, 326, 1177, 434...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 345, 67, 502, 13332, 309, 1140, 18, 803, 18, 1808, 2668, 69, 18, 659, 11, 4672, 1172, 1172, 315, 9511, 30, 279, 585, 4141, 279, 18, 659, 1704, 16, 471, 8742, 326, 1177, 434...
dumps(value)))
sqlite.Binary(dumps(value))))
def __setitem__(self, key, value): del self[key]
ebc10b0cdb3bfa11626ad32d225ab9b1a8e655a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12871/ebc10b0cdb3bfa11626ad32d225ab9b1a8e655a6/diskdict.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1726, 972, 12, 2890, 16, 498, 16, 460, 4672, 1464, 365, 63, 856, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1726, 972, 12, 2890, 16, 498, 16, 460, 4672, 1464, 365, 63, 856, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
sqlfilename = wikipedia.input('Please enter the SQL dump\'s filename: ')
sqlfilename = wikipedia.input(u'Please enter the SQL dump\'s filename: ')
def fix_double_redirects(source): for redir_name in retrieve_double_redirects(source): redir = wikipedia.PageLink(wikipedia.mylang, redir_name) try: target = str(redir.getRedirectTo()) second_redir = wikipedia.PageLink(wikipedia.mylang, target) second_target = str(second_redir.getRedirectTo()) except (wikipedia.IsNotRe...
98c414d811985708b9b3b6c15e68bc2aec5ff082 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/98c414d811985708b9b3b6c15e68bc2aec5ff082/redirect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 67, 9056, 67, 22715, 12, 3168, 4672, 364, 283, 1214, 67, 529, 316, 4614, 67, 9056, 67, 22715, 12, 3168, 4672, 283, 1214, 273, 21137, 18, 1964, 2098, 12, 11999, 13744, 18, 4811, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 67, 9056, 67, 22715, 12, 3168, 4672, 364, 283, 1214, 67, 529, 316, 4614, 67, 9056, 67, 22715, 12, 3168, 4672, 283, 1214, 273, 21137, 18, 1964, 2098, 12, 11999, 13744, 18, 4811, 4...
else: self.data.append(ustr(i))
else: self.addData(i)
def __init__(self, tag=None, attrs={}, payload=[], parent=None, node=None): """ Takes "tag" argument as the name of node (prepended by namespace, if needed and separated from it by a space), attrs dictionary as the set of arguments, payload list as the set of textual strings and child nodes that this node carries withi...
77fc3fbd8c6b16e072d869bb9968fe2f6a570b1d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7194/77fc3fbd8c6b16e072d869bb9968fe2f6a570b1d/simplexml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1047, 33, 7036, 16, 3422, 28793, 2385, 22850, 6487, 982, 33, 7036, 16, 756, 33, 7036, 4672, 3536, 23004, 315, 2692, 6, 1237, 487, 326, 508, 434, 756, 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, 1001, 2738, 972, 12, 2890, 16, 1047, 33, 7036, 16, 3422, 28793, 2385, 22850, 6487, 982, 33, 7036, 16, 756, 33, 7036, 4672, 3536, 23004, 315, 2692, 6, 1237, 487, 326, 508, 434, 756, 261...
def removeMulti(userid):
def removeMulti(userid, roundMultiStart): if roundMultiStart != roundCounter: return
def removeMulti(userid): # Remove the player from the current multi level list list_currentMultiLevel.remove(userid) # Client in server? if not gungamelib.clientInServer(userid): return # Stop effect es.server.cmd('es_xfire %s env_spark StopSpark' % userid) es.server.cmd('es_xfire %s env_spark Kill' % userid) # Rese...
564d20615a0bc8187edd00922a8c9f22b55cd07c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4575/564d20615a0bc8187edd00922a8c9f22b55cd07c/gg_multi_level.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 5002, 12, 8339, 16, 3643, 5002, 1685, 4672, 225, 309, 3643, 5002, 1685, 480, 3643, 4789, 30, 327, 225, 468, 3581, 326, 7291, 628, 326, 783, 3309, 1801, 666, 666, 67, 2972, 5002, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 5002, 12, 8339, 16, 3643, 5002, 1685, 4672, 225, 309, 3643, 5002, 1685, 480, 3643, 4789, 30, 327, 225, 468, 3581, 326, 7291, 628, 326, 783, 3309, 1801, 666, 666, 67, 2972, 5002, ...
tf_path = re.sub(r"\.pyc$", ".py", tf_path) tf_realpath = os.path.normpath(os.path.realpath(tf_path)) cwd_realpath = os.path.normpath(os.path.realpath(self.GetPath())) if not tf_realpath.startswith(cwd_realpath): raise Exception("Expected %s to be child of %s" % (tf_realpath, cwd_realpath)) env = {'PYTHONPATH': tra...
cmd = [sys.executable, "-c", "import sys; sys.path.insert(0,'%s');exec(open('%s'))" % (transitfeed_parent, script_path)] + script_args return check_call(cmd, expected_retcode=expected_retcode, shell=False)
def CheckCallWithPath(self, cmd, expected_retcode=0): """Run cmd[0] with args cmd[1:], pointing PYTHONPATH to the root of this source tree. Raises an Exception if the return code is not expected_retcode. Returns a tuple of strings, (stdout, stderr).""" tf_path = transitfeed.__file__ # Path of the directory containing t...
8d3a3ced5a9e9637d6acc6b8a5dd44918f5b0c66 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6302/8d3a3ced5a9e9637d6acc6b8a5dd44918f5b0c66/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 26356, 743, 12, 2890, 16, 1797, 16, 2665, 67, 15685, 33, 20, 4672, 3536, 1997, 1797, 63, 20, 65, 598, 833, 1797, 63, 21, 30, 6487, 17022, 12191, 20131, 4211, 358, 326, 1365, 434,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 26356, 743, 12, 2890, 16, 1797, 16, 2665, 67, 15685, 33, 20, 4672, 3536, 1997, 1797, 63, 20, 65, 598, 833, 1797, 63, 21, 30, 6487, 17022, 12191, 20131, 4211, 358, 326, 1365, 434,...
include_graphics_options.append('width=%s' % ( self.latex_image_length(attrs['width']), ))
w = self.latex_image_length(attrs['width']) if w: include_graphics_options.append('width=%s' % w)
def visit_image(self, node): attrs = node.attributes pre = [] # in reverse order post = [] include_graphics_options = [] inline = isinstance(node.parent, nodes.TextElement) if attrs.has_key('scale'): # Could also be done with ``scale`` option to # ``\includegraphics``; doing it this way for consi...
49858b41f3a4ee4638ca8b8c1ee3ef332e4d5d82 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5532/49858b41f3a4ee4638ca8b8c1ee3ef332e4d5d82/latexwriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 2730, 12, 2890, 16, 756, 4672, 3422, 273, 756, 18, 4350, 675, 273, 5378, 13491, 468, 316, 4219, 1353, 1603, 273, 5378, 2341, 67, 31586, 67, 2116, 273, 5378, 6370, 273, 1549, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 2730, 12, 2890, 16, 756, 4672, 3422, 273, 756, 18, 4350, 675, 273, 5378, 13491, 468, 316, 4219, 1353, 1603, 273, 5378, 2341, 67, 31586, 67, 2116, 273, 5378, 6370, 273, 1549, ...
return len(self._results)
return 10
def __len__(self): return len(self._results)
3ba0d7c5499aa028665fe10deb25b8ce82833454 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6753/3ba0d7c5499aa028665fe10deb25b8ce82833454/javaos.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1897, 972, 12, 2890, 4672, 327, 562, 12, 2890, 6315, 4717, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1897, 972, 12, 2890, 4672, 327, 562, 12, 2890, 6315, 4717, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
label_text = "Deleting a task cannot be undone, and will delete the following task: " cdlabel2.set_label("Are you sure you want to delete this task?") cdlabel3.set_label("Keep selected task") cdlabel4.set_label("Permanently remove task")
label_text = _("Deleting a task cannot be undone, and will delete the following task: ") cdlabel2.set_label(_("Are you sure you want to delete this task?")) cdlabel3.set_label(_("Keep selected task")) cdlabel4.set_label(_("Permanently remove task"))
def on_delete_task(self, widget=None, tid=None): #If we don't have a parameter, then take the selection in the treeview if not tid: #tid_to_delete is a [project,task] tuple self.tids_todelete = self.get_selected_tasks() else: self.tids_todelete = [tid] #We must at least have something to delete ! if len(self.tids_todel...
2da3e6f7c1a1ec69f2d593fbfbd09bdc7354138a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7036/2da3e6f7c1a1ec69f2d593fbfbd09bdc7354138a/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 3733, 67, 4146, 12, 2890, 16, 3604, 33, 7036, 16, 11594, 33, 7036, 4672, 468, 2047, 732, 2727, 1404, 1240, 279, 1569, 16, 1508, 4862, 326, 4421, 316, 326, 2151, 1945, 309, 486...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 3733, 67, 4146, 12, 2890, 16, 3604, 33, 7036, 16, 11594, 33, 7036, 4672, 468, 2047, 732, 2727, 1404, 1240, 279, 1569, 16, 1508, 4862, 326, 4421, 316, 326, 2151, 1945, 309, 486...
phase=phase, hname=handler,
phase=_req.phase, hname=hlist.handler,
def HandlerDispatch(self, _req): """ This is the handler dispatcher. """
93fa83dbe968a9f1c26514892e99f9cfd919241d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10002/93fa83dbe968a9f1c26514892e99f9cfd919241d/apache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4663, 5325, 12, 2890, 16, 389, 3658, 4672, 3536, 1220, 353, 326, 1838, 7393, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4663, 5325, 12, 2890, 16, 389, 3658, 4672, 3536, 1220, 353, 326, 1838, 7393, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.objecttype, self.objecttype)
self.objecttype, self.itselftype)
def output_tp_newBody(self): Output("PyObject *self;"); Output() Output("if ((self = type->tp_alloc(type, 0)) == NULL) return NULL;") Output("memset(&((%s *)self)->ob_itself, 0, sizeof(%s));", self.objecttype, self.objecttype) Output("return self;")
1177435ffae12240b181b0602f3ed6c0d3a556c2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/1177435ffae12240b181b0602f3ed6c0d3a556c2/filesupport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 876, 67, 6834, 67, 2704, 2250, 12, 2890, 4672, 3633, 2932, 9413, 921, 380, 2890, 4868, 1769, 3633, 1435, 3633, 2932, 430, 14015, 2890, 273, 618, 2122, 6834, 67, 9853, 12, 723, 16, 374, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 876, 67, 6834, 67, 2704, 2250, 12, 2890, 4672, 3633, 2932, 9413, 921, 380, 2890, 4868, 1769, 3633, 1435, 3633, 2932, 430, 14015, 2890, 273, 618, 2122, 6834, 67, 9853, 12, 723, 16, 374, ...
def writeResultDecl(f, type):
return rvdeclared def writeResultDecl(f, type, varname):
def writeArgumentUnboxing(f, i, name, type, haveCcx, optional): # f - file to write to # i - int or None - Indicates the source jsval. If i is an int, the source # jsval is argv[i]; otherwise it is *vp. But if Python i >= C++ argc, # which can only happen if optional is True, the argument is missing; # us...
ff779f91c85a5fbb1f57868d70359366fb6c4a65 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11102/ff779f91c85a5fbb1f57868d70359366fb6c4a65/qsgen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 1379, 984, 2147, 310, 12, 74, 16, 277, 16, 508, 16, 618, 16, 1240, 39, 71, 92, 16, 3129, 4672, 468, 284, 300, 585, 358, 1045, 358, 468, 277, 300, 509, 578, 599, 300, 18336, 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, 1045, 1379, 984, 2147, 310, 12, 74, 16, 277, 16, 508, 16, 618, 16, 1240, 39, 71, 92, 16, 3129, 4672, 468, 284, 300, 585, 358, 1045, 358, 468, 277, 300, 509, 578, 599, 300, 18336, 3...
if req.session.get('email') != req.session.get('email_verification_sent_to'):
email = req.session.get('email') if email and email != req.session.get('email_verification_sent_to'):
def post_process_request(self, req, template, data, content_type): if not req.session.authenticated: # Anonymous users should register and perms should be tweaked so # that anonymous users can't edit wiki pages and change or create # tickets. As such, this email verifying code won't be used on them return template, dat...
17ba0f32b115c5d3fa79b730d31141573e926f01 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6208/17ba0f32b115c5d3fa79b730d31141573e926f01/web_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 67, 2567, 67, 2293, 12, 2890, 16, 1111, 16, 1542, 16, 501, 16, 913, 67, 723, 4672, 309, 486, 1111, 18, 3184, 18, 14454, 30, 468, 29775, 3677, 1410, 1744, 471, 13793, 1410, 506, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 67, 2567, 67, 2293, 12, 2890, 16, 1111, 16, 1542, 16, 501, 16, 913, 67, 723, 4672, 309, 486, 1111, 18, 3184, 18, 14454, 30, 468, 29775, 3677, 1410, 1744, 471, 13793, 1410, 506, ...
if self.vocabulary_display_path_bound and \ len(brains) > self.vocabulary_display_path_bound:
if len(brains) > self.vocabulary_display_path_bound:
def _Vocabulary(self, content_instance): pairs = [] pc = getToolByName(content_instance, 'portal_catalog') uc = getToolByName(content_instance, config.UID_CATALOG) brains = pc.searchResults(portal_type=self.allowed_types)
1a18d4acdb7a113396864f0df751c8a941b9ef49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/1a18d4acdb7a113396864f0df751c8a941b9ef49/Field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 30747, 12, 2890, 16, 913, 67, 1336, 4672, 5574, 273, 5378, 6125, 273, 336, 6364, 5911, 12, 1745, 67, 1336, 16, 296, 24386, 67, 7199, 6134, 6232, 273, 336, 6364, 5911, 12, 1745, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 30747, 12, 2890, 16, 913, 67, 1336, 4672, 5574, 273, 5378, 6125, 273, 336, 6364, 5911, 12, 1745, 67, 1336, 16, 296, 24386, 67, 7199, 6134, 6232, 273, 336, 6364, 5911, 12, 1745, 67...
self.req.check_modified(self.last_modified)
self.req.check_modified(stat[8])
def render(self): FileCommon.render(self) self.view_form = 0 self.attachment_type = self.args.get('type', None) self.attachment_id = self.args.get('id', None) self.filename = self.args.get('filename', None) if self.filename: self.filename = os.path.basename(self.filename)
ec02e797b7cb041f1d854f98e0f9a23745f13e0a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/ec02e797b7cb041f1d854f98e0f9a23745f13e0a/File.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 4672, 1387, 6517, 18, 5902, 12, 2890, 13, 365, 18, 1945, 67, 687, 273, 374, 365, 18, 11461, 67, 723, 273, 365, 18, 1968, 18, 588, 2668, 723, 2187, 599, 13, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 4672, 1387, 6517, 18, 5902, 12, 2890, 13, 365, 18, 1945, 67, 687, 273, 374, 365, 18, 11461, 67, 723, 273, 365, 18, 1968, 18, 588, 2668, 723, 2187, 599, 13, 365, 18, ...
def get_hover_event(self, hover_iter): if not hover_iter.ends_line(): buffer = self.get_buffer() line_strt = buffer.get_iter_at_line(hover_iter.get_line()) line_end = line_strt.copy() line_end.forward_lines(1) pos = hover_iter.get_line_offset() text = buffer.get_text(line_strt, line_end).rstrip("\n") word, fr, to = ...
def get_hover_event(self, hover_iter): if not hover_iter.ends_line(): buffer = self.get_buffer() line_strt = buffer.get_iter_at_line(hover_iter.get_line()) line_end = line_strt.copy() line_end.forward_lines(1) pos = hover_iter.get_line_offset() text = buffer.get_text(line_strt, line_end).rstrip("\n") word, fr, to = ...
dcf7c6bb9f08523cb13a406b3ed5f6b59337a5da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10693/dcf7c6bb9f08523cb13a406b3ed5f6b59337a5da/widgets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 24969, 67, 2575, 12, 2890, 16, 15758, 67, 2165, 4672, 309, 486, 15758, 67, 2165, 18, 5839, 67, 1369, 13332, 1613, 273, 365, 18, 588, 67, 4106, 1435, 225, 980, 67, 701, 88, 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, 336, 67, 24969, 67, 2575, 12, 2890, 16, 15758, 67, 2165, 4672, 309, 486, 15758, 67, 2165, 18, 5839, 67, 1369, 13332, 1613, 273, 365, 18, 588, 67, 4106, 1435, 225, 980, 67, 701, 88, 2...
if value.type()[-3:] == "MOD" : self.__value = value else: try:
try: if not value: value = pari(0) if value.type() == "t_POLMOD": self.__value = value * parent._pari_one() else:
def __init__(self, parent, value): """ Create element of a finite field.
99f8f4d261745ac6dc3bdcdaa49d15b9651e62e7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/99f8f4d261745ac6dc3bdcdaa49d15b9651e62e7/finite_field_element.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 460, 4672, 3536, 1788, 930, 434, 279, 25922, 652, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 460, 4672, 3536, 1788, 930, 434, 279, 25922, 652, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
"""Kills jobs in state "running" by pid and moves them to the
"""Kills jobs in state "running" by pid and moves them to the
def kill_job(self, job_id):
0049fea0a8babe00b08f3932abf09fa0bc010db6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10674/0049fea0a8babe00b08f3932abf09fa0bc010db6/webtlsmdd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8673, 67, 4688, 12, 2890, 16, 1719, 67, 350, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8673, 67, 4688, 12, 2890, 16, 1719, 67, 350, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def notworkingSubDomains(self):
def testSubDomains(self):
def notworkingSubDomains(self):
5b62427cda17856ed6f2e2b172900850d6c9e26b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/624/5b62427cda17856ed6f2e2b172900850d6c9e26b/ffcforms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 486, 20478, 1676, 15531, 12, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 486, 20478, 1676, 15531, 12, 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, ...
c.disconnect(message)
c.disconnect(message, volontary=volontary)
def disconnect_all(self, message=""): """Disconnects all connections.""" for c in self.connections: c.disconnect(message)
d002802b48923f6d1608aabfff3a5efd37f6b6ea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9915/d002802b48923f6d1608aabfff3a5efd37f6b6ea/irclib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9479, 67, 454, 12, 2890, 16, 883, 1546, 6, 4672, 3536, 18895, 87, 777, 5921, 12123, 364, 276, 316, 365, 18, 13313, 30, 276, 18, 20177, 12, 2150, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9479, 67, 454, 12, 2890, 16, 883, 1546, 6, 4672, 3536, 18895, 87, 777, 5921, 12123, 364, 276, 316, 365, 18, 13313, 30, 276, 18, 20177, 12, 2150, 13, 2, -100, -100, -100, -100, -100, ...
if not name: raise Exception("RenderPage called with empty name") generator_url = "file:" + urllib.pathname2url(_generator_html) + "?" + name input_file = _base_dir + "/" + name + ".html" original = None if (os.path.isfile(input_file)): original = open(input_file, 'rb').read()
if not names: raise Exception("RenderPage called with empty names param") generator_url = "file:" + urllib.pathname2url(_generator_html) generator_url += "?" + ",".join(names) originals = {} for name in names: input_file = _base_dir + "/" + name + ".html" if (os.path.isfile(input_file)): originals[name] = open(inp...
def RenderPage(name, test_shell): """ Calls test_shell --layout-tests .../generator.html?<name> and writes the result to .../docs/<name>.html """ if not name: raise Exception("RenderPage called with empty name") generator_url = "file:" + urllib.pathname2url(_generator_html) + "?" + name input_file = _base_dir + "/" + ...
c60d64ec89c1a8eb5279c38c101ec710c8d931f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/c60d64ec89c1a8eb5279c38c101ec710c8d931f9/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6987, 1964, 12, 529, 16, 1842, 67, 10304, 4672, 3536, 23665, 1842, 67, 10304, 1493, 6741, 17, 16341, 1372, 19, 8812, 18, 2620, 35, 32, 529, 34, 471, 7262, 326, 563, 358, 1372, 19, 8532...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6987, 1964, 12, 529, 16, 1842, 67, 10304, 4672, 3536, 23665, 1842, 67, 10304, 1493, 6741, 17, 16341, 1372, 19, 8812, 18, 2620, 35, 32, 529, 34, 471, 7262, 326, 563, 358, 1372, 19, 8532...
gobject.idle_add(app.widgetapp.window._window.present)
if hasattr(app, "widgetapp") and app.widgetapp is not None: gobject.idle_add(app.widgetapp.window._window.present)
def handle_message(self, data): # import this stuff inside the function, so that import errors don't # mess with other code, which is part of the startup process from miro import app from miro import eventloop from miro import singleclick import gobject try: cmd_line = pickle.loads(data) except: logging.warn("Error unp...
d53c801b5871b0aca9a4af7da74cd9a560f3fb84 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/d53c801b5871b0aca9a4af7da74cd9a560f3fb84/pipeipc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 2150, 12, 2890, 16, 501, 4672, 468, 1930, 333, 10769, 4832, 326, 445, 16, 1427, 716, 1930, 1334, 2727, 1404, 468, 12755, 598, 1308, 981, 16, 1492, 353, 1087, 434, 326, 11850, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2150, 12, 2890, 16, 501, 4672, 468, 1930, 333, 10769, 4832, 326, 445, 16, 1427, 716, 1930, 1334, 2727, 1404, 468, 12755, 598, 1308, 981, 16, 1492, 353, 1087, 434, 326, 11850, ...
if binned:
if options.binned:
def commands(options, command, args): if command == 'database': if len(args) == 0: raise CommandException import dbinit mydb = dbinit.MyDB(options) if args[0] == 'drop': if len(args) > 2: raise CommandException mydb.admin() mydb.drop() if len(args) == 2 and args[1] == 'init': mydb.create() mydb.connect() mydb.populat...
45d1d2b973c623d3e06788c2d890c401bdd01da9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/45d1d2b973c623d3e06788c2d890c401bdd01da9/stats.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4364, 12, 2116, 16, 1296, 16, 833, 4672, 309, 1296, 422, 296, 6231, 4278, 309, 562, 12, 1968, 13, 422, 374, 30, 1002, 3498, 503, 225, 1930, 1319, 2738, 3399, 1966, 273, 1319, 2738, 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, 4364, 12, 2116, 16, 1296, 16, 833, 4672, 309, 1296, 422, 296, 6231, 4278, 309, 562, 12, 1968, 13, 422, 374, 30, 1002, 3498, 503, 225, 1930, 1319, 2738, 3399, 1966, 273, 1319, 2738, 18,...
readdata = fileinfo[myfilehandle]['fobj'].readline(*args)
try: readdata = fileinfo[myfilehandle]['fobj'].readline(*args) except KeyError: raise ValueError("Invalid file object (probably closed).")
def readline(self,*args): # prevent TOCTOU race with client changing my filehandle myfilehandle = self.filehandle restrictions.assertisallowed('file.readline',*args)
16ec1c5bdf13954835e1b26b12f79e65662b5170 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7272/16ec1c5bdf13954835e1b26b12f79e65662b5170/emulfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12023, 12, 2890, 16, 14, 1968, 4672, 468, 5309, 8493, 1268, 26556, 17996, 598, 1004, 12770, 3399, 585, 4110, 3399, 768, 4110, 273, 365, 18, 768, 4110, 17499, 18, 11231, 291, 8151, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12023, 12, 2890, 16, 14, 1968, 4672, 468, 5309, 8493, 1268, 26556, 17996, 598, 1004, 12770, 3399, 585, 4110, 3399, 768, 4110, 273, 365, 18, 768, 4110, 17499, 18, 11231, 291, 8151, 2668, ...
cur_task.set_text(t.getElementsByTagName("content")[0].toxml())
tasktext = t.getElementsByTagName("content") if len(tasktext) > 0 : cur_task.set_text(tasktext[0].toxml())
def get_project(self) : if self.__xmlproject[0] : #t is the xml of each task for t in self.__xmlproject[0].childNodes: cur_id = "%s" %t.getAttribute("id") cur_stat = "%s" %t.getAttribute("status") cur_task = Task(cur_id) donedate = self.__read_textnode(t,"donedate") cur_task.set_status(cur_stat,donedate=donedate) #we w...
679523d014959eb101828d1752e44ed284f84f34 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7036/679523d014959eb101828d1752e44ed284f84f34/xml_backend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4406, 12, 2890, 13, 294, 309, 365, 16186, 2902, 4406, 63, 20, 65, 294, 468, 88, 353, 326, 2025, 434, 1517, 1562, 364, 268, 316, 365, 16186, 2902, 4406, 63, 20, 8009, 3624, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4406, 12, 2890, 13, 294, 309, 365, 16186, 2902, 4406, 63, 20, 65, 294, 468, 88, 353, 326, 2025, 434, 1517, 1562, 364, 268, 316, 365, 16186, 2902, 4406, 63, 20, 8009, 3624, 3...
if not self.show_builtin(ancestor):
if self.not_show_builtin(ancestor):
def get_ancestors(self, node, level): """return ancestor nodes of a class node""" if level == 0: return for ancestor in node.ancestors(recurs=False): if not self.show_builtin(ancestor): continue yield ancestor
89a4fb6d68375e0a754b84251264711999d177bc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/928/89a4fb6d68375e0a754b84251264711999d177bc/diadefslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 304, 11116, 12, 2890, 16, 756, 16, 1801, 4672, 3536, 2463, 9731, 2199, 434, 279, 667, 756, 8395, 309, 1801, 422, 374, 30, 327, 364, 9731, 316, 756, 18, 304, 11116, 12, 266, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 304, 11116, 12, 2890, 16, 756, 16, 1801, 4672, 3536, 2463, 9731, 2199, 434, 279, 667, 756, 8395, 309, 1801, 422, 374, 30, 327, 364, 9731, 316, 756, 18, 304, 11116, 12, 266, ...
which is defined for $m \in \Z$ and any $x$.
which is defined for $m \in \Z$ and any $x$. We extend this definition to include cases when $x-m$ is an integer but $m$ is not by binomial(x,m)= binomial(x,x-m)
def binomial(x,m): r""" Return the binomial coefficient $$ x (x-1) \cdots (x-m+1) / m! $$ which is defined for $m \in \Z$ and any $x$. If $m<0$ return $0$. If x-m is an integer we define: binomial(x,m)= binomial(x,x-m) (This rule makes sense if x is assumed to be an integer) INPUT:: x,m -- numbers or symbolic expre...
21a76d35ec27217abb8f950a2b50d82af6f3e74c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/21a76d35ec27217abb8f950a2b50d82af6f3e74c/arith.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4158, 11496, 12, 92, 16, 81, 4672, 436, 8395, 2000, 326, 4158, 11496, 16554, 5366, 619, 261, 92, 17, 21, 13, 521, 4315, 6968, 261, 92, 17, 81, 15, 21, 13, 342, 312, 5, 5366, 1492, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4158, 11496, 12, 92, 16, 81, 4672, 436, 8395, 2000, 326, 4158, 11496, 16554, 5366, 619, 261, 92, 17, 21, 13, 521, 4315, 6968, 261, 92, 17, 81, 15, 21, 13, 342, 312, 5, 5366, 1492, ...
hits = []; rpow=0
hits = []
def phasers(): # fire phasers hits = []; rpow=0 kz = 0; k = 1; irec=0 # Cheating inhibitor ifast = False; no = False; itarg = True; msgflag = True automode = "NOTSET" key=0 skip(1) # SR sensors and Computer are needed fopr automode if damaged(DSRSENS) or damaged(DCOMPTR): itarg = False if game.condition == "docked": pr...
ad7e6b2e5d6f82e729fafaf4752f0fd8fed97fc3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/ad7e6b2e5d6f82e729fafaf4752f0fd8fed97fc3/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1844, 345, 414, 13332, 468, 4452, 1844, 345, 414, 11076, 273, 5378, 417, 94, 273, 374, 31, 417, 273, 404, 31, 277, 3927, 33, 20, 468, 22682, 1776, 316, 15769, 1811, 309, 689, 273, 1083...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1844, 345, 414, 13332, 468, 4452, 1844, 345, 414, 11076, 273, 5378, 417, 94, 273, 374, 31, 417, 273, 404, 31, 277, 3927, 33, 20, 468, 22682, 1776, 316, 15769, 1811, 309, 689, 273, 1083...
os.system( 'del /f /s /q "%s"' % path )
os.system( 'del /f /s /q "%s" >nul 2>&1' % path )
def rmtree( path ): if os.path.exists( path ): if sys.platform == 'win32': os.system( 'del /f /s /q "%s"' % path ) shutil.rmtree( path ) else: os.system( 'rm -f -r "%s"' % path )
afee980c07dd4bdddaf7abe89f0ddb9a22f23738 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7959/afee980c07dd4bdddaf7abe89f0ddb9a22f23738/regression.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17941, 12, 589, 262, 30, 309, 1140, 18, 803, 18, 1808, 12, 589, 262, 30, 309, 2589, 18, 9898, 422, 296, 8082, 1578, 4278, 1140, 18, 4299, 12, 296, 3771, 342, 74, 342, 87, 342, 85, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17941, 12, 589, 262, 30, 309, 1140, 18, 803, 18, 1808, 12, 589, 262, 30, 309, 2589, 18, 9898, 422, 296, 8082, 1578, 4278, 1140, 18, 4299, 12, 296, 3771, 342, 74, 342, 87, 342, 85, ...
test_examples= []
test_examples = []
def parseFile(self, blkt_file): """ Parses the test definition file and creates a list of it. """ # Create a new empty list to store all information of the test in it. test_examples= [] # Now read the corresponding file and parse it. file = open(blkt_file, 'r') # Helper variable to parse the file. Might be a little bit...
e941ea0353dd1452c064b49107c82f63b66df94a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10470/e941ea0353dd1452c064b49107c82f63b66df94a/test_blockettes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31986, 12, 2890, 16, 2811, 8629, 67, 768, 4672, 3536, 2280, 2420, 326, 1842, 2379, 585, 471, 3414, 279, 666, 434, 518, 18, 3536, 468, 1788, 279, 394, 1008, 666, 358, 1707, 777, 1779, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31986, 12, 2890, 16, 2811, 8629, 67, 768, 4672, 3536, 2280, 2420, 326, 1842, 2379, 585, 471, 3414, 279, 666, 434, 518, 18, 3536, 468, 1788, 279, 394, 1008, 666, 358, 1707, 777, 1779, 4...
str += ' <DL><DT><B>Returns:</B>\n <DD>'
str += ' <dl><dt><b>Returns:</b></dt>\n <dd>'
def _func_details(self, functions, cls, heading='Function Details'): """## Return a detailed description of the functions in a class or module.""" functions = self._sort(functions) if len(functions) == 0: return '' str = self._table_header(heading, 'details')+'</TABLE>'
1b52b16120989cc834166571a9a1e9b8676d968f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/1b52b16120989cc834166571a9a1e9b8676d968f/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 644, 67, 6395, 12, 2890, 16, 4186, 16, 2028, 16, 11053, 2218, 2083, 21897, 11, 4672, 3536, 1189, 2000, 279, 6864, 2477, 434, 326, 4186, 316, 279, 667, 578, 1605, 12123, 4186, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 644, 67, 6395, 12, 2890, 16, 4186, 16, 2028, 16, 11053, 2218, 2083, 21897, 11, 4672, 3536, 1189, 2000, 279, 6864, 2477, 434, 326, 4186, 316, 279, 667, 578, 1605, 12123, 4186, 273, ...
pairs.insert(0, ('', '<no reference>')) return DisplayList(pairs)
value.insert(0, ('', '<no reference>')) return DisplayList(value)
def _Vocabulary(self, content_instance): catalog = getToolByName(content_instance, config.UID_CATALOG) # should be obsolete soon: index = 'portal_type' in catalog.indexes() and 'portal_type' or 'Type' brains = catalog.searchResults(**{index: self.allowed_types})
64c71cec849e633ac53e1bcfe44e2c42bf15bd9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/64c71cec849e633ac53e1bcfe44e2c42bf15bd9b/Field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 30747, 12, 2890, 16, 913, 67, 1336, 4672, 6222, 273, 336, 6364, 5911, 12, 1745, 67, 1336, 16, 642, 18, 3060, 67, 14130, 18683, 13, 468, 1410, 506, 27191, 17136, 30, 770, 273, 296,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 30747, 12, 2890, 16, 913, 67, 1336, 4672, 6222, 273, 336, 6364, 5911, 12, 1745, 67, 1336, 16, 642, 18, 3060, 67, 14130, 18683, 13, 468, 1410, 506, 27191, 17136, 30, 770, 273, 296,...
self.attval(str(value))))
self.attval(unicode(value))))
def starttag(self, node, tagname, suffix='\n', infix='', **attributes): """ Construct and return a start tag given a node (id & class attributes are extracted), tag name, and optional attributes. """ tagname = tagname.lower() atts = {} for (name, value) in attributes.items(): atts[name.lower()] = value for att in ('cla...
358131b681ddb1bfebd1f41a37f6b39e18e411c5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/358131b681ddb1bfebd1f41a37f6b39e18e411c5/html4css1.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 2692, 12, 2890, 16, 756, 16, 25586, 16, 3758, 2218, 64, 82, 2187, 316, 904, 2218, 2187, 2826, 4350, 4672, 3536, 14291, 471, 327, 279, 787, 1047, 864, 279, 756, 261, 350, 473, 667,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2692, 12, 2890, 16, 756, 16, 25586, 16, 3758, 2218, 64, 82, 2187, 316, 904, 2218, 2187, 2826, 4350, 4672, 3536, 14291, 471, 327, 279, 787, 1047, 864, 279, 756, 261, 350, 473, 667,...
cmd = compile_cmd(f, m) queue_compile_low.append(cmd)
queue_compile_low.append([compile_command, f])
def compile_command_list(ext_modules, deps): """ Computes a list of commands needed to compile and link the extension modules given in 'ext_modules' """ queue_compile_high = [] queue_compile_med = [] queue_compile_low = [] for m in ext_modules: new_sources = [] for f in m.sources: if f.endswith('.pyx'): dep_file, dep_...
2ae219f8a08535cf75eebcfc17a24ed662e34555 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/2ae219f8a08535cf75eebcfc17a24ed662e34555/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 67, 3076, 67, 1098, 12, 408, 67, 6400, 16, 8740, 4672, 3536, 14169, 281, 279, 666, 434, 4364, 3577, 358, 4074, 471, 1692, 326, 2710, 4381, 864, 316, 296, 408, 67, 6400, 11, 3536,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 67, 3076, 67, 1098, 12, 408, 67, 6400, 16, 8740, 4672, 3536, 14169, 281, 279, 666, 434, 4364, 3577, 358, 4074, 471, 1692, 326, 2710, 4381, 864, 316, 296, 408, 67, 6400, 11, 3536,...
self.conid = [board.connect("piece_moved", self.piece_moved)] self.conid.append(board.connect("call_flag", lambda b: self.emit_action(FLAG_CALL))) self.conid.append(board.connect("draw", lambda b: self.emit_action(DRAW_OFFER))) self.conid.append(board.connect("resign", lambda b: self.emit_action(RESIGNATION)))
self.conid = [ board.connect("piece_moved", self.piece_moved), board.connect("call_flag", lambda b: self.emit_action(FLAG_CALL)), board.connect("draw", lambda b: self.emit_action(DRAW_OFFER)), board.connect("resign", lambda b: self.emit_action(RESIGNATION)) ]
def __init__ (self, board, color): GObject.__init__(self) self.gamemodel = board.view.model self.queue = Queue() self.color = color self.board = board self.conid = [board.connect("piece_moved", self.piece_moved)] self.conid.append(board.connect("call_flag", lambda b: self.emit_action(FLAG_CALL))) self.conid.append(boa...
cd594a34df844bbb542b8dc11f598fa062b21917 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5339/cd594a34df844bbb542b8dc11f598fa062b21917/Human.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 11094, 16, 2036, 4672, 611, 921, 16186, 2738, 972, 12, 2890, 13, 225, 365, 18, 13957, 2284, 273, 11094, 18, 1945, 18, 2284, 365, 18, 4000, 273, 7530, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 11094, 16, 2036, 4672, 611, 921, 16186, 2738, 972, 12, 2890, 13, 225, 365, 18, 13957, 2284, 273, 11094, 18, 1945, 18, 2284, 365, 18, 4000, 273, 7530, 14...
cr.execute("select id from account_bank_statement where journal_id=%s and user_id=%s and state=%s order by id desc limit 1", (statement.journal_id.id, uid, 'confirm')) rs = cr.fetchone() rs = rs and rs[0] or None if rs: if len(statement.starting_details_ids) > 0: sid = [] for line in statement.starting_details_ids: sid...
def button_open(self, cr, uid, ids, context=None):
4fd67b69c6b0fc3ce35920df8e8fdc664e1fbc7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/4fd67b69c6b0fc3ce35920df8e8fdc664e1fbc7b/account_cash_statement.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3568, 67, 3190, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3568, 67, 3190, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if self.debug > 0: print 'wrote %s: %s' % (key, str(self.pars[key]))
log.debug('wrote %s: %s' % (key, str(self.pars[key])))
def write_input(self): '''write out input parameters as needed
97d65b7f6de853ae8bd02694f63966f3dfe9ab9e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1380/97d65b7f6de853ae8bd02694f63966f3dfe9ab9e/jacapo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 2630, 12, 2890, 4672, 9163, 2626, 596, 810, 1472, 487, 3577, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 2630, 12, 2890, 4672, 9163, 2626, 596, 810, 1472, 487, 3577, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
StringField('title',
StringField( name='title',
def modify_fti(fti): # hide unnecessary tabs (usability enhancement) for a in fti['actions']: if a['id'] in [%(hideactions)s]: a['visible'] = 0 return fti
2707a5f2d62b6fe92cbe7e0be8698cc72db3c788 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11941/2707a5f2d62b6fe92cbe7e0be8698cc72db3c788/codesnippets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5612, 67, 1222, 77, 12, 1222, 77, 4672, 468, 6853, 19908, 10920, 261, 407, 2967, 29119, 475, 13, 364, 279, 316, 284, 9096, 3292, 4905, 3546, 30, 309, 279, 3292, 350, 3546, 316, 9799, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5612, 67, 1222, 77, 12, 1222, 77, 4672, 468, 6853, 19908, 10920, 261, 407, 2967, 29119, 475, 13, 364, 279, 316, 284, 9096, 3292, 4905, 3546, 30, 309, 279, 3292, 350, 3546, 316, 9799, 1...
before_replacing_word = m[1]; replacing_word = m[2];
replacing_word = m[1]; before_replacing_word = before.substr(-replacing_word.length-1);
def javascript(): s = r"""
ada3193c2996cf5b695a0c0ce4f81a73c7ec273a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/ada3193c2996cf5b695a0c0ce4f81a73c7ec273a/js.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11341, 13332, 272, 273, 436, 8395, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11341, 13332, 272, 273, 436, 8395, 225, 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, -...
else: seg_base.append('')
def visit_ele(self, err_ele): """ @param err_ele: Segment error handler @type err_ele: L{error_handler.err_ele} """ valid_AK4_codes = ('1', '2', '3', '4', '5', '6', '7', '8', '9', '10') seg_base = pyx12.segment.segment('AK4', '~', '*', ':') if err_ele.subele_pos: seg_base.append('%i:%i' % (err_ele.ele_pos, err_ele.sube...
276f75f3042688ca8d93384c37b4365fa3d41bc9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11528/276f75f3042688ca8d93384c37b4365fa3d41bc9/error_997.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 6516, 12, 2890, 16, 393, 67, 6516, 4672, 3536, 632, 891, 393, 67, 6516, 30, 10807, 555, 1838, 632, 723, 393, 67, 6516, 30, 511, 95, 1636, 67, 4176, 18, 370, 67, 6516, 97, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 6516, 12, 2890, 16, 393, 67, 6516, 4672, 3536, 632, 891, 393, 67, 6516, 30, 10807, 555, 1838, 632, 723, 393, 67, 6516, 30, 511, 95, 1636, 67, 4176, 18, 370, 67, 6516, 97, ...
c2 = base_ring(a[1].lift() * (j+1) / (3*j + 7))
if p.divides(3*j + 7): c2 = base_ring(lift(a[1]) * (j+1) / (3*j + 7)) else: c2 = a[1] * (j+1) / (3*j + 7)
def reduce_positive(Q, coeffs, offset): """ Applies cohomology relations to incorporate positive powers of $y$ into the $y^0$ term. INPUT: Q -- cubic polynomial coeffs -- list of length 3 lists. The i^th list [a, b, c] represents $y^{2(i - offset)} (a + bx + cx^2) dx/y$. offset -- nonnegative integer OUTPUT: The redu...
27b77e28ae3b8fbd3ab5545206e95e0ab8882088 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/27b77e28ae3b8fbd3ab5545206e95e0ab8882088/monsky_washnitzer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5459, 67, 21094, 12, 53, 16, 16530, 16, 1384, 4672, 3536, 1716, 5259, 1825, 17125, 4676, 7467, 358, 316, 3850, 3831, 340, 6895, 7602, 414, 434, 271, 93, 8, 1368, 326, 271, 93, 66, 20, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5459, 67, 21094, 12, 53, 16, 16530, 16, 1384, 4672, 3536, 1716, 5259, 1825, 17125, 4676, 7467, 358, 316, 3850, 3831, 340, 6895, 7602, 414, 434, 271, 93, 8, 1368, 326, 271, 93, 66, 20, ...
print "prefix = " + prefix print "partial_query = " + partial_query print "Input appears to contain prefix: %s" % prefix
def get_autocompletion_suggestions(input): """ This method returns a list of suggested queries. It checks the query substring against a number of fields in the database: - project.name - project.language Not yet implemented: - libraries (frameworks? toolkits?) like Django - search by date """ print "\n\ninput: " + in...
7cd35b2103de21b688534eb7aad16a6199b05a57 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11976/7cd35b2103de21b688534eb7aad16a6199b05a57/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5854, 9970, 1469, 285, 67, 87, 12500, 12, 2630, 4672, 3536, 1220, 707, 1135, 279, 666, 434, 22168, 6218, 18, 2597, 4271, 326, 843, 3019, 5314, 279, 1300, 434, 1466, 316, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5854, 9970, 1469, 285, 67, 87, 12500, 12, 2630, 4672, 3536, 1220, 707, 1135, 279, 666, 434, 22168, 6218, 18, 2597, 4271, 326, 843, 3019, 5314, 279, 1300, 434, 1466, 316, 326, ...
for output in outputs:
for output in outputs:
def create_user_node(self, name, category, description, inputs, outputs): """ Return a new user node factory This function create a new python module in the package directory The factory is added to the package and the package is saved. """
4f435f6a2c6e798847d10abef3869c28a28ca5f6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11338/4f435f6a2c6e798847d10abef3869c28a28ca5f6/package.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 1355, 67, 2159, 12, 2890, 16, 508, 16, 3150, 16, 2477, 16, 4540, 16, 6729, 4672, 3536, 2000, 279, 394, 729, 756, 3272, 1220, 445, 752, 279, 394, 5790, 1605, 316, 326, 2181, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 67, 1355, 67, 2159, 12, 2890, 16, 508, 16, 3150, 16, 2477, 16, 4540, 16, 6729, 4672, 3536, 2000, 279, 394, 729, 756, 3272, 1220, 445, 752, 279, 394, 5790, 1605, 316, 326, 2181, ...
return {"IAccessible::role":[IAccessibleHandler.ROLE_SYSTEM_PUSHBUTTON,IAccessibleHandler.ROLE_SYSTEM_RADIOBUTTON,IAccessibleHandler.ROLE_SYSTEM_CHECKBUTTON,IAccessibleHandler.ROLE_SYSTEM_COMBOBOX,IAccessibleHandler.ROLE_SYSTEM_LIST,IAccessibleHandler.ROLE_SYSTEM_OUTLINE,IAccessibleHandler.ROLE_SYSTEM_TEXT],"IAccessibl...
attrs={"IAccessible::role":[IAccessibleHandler.ROLE_SYSTEM_PUSHBUTTON,IAccessibleHandler.ROLE_SYSTEM_RADIOBUTTON,IAccessibleHandler.ROLE_SYSTEM_CHECKBUTTON,IAccessibleHandler.ROLE_SYSTEM_COMBOBOX,IAccessibleHandler.ROLE_SYSTEM_LIST,IAccessibleHandler.ROLE_SYSTEM_OUTLINE,IAccessibleHandler.ROLE_SYSTEM_TEXT],"IAccessible...
def _searchableAttribsForNodeType(self,nodeType): if nodeType=="heading": return {"IAccessible::role":[IAccessibleHandler.IA2_ROLE_HEADING]} if nodeType=="table": return {"IAccessible::role":[IAccessibleHandler.ROLE_SYSTEM_TABLE]} elif nodeType=="link": return {"IAccessible::role":[IAccessibleHandler.ROLE_SYSTEM_LINK]}...
c0ade13e03a85ab9829d5b3788189f373218f465 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9340/c0ade13e03a85ab9829d5b3788189f373218f465/gecko_ia2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3072, 429, 12399, 28388, 15101, 12, 2890, 16, 2159, 559, 4672, 309, 9507, 31713, 19948, 6877, 327, 12528, 45, 10451, 2866, 4615, 6877, 63, 45, 10451, 1503, 18, 15188, 22, 67, 16256, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3072, 429, 12399, 28388, 15101, 12, 2890, 16, 2159, 559, 4672, 309, 9507, 31713, 19948, 6877, 327, 12528, 45, 10451, 2866, 4615, 6877, 63, 45, 10451, 1503, 18, 15188, 22, 67, 16256, ...
modulename = frame.f_globals["__name__"]
try: modulename = frame.f_globals["__name__"] except KeyError: modulename = None
def trace(self, frame, why, arg): if why == 'line': filename = frame.f_code.co_filename modulename = frame.f_globals["__name__"]
894961335102d1da3e013a6c403542d89fcb4d40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/894961335102d1da3e013a6c403542d89fcb4d40/trace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2606, 12, 2890, 16, 2623, 16, 11598, 16, 1501, 4672, 309, 11598, 422, 296, 1369, 4278, 1544, 273, 2623, 18, 74, 67, 710, 18, 2894, 67, 3459, 31961, 273, 2623, 18, 74, 67, 16227, 9614, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2606, 12, 2890, 16, 2623, 16, 11598, 16, 1501, 4672, 309, 11598, 422, 296, 1369, 4278, 1544, 273, 2623, 18, 74, 67, 710, 18, 2894, 67, 3459, 31961, 273, 2623, 18, 74, 67, 16227, 9614, ...
twoPoints.append(axisMatrix.MultiplyPoint(axisPoints[0] + (1,))) twoPoints.append(axisMatrix.MultiplyPoint(axisPoints[1] + (1,)))
twoPoints.append(axisMatrix.MultiplyPoint(axisPoints[0] + (1,))[0:3]) twoPoints.append(axisMatrix.MultiplyPoint(axisPoints[1] + (1,))[0:3])
def _axisToSlice(self, tdObject, sliceDirection): """If tdObject has an axis, make the axis lie in the plane defined by sliceDirection. """
fc0788b84d2d17e23cfbf2eba51bf9dd35371f2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4494/fc0788b84d2d17e23cfbf2eba51bf9dd35371f2d/tdObjects.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4890, 774, 5959, 12, 2890, 16, 6655, 921, 16, 2788, 8212, 4672, 3536, 2047, 6655, 921, 711, 392, 2654, 16, 1221, 326, 2654, 328, 1385, 316, 326, 11017, 2553, 635, 2788, 8212, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4890, 774, 5959, 12, 2890, 16, 6655, 921, 16, 2788, 8212, 4672, 3536, 2047, 6655, 921, 711, 392, 2654, 16, 1221, 326, 2654, 328, 1385, 316, 326, 11017, 2553, 635, 2788, 8212, 18, ...
temp = stl(handler, namespace)
temp = stl(handler, namespace, html=False)
def stl_rmltopdf_test(handler, namespace): temp = stl(handler, namespace) stream = Parser(temp) return document_stream(stream, StringIO(), True)
bbb20edad6fd20a0421f494dfdaf1235926fd09a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/bbb20edad6fd20a0421f494dfdaf1235926fd09a/rml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 384, 80, 67, 86, 781, 3669, 2180, 67, 3813, 12, 4176, 16, 1981, 4672, 1906, 273, 384, 80, 12, 4176, 16, 1981, 16, 1729, 33, 8381, 13, 1407, 273, 6783, 12, 5814, 13, 327, 1668, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 384, 80, 67, 86, 781, 3669, 2180, 67, 3813, 12, 4176, 16, 1981, 4672, 1906, 273, 384, 80, 12, 4176, 16, 1981, 16, 1729, 33, 8381, 13, 1407, 273, 6783, 12, 5814, 13, 327, 1668, 67, ...
ignore1, start_time_free, ignore2, ignore3 = self._jmim.opt_get_optimization_interval()
ignore1, start_time_free, ignore2, ignore3 = self._m.jmimodel.opt_get_optimization_interval()
def isFreeStartTime(self): ignore1, start_time_free, ignore2, ignore3 = self._jmim.opt_get_optimization_interval() return start_time_free == 1
733964346bd705d3e3fa78795693f8a99289c936 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/733964346bd705d3e3fa78795693f8a99289c936/shooting.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 9194, 13649, 12, 2890, 4672, 2305, 21, 16, 787, 67, 957, 67, 9156, 16, 2305, 22, 16, 2305, 23, 273, 365, 6315, 81, 18, 78, 81, 381, 1009, 18, 3838, 67, 588, 67, 16689, 1588, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 9194, 13649, 12, 2890, 4672, 2305, 21, 16, 787, 67, 957, 67, 9156, 16, 2305, 22, 16, 2305, 23, 273, 365, 6315, 81, 18, 78, 81, 381, 1009, 18, 3838, 67, 588, 67, 16689, 1588, 6...
def designTimeSource(self, position = 'wxDefaultPosition', size = 'wxDefaultSize'):
def designTimeSource(self, position='wxDefaultPosition', size='wxDefaultSize'):
def designTimeSource(self, position = 'wxDefaultPosition', size = 'wxDefaultSize'): return {'pos': position, 'size': size, 'style': 'wxLC_ICON', 'validator': 'wxDefaultValidator', 'name': `self.name`}
bf2d0fc28ac1c46bdc6f0710c24fe8c632cc2553 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/bf2d0fc28ac1c46bdc6f0710c24fe8c632cc2553/ListCompanions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8281, 950, 1830, 12, 2890, 16, 1754, 2218, 27226, 1868, 2555, 2187, 963, 2218, 27226, 1868, 1225, 11, 4672, 327, 13666, 917, 4278, 1754, 16, 296, 1467, 4278, 963, 16, 296, 4060, 4278, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8281, 950, 1830, 12, 2890, 16, 1754, 2218, 27226, 1868, 2555, 2187, 963, 2218, 27226, 1868, 1225, 11, 4672, 327, 13666, 917, 4278, 1754, 16, 296, 1467, 4278, 963, 16, 296, 4060, 4278, 29...
-3.07497205899524 + 1.88269669261902*I
-3.07497205... + 1.8826966926...*I
def gauss_sum_numerical(self, prec=53, a=1): r""" Return a Gauss sum associated to this Dirichlet character as an approximate complex number with prec bits of precision.
0c48341ab3fb81d6628da8ac19109bb7302b8820 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0c48341ab3fb81d6628da8ac19109bb7302b8820/dirichlet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 314, 10325, 67, 1364, 67, 2107, 10882, 12, 2890, 16, 13382, 33, 8643, 16, 279, 33, 21, 4672, 436, 8395, 2000, 279, 611, 10325, 2142, 3627, 358, 333, 8446, 1354, 1810, 3351, 487, 392, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 314, 10325, 67, 1364, 67, 2107, 10882, 12, 2890, 16, 13382, 33, 8643, 16, 279, 33, 21, 4672, 436, 8395, 2000, 279, 611, 10325, 2142, 3627, 358, 333, 8446, 1354, 1810, 3351, 487, 392, 2...
warning.linenum += startline
warning.set_linenum_offset(startline+1)
def _print_errors(self, stream=None): """ Print any errors that were encountered while constructing this C{ObjDoc} to C{stream}. This method should be called at the end of the constructor of every class that is derived from C{ObjDoc} (I{after} the base C{ObjDoc} constructor has been called). @rtype: C{None} """ parse...
ab822894d6e2a7d6720010ae6c6d714b5b5fea7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/ab822894d6e2a7d6720010ae6c6d714b5b5fea7f/objdoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1188, 67, 4324, 12, 2890, 16, 1407, 33, 7036, 4672, 3536, 3038, 1281, 1334, 716, 4591, 9919, 1323, 27389, 333, 385, 95, 2675, 1759, 97, 358, 385, 95, 3256, 5496, 225, 1220, 707, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1188, 67, 4324, 12, 2890, 16, 1407, 33, 7036, 4672, 3536, 3038, 1281, 1334, 716, 4591, 9919, 1323, 27389, 333, 385, 95, 2675, 1759, 97, 358, 385, 95, 3256, 5496, 225, 1220, 707, 1...
class hook(client.hook): def on_new_version(self, page): if page.key in cache: cache.delete(page.key)
def get_cache(self, cache_size): global _cache if _cache is None: _cache = lru.LRU(cache_size) class hook(client.hook): def on_new_version(self, page): if page.key in _cache: _cache.delete(page.key) return _cache
def __init__(self, conn, cache_prefixes, cache_size=10000): ConnectionMiddleware.__init__(self, conn) self.cache_prefixes = cache_prefixes self.cache = cache = lru.LRU(cache_size) class hook(client.hook): def on_new_version(self, page): if page.key in cache: cache.delete(page.key)
dc9f6c3a499113d696a6b9f6204512e06fd70ebf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3913/dc9f6c3a499113d696a6b9f6204512e06fd70ebf/connection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1487, 16, 1247, 67, 17777, 16, 1247, 67, 1467, 33, 23899, 4672, 4050, 9410, 16186, 2738, 972, 12, 2890, 16, 1487, 13, 365, 18, 2493, 67, 17777, 273, 1247...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1487, 16, 1247, 67, 17777, 16, 1247, 67, 1467, 33, 23899, 4672, 4050, 9410, 16186, 2738, 972, 12, 2890, 16, 1487, 13, 365, 18, 2493, 67, 17777, 273, 1247...
self.attval(str(value))))
self.attval(unicode(value))))
def starttag(self, node, tagname, suffix='\n', infix='', **attributes): """ Construct and return a start tag given a node (id & class attributes are extracted), tag name, and optional attributes. """ tagname = tagname.lower() atts = {} for (name, value) in attributes.items(): atts[name.lower()] = value for att in ('cla...
2b3187b964b7af308136ead0c52483c01b10c785 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/2b3187b964b7af308136ead0c52483c01b10c785/html4css1.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 2692, 12, 2890, 16, 756, 16, 25586, 16, 3758, 2218, 64, 82, 2187, 316, 904, 2218, 2187, 2826, 4350, 4672, 3536, 14291, 471, 327, 279, 787, 1047, 864, 279, 756, 261, 350, 473, 667,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2692, 12, 2890, 16, 756, 16, 25586, 16, 3758, 2218, 64, 82, 2187, 316, 904, 2218, 2187, 2826, 4350, 4672, 3536, 14291, 471, 327, 279, 787, 1047, 864, 279, 756, 261, 350, 473, 667,...
print "$Id: plotsnrchisq_pipe.py,v 1.12 2007/05/16 18:11:07 channa Exp $"
print "$Id: plotsnrchisq_pipe.py,v 1.13 2007/05/16 19:32:57 channa Exp $"
def plotsnrchisq(gpsTime,frameFile,outputPath,inspProcParams,tableFile,imgFile,page): rsqThreshold = 0; for row in inspProcParams: if row.param == "--channel-name": chanStringBase = row.value ifoName = str(row.value).split(":",1) if row.param == "--segment-length": segLen = eval(row.value) if row.param == "--sample-r...
2777fa11ff2b663565d2e7ea7027336106a2f2ae /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3592/2777fa11ff2b663565d2e7ea7027336106a2f2ae/plotsnrchisq_pipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 8134, 86, 343, 291, 85, 12, 75, 1121, 950, 16, 3789, 812, 16, 2844, 743, 16, 267, 1752, 15417, 1370, 16, 2121, 812, 16, 6081, 812, 16, 2433, 4672, 225, 3597, 85, 7614, 273, 374...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 8134, 86, 343, 291, 85, 12, 75, 1121, 950, 16, 3789, 812, 16, 2844, 743, 16, 267, 1752, 15417, 1370, 16, 2121, 812, 16, 6081, 812, 16, 2433, 4672, 225, 3597, 85, 7614, 273, 374...
if verbose: print "- self.paragraphs was: "+str(self.paragraphs)
def __init__(self,id_within_column,colnum,time,url,date,parser): if verbose: print "- Creating Speech..." self.id_within_column = id_within_column self.colnum = colnum self.time = time self.url = url self.date = date self.id = 'uk.org.publicwhip/spor/'+str(date)+'.'+str(colnum)+'.'+str(id_within_column) self.paragraphs...
afa10808c735fe43318a2856f3a993afbab25469 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8428/afa10808c735fe43318a2856f3a993afbab25469/parse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 350, 67, 25850, 67, 2827, 16, 1293, 2107, 16, 957, 16, 718, 16, 712, 16, 4288, 4672, 309, 3988, 30, 1172, 3701, 21837, 348, 12510, 7070, 365, 18, 350, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 350, 67, 25850, 67, 2827, 16, 1293, 2107, 16, 957, 16, 718, 16, 712, 16, 4288, 4672, 309, 3988, 30, 1172, 3701, 21837, 348, 12510, 7070, 365, 18, 350, ...
projects = Project.objects.all().filter(is_private=0) return object_list(request, queryset=projects)
projects = [project for project in Project.objects.all() if project.get_permissions(request.user).can_view_project] return render_to_response('project/project_list.html',{'object_list':projects})
def get_project_list(request): projects = Project.objects.all().filter(is_private=0) return object_list(request, queryset=projects)
e948e0e6b442d12862f3279eeef8e1411005db18 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14843/e948e0e6b442d12862f3279eeef8e1411005db18/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4406, 67, 1098, 12, 2293, 4672, 10137, 273, 306, 4406, 364, 1984, 316, 5420, 18, 6911, 18, 454, 1435, 309, 1984, 18, 588, 67, 9612, 12, 2293, 18, 1355, 2934, 4169, 67, 1945, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4406, 67, 1098, 12, 2293, 4672, 10137, 273, 306, 4406, 364, 1984, 316, 5420, 18, 6911, 18, 454, 1435, 309, 1984, 18, 588, 67, 9612, 12, 2293, 18, 1355, 2934, 4169, 67, 1945, ...
gMonitor.addMark("MigratedFiles%s" % se,len(migratedFiles)) gMonitor.addMark("TotalMigratedFiles%s" % se,len(migratedFiles))
allMigrated = matchingFiles+mismatchingFiles gMonitor.addMark("MigratedFiles%s" % se,len(allMigrated)) gMonitor.addMark("TotalMigratedFiles%s" % se,len(allMigrated))
def __updateMigrationAccounting(self,se,migratedFiles,migratingFiles,mismatchingFiles,assumedEndTime,previousMonitorTime): """ Create accounting messages for the overall throughput observed and the total migration time for the files """ gMonitor.addMark("MigratedFiles%s" % se,len(migratedFiles)) gMonitor.addMark("Total...
4f91556b86199dede4b08bee27f08eea5a1de278 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/4f91556b86199dede4b08bee27f08eea5a1de278/MigrationMonitoringAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2725, 10224, 3032, 310, 12, 2890, 16, 307, 16, 81, 2757, 690, 2697, 16, 81, 2757, 1776, 2697, 16, 11173, 16271, 2697, 16, 428, 379, 329, 25255, 16, 11515, 7187, 950, 4672, 3536, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2725, 10224, 3032, 310, 12, 2890, 16, 307, 16, 81, 2757, 690, 2697, 16, 81, 2757, 1776, 2697, 16, 11173, 16271, 2697, 16, 428, 379, 329, 25255, 16, 11515, 7187, 950, 4672, 3536, ...
fssp_align = Generic.Alignment(Alphabet.Gapped(Alphabet.IUPAC.protein))
fssp_align = Generic.Alignment(Alphabet.Gapped( Alphabet.IUPAC.extended_protein))
def mult_align(sum_dict,align_dict): mult_align_dict = {} for j in align_dict.abs(1).pos_align_dict.keys(): mult_align_dict[j] = '' for align_rec in align_dict.values(): for j in align_rec.pos_align_dict.keys(): mult_align_dict[j] += align_rec.pos_align_dict[j].aa seq_order = mult_align_dict.keys() seq_order.sort() fss...
ac553f7240b74627b7061c7696e6cdccaf409ba5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/ac553f7240b74627b7061c7696e6cdccaf409ba5/FSSPTools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1778, 67, 7989, 12, 1364, 67, 1576, 16, 7989, 67, 1576, 4672, 1778, 67, 7989, 67, 1576, 273, 2618, 364, 525, 316, 5689, 67, 1576, 18, 5113, 12, 21, 2934, 917, 67, 7989, 67, 1576, 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, 1778, 67, 7989, 12, 1364, 67, 1576, 16, 7989, 67, 1576, 4672, 1778, 67, 7989, 67, 1576, 273, 2618, 364, 525, 316, 5689, 67, 1576, 18, 5113, 12, 21, 2934, 917, 67, 7989, 67, 1576, 18,...
if must_quote_body:
if is_base64: line = line + 'base64\n' elif must_quote_body:
def mimify_part(ifile, ofile, is_mime): '''Convert an 8bit part of a MIME mail message to quoted-printable.''' has_cte = is_qp = 0 multipart = None must_quote_body = must_quote_header = has_iso_chars = 0 header = [] header_end = '' message = [] message_end = '' # read header hfile = HeaderFile(ifile) while 1: line = h...
2b85cde0d17a1e1c8a5152e25a229e8ed8c1151c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/2b85cde0d17a1e1c8a5152e25a229e8ed8c1151c/mimify.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20369, 1164, 67, 2680, 12, 430, 398, 16, 434, 398, 16, 353, 67, 11757, 4672, 9163, 2723, 392, 1725, 3682, 1087, 434, 279, 13195, 4791, 883, 358, 9298, 17, 1188, 429, 1093, 6309, 711, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20369, 1164, 67, 2680, 12, 430, 398, 16, 434, 398, 16, 353, 67, 11757, 4672, 9163, 2723, 392, 1725, 3682, 1087, 434, 279, 13195, 4791, 883, 358, 9298, 17, 1188, 429, 1093, 6309, 711, 6...
__slots__ = ['nodes']
def normalize (self, total): self.weight = float (self.count) / total self.dot_label = '%.2f' % self.weight
06c5189cceb33db4082ae4d94ff86fe083fc0935 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/06c5189cceb33db4082ae4d94ff86fe083fc0935/build_motion_graphs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3883, 261, 2890, 16, 2078, 4672, 365, 18, 4865, 273, 1431, 261, 2890, 18, 1883, 13, 342, 2078, 365, 18, 9811, 67, 1925, 273, 22036, 22, 74, 11, 738, 365, 18, 4865, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3883, 261, 2890, 16, 2078, 4672, 365, 18, 4865, 273, 1431, 261, 2890, 18, 1883, 13, 342, 2078, 365, 18, 9811, 67, 1925, 273, 22036, 22, 74, 11, 738, 365, 18, 4865, 2, -100, -100, -10...
P ( contents = [
P ( contents = [
def makePage( _T, _N, _M, MIRRORS_DATA, lang, charset ): navigation = Tree \ ( [ P ( contents = [ Img( src = '/images/pointer.png' ), A( _N['home'], href=makeURL( '', lang ))] ), Tree \ ( [ P ( contents = [ Img( src = '/images/englishlogo.png' ), A( 'English', href='%(BASE)s' )]), P ( contents = [ Img( src = '/images/g...
846194f3836b7e3473a516c54c1f17757297aebf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4747/846194f3836b7e3473a516c54c1f17757297aebf/page.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 1964, 12, 389, 56, 16, 389, 50, 16, 389, 49, 16, 490, 7937, 2784, 55, 67, 4883, 16, 3303, 16, 4856, 262, 30, 10394, 273, 4902, 521, 261, 306, 453, 261, 2939, 273, 306, 2221, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 1964, 12, 389, 56, 16, 389, 50, 16, 389, 49, 16, 490, 7937, 2784, 55, 67, 4883, 16, 3303, 16, 4856, 262, 30, 10394, 273, 4902, 521, 261, 306, 453, 261, 2939, 273, 306, 2221, ...
self.addheaders = [('User-agent', server_version)]
self.addheaders = [('User-Agent', server_version)]
def __init__(self): server_version = "Python-urllib/%s" % __version__ self.addheaders = [('User-agent', server_version)] # manage the individual handlers self.handlers = [] self.handle_open = {} self.handle_error = {}
3c47ee9170fdc6ebe36ee940e859220284d6b629 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/3c47ee9170fdc6ebe36ee940e859220284d6b629/urllib2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 1438, 67, 1589, 273, 315, 15774, 17, 718, 2941, 5258, 87, 6, 738, 1001, 1589, 972, 365, 18, 1289, 2485, 273, 306, 2668, 1299, 17, 3630, 2187, 1438, 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, 1001, 2738, 972, 12, 2890, 4672, 1438, 67, 1589, 273, 315, 15774, 17, 718, 2941, 5258, 87, 6, 738, 1001, 1589, 972, 365, 18, 1289, 2485, 273, 306, 2668, 1299, 17, 3630, 2187, 1438, 67,...
self.__PM.hide()
self.__PM.close()
def restore_gui(self): print "restore_gui in", self ### self.__PM.hide() # this works (PM area becomes blank), but doesn't remove the PM tab or change to the MT tab ##e should find existing code for doing that and make a common routine in the featureManager to do it (if not one already) selectAtomsMode.restore_gui(self...
8867ec8e153665a49be9cfa0426e7da3062d0c25 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/8867ec8e153665a49be9cfa0426e7da3062d0c25/test_commands.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5217, 67, 20292, 12, 2890, 4672, 1172, 315, 13991, 67, 20292, 316, 3113, 365, 11849, 365, 16186, 12728, 18, 11248, 1435, 468, 333, 6330, 261, 12728, 5091, 12724, 7052, 3631, 1496, 3302, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5217, 67, 20292, 12, 2890, 4672, 1172, 315, 13991, 67, 20292, 316, 3113, 365, 11849, 365, 16186, 12728, 18, 11248, 1435, 468, 333, 6330, 261, 12728, 5091, 12724, 7052, 3631, 1496, 3302, 14...
print >> sys.stderr, 'ERROR: Could not select job queue for copyright analysis. Database said: "%s"' % error
print >> sys.stdout, 'ERROR: Could not select job queue for copyright analysis. Database said: "%s"' % error
def agent(model,runonpfiles=False): try: db = None try: db = libfosspython.FossDB() except Exception, inst: print >> sys.stderr, 'ERROR: %s, in %s' % inst[:] return 1 tr = table_check(db) if tr != 0: return tr if libfosspython.repOpen() != 1: print >> sys.stderr, 'ERROR: Something is broken. Could not open Repo.' ret...
9cbd5f71e1aaef822d05b637d8be742d93279010 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6959/9cbd5f71e1aaef822d05b637d8be742d93279010/copyright.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4040, 12, 2284, 16, 2681, 265, 84, 2354, 33, 8381, 4672, 775, 30, 1319, 273, 599, 775, 30, 1319, 273, 2561, 5075, 1752, 18490, 18, 42, 8464, 2290, 1435, 1335, 1185, 16, 1804, 30, 1172,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4040, 12, 2284, 16, 2681, 265, 84, 2354, 33, 8381, 4672, 775, 30, 1319, 273, 599, 775, 30, 1319, 273, 2561, 5075, 1752, 18490, 18, 42, 8464, 2290, 1435, 1335, 1185, 16, 1804, 30, 1172,...
NA_ratio = no_of_NAs/no_of_cols strain_index2no_of_NAs[i] = NA_ratio
if no_of_cols!=0: NA_ratio = no_of_NAs/no_of_cols else: NA_ratio = 0.0 row_index2no_of_NAs[i] = NA_ratio
def remove_rows_with_too_many_NAs(cls, data_matrix, row_cutoff, debug=0): """ 2008-05-08 become classmethod """ sys.stderr.write("Removing rows with too many NAs...") no_of_rows, no_of_cols = data_matrix.shape rows_with_too_many_NAs_set = Set() strain_index2no_of_NAs = {} for i in range(no_of_rows): no_of_NAs = 0.0 for...
9c37de4822440ddecb9d7de412265d707bdb9dbc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9645/9c37de4822440ddecb9d7de412265d707bdb9dbc/FilterStrainSNPMatrix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 3870, 67, 1918, 67, 16431, 67, 9353, 67, 50, 1463, 12, 6429, 16, 501, 67, 5667, 16, 1027, 67, 16131, 16, 1198, 33, 20, 4672, 3536, 4044, 28, 17, 6260, 17, 6840, 12561, 667,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 3870, 67, 1918, 67, 16431, 67, 9353, 67, 50, 1463, 12, 6429, 16, 501, 67, 5667, 16, 1027, 67, 16131, 16, 1198, 33, 20, 4672, 3536, 4044, 28, 17, 6260, 17, 6840, 12561, 667,...
"""Force the JobAgent to complete gracefully. """ gridCE = gConfig.getValue( '/LocalSite/GridCE', 'Unknown' )
""" Job Agent finalization method """ gridCE = gConfig.getValue( '/LocalSite/GridCE', '' )
def finalize( self ): """Force the JobAgent to complete gracefully. """
70f2cbfd183d5b66b0f097f918d25f1f09284e5d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70f2cbfd183d5b66b0f097f918d25f1f09284e5d/JobAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12409, 12, 365, 262, 30, 3536, 10997, 326, 3956, 3630, 358, 3912, 25063, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12409, 12, 365, 262, 30, 3536, 10997, 326, 3956, 3630, 358, 3912, 25063, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return self._executeSingleFileCatalogFunction(lfn,'createDirectory',catalogs=catalogs) else: return self._executeFileCatalogFunction(lfn,'createDirectory',catalogs=catalogs) def removeCatalogDirectory(self,lfn,singleFile=False,catalogs=[]):
return self._executeSingleFileCatalogFunction( lfn, 'createDirectory', catalogs=catalogs ) else: return self._executeFileCatalogFunction( lfn, 'createDirectory', catalogs=catalogs ) def removeCatalogDirectory( self, lfn, singleFile=False, catalogs=[] ):
def createCatalogDirectory(self,lfn,singleFile=False,catalogs=[]): """ Create the directory supplied in the FileCatalog
9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 9769, 2853, 12, 2890, 16, 80, 4293, 16, 7526, 812, 33, 8381, 16, 2574, 287, 14072, 33, 8526, 4672, 3536, 1788, 326, 1867, 4580, 316, 326, 1387, 9769, 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, 752, 9769, 2853, 12, 2890, 16, 80, 4293, 16, 7526, 812, 33, 8381, 16, 2574, 287, 14072, 33, 8526, 4672, 3536, 1788, 326, 1867, 4580, 316, 326, 1387, 9769, 2, -100, -100, -100, -100, -1...
prout(_("Checkov- \"Security reports the Galileo has reappeared in the dock!\""))
prout(_("Chekov- \"Security reports the Galileo has reappeared in the dock!\""))
def timwrp(): "Let's do the time warp again." prout(_("***TIME WARP ENTERED.")) if game.state.snap and withprob(0.5): # Go back in time prout(_("You are traveling backwards in time %d stardates.") % int(game.state.date-game.snapsht.date)) game.state = game.snapsht game.state.snap = False if len(game.state.kcmdr): sched...
0834edf62525c7f221c0949cdc3ec041a88dba29 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/0834edf62525c7f221c0949cdc3ec041a88dba29/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1658, 91, 13832, 13332, 315, 24181, 1807, 741, 326, 813, 341, 11441, 3382, 1199, 450, 322, 24899, 2932, 14465, 4684, 678, 985, 52, 20018, 2056, 1199, 3719, 309, 7920, 18, 2019, 18, 28449, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1658, 91, 13832, 13332, 315, 24181, 1807, 741, 326, 813, 341, 11441, 3382, 1199, 450, 322, 24899, 2932, 14465, 4684, 678, 985, 52, 20018, 2056, 1199, 3719, 309, 7920, 18, 2019, 18, 28449, ...
\lfloor\alpha n + \rho\rfloor`. [1]
\lfloor\alpha n + \rho\rfloor` [1].
def LowerMechanicalWord(self, alpha, rho=0, alphabet=None): r""" Returns the lower mechanical word.
a5b928a04b88cb182372bb9a126740cba8c57ec9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/a5b928a04b88cb182372bb9a126740cba8c57ec9/word_generators.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24804, 4667, 7472, 1706, 3944, 12, 2890, 16, 4190, 16, 10360, 33, 20, 16, 10877, 33, 7036, 4672, 436, 8395, 2860, 326, 2612, 1791, 7472, 1706, 2076, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 24804, 4667, 7472, 1706, 3944, 12, 2890, 16, 4190, 16, 10360, 33, 20, 16, 10877, 33, 7036, 4672, 436, 8395, 2860, 326, 2612, 1791, 7472, 1706, 2076, 18, 2, -100, -100, -100, -100, -100, ...
if os.path.exists(filename) or hasattr(getmodule(object), '__loader__'):
if os.path.exists(filename): return filename if filename[:1]!='<' and hasattr(getmodule(object), '__loader__'):
def getsourcefile(object): """Return the Python source file an object was defined in, if it exists.""" filename = getfile(object) if string.lower(filename[-4:]) in ('.pyc', '.pyo'): filename = filename[:-4] + '.py' for suffix, mode, kind in imp.get_suffixes(): if 'b' in mode and string.lower(filename[-len(suffix):]) ==...
a38402c50670c5cdd58830276e6ae90e58153bfa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/a38402c50670c5cdd58830276e6ae90e58153bfa/inspect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 3168, 768, 12, 1612, 4672, 3536, 990, 326, 6600, 1084, 585, 392, 733, 1703, 2553, 316, 16, 309, 518, 1704, 12123, 1544, 273, 336, 768, 12, 1612, 13, 309, 533, 18, 8167, 12, 3459, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3168, 768, 12, 1612, 4672, 3536, 990, 326, 6600, 1084, 585, 392, 733, 1703, 2553, 316, 16, 309, 518, 1704, 12123, 1544, 273, 336, 768, 12, 1612, 13, 309, 533, 18, 8167, 12, 3459, ...
p.setContentHandler(xml.sax.XMLGenerator())
p.setContentHandler(xml.sax.saxutils.XMLGenerator())
def create_parser(*args, **kwargs): return ExpatParser(*args, **kwargs)
e71bd81a890cea830681880bc5d7298dd98d71ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/e71bd81a890cea830681880bc5d7298dd98d71ce/expatreader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 4288, 30857, 1968, 16, 2826, 4333, 4672, 327, 7784, 270, 2678, 30857, 1968, 16, 2826, 4333, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 4288, 30857, 1968, 16, 2826, 4333, 4672, 327, 7784, 270, 2678, 30857, 1968, 16, 2826, 4333, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
return '\n'.join(['<ResourceRecord><Value>%s</Value></ResourceRecord>' \
return ''.join(['<ResourceRecord><Value>%s</Value></ResourceRecord>' \
def rr_xml(self, rrset): assert type(rrset) is dns.rrset.RRset, 'rrset is not RRset obj' return '\n'.join(['<ResourceRecord><Value>%s</Value></ResourceRecord>' \ % r for r in rrset])
2b2b5839b23008a8980ab8eeeca606297c51c416 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4157/2b2b5839b23008a8980ab8eeeca606297c51c416/route53d.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8354, 67, 2902, 12, 2890, 16, 8354, 542, 4672, 1815, 618, 12, 523, 542, 13, 353, 6605, 18, 523, 542, 18, 17950, 542, 16, 296, 523, 542, 353, 486, 21618, 542, 1081, 11, 327, 875, 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, 8354, 67, 2902, 12, 2890, 16, 8354, 542, 4672, 1815, 618, 12, 523, 542, 13, 353, 6605, 18, 523, 542, 18, 17950, 542, 16, 296, 523, 542, 353, 486, 21618, 542, 1081, 11, 327, 875, 18, ...
types_getVersion = [ ]
types_getInfo = [ ]
def __getSoftwareComponents(self): """ Get the list of all the components ( services and agents ) for which the software is installed on the system """ result = self.getRemoteCredentials() user = result['username'] group = result['group'] extensions = gConfig.getValue('/DIRAC/Extensions',[]) services = {} agents = {}...
333923d71d03a936d3f9afdcd9dc638d687842c4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/333923d71d03a936d3f9afdcd9dc638d687842c4/SystemAdministratorHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 21742, 7171, 12, 2890, 4672, 3536, 225, 968, 326, 666, 434, 777, 326, 4085, 261, 4028, 471, 16423, 262, 364, 1492, 326, 17888, 353, 5876, 603, 326, 2619, 3536, 563, 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, 1001, 588, 21742, 7171, 12, 2890, 4672, 3536, 225, 968, 326, 666, 434, 777, 326, 4085, 261, 4028, 471, 16423, 262, 364, 1492, 326, 17888, 353, 5876, 603, 326, 2619, 3536, 563, 273, 365, ...
'z. phys.': '0044-3328'} journal_name = bfo.field('210__%')
'z. phys.': '0044-3328', 'z. phys., c': '0170-9739'} journal_name = bfo.field('909C4p')
def format(bfo): """ Returns the ISSN of the record, if known.<br/> Note that you HAVE to pre-generate the correspondances journal->ISSN if you want this element to return something (Run <code>python bfe_issn.py -h</code> to get help). """ issns = { 'acta phys. pol. a': '0587-4246', 'adv. colloid interface sci.': '00...
dfcf49680940de37bce783df8f7ede7e1dec915a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/dfcf49680940de37bce783df8f7ede7e1dec915a/bfe_issn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 12, 70, 617, 4672, 3536, 2860, 326, 467, 1260, 50, 434, 326, 1409, 16, 309, 4846, 22782, 2848, 21259, 3609, 716, 1846, 21926, 3412, 358, 675, 17, 7163, 326, 4325, 6872, 13001, 2122,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4672, 3536, 2860, 326, 467, 1260, 50, 434, 326, 1409, 16, 309, 4846, 22782, 2848, 21259, 3609, 716, 1846, 21926, 3412, 358, 675, 17, 7163, 326, 4325, 6872, 13001, 2122,...