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
print node, node.compatnode
def _change_classes(node): if isinstance(node, T): if node.type==T.t_complex_table and node.children: node.children = [x for x in node.children if x.type in (T.t_complex_table_row, T.t_complex_caption)] elif node.type==T.t_complex_table_row and node.children: node.children = [x for x in node.children if x.type==T.t_com...
f7b9eab348951f6f675c680eca12043787d18458 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/f7b9eab348951f6f675c680eca12043787d18458/compat.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3427, 67, 4701, 12, 2159, 4672, 309, 1549, 12, 2159, 16, 399, 4672, 309, 756, 18, 723, 631, 56, 18, 88, 67, 14259, 67, 2121, 471, 756, 18, 5906, 30, 756, 18, 5906, 273, 306, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3427, 67, 4701, 12, 2159, 4672, 309, 1549, 12, 2159, 16, 399, 4672, 309, 756, 18, 723, 631, 56, 18, 88, 67, 14259, 67, 2121, 471, 756, 18, 5906, 30, 756, 18, 5906, 273, 306, 9...
heights=heights).show(**kwds)
heights=heights, edge_style=edge_style).show(**kwds)
def show(self, pos=None, layout=None, vertex_labels=True, edge_labels=False, vertex_size=200, graph_border=False, vertex_colors=None, edge_colors=None, partition=None, scaling_term=0.05, talk=False, iterations=50, loop_size=.1, color_by_label=False, heights=None, **kwds): """ Shows the (di)graph.
7524291de527a0df574d754449e74a613f7db457 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/7524291de527a0df574d754449e74a613f7db457/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 12, 2890, 16, 949, 33, 7036, 16, 3511, 33, 7036, 16, 5253, 67, 5336, 33, 5510, 16, 3591, 67, 5336, 33, 8381, 16, 5253, 67, 1467, 33, 6976, 16, 2667, 67, 8815, 33, 8381, 16, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 12, 2890, 16, 949, 33, 7036, 16, 3511, 33, 7036, 16, 5253, 67, 5336, 33, 5510, 16, 3591, 67, 5336, 33, 8381, 16, 5253, 67, 1467, 33, 6976, 16, 2667, 67, 8815, 33, 8381, 16, 5...
return (17,)
return (18,)
def c_code_cache_version(self): return (17,)
b8e1f7601479abf91331d1347ded171d2497ae74 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/b8e1f7601479abf91331d1347ded171d2497ae74/basic_ops.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 67, 710, 67, 2493, 67, 1589, 12, 2890, 4672, 327, 261, 4033, 16, 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, ...
[ 1, 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, 276, 67, 710, 67, 2493, 67, 1589, 12, 2890, 4672, 327, 261, 4033, 16, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if is_sqlite3:
if sqlite_version in (2,3):
def db_nuke(config): shutil.rmtree(config.DATABASE)
3aea804e6e4a305eb0f1130505a0a0ffe7ce0e79 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/3aea804e6e4a305eb0f1130505a0a0ffe7ce0e79/back_sqlite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1319, 67, 29705, 12, 1425, 4672, 11060, 18, 86, 17371, 12, 1425, 18, 22366, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1319, 67, 29705, 12, 1425, 4672, 11060, 18, 86, 17371, 12, 1425, 18, 22366, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
self._eventHub.subscribeToType(Motion.FINISHED, self._motionFinished)
self._conn = self._eventHub.subscribeToType(Motion.FINISHED, self._motionFinished)
def __init__(self, config, deps): """ Create a MotionManager object """ core.Subsystem.__init__(self, config.get('name', 'MotionManager'), deps) self._inPlaneMotion = None self._depthMotion = None self._orientationMotion = None self._controller = core.Subsystem.getSubsystemOfType(control.IController, deps, nonNone = T...
cf920326a8c87013e371f3487e4cf9111b62b785 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10608/cf920326a8c87013e371f3487e4cf9111b62b785/basic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 642, 16, 8740, 4672, 3536, 1788, 279, 28994, 1318, 733, 3536, 2922, 18, 28150, 16186, 2738, 972, 12, 2890, 16, 642, 18, 588, 2668, 529, 2187, 296, 29360, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 642, 16, 8740, 4672, 3536, 1788, 279, 28994, 1318, 733, 3536, 2922, 18, 28150, 16186, 2738, 972, 12, 2890, 16, 642, 18, 588, 2668, 529, 2187, 296, 29360, ...
'href': get_resource_url(self.env, ticket.resource, req.href, version=v)}
'href': get_resource_url(self.env, t, req.href)}
def version_info(v, field=None): path = 'Ticket #%s' % ticket.id # TODO: field info should probably be part of the Resource as well if field: path = tag(path, Markup(' – '), field) if v: rev, shortrev = _('Version %(num)s', num=v), 'v%d' % v else: rev, shortrev = _('Initial Version'), 'initial' return {'path': p...
ca20db658ac4c6ec54da7e47ec7e97559928594b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2831/ca20db658ac4c6ec54da7e47ec7e97559928594b/web_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1177, 67, 1376, 12, 90, 16, 652, 33, 7036, 4672, 589, 273, 296, 13614, 31974, 87, 11, 738, 9322, 18, 350, 468, 2660, 30, 652, 1123, 1410, 8656, 506, 1087, 434, 326, 2591, 487, 5492, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1177, 67, 1376, 12, 90, 16, 652, 33, 7036, 4672, 589, 273, 296, 13614, 31974, 87, 11, 738, 9322, 18, 350, 468, 2660, 30, 652, 1123, 1410, 8656, 506, 1087, 434, 326, 2591, 487, 5492, ...
img = gtk.image_new_from_stock(gtk.STOCK_MEDIA_RECORD, gtk.ICON_SIZE_BUTTON)
self.recTipDisabled = _("Enable this instrument for recording") self.recTipEnabled = _("Disable this instrument for recording") self.muteTipDisabled = _("Mute - silence this instrument") self.muteTipEnabled = _("Unmute - hear this instrument") self.soloTipDisabled = _("Activate Solo - silence all other instruments") ...
def __init__(self, project, instrument, mixview, mainview): """ Creates a new instance of MixerStrip. Parameters: project -- the currently active Project. instrument -- the instrument associated with this MixerStrip. mixview -- the mixing view object (CompactMixView). mainview -- the main Jokosher window (MainApp). ""...
b8308db032cc85212b1951474b7bcaebfab85f7f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10033/b8308db032cc85212b1951474b7bcaebfab85f7f/MixerStrip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1984, 16, 10353, 16, 6843, 1945, 16, 2774, 1945, 4672, 3536, 10210, 279, 394, 791, 434, 31043, 264, 16632, 18, 225, 7012, 30, 1984, 1493, 326, 4551, 2695, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1984, 16, 10353, 16, 6843, 1945, 16, 2774, 1945, 4672, 3536, 10210, 279, 394, 791, 434, 31043, 264, 16632, 18, 225, 7012, 30, 1984, 1493, 326, 4551, 2695, ...
local_sdp.media[sdp_index] = SDPMediaStream(remote_media.media, 0, remote_media.transport, formats=remote_media.formats)
local_sdp.media[sdp_index] = SDPMediaStream(remote_media.media, 0, remote_media.transport, formats=list(remote_media.formats))
def _accept_proposal_continue(self, audio_rtp, msrp_chat): self._lock.acquire() try: if self.state != "PROPOSED": return remote_sdp = self._inv.offered_remote_sdp local_sdp = self._make_next_sdp(False) if len(remote_sdp.media) > len(local_sdp.media): local_sdp.media.extend((len(remote_sdp.media) - len(local_sdp.media))...
615ee208e022823c2119d731a66137d10893f12c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/615ee208e022823c2119d731a66137d10893f12c/session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9436, 67, 685, 8016, 67, 17143, 12, 2890, 16, 7447, 67, 3797, 84, 16, 4086, 13832, 67, 10880, 4672, 365, 6315, 739, 18, 1077, 1039, 1435, 775, 30, 309, 365, 18, 2019, 480, 315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9436, 67, 685, 8016, 67, 17143, 12, 2890, 16, 7447, 67, 3797, 84, 16, 4086, 13832, 67, 10880, 4672, 365, 6315, 739, 18, 1077, 1039, 1435, 775, 30, 309, 365, 18, 2019, 480, 315, ...
print "Initializing server queues."
print "Initializing WHOIS server queues:"
def run(self): print "Updating prefix-to-whois-server dictionary." prefixes = yield self.load_prefixes()
a3445adbfc335f066cc3fdeb24153538018edddc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14361/a3445adbfc335f066cc3fdeb24153538018edddc/whois.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1172, 315, 17858, 1633, 17, 869, 17, 3350, 19606, 17, 3567, 3880, 1199, 9419, 273, 2824, 365, 18, 945, 67, 17777, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 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, 1172, 315, 17858, 1633, 17, 869, 17, 3350, 19606, 17, 3567, 3880, 1199, 9419, 273, 2824, 365, 18, 945, 67, 17777, 1435, 2, -100, -100, -100, -100, -100, -100, -100,...
resource_url = SERVER_PUBLIC_ADDRESS + "/resources/%s/%s/"% (comp.id, workspace.pk)
resource_url = "/resources/%s/%s/"% (comp.id, workspace.pk) abs_resource_url = SERVER_PUBLIC_ADDRESS + resource_url
def get_variants(request): workspace = request.session['workspace'] item_id = request.POST.get('items') logger.debug('item_id %s'%item_id) item = Item.objects.get(pk = item_id) logger.debug('before comps') user = User.objects.get(pk=request.session['_auth_user_id']) item_variants = Variant.objects.filter(Q(workspace ...
b3063dae85b997d5b434ac105df3eca126112db6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4589/b3063dae85b997d5b434ac105df3eca126112db6/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 15886, 12, 2293, 4672, 225, 6003, 273, 590, 18, 3184, 3292, 14915, 3546, 761, 67, 350, 273, 590, 18, 3798, 18, 588, 2668, 3319, 6134, 1194, 18, 4148, 2668, 1726, 67, 350, 738,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 15886, 12, 2293, 4672, 225, 6003, 273, 590, 18, 3184, 3292, 14915, 3546, 761, 67, 350, 273, 590, 18, 3798, 18, 588, 2668, 3319, 6134, 1194, 18, 4148, 2668, 1726, 67, 350, 738,...
a[0] = a[0] - Qa*a[2]/3 if exact_form is not None: exact_form += Q.base_ring()(a[2] / 3) * y**(j+1) c1 = base_ring(a[0].lift() * (j+1) / (3*j + 5)) c2 = base_ring(a[1].lift() * (j+1) / (3*j + 7))
j_plus_1 = base_ring(j+1)
def reduce_positive(Q, coeffs, offset, exact_form=None): """ 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 ...
4314acff192a9c811de12a08967024224099439e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/4314acff192a9c811de12a08967024224099439e/monsky_washnitzer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5459, 67, 21094, 12, 53, 16, 16530, 16, 1384, 16, 5565, 67, 687, 33, 7036, 4672, 3536, 1716, 5259, 1825, 17125, 4676, 7467, 358, 316, 3850, 3831, 340, 6895, 7602, 414, 434, 271, 93, 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, 5459, 67, 21094, 12, 53, 16, 16530, 16, 1384, 16, 5565, 67, 687, 33, 7036, 4672, 3536, 1716, 5259, 1825, 17125, 4676, 7467, 358, 316, 3850, 3831, 340, 6895, 7602, 414, 434, 271, 93, 8,...
print " " + msg
print " ERROR - " + msg
def execute( self, dumpfilename ): """ Check a dump file.
54fd7bcefe430648fa52336cc3ccf63025fcea6e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13212/54fd7bcefe430648fa52336cc3ccf63025fcea6e/tools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 365, 16, 4657, 3459, 262, 30, 3536, 2073, 279, 4657, 585, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 365, 16, 4657, 3459, 262, 30, 3536, 2073, 279, 4657, 585, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
self.write(")")
self.write(")")
def _Yield(self, t): self.fill("yield") if t.value: self.write(" (") self.dispatch(t.value) self.write(")")
124df8398dfcb176fbf568130864aad9c8aac103 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/124df8398dfcb176fbf568130864aad9c8aac103/unparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16348, 12, 2890, 16, 268, 4672, 365, 18, 5935, 2932, 23604, 7923, 309, 268, 18, 1132, 30, 365, 18, 2626, 2932, 7566, 13, 365, 18, 10739, 12, 88, 18, 1132, 13, 365, 18, 2626, 293...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16348, 12, 2890, 16, 268, 4672, 365, 18, 5935, 2932, 23604, 7923, 309, 268, 18, 1132, 30, 365, 18, 2626, 2932, 7566, 13, 365, 18, 10739, 12, 88, 18, 1132, 13, 365, 18, 2626, 293...
fp = h.getfile()
def open_http(self, url, data=None): """Use HTTP protocol.""" import httplib user_passwd = None proxy_passwd= None if isinstance(url, str): host, selector = splithost(url) if host: user_passwd, host = splituser(host) host = unquote(host) realhost = host else: host, selector = url # check whether the proxy contains auth...
bc8865c66f1801acbf5687f18bfdfe575da93ac6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/bc8865c66f1801acbf5687f18bfdfe575da93ac6/urllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 2505, 12, 2890, 16, 880, 16, 501, 33, 7036, 4672, 3536, 3727, 2239, 1771, 12123, 1930, 15851, 6673, 729, 67, 24002, 273, 599, 2889, 67, 24002, 33, 599, 309, 1549, 12, 718, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 2505, 12, 2890, 16, 880, 16, 501, 33, 7036, 4672, 3536, 3727, 2239, 1771, 12123, 1930, 15851, 6673, 729, 67, 24002, 273, 599, 2889, 67, 24002, 33, 599, 309, 1549, 12, 718, 16...
"""Delete a key"""
def delSessionErrors(self): """Delete a key""" self.__delSession(_SESSION_ERRORS)
5e2c32dd33871476397a4f10e62760ac351975c5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3287/5e2c32dd33871476397a4f10e62760ac351975c5/session_manager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1464, 2157, 4229, 12, 2890, 4672, 365, 16186, 3771, 2157, 24899, 7042, 67, 29127, 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...
[ 1, 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, 1464, 2157, 4229, 12, 2890, 4672, 365, 16186, 3771, 2157, 24899, 7042, 67, 29127, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
print_records_epilogue_p=False)
print_records_epilogue_p=False, verbose=verbose)
def perform_request_search(req=None, cc=cdsname, c=None, p="", f="", rg=10, sf="", so="d", sp="", rm="", of="id", ot="", as=0, p1="", f1="", m1="", op1="", p2="", f2="", m2="", op2="", p3="", f3="", m3="", sc=0, jrec=0, recid=-1, recidb=-1, sysno="", id=-1, idb=-1, sysnb="", action="", d1y=0, d1m=0, d1d=0, d2y=0, d2m=0...
845a99c9c5de9c5d99d06ec25bc8f5be515522e8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/845a99c9c5de9c5d99d06ec25bc8f5be515522e8/search_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 2293, 67, 3072, 12, 3658, 33, 7036, 16, 4946, 33, 71, 2377, 529, 16, 276, 33, 7036, 16, 293, 1546, 3113, 284, 1546, 3113, 14524, 33, 2163, 16, 9033, 1546, 3113, 1427, 1546, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 2293, 67, 3072, 12, 3658, 33, 7036, 16, 4946, 33, 71, 2377, 529, 16, 276, 33, 7036, 16, 293, 1546, 3113, 284, 1546, 3113, 14524, 33, 2163, 16, 9033, 1546, 3113, 1427, 1546, ...
new = Tmp()
new = _Tmp()
def __init__(self, command, src, dst): """Execute 'command' with src as stdin and writing to stream dst. If either stream is not a fileno() stream, temporary files will be used as required. Either stream may be None if input or output is not required. Call the wait() method to wait for the command to finish. 'command' ...
b218cd7f78db7dee5b1ca89ce667fb4a33a2c7ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4591/b218cd7f78db7dee5b1ca89ce667fb4a33a2c7ae/processes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1296, 16, 1705, 16, 3046, 4672, 3536, 5289, 296, 3076, 11, 598, 1705, 487, 8801, 471, 7410, 358, 1407, 3046, 18, 971, 3344, 1407, 353, 486, 279, 24256, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1296, 16, 1705, 16, 3046, 4672, 3536, 5289, 296, 3076, 11, 598, 1705, 487, 8801, 471, 7410, 358, 1407, 3046, 18, 971, 3344, 1407, 353, 486, 279, 24256, 1...
class CallFront_checkBox(ControlledCallFront):
class CallFrontCheckBox(ControlledCallFront):
def action(self, value): if value != None: self.control.setValue(self.control.expand(value))
d26de079e17bbf73783829e143857af9e4646987 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/d26de079e17bbf73783829e143857af9e4646987/OWGUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 12, 2890, 16, 460, 4672, 309, 460, 480, 599, 30, 365, 18, 7098, 18, 542, 620, 12, 2890, 18, 7098, 18, 12320, 12, 1132, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 12, 2890, 16, 460, 4672, 309, 460, 480, 599, 30, 365, 18, 7098, 18, 542, 620, 12, 2890, 18, 7098, 18, 12320, 12, 1132, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
format[month_break[0]] = '%d\n%b\n%Y'
format[month_start[0]] = '%d\n%b\n%Y'
def _daily_finder(locs, freqstr, aslocator): if freqstr == 'B': periodsperyear = 261 elif freqstr == 'D': periodsperyear = 365 else: raise ValueError("unexpected frequency") locs = N.asarray(locs) (vmin, vmax) = locs[[0,-1]] span = vmax - vmin + 1 dates = date_array(start_date=Date(freqstr,vmin), end_date=Date(freqst...
7a3c507a500aec86f9240f3a0e8437c36eeb7238 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/7a3c507a500aec86f9240f3a0e8437c36eeb7238/mpl_timeseries_pgm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 26790, 67, 15356, 12, 24323, 16, 7684, 701, 16, 487, 20048, 4672, 225, 309, 7684, 701, 422, 296, 38, 4278, 12777, 457, 6874, 273, 576, 9498, 1327, 7684, 701, 422, 296, 40, 4278, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26790, 67, 15356, 12, 24323, 16, 7684, 701, 16, 487, 20048, 4672, 225, 309, 7684, 701, 422, 296, 38, 4278, 12777, 457, 6874, 273, 576, 9498, 1327, 7684, 701, 422, 296, 40, 4278, 1...
print 'HTTP server started on port %d...' % port
print 'HTTP server started on port %d...' % server.server_port
def main(options, args): logfile = open('testserver.log', 'w') sys.stdout = FileMultiplexer(sys.stdout, logfile) sys.stderr = FileMultiplexer(sys.stderr, logfile) port = options.port if options.server_type == SERVER_HTTP: if options.cert: # let's make sure the cert file exists. if not os.path.isfile(options.cert): pr...
df0401f579455dcc6e70ad63ffae1704549cf148 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/df0401f579455dcc6e70ad63ffae1704549cf148/testserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2116, 16, 833, 4672, 15204, 273, 1696, 2668, 3813, 3567, 18, 1330, 2187, 296, 91, 6134, 2589, 18, 10283, 273, 1387, 8438, 92, 264, 12, 9499, 18, 10283, 16, 15204, 13, 2589, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2116, 16, 833, 4672, 15204, 273, 1696, 2668, 3813, 3567, 18, 1330, 2187, 296, 91, 6134, 2589, 18, 10283, 273, 1387, 8438, 92, 264, 12, 9499, 18, 10283, 16, 15204, 13, 2589, 1...
name = match.group(1)
name = match.group('name') pid = match.group('pid') cwd = processes[pid].cwd
def _do_strace(self, args, outfile, outname): """ Run strace on given command args, sending output to file. Return (status code, list of dependencies, list of outputs). """ shell('strace', '-fo', outname, '-e', 'trace=open,stat64,execve,exit_group,chdir,mkdir,rename', args, silent=False)
62c48ce0b420b1fe48378d0f1ec717ee941781df /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7381/62c48ce0b420b1fe48378d0f1ec717ee941781df/fabricate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 701, 623, 12, 2890, 16, 833, 16, 8756, 16, 596, 529, 4672, 3536, 1939, 609, 623, 603, 864, 1296, 833, 16, 5431, 876, 358, 585, 18, 2000, 261, 2327, 981, 16, 666, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 701, 623, 12, 2890, 16, 833, 16, 8756, 16, 596, 529, 4672, 3536, 1939, 609, 623, 603, 864, 1296, 833, 16, 5431, 876, 358, 585, 18, 2000, 261, 2327, 981, 16, 666, 434, ...
self.add_file(path)
try: self.add_file(path) except: for link in self.links: if link['path'] == path: self.links.remove(link) break self.logger.warn('Could not process '+path) if self.verbose: self.logger.exception(' ')
def __init__(self, book, fonts, options, logger, paths): ''' Convert HTML files at C{paths} and add to C{book}. After creating the object, you must call L{self.writeto} to output the LRF/S file. @param book: The LRF book @type book: L{libprs500.lrf.pylrs.Book} @param fonts: dict specifying the font families to use ''...
513a7e9b4b3b18f5588cfe96f990f7786b8d9e6a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9125/513a7e9b4b3b18f5588cfe96f990f7786b8d9e6a/convert_from.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 6978, 16, 16450, 16, 702, 16, 1194, 16, 2953, 4672, 9163, 4037, 3982, 1390, 622, 385, 95, 4481, 97, 471, 527, 358, 385, 95, 3618, 5496, 7360, 4979, 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, 1001, 2738, 972, 12, 2890, 16, 6978, 16, 16450, 16, 702, 16, 1194, 16, 2953, 4672, 9163, 4037, 3982, 1390, 622, 385, 95, 4481, 97, 471, 527, 358, 385, 95, 3618, 5496, 7360, 4979, 326, ...
if session.dialog_id is not None and stats["to_tag"] is not None:
if session.dialog_id is not None and stats["start_time"] is not None:
def lineReceived(self, line): try: first, rest = line.split(" ", 1) except ValueError: first = line rest = "" if first == "expired": try: stats = cjson.decode(rest) except cjson.DecodeError: log.error("Error decoding JSON from relay at %s" % self.ip) else: call_id = stats['call_id'] session = self.factory.sessions.get(...
e81a043a5e723882ef05e0c3a3c107be5ee015fd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3445/e81a043a5e723882ef05e0c3a3c107be5ee015fd/dispatcher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 980, 8872, 12, 2890, 16, 980, 4672, 775, 30, 1122, 16, 3127, 273, 980, 18, 4939, 2932, 3104, 404, 13, 1335, 2068, 30, 1122, 273, 980, 3127, 273, 1408, 309, 1122, 422, 315, 15820, 6877,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 980, 8872, 12, 2890, 16, 980, 4672, 775, 30, 1122, 16, 3127, 273, 980, 18, 4939, 2932, 3104, 404, 13, 1335, 2068, 30, 1122, 273, 980, 3127, 273, 1408, 309, 1122, 422, 315, 15820, 6877,...
if log.isEnabledFor(log.DEBUG): log.debug("%s %s %s %s"%(obj.name or "",controlTypes.speechRoleLabels[obj.role],obj.value or "",obj.description or ""))
def setFocusObject(obj): """Stores an object as the current focus object. (Note: this does not physically change the window with focus in the operating system, but allows NVDA to keep track of the correct object).
9e5d89df6fd89a167be0fe42a0be0667fd981dc0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9340/9e5d89df6fd89a167be0fe42a0be0667fd981dc0/api.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31480, 921, 12, 2603, 4672, 3536, 13125, 392, 733, 487, 326, 783, 7155, 733, 18, 261, 8067, 30, 333, 1552, 486, 24758, 6478, 2549, 326, 2742, 598, 7155, 316, 326, 16929, 2619, 16, 1496, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31480, 921, 12, 2603, 4672, 3536, 13125, 392, 733, 487, 326, 783, 7155, 733, 18, 261, 8067, 30, 333, 1552, 486, 24758, 6478, 2549, 326, 2742, 598, 7155, 316, 326, 16929, 2619, 16, 1496, ...
choice = wikipedia.inputChoice(u'Are the two images equal?', ['Yes', 'No'], ['y', 'N'], 'N')
choice = pywikibot.inputChoice(u'Are the two images equal?', ['Yes', 'No'], ['y', 'N'], 'N')
def useHashGenerator(self): # http://toolserver.org/~multichill/nowcommons.php?language=it&page=2&filter= lang = self.site.lang num_page = 0 word_to_skip_translated = wikipedia.translate(self.site, word_to_skip) images_processed = list() while 1: url = 'http://toolserver.org/~multichill/nowcommons.php?language=%s&page=...
3e7506930193ed64965aabc3e2d1d58bf15e5c6b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/3e7506930193ed64965aabc3e2d1d58bf15e5c6b/nowcommons.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 999, 2310, 3908, 12, 2890, 4672, 468, 1062, 2207, 6738, 3567, 18, 3341, 19, 98, 5421, 1354, 737, 19, 3338, 6054, 87, 18, 2684, 35, 4923, 33, 305, 10, 2433, 33, 22, 10, 2188, 33, 3303...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 999, 2310, 3908, 12, 2890, 4672, 468, 1062, 2207, 6738, 3567, 18, 3341, 19, 98, 5421, 1354, 737, 19, 3338, 6054, 87, 18, 2684, 35, 4923, 33, 305, 10, 2433, 33, 22, 10, 2188, 33, 3303...
def p_package_depencency(self, t): """dep : ID LT ID | ID LE ID | ID EQ ID | ID GE ID | ID GT ID """ op = t[2] reqPkg = package.Package (name=t[1], version=t[3]) pkg = self.inventory.get(t[1]) if pkg: r = pkg.compareVersion(reqPkg) evalStr = "%s %s 0" % (r, op) if not eval(evalStr): self.reason = "Failed for rule: req...
return p def nullFunc(*args, **kargs): pass def generateInstallationOrder(packagesToUpdate, cb=(nullFunc, None)): unionInventory = {} for pkgName, details in packagesToUpdate.items(): unionInventory[pkgName] = details["current"] updatePackageList = [] for pkgName, details in packagesToUpdate.items(): if details[...
def p_package_depencency(self, t): """dep : ID LT ID | ID LE ID | ID EQ ID | ID GE ID | ID GT ID """ op = t[2] reqPkg = package.Package (name=t[1], version=t[3]) pkg = self.inventory.get(t[1]) if pkg: r = pkg.compareVersion(reqPkg) evalStr = "%s %s 0" % (r, op) if not eval(evalStr): self.reason = "Failed for rule: req...
9b821023373e7b161ab76f431585b635d4db0b3c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/34/9b821023373e7b161ab76f431585b635d4db0b3c/repository.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 67, 5610, 67, 15037, 1331, 2075, 12, 2890, 16, 268, 4672, 3536, 15037, 294, 1599, 11807, 1599, 571, 1599, 5380, 1599, 571, 1599, 22426, 1599, 571, 1599, 17788, 1599, 571, 1599, 19688,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 67, 5610, 67, 15037, 1331, 2075, 12, 2890, 16, 268, 4672, 3536, 15037, 294, 1599, 11807, 1599, 571, 1599, 5380, 1599, 571, 1599, 22426, 1599, 571, 1599, 17788, 1599, 571, 1599, 19688,...
if options.configfiles: try: parse_configfiles(options.configfiles, options, names) except KeyboardInterrupt,SystemExit: raise except ValueError, e: print 'Error reading config file: %s' % e return except ConfigParser.ParsingError, e: print 'Error reading config file: %s' % e return
def main(options, names): if options.action == 'text': if options.parse and options.introspect: options.parse = False # Process any config files. if options.configfiles: try: parse_configfiles(options.configfiles, options, names) except KeyboardInterrupt,SystemExit: raise except ValueError, e: print 'Error reading con...
a8f686069e36c34170d1ed3a5a193e3b1980d5b3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/a8f686069e36c34170d1ed3a5a193e3b1980d5b3/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2116, 16, 1257, 4672, 309, 702, 18, 1128, 422, 296, 955, 4278, 309, 702, 18, 2670, 471, 702, 18, 474, 26170, 30, 702, 18, 2670, 273, 1083, 225, 468, 4389, 1281, 642, 1390, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2116, 16, 1257, 4672, 309, 702, 18, 1128, 422, 296, 955, 4278, 309, 702, 18, 2670, 471, 702, 18, 474, 26170, 30, 702, 18, 2670, 273, 1083, 225, 468, 4389, 1281, 642, 1390, ...
from sage.libs.pari.all import pari from sage.interfaces.gp import Gp,gp R,a = _setup(prec) ans = gp.eval("hyperu(%s,%s,%s)"%(alpha,beta,x)) return R(ans) def spherical_bessel_J(n, var, alg="maxima"):
elif algorithm=='pari': from sage.libs.pari.all import pari from sage.interfaces.gp import Gp,gp R,a = _setup(prec) ans = gp.eval("hyperu(%s,%s,%s)"%(alpha,beta,x)) return R(ans) else: raise ValueError, "unknown algorithm '%s'"%algorithm def spherical_bessel_J(n, var, algorithm="maxima"):
def hypergeometric_U(alpha,beta,x,alg="pari",prec=53): r""" Default is a wrap of Pari's hyperu(alpha,beta,x) function. Optionally, alg = "scipy" can be used. The confluent hypergeometric function $y = U(a,b,x)$ is defined to be the solution to Kummer's differential equation \[ xy'' + (b-x)y' - ay = 0. \] This satisfi...
28583b63e951675be5d37abb781bb0ef0026cb95 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/28583b63e951675be5d37abb781bb0ef0026cb95/special.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9512, 10049, 1591, 67, 57, 12, 5429, 16, 5758, 16, 92, 16, 18413, 1546, 1065, 77, 3113, 4036, 33, 8643, 4672, 436, 8395, 2989, 353, 279, 2193, 434, 2280, 77, 1807, 9512, 89, 12, 5429, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9512, 10049, 1591, 67, 57, 12, 5429, 16, 5758, 16, 92, 16, 18413, 1546, 1065, 77, 3113, 4036, 33, 8643, 4672, 436, 8395, 2989, 353, 279, 2193, 434, 2280, 77, 1807, 9512, 89, 12, 5429, ...
parser.add_option("-c", "--config_file", type="string", dest="config_file", help="The path to a configuration file to use. This overrides the default location of the configuration file.", metavar="[FILE]")
parser.add_option("-c", "--config-file", type="string", dest="config_file", help="The path to a configuration file to use. This overrides the default location of the configuration file.", metavar="[FILE]")
def parse_options(): retval = {} description = "This script can sit idle waiting for an incoming audio call, or perform an outgoing audio call to the target SIP account. The program will close the session and quit when Ctrl+D is pressed." usage = "%prog [options] [target-user@target-domain.com]" parser = OptionParser(u...
6c4c75802f462a3a026aaf580d559314a2589c3f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/6c4c75802f462a3a026aaf580d559314a2589c3f/sip_audio_session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 2116, 13332, 5221, 273, 2618, 2477, 273, 315, 2503, 2728, 848, 10982, 12088, 7336, 364, 392, 6935, 7447, 745, 16, 578, 3073, 392, 12902, 7447, 745, 358, 326, 1018, 348, 2579, 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, 1109, 67, 2116, 13332, 5221, 273, 2618, 2477, 273, 315, 2503, 2728, 848, 10982, 12088, 7336, 364, 392, 6935, 7447, 745, 16, 578, 3073, 392, 12902, 7447, 745, 358, 326, 1018, 348, 2579, 2...
""" Kill all instances of given process name.
"""Kill all instances of given process name.
def _killInstancesByName(self, process_name): """ Kill all instances of given process name. Args: process_name: String name of process to kill. """ process_list = wmi.WMI().Win32_Process(Name=process_name) for process in process_list: pid = process.ProcessID print 'killing process: %d' % pid handle = win32api.OpenProc...
9218dc2f0d51ce53383e4b7217791f435ce38d06 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1918/9218dc2f0d51ce53383e4b7217791f435ce38d06/browser_launchers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16418, 5361, 5911, 12, 2890, 16, 1207, 67, 529, 4672, 3536, 19045, 777, 3884, 434, 864, 1207, 508, 18, 225, 6634, 30, 1207, 67, 529, 30, 514, 508, 434, 1207, 358, 8673, 18, 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, 389, 16418, 5361, 5911, 12, 2890, 16, 1207, 67, 529, 4672, 3536, 19045, 777, 3884, 434, 864, 1207, 508, 18, 225, 6634, 30, 1207, 67, 529, 30, 514, 508, 434, 1207, 358, 8673, 18, 3536, ...
i += 1
i = i + 1
def prog(i, goomethod, goolibprefix, goolibsuffix, foomethod, foolibprefix, foolibsuffix): '''Build a program The program links against a shared library foo which itself links against a shared library goo. The libraries foo and goo can use arbitrary library prefixes and suffixes.''' goo_name = goolibprefix+'goo'+str...
f481be8570e5b09df5d7254b573d4d757cafce0c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12817/f481be8570e5b09df5d7254b573d4d757cafce0c/SharedLibraryIxes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11243, 12, 77, 16, 1960, 362, 572, 16, 314, 1371, 495, 3239, 16, 314, 1371, 495, 8477, 16, 284, 4252, 572, 16, 284, 1371, 495, 3239, 16, 284, 1371, 495, 8477, 4672, 9163, 3116, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11243, 12, 77, 16, 1960, 362, 572, 16, 314, 1371, 495, 3239, 16, 314, 1371, 495, 8477, 16, 284, 4252, 572, 16, 284, 1371, 495, 3239, 16, 284, 1371, 495, 8477, 4672, 9163, 3116, 279, ...
print "Error loading image for %s" % flag, e
log.addwarning(_("Error loading image for %(flag)s: %(error)s") % {'flag':flag, 'error':e})
def GetFlagImage(self, flag):
5b9c99ed36f23c0f56579a3f05ed0bcf912fdf19 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8738/5b9c99ed36f23c0f56579a3f05ed0bcf912fdf19/frame.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 4678, 2040, 12, 2890, 16, 2982, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 4678, 2040, 12, 2890, 16, 2982, 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...
('Refresh', gtk.STOCK_REFRESH, _('Refresh'), "<Control>f", _('Refresh module list'), self.on_refresh), ('Reduce', gtk.STOCK_CONVERT, _('Reduce'), "<Control>r", _('Reduce translation window'), self.on_reduce),
def setup_layout (self): self.layout = gtk.VBox ()
c7bfc45663ad8a762ad063656773a10b716b860b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3179/c7bfc45663ad8a762ad063656773a10b716b860b/main_window.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 6741, 261, 2890, 4672, 365, 18, 6741, 273, 22718, 18, 58, 3514, 1832, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3875, 67, 6741, 261, 2890, 4672, 365, 18, 6741, 273, 22718, 18, 58, 3514, 1832, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if iff[:2] == scapy.arch.LOOPBACK_NAME:
if iff == scapy.arch.LOOPBACK_NAME:
def get_if_raw_hwaddr(iff): if iff[:2] == scapy.arch.LOOPBACK_NAME: return (772, '\x00'*6) try: l = dnet.intf().get(iff) l = l["link_addr"] except: raise Scapy_Exception("Error in attempting to get hw address for interface [%s]" % iff) return l.type,l.data
3a2a4ca0c18e3a928e46712dc83ce4938cbf85cd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7311/3a2a4ca0c18e3a928e46712dc83ce4938cbf85cd/pcapdnet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 430, 67, 1899, 67, 20701, 4793, 12, 3048, 4672, 309, 21437, 422, 888, 438, 93, 18, 991, 18, 28677, 8720, 67, 1985, 30, 327, 261, 4700, 22, 16, 2337, 92, 713, 11, 14, 26, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 430, 67, 1899, 67, 20701, 4793, 12, 3048, 4672, 309, 21437, 422, 888, 438, 93, 18, 991, 18, 28677, 8720, 67, 1985, 30, 327, 261, 4700, 22, 16, 2337, 92, 713, 11, 14, 26, 1...
LOG.info('DinoCity ready.')
LOG.info('DinoCity ready, %d ROM(s).' % len(self.roms))
def __init__(self, screen_size, rom_directory, cover_directory): self.rom_directory = rom_directory self.cover_directory = cover_directory
ed5d3b746e46b183bd68868dd0b6c88aab0661b6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5007/ed5d3b746e46b183bd68868dd0b6c88aab0661b6/dinocity.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5518, 67, 1467, 16, 24137, 67, 5149, 16, 5590, 67, 5149, 4672, 365, 18, 520, 67, 5149, 273, 24137, 67, 5149, 365, 18, 3165, 67, 5149, 273, 5590, 67, 51...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5518, 67, 1467, 16, 24137, 67, 5149, 16, 5590, 67, 5149, 4672, 365, 18, 520, 67, 5149, 273, 24137, 67, 5149, 365, 18, 3165, 67, 5149, 273, 5590, 67, 51...
target = self.getDefault() record.__getattribute__(self.attr).append(target)
if type in ('EPFD','EPFT','EPF2','EPF3','SCHR'): target = self.getDefault() record.__getattribute__(self.attr).append(target) else: target = record.__getattribute__(self.attr)[-1]
def loadData(self,record,ins,type,size,readId): target = self.getDefault() record.__getattribute__(self.attr).append(target) element = self.loaders[type] slots = ['recordType'] slots.extend(element.getSlotsUsed()) target.__slots__ = slots target.recordType = type element.loadData(target,ins,type,size,readId)
8a33ba5ad5c871988acb06c3aff741da65ad6b4a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/8a33ba5ad5c871988acb06c3aff741da65ad6b4a/bosh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29422, 12, 2890, 16, 3366, 16, 2679, 16, 723, 16, 1467, 16, 896, 548, 4672, 309, 618, 316, 7707, 10541, 16894, 17023, 10541, 4464, 17023, 10541, 42, 22, 17023, 10541, 42, 23, 17023, 55, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29422, 12, 2890, 16, 3366, 16, 2679, 16, 723, 16, 1467, 16, 896, 548, 4672, 309, 618, 316, 7707, 10541, 16894, 17023, 10541, 4464, 17023, 10541, 42, 22, 17023, 10541, 42, 23, 17023, 55, ...
if type(b) is not types.StringType or regex.search('[ \t\n]',b) < 0: return self.setBody(
elif type(b) is not types.StringType or regex.search('[a-zA-Z]>',b) < 0: tb=self.setBody(
def exception(self, fatal=0):
72f20540fc3547c58fb79e4ff090792bf0b9a5a5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/72f20540fc3547c58fb79e4ff090792bf0b9a5a5/Response.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1520, 12, 2890, 16, 10081, 33, 20, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1520, 12, 2890, 16, 10081, 33, 20, 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, ...
oldItem = oldMenuList.pop(0)
curItem = menuList.pop(0)
def synchronizeItems(self): """ Install the menus into supplied menu list, and submenus into their menu items. """ oldMenuList = self.widget.getMenuItems () index = 0 for menuItem in self.dynamicChildren: # ensure that the menuItem has been instantiated if not hasattr (menuItem, "widget"): menuItem.widget = menuItem.i...
e3beff8bc3ce2e759a8bb84be125cb87ca4c7260 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/e3beff8bc3ce2e759a8bb84be125cb87ca4c7260/DynamicContainerBlocks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16978, 3126, 12, 2890, 4672, 3536, 10284, 326, 21374, 1368, 4580, 3824, 666, 16, 471, 720, 26065, 1368, 3675, 3824, 1516, 18, 3536, 1592, 4599, 682, 273, 365, 18, 6587, 18, 588, 4599, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16978, 3126, 12, 2890, 4672, 3536, 10284, 326, 21374, 1368, 4580, 3824, 666, 16, 471, 720, 26065, 1368, 3675, 3824, 1516, 18, 3536, 1592, 4599, 682, 273, 365, 18, 6587, 18, 588, 4599, 31...
self.TASKS_TV_COL_TAG = 1 self.TASKS_TV_COL_TITLE = 2 self.TASKS_TV_COL_DDATE = 3 self.TASKS_TV_COL_DLEFT = 4 self.TAGS_TV_COL_TAG = 1 self.TASK_MODEL_OBJ = 0 self.TASK_MODEL_TITLE = 1 self.TASK_MODEL_DDATE_STR = 2 self.TASK_MODEL_DLEFT_STR = 3 self.TASK_MODEL_TAGS = 4 self.TASK_MODEL_BGCOL ...
def __init__(self, requester): #Set the Glade file self.gladefile = GnomeConfig.GLADE_FILE self.wTree = gtk.glade.XML(self.gladefile) #Get the Main Window, and connect the "destroy" event self.window = self.wTree.get_widget("MainWindow") if (self.window): self.window.connect("destroy", gtk.main_quit) self.window.set_...
1cfc36626a739dad4afea1a8e878b6e44b2ee31a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/1cfc36626a739dad4afea1a8e878b6e44b2ee31a/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 19961, 4672, 225, 468, 694, 326, 15157, 2486, 585, 365, 18, 7043, 69, 536, 398, 273, 611, 82, 1742, 809, 18, 43, 2534, 1639, 67, 3776, 365, 18, 91, 247...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19961, 4672, 225, 468, 694, 326, 15157, 2486, 585, 365, 18, 7043, 69, 536, 398, 273, 611, 82, 1742, 809, 18, 43, 2534, 1639, 67, 3776, 365, 18, 91, 247...
o40 : GroebnerBasis
o39 : GroebnerBasis
def ideal(self, *gens): """ Return the ideal generated by gens. INPUT: gens -- list or tuple of Macaulay2 objects (or objects that can be made into Macaulay2 objects via evaluation) OUTPUT: the Macaulay2 ideal generated by the given list of gens
6a92bceac2fb4770d07e6b60770c91aac9c8257b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/6a92bceac2fb4770d07e6b60770c91aac9c8257b/macaulay2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23349, 12, 2890, 16, 380, 23730, 4672, 3536, 2000, 326, 23349, 4374, 635, 314, 773, 18, 225, 12943, 30, 314, 773, 1493, 666, 578, 3193, 434, 13217, 69, 332, 528, 22, 2184, 261, 280, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23349, 12, 2890, 16, 380, 23730, 4672, 3536, 2000, 326, 23349, 4374, 635, 314, 773, 18, 225, 12943, 30, 314, 773, 1493, 666, 578, 3193, 434, 13217, 69, 332, 528, 22, 2184, 261, 280, 21...
self.context.records.append(self._makeNewRecord(srcline, RecordType.COMMENT, None, None, None, None, comment)) else: if ' comment = line[line.index(' line = line[:line.index(' fields = line.split() if not line.startswith(' ') and not line.startswith('\t'): label = fields[0] if len(fields) == 1: self.context.symtab.ad...
record = self._makeNewRecord(srcline, RecordType.COMMENT, None, None, None, None, comment) self.context.records.append(record) continue if ' comment = line[line.index(' line = line[:line.index(' fields = line.split() if not line.startswith(' ') and not line.startswith('\t'): label = fields[0] if len(fields) == 1: se...
def assemble(self, srcfile): self.info("Assembling %s" % srcfile) self.context.srcfile = srcfile self.context.linenum = 0 lines = open(srcfile).readlines() for line in lines: if line.endswith('\n'): line = line[:-1] srcline = line.expandtabs(8) self.context.srcline = srcline self.context.linenum += 1 self.context.globa...
b1e36cd7bc5216c2322cd7b4ae7f5236112a9cbd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/b1e36cd7bc5216c2322cd7b4ae7f5236112a9cbd/assembler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19540, 12, 2890, 16, 1705, 768, 4672, 365, 18, 1376, 2932, 1463, 5747, 2456, 738, 87, 6, 738, 1705, 768, 13, 365, 18, 2472, 18, 4816, 768, 273, 1705, 768, 365, 18, 2472, 18, 7511, 79...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19540, 12, 2890, 16, 1705, 768, 4672, 365, 18, 1376, 2932, 1463, 5747, 2456, 738, 87, 6, 738, 1705, 768, 13, 365, 18, 2472, 18, 4816, 768, 273, 1705, 768, 365, 18, 2472, 18, 7511, 79...
old_content = old_node.get_content().read()
if kind is 'dir': continue new_content = old_content = '' new_node_info = old_node_info = ('','') if old_node: old_content = old_node.get_content().read() old_node_info = (old_node.path, old_node.rev)
def render_diff(self, req, repos, chgset, diff_options): """Raw Unified Diff version""" req.send_response(200) req.send_header('Content-Type', 'text/plain;charset=utf-8') req.send_header('Content-Disposition', 'filename=Changeset%s.diff' % req.args.get('rev')) req.end_headers()
398635c4cfc9e6edb00c3397a70ab8f227d434aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/398635c4cfc9e6edb00c3397a70ab8f227d434aa/Changeset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 5413, 12, 2890, 16, 1111, 16, 13686, 16, 462, 75, 542, 16, 3122, 67, 2116, 4672, 3536, 4809, 1351, 939, 13008, 1177, 8395, 1111, 18, 4661, 67, 2740, 12, 6976, 13, 1111, 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, 67, 5413, 12, 2890, 16, 1111, 16, 13686, 16, 462, 75, 542, 16, 3122, 67, 2116, 4672, 3536, 4809, 1351, 939, 13008, 1177, 8395, 1111, 18, 4661, 67, 2740, 12, 6976, 13, 1111, 18, ...
clib_files = (['win32', 'pywintypes.lib'], ['win32com', 'pythoncom.lib'])
clib_files = (['win32', 'pywintypes%s.lib'], ['win32com', 'pythoncom%s.lib'])
def build_extensions(self): # Is there a better way than this? # Just one GUIDS.CPP and it gives trouble on mainwin too # Maybe I should just rename the file, but a case-only rename is likely to be # worse! if ".CPP" not in self.compiler.src_extensions: self.compiler._cpp_extensions.append(".CPP") self.compiler.src_ext...
1676731f523f4afba3b3d8b88d046e8c40ab5777 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/1676731f523f4afba3b3d8b88d046e8c40ab5777/setup_win32all.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 9489, 12, 2890, 4672, 468, 2585, 1915, 279, 7844, 4031, 2353, 333, 35, 468, 12526, 1245, 20322, 55, 18, 4258, 52, 471, 518, 14758, 23432, 1255, 603, 2774, 8082, 4885, 468, 1402...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 9489, 12, 2890, 4672, 468, 2585, 1915, 279, 7844, 4031, 2353, 333, 35, 468, 12526, 1245, 20322, 55, 18, 4258, 52, 471, 518, 14758, 23432, 1255, 603, 2774, 8082, 4885, 468, 1402...
x/2
x//2
>>> def f(x):
2e37168d4a7fbe884be268555d251a33a676b5ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/2e37168d4a7fbe884be268555d251a33a676b5ee/test_doctest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4080, 1652, 284, 12, 92, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4080, 1652, 284, 12, 92, 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...
def getHash(ob):
def getHash(self, ob):
def getHash(ob): res = hash(ob) while abs(res) > 0xFFFFFFFF: res = int(res/0xFFFFFFFF) return res
cd74443a2348ebb07bbd846172548b9018f5a1a9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12566/cd74443a2348ebb07bbd846172548b9018f5a1a9/securitypolicy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16075, 12, 2890, 16, 3768, 4672, 400, 273, 1651, 12, 947, 13, 1323, 2417, 12, 455, 13, 405, 374, 28949, 30, 400, 273, 509, 12, 455, 19, 20, 28949, 13, 327, 400, 2, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16075, 12, 2890, 16, 3768, 4672, 400, 273, 1651, 12, 947, 13, 1323, 2417, 12, 455, 13, 405, 374, 28949, 30, 400, 273, 509, 12, 455, 19, 20, 28949, 13, 327, 400, 2, -100, -100, -100, ...
print new_link temp_links.append(new_link)
print new_link temp_links.append(new_link)
def proceed(self, url, location): container_id = self.parent.url.split("/")[-1].split("id=")[-1] url = "http://relink.us/view.php?id="+container_id self.html = self.req.load(url, cookies=True) temp_links = []
a49bae7ba97ae64f61f38c4e64b671a650203910 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9838/a49bae7ba97ae64f61f38c4e64b671a650203910/RelinkUs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11247, 12, 2890, 16, 880, 16, 2117, 4672, 1478, 67, 350, 273, 365, 18, 2938, 18, 718, 18, 4939, 2932, 4898, 13, 18919, 21, 8009, 4939, 2932, 350, 1546, 13, 18919, 21, 65, 880, 273, 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, 11247, 12, 2890, 16, 880, 16, 2117, 4672, 1478, 67, 350, 273, 365, 18, 2938, 18, 718, 18, 4939, 2932, 4898, 13, 18919, 21, 8009, 4939, 2932, 350, 1546, 13, 18919, 21, 65, 880, 273, 3...
xmappers = [mapper] ymappers = [base_mapper(mapper) ]
xmappers = set([mapper]) ymappers = set([base_mapper(mapper) ])
def join_via( keys, mapper, must_alias =None): '''from Query.join_via, input root mapper, return last mapper/table alias and link properly recursive /self-referential joins cases: - table vs inher-join (parent/child) - plain vs polymunion (parent/child) ''' #XXX TODO: add inheritance-joins clause = None c = None self_...
dd3bb0da32b52165c8d13f052bd8ea013f730892 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10808/dd3bb0da32b52165c8d13f052bd8ea013f730892/expression.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1233, 67, 21985, 12, 1311, 16, 5815, 16, 1297, 67, 4930, 273, 7036, 4672, 9163, 2080, 2770, 18, 5701, 67, 21985, 16, 810, 1365, 5815, 16, 327, 1142, 5815, 19, 2121, 2308, 471, 1692, 82...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1233, 67, 21985, 12, 1311, 16, 5815, 16, 1297, 67, 4930, 273, 7036, 4672, 9163, 2080, 2770, 18, 5701, 67, 21985, 16, 810, 1365, 5815, 16, 327, 1142, 5815, 19, 2121, 2308, 471, 1692, 82...
i = 0 for dict in dicts:
for i, dict in enumerate(dicts):
def _array_get_all(a, object_cache): """ Return a 4-tuple containing all the data stored in a given array, in a format that is easy to turn into an actual dictionary. @param a: Array representing a dictionary. @param object_cache: A list of strings referenced by elements in the array. @return: A 4-tuple: (name, shortn...
15ff9b8227d200ebb65c28a09cc675675f015724 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12268/15ff9b8227d200ebb65c28a09cc675675f015724/kvm_config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1126, 67, 588, 67, 454, 12, 69, 16, 733, 67, 2493, 4672, 3536, 2000, 279, 1059, 17, 8052, 4191, 777, 326, 501, 4041, 316, 279, 864, 526, 16, 316, 279, 740, 716, 353, 12779, 358,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1126, 67, 588, 67, 454, 12, 69, 16, 733, 67, 2493, 4672, 3536, 2000, 279, 1059, 17, 8052, 4191, 777, 326, 501, 4041, 316, 279, 864, 526, 16, 316, 279, 740, 716, 353, 12779, 358,...
auth = base64.encodestring(auth)
auth = base64.encodestring(urllib.unquote(auth))
def get_host_info(self, host):
19c36e72b733d4d2c6ce26243ac840378dd3c6cb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/19c36e72b733d4d2c6ce26243ac840378dd3c6cb/xmlrpclib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2564, 67, 1376, 12, 2890, 16, 1479, 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, 336, 67, 2564, 67, 1376, 12, 2890, 16, 1479, 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 __call__(self,other):
def __call__(self, mv):
def __call__(self,other): """ EXAMPLES: sage: rubik = CubeGroup() sage: rubik(1) () """ return self._group(other)
13312bf3cf559432f574e5759a133255677df6ba /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/13312bf3cf559432f574e5759a133255677df6ba/cubegroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 7701, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 24997, 1766, 273, 385, 4895, 1114, 1435, 272, 410, 30, 24997, 1766, 12, 21, 13, 1832, 3536, 327, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 7701, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 24997, 1766, 273, 385, 4895, 1114, 1435, 272, 410, 30, 24997, 1766, 12, 21, 13, 1832, 3536, 327, 3...
frontends.html.exportChannels()
app.controller.exportChannels()
def exportChannels_(self, sender): frontends.html.exportChannels()
bbba6d43dd5653f1dc333895caf709b6a7a33f08 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/bbba6d43dd5653f1dc333895caf709b6a7a33f08/Application.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 10585, 67, 12, 2890, 16, 5793, 4672, 595, 18, 5723, 18, 6530, 10585, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 10585, 67, 12, 2890, 16, 5793, 4672, 595, 18, 5723, 18, 6530, 10585, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
register.filter('taxed_discount_price', discount_price)
register.filter('taxed_discount_price', taxed_discount_price)
def taxed_discount_price(product, discount): """Returns the product price with the discount applied, and taxes included. Ex: product|discount_price:sale """ price = untaxed_discount_price(product, discount) taxer = satchmo_tax._get_taxprocessor() return price + taxer.by_price(product.taxClass, price)
e34349006fe7eb835d55d0bbbb06f853c5f2f7e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/171/e34349006fe7eb835d55d0bbbb06f853c5f2f7e3/satchmo_discounts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5320, 329, 67, 23650, 67, 8694, 12, 5896, 16, 12137, 4672, 3536, 1356, 326, 3017, 6205, 598, 326, 12137, 6754, 16, 471, 5320, 281, 5849, 18, 225, 1312, 30, 3017, 96, 23650, 67, 8694, 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, 5320, 329, 67, 23650, 67, 8694, 12, 5896, 16, 12137, 4672, 3536, 1356, 326, 3017, 6205, 598, 326, 12137, 6754, 16, 471, 5320, 281, 5849, 18, 225, 1312, 30, 3017, 96, 23650, 67, 8694, 3...
if value is not None and value != 'C':
if value not in (None, '', 'C'):
def setlocale(category, value=None): """ setlocale(integer,string=None) -> string. Activates/queries locale processing. """ if value is not None and value != 'C': raise Error, '_locale emulation only supports "C" locale' return 'C'
404e30abfccdf490036e7bd38a155212bb71d003 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/404e30abfccdf490036e7bd38a155212bb71d003/locale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 6339, 12, 4743, 16, 460, 33, 7036, 4672, 3536, 444, 6339, 12, 7745, 16, 1080, 33, 7036, 13, 317, 533, 18, 26939, 815, 19, 13748, 2573, 4929, 18, 3536, 309, 460, 486, 316, 261, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 6339, 12, 4743, 16, 460, 33, 7036, 4672, 3536, 444, 6339, 12, 7745, 16, 1080, 33, 7036, 13, 317, 533, 18, 26939, 815, 19, 13748, 2573, 4929, 18, 3536, 309, 460, 486, 316, 261, 7...
log.exception("xcb err %s", e)
log.exception(e)
def do_xcb_events(self): # process all "functions to call". That seems to be required # to be done outside the loop, otherwise `gc.collect()` (see # samuraix.screen.Screen.unmanage) won't work - no idea why. if self.functions_to_call: for func in self.functions_to_call: func() self.functions_to_call = []
76d86925bff1d6d5961953d0de3e2792b0523254 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10761/76d86925bff1d6d5961953d0de3e2792b0523254/baseapp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 6511, 70, 67, 5989, 12, 2890, 4672, 468, 1207, 777, 315, 10722, 358, 745, 9654, 12466, 12001, 358, 506, 1931, 468, 358, 506, 2731, 8220, 326, 2798, 16, 3541, 1375, 13241, 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, 741, 67, 6511, 70, 67, 5989, 12, 2890, 4672, 468, 1207, 777, 315, 10722, 358, 745, 9654, 12466, 12001, 358, 506, 1931, 468, 358, 506, 2731, 8220, 326, 2798, 16, 3541, 1375, 13241, 18, ...
self.assertEquals(where.as_sql(), "(cn=*te\\2ast*)")
self.assertEquals(where.as_sql(), ("(cn=*te\\2ast*)", []))
def test_char_field_contains(self): where = WhereNode() where.add((Constraint("cn", "cn", CharField()), 'contains', "test"), AND) self.assertEquals(where.as_sql(), "(cn=*test*)")
d16779d7edb93416524eae1081f4238208ccdc6b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12933/d16779d7edb93416524eae1081f4238208ccdc6b/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3001, 67, 1518, 67, 12298, 12, 2890, 4672, 1625, 273, 12177, 907, 1435, 1625, 18, 1289, 12443, 5806, 2932, 10305, 3113, 315, 10305, 3113, 3703, 974, 1435, 3631, 296, 12298, 2187,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3001, 67, 1518, 67, 12298, 12, 2890, 4672, 1625, 273, 12177, 907, 1435, 1625, 18, 1289, 12443, 5806, 2932, 10305, 3113, 315, 10305, 3113, 3703, 974, 1435, 3631, 296, 12298, 2187,...
MarkerInterface,\
def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) self.content = [] self.attr_content = []
85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 8832, 12, 2890, 16, 756, 4672, 365, 18, 542, 2498, 12, 2159, 13, 2939, 273, 365, 18, 588, 6323, 12, 2159, 13, 365, 18, 1745, 273, 5378, 365, 18, 1747, 67, 1745, 273, 5378, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 8832, 12, 2890, 16, 756, 4672, 365, 18, 542, 2498, 12, 2159, 13, 2939, 273, 365, 18, 588, 6323, 12, 2159, 13, 365, 18, 1745, 273, 5378, 365, 18, 1747, 67, 1745, 273, 5378, 2, ...
if self.portlets_lod <> None: for portlet_row in self.portlets_lod: dic = portlet_row if dic.has_key('portlet'): if dic.has_key('container'): container = self.wTree.get_widget(dic['container']) container.add(dic['portlet']) if dic.has_key('populate_function'): dic['populate_function']() self.SetInitialSize() self.Show...
def show(self, primary_key=None): ''' This is for all stuff on the Form which is not standard. portlets_lod = [{'portlet': None, => widget_object to be drawn to the container 'container': None, => container to draw the widget in 'save_function': None, => function triggered on save 'update_function': None, => function t...
819c7f8a3758a51e7e7a0aae657955da7fca1be2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3069/819c7f8a3758a51e7e7a0aae657955da7fca1be2/wxPortlets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 12, 2890, 16, 3354, 67, 856, 33, 7036, 4672, 9163, 1220, 353, 364, 777, 10769, 603, 326, 2748, 1492, 353, 486, 4529, 18, 13114, 87, 67, 80, 369, 273, 20031, 11, 655, 1810, 4278, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 12, 2890, 16, 3354, 67, 856, 33, 7036, 4672, 9163, 1220, 353, 364, 777, 10769, 603, 326, 2748, 1492, 353, 486, 4529, 18, 13114, 87, 67, 80, 369, 273, 20031, 11, 655, 1810, 4278, ...
return S_ERROR("Error retrieving information from qstat:" + stdout + stderr)
return S_ERROR( "Error retrieving information from qstat:" + stdout + stderr )
def getDynamicInfo(self): """ Method to return information on running and pending jobs. """ result = S_OK() result['SubmittedJobs'] = self.submittedJobs
05f4284330e23d8d74d0844cee3520964f66a942 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/05f4284330e23d8d74d0844cee3520964f66a942/TorqueComputingElement.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2343, 3920, 966, 12, 2890, 4672, 3536, 2985, 358, 327, 1779, 603, 3549, 471, 4634, 6550, 18, 3536, 563, 273, 348, 67, 3141, 1435, 563, 3292, 28882, 7276, 3546, 273, 365, 18, 31575, 7276,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2343, 3920, 966, 12, 2890, 4672, 3536, 2985, 358, 327, 1779, 603, 3549, 471, 4634, 6550, 18, 3536, 563, 273, 348, 67, 3141, 1435, 563, 3292, 28882, 7276, 3546, 273, 365, 18, 31575, 7276,...
if not os.path.exists(os.path.join(self.rootdir, 'usr/sbin/useradd')): raise RootError, "Could not find useradd in chroot, maybe the install failed?"
need_add_user = 1 else: curruid = self.config['chrootuid'] chrootuid = None passwd = os.path.join(self.rootdir, 'etc', 'passwd') fd = open( passwd, "r" ) while 1: line = fd.readline() if line == "": break if line.startswith(self.config["chrootuser"]): chrootuid = int(line.split(":")[2]) if chrootuid is not None...
def _make_our_user(self): # should check if the user exists first # make the buildusers/groups if not os.path.exists(self.rootdir + self.homedir): if not os.path.exists(os.path.join(self.rootdir, 'usr/sbin/useradd')): raise RootError, "Could not find useradd in chroot, maybe the install failed?" cmd = '/usr/sbin/userad...
7814ebd4d074d5434b7984a28508d2a422aa156f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7328/7814ebd4d074d5434b7984a28508d2a422aa156f/mock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6540, 67, 477, 67, 1355, 12, 2890, 4672, 468, 1410, 866, 309, 326, 729, 1704, 1122, 468, 1221, 326, 1361, 5577, 19, 4650, 309, 486, 1140, 18, 803, 18, 1808, 12, 2890, 18, 3085, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6540, 67, 477, 67, 1355, 12, 2890, 4672, 468, 1410, 866, 309, 326, 729, 1704, 1122, 468, 1221, 326, 1361, 5577, 19, 4650, 309, 486, 1140, 18, 803, 18, 1808, 12, 2890, 18, 3085, ...
result += res[i][0]
result += i[0]
def create_widget_overview_table(data): """Creates a table for all available widgets.""" #matches a line like # Button A push button. variable = "(?:[a-z]|[A-Z])(?:[a-z]|[A-Z]|[0-9]|_)*" regex = re.compile(" *(" + variable + ") +(.*)\n") res = regex.findall(data)
03dd1fa87e7ed6a1aae10ff4e922ba7db9cd3ff8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9355/03dd1fa87e7ed6a1aae10ff4e922ba7db9cd3ff8/wiki_grabber.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 6587, 67, 26081, 67, 2121, 12, 892, 4672, 3536, 2729, 279, 1014, 364, 777, 2319, 10965, 12123, 468, 8436, 279, 980, 3007, 468, 12569, 13491, 432, 1817, 3568, 18, 2190, 273, 315,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 6587, 67, 26081, 67, 2121, 12, 892, 4672, 3536, 2729, 279, 1014, 364, 777, 2319, 10965, 12123, 468, 8436, 279, 980, 3007, 468, 12569, 13491, 432, 1817, 3568, 18, 2190, 273, 315,...
if not self.helo_resp and not self.ehlo_resp: if self.ehlo() >= 400: self.helo()
if self.helo_resp is None and self.ehlo_resp is None: if not (200 <= self.ehlo()[0] <= 299): (code,resp) = self.helo() if not (200 <= code <= 299): raise SMTPHeloError(code, resp)
def sendmail(self, from_addr, to_addrs, msg, mail_options=[], rcpt_options=[]): """This command performs an entire mail transaction.
053a07b597f875016b8bc478c8a905c8baf4efe4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/053a07b597f875016b8bc478c8a905c8baf4efe4/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 4408, 12, 2890, 16, 628, 67, 4793, 16, 358, 67, 23305, 16, 1234, 16, 4791, 67, 2116, 22850, 6487, 4519, 337, 67, 2116, 33, 8526, 4672, 3536, 2503, 1296, 11199, 392, 7278, 4791, 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, 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, 1366, 4408, 12, 2890, 16, 628, 67, 4793, 16, 358, 67, 23305, 16, 1234, 16, 4791, 67, 2116, 22850, 6487, 4519, 337, 67, 2116, 33, 8526, 4672, 3536, 2503, 1296, 11199, 392, 7278, 4791, 2...
pipe = getShellPipe("df .")
pipe = getShellPipe("df -k .")
def main(): #First, get number of CPUs, defaulting to 1 num_cpu = 1 pipe = getShellPipe("sysctl hw.ncpu") for line in pipe: line_s = line.split(" ") if len(line_s) > 1: num_cpu = int(line_s[1]) pipe.close() # Next, get physical memory (RAM), defaulting to 1 gig phys_mem = 1000000000 pipe = getShellPipe("sysctl hw.phy...
1d8393d393faac6dd556a096ec3ac129b89d079c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/1d8393d393faac6dd556a096ec3ac129b89d079c/Mac_BSD_resources.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 225, 468, 3759, 16, 336, 1300, 434, 5181, 3477, 16, 805, 310, 358, 404, 818, 67, 11447, 273, 404, 6010, 273, 7932, 1165, 11546, 2932, 9499, 12930, 16139, 18, 82, 11447, 7923...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 225, 468, 3759, 16, 336, 1300, 434, 5181, 3477, 16, 805, 310, 358, 404, 818, 67, 11447, 273, 404, 6010, 273, 7932, 1165, 11546, 2932, 9499, 12930, 16139, 18, 82, 11447, 7923...
fl()
flush()
def doit(L): t0 = time.clock() L.sort() t1 = time.clock() print "%6.2f" % (t1-t0), fl()
1a0647b0e18d6de52c4c51bdae9fe97eb7441d05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1a0647b0e18d6de52c4c51bdae9fe97eb7441d05/sortperf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 305, 12, 48, 4672, 268, 20, 273, 813, 18, 18517, 1435, 511, 18, 3804, 1435, 268, 21, 273, 813, 18, 18517, 1435, 1172, 2213, 26, 18, 22, 74, 6, 738, 261, 88, 21, 17, 88, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 305, 12, 48, 4672, 268, 20, 273, 813, 18, 18517, 1435, 511, 18, 3804, 1435, 268, 21, 273, 813, 18, 18517, 1435, 1172, 2213, 26, 18, 22, 74, 6, 738, 261, 88, 21, 17, 88, 20, ...
'port': port}
'port': port, 'download': '%s\\Maay Documents\\downloaded' % myDesktop,}
def createConfigFile(myDesktop, myDocuments): f=open("indexer.ini", "w") values = {'private' : '%s,%s' % (myDesktop, myDocuments), 'private_skip': '', 'public' : '%s\\Maay Documents' % myDesktop, 'public_skip' : '', } f.write(indexer_config % values) f.close() f = open("node.ini", "w") presence, port = probe_...
8296e1a86179a45b2d7180663d5b605545a4121e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2259/8296e1a86179a45b2d7180663d5b605545a4121e/updateconfig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 13705, 12, 4811, 27583, 16, 3399, 12922, 4672, 284, 33, 3190, 2932, 24541, 18, 8767, 3113, 315, 91, 7923, 924, 273, 13666, 1152, 11, 377, 294, 1995, 87, 15529, 87, 11, 738, 261, 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, 752, 13705, 12, 4811, 27583, 16, 3399, 12922, 4672, 284, 33, 3190, 2932, 24541, 18, 8767, 3113, 315, 91, 7923, 924, 273, 13666, 1152, 11, 377, 294, 1995, 87, 15529, 87, 11, 738, 261, 4...
_mesg('untagged responses dump:%s%s' % (t, j(l, t)))
_mesg('untagged responses dump:%s%s' % (t, t.join(l)))
def _dump_ur(dict): # Dump untagged responses (in `dict'). l = dict.items() if not l: return t = '\n\t\t' l = map(lambda x:'%s: "%s"' % (x[0], x[1][0] and '" "'.join(x[1]) or ''), l) _mesg('untagged responses dump:%s%s' % (t, j(l, t)))
38a80f8f8a4d43ce86294f891af7a41a23ca73b7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/38a80f8f8a4d43ce86294f891af7a41a23ca73b7/imaplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8481, 67, 295, 12, 1576, 4672, 468, 18242, 640, 23023, 7220, 261, 267, 1375, 1576, 16063, 328, 273, 2065, 18, 3319, 1435, 309, 486, 328, 30, 327, 268, 273, 2337, 82, 64, 88, 64, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8481, 67, 295, 12, 1576, 4672, 468, 18242, 640, 23023, 7220, 261, 267, 1375, 1576, 16063, 328, 273, 2065, 18, 3319, 1435, 309, 486, 328, 30, 327, 268, 273, 2337, 82, 64, 88, 64, ...
print '-----'
print
def testresults(self): """Return a generator to get the test result for each test item.""" for item in self.items: yield item.run()
7de54c446f3aee856ac761708faaa5a1ee928540 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/7de54c446f3aee856ac761708faaa5a1ee928540/newtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 4717, 12, 2890, 4672, 3536, 990, 279, 4456, 358, 336, 326, 1842, 563, 364, 1517, 1842, 761, 12123, 364, 761, 316, 365, 18, 3319, 30, 2824, 761, 18, 2681, 1435, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 4717, 12, 2890, 4672, 3536, 990, 279, 4456, 358, 336, 326, 1842, 563, 364, 1517, 1842, 761, 12123, 364, 761, 316, 365, 18, 3319, 30, 2824, 761, 18, 2681, 1435, 2, -100, -100, -10...
while (yIndex >= 0):
while (yIndex > 0):
def _resampleDem(self): """ Resample DEM in regions outside specified region. """
77cafad57131b0623077b7fac19c30fc7c1aff36 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8645/77cafad57131b0623077b7fac19c30fc7c1aff36/dem2lines.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 455, 1511, 15058, 12, 2890, 4672, 3536, 1124, 1511, 2030, 49, 316, 10085, 8220, 1269, 3020, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 455, 1511, 15058, 12, 2890, 4672, 3536, 1124, 1511, 2030, 49, 316, 10085, 8220, 1269, 3020, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Committer("Victor Wong", "victorw@chromium.org"),
Committer("Victor Wang", "victorw@chromium.org"),
def __init__(self, name, email_or_emails): Committer.__init__(self, name, email_or_emails) self.can_review = True
5b75cce421957b7ea19e4f89a8cf7cedc3f31e5c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/5b75cce421957b7ea19e4f89a8cf7cedc3f31e5c/committers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 16, 2699, 67, 280, 67, 22762, 4672, 10269, 387, 16186, 2738, 972, 12, 2890, 16, 508, 16, 2699, 67, 280, 67, 22762, 13, 365, 18, 4169, 67, 16041, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 16, 2699, 67, 280, 67, 22762, 4672, 10269, 387, 16186, 2738, 972, 12, 2890, 16, 508, 16, 2699, 67, 280, 67, 22762, 13, 365, 18, 4169, 67, 16041, 2...
if force: alternatives = [] else: alternatives = [(getweight(changeset), changeset)] pruneweight = min(pruneweight, alternatives[0][0]) if earlyAbort: upgpkgs = upgpkgs.keys() sortUpgrades(upgpkgs) pw = trans.getPolicy().getPriorityWeights(upgpkgs) _maxpw = None
csweight = getweight(changeset) if not force: pruneweight = min(pruneweight, csweight) upgpkgs = upgpkgs.keys() sortUpgrades(upgpkgs)
def _updown(self, pkg, force): trans = self._trans changeset = self._changeset locked = self._locked depth = self._depth pruneweight = self._pruneweight self.trace(1, "_updown(%s, pw=%f, yw=%f, f=%d)", (pkg, pruneweight, self._yieldweight, force))
042a612ab48d4e7a226d8fbf3fe66ac496d3819e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/042a612ab48d4e7a226d8fbf3fe66ac496d3819e/transaction.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 416, 2378, 12, 2890, 16, 3475, 16, 2944, 4672, 906, 273, 365, 6315, 2338, 22463, 273, 365, 6315, 6329, 278, 8586, 273, 365, 6315, 15091, 3598, 273, 365, 6315, 5979, 846, 318, 359, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 416, 2378, 12, 2890, 16, 3475, 16, 2944, 4672, 906, 273, 365, 6315, 2338, 22463, 273, 365, 6315, 6329, 278, 8586, 273, 365, 6315, 15091, 3598, 273, 365, 6315, 5979, 846, 318, 359, ...
self.workers.append(worker) self.logger.debug('Added worker %s', worker)
def add_worker_thread(self): index = self._worker_count.next() worker = threading.Thread(target=self.worker_thread_callback, name=("worker %d" % index)) worker.setDaemon(self.daemon) worker.start() self.workers.append(worker) self.logger.debug('Added worker %s', worker)
44a43ea127a5a162dd897d2c8fda21b52777fa59 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2097/44a43ea127a5a162dd897d2c8fda21b52777fa59/httpserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 10124, 67, 5930, 12, 2890, 4672, 770, 273, 365, 6315, 10124, 67, 1883, 18, 4285, 1435, 4322, 273, 17254, 18, 3830, 12, 3299, 33, 2890, 18, 10124, 67, 5930, 67, 3394, 16, 508, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 10124, 67, 5930, 12, 2890, 4672, 770, 273, 365, 6315, 10124, 67, 1883, 18, 4285, 1435, 4322, 273, 17254, 18, 3830, 12, 3299, 33, 2890, 18, 10124, 67, 5930, 67, 3394, 16, 508, ...
new_value = copy(new_value)
new_value = copy(value)
def copy(self): """Return a deep copy of the node.""" result = object.__new__(self.__class__) for field, value in self.iter_fields(): if isinstance(value, Node): new_value = value.copy() elif isinstance(value, list): new_value = [] for item in new_value: if isinstance(item, Node): item = item.copy() else: item = copy(i...
d436e98474eadda52076d5c4316c0797ea45e136 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14446/d436e98474eadda52076d5c4316c0797ea45e136/nodes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 4672, 3536, 990, 279, 4608, 1610, 434, 326, 756, 12123, 563, 273, 733, 16186, 2704, 972, 12, 2890, 16186, 1106, 972, 13, 364, 652, 16, 460, 316, 365, 18, 2165, 67, 2821...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 4672, 3536, 990, 279, 4608, 1610, 434, 326, 756, 12123, 563, 273, 733, 16186, 2704, 972, 12, 2890, 16186, 1106, 972, 13, 364, 652, 16, 460, 316, 365, 18, 2165, 67, 2821...
c.repo_last_rev = ScmModel().get(repo_name).revisions[-1]
r = ScmModel().get(repo_name) c.repo_last_rev = r.revisions[-1] if r.revisions else 0
def edit(self, repo_name, format='html'): """GET /repos/repo_name/edit: Form to edit an existing item""" # url('edit_repo', repo_name=ID) repo_model = RepoModel() c.repo_info = repo = repo_model.get(repo_name) if repo.stats: last_rev = repo.stats.stat_on_revision else: last_rev = 0 c.stats_revision = last_rev c.repo_la...
f8f8fd0ddf5430b3c2c0d32e1960d410b6836b24 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4230/f8f8fd0ddf5430b3c2c0d32e1960d410b6836b24/repos.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 12, 2890, 16, 3538, 67, 529, 16, 740, 2218, 2620, 11, 4672, 3536, 3264, 342, 15564, 19, 7422, 67, 529, 19, 4619, 30, 2748, 358, 3874, 392, 2062, 761, 8395, 468, 880, 2668, 4619, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 12, 2890, 16, 3538, 67, 529, 16, 740, 2218, 2620, 11, 4672, 3536, 3264, 342, 15564, 19, 7422, 67, 529, 19, 4619, 30, 2748, 358, 3874, 392, 2062, 761, 8395, 468, 880, 2668, 4619, ...
libraries = ['gmp', 'm', 'readline', 'singular', 'singcf', 'singfac', 'omalloc', 'givaro', 'gmpxx'],
libraries = ['m', 'readline', 'singular', 'singcf', 'singfac', 'omalloc', 'givaro', 'gmpxx', 'gmp'],
def is_older(file1, file2): """ Return True if either file2 does not exist or is older than file1. If file1 does not exist, always return False. """ if not os.path.exists(file1): return False if not os.path.exists(file2): return True if os.path.getmtime(file2) < os.path.getmtime(file1): return True return False
c8b0f5f98af3b647297547dfe3881c7d339d3f57 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/c8b0f5f98af3b647297547dfe3881c7d339d3f57/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 1498, 12, 768, 21, 16, 585, 22, 4672, 3536, 2000, 1053, 309, 3344, 585, 22, 1552, 486, 1005, 578, 353, 12156, 2353, 585, 21, 18, 225, 971, 585, 21, 1552, 486, 1005, 16, 3712...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 1498, 12, 768, 21, 16, 585, 22, 4672, 3536, 2000, 1053, 309, 3344, 585, 22, 1552, 486, 1005, 578, 353, 12156, 2353, 585, 21, 18, 225, 971, 585, 21, 1552, 486, 1005, 16, 3712...
print 'usage: texi2html [-d [-d]] [-p] [-c] inputfile outputdirectory'
print 'usage: texi2hh [-d [-d]] [-p] [-c] [-3] [-H htmlhelp]', \ 'inputfile outputdirectory'
def test(): import sys debugging = 0 print_headers = 0 cont = 0 html3 = 0 while sys.argv[1:2] == ['-d']: debugging = debugging + 1 del sys.argv[1:2] if sys.argv[1] == '-p': print_headers = 1 del sys.argv[1] if sys.argv[1] == '-c': cont = 1 del sys.argv[1] if sys.argv[1] == '-3': html3 = 1 del sys.argv[1] if len(sys.ar...
db6f5c4045c0343f80223a59ad6975c71dc11049 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/db6f5c4045c0343f80223a59ad6975c71dc11049/texi2html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 13332, 1930, 2589, 10450, 273, 374, 1172, 67, 2485, 273, 374, 466, 273, 374, 1729, 23, 273, 374, 225, 1323, 2589, 18, 19485, 63, 21, 30, 22, 65, 422, 10228, 17, 72, 3546, 30, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 13332, 1930, 2589, 10450, 273, 374, 1172, 67, 2485, 273, 374, 466, 273, 374, 1729, 23, 273, 374, 225, 1323, 2589, 18, 19485, 63, 21, 30, 22, 65, 422, 10228, 17, 72, 3546, 30, 1...
pManager.manager.DebugStr('cNetManager '+ __version__ +': Starting connection.')
pManager.manager.DebugStr('cNetManager '+ __version__ +': Starting connection.', 0)
def StartConnection(self): """Start network package
75d1942defe5d17f180f5e72fbdbaacc8c12e3b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2853/75d1942defe5d17f180f5e72fbdbaacc8c12e3b2/cNetManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3603, 1952, 12, 2890, 4672, 3536, 1685, 2483, 2181, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3603, 1952, 12, 2890, 4672, 3536, 1685, 2483, 2181, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
def _copy(self,obj): """copies to obj""" obj._attrMap = self._attrMap.clone() self_contents = self.contents for child in self_contents: obj.contents.append(child) self_contents = self.contents for (oldKey, oldValue) in self.__dict__.items(): if oldValue in self_contents: pos = self_contents.index(oldValue) setattr(ob...
def _copy(self,obj): """copies to obj""" obj._attrMap = self._attrMap.clone()
b354fd55450b8693e12c415ac09bb5fda2251f5a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/b354fd55450b8693e12c415ac09bb5fda2251f5a/shapes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3530, 12, 2890, 16, 2603, 4672, 3536, 22295, 606, 358, 1081, 8395, 1081, 6315, 1747, 863, 273, 365, 6315, 1747, 863, 18, 14056, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3530, 12, 2890, 16, 2603, 4672, 3536, 22295, 606, 358, 1081, 8395, 1081, 6315, 1747, 863, 273, 365, 6315, 1747, 863, 18, 14056, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -1...
self.circs[circ_event.circ_id] = circ_event.status if circ_event.circ_id in self.live_circs: del self.live_circs[circ_event.circ_id] if circ_event.reason == 'TIMEOUT': self.timeout_circs[circ_event.circ_id] = True if circ_event.circ_id in self.circ_times:
if circ_event.circ_id in self.circ_times: self.circs[circ_event.circ_id] = circ_event.status if circ_event.circ_id in self.live_circs: del self.live_circs[circ_event.circ_id] if circ_event.reason == 'TIMEOUT': self.timeout_circs[circ_event.circ_id] = True
def circ_status_event(self, circ_event): if circ_event.status == 'LAUNCHED': self.circs[circ_event.circ_id] = circ_event.status self.circ_times[circ_event.circ_id] = CircTime(circ_event.arrived_at) self.live_circs[circ_event.circ_id] = True elif circ_event.status == 'BUILT': self.circs[circ_event.circ_id] = circ_event....
61c9ba4db313123de8b90a72f22e9cee26ca9dfe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3762/61c9ba4db313123de8b90a72f22e9cee26ca9dfe/cbttest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18956, 67, 2327, 67, 2575, 12, 2890, 16, 18956, 67, 2575, 4672, 309, 18956, 67, 2575, 18, 2327, 422, 296, 2534, 2124, 15023, 4278, 365, 18, 11614, 2143, 63, 11614, 71, 67, 2575, 18, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18956, 67, 2327, 67, 2575, 12, 2890, 16, 18956, 67, 2575, 4672, 309, 18956, 67, 2575, 18, 2327, 422, 296, 2534, 2124, 15023, 4278, 365, 18, 11614, 2143, 63, 11614, 71, 67, 2575, 18, 11...
sage: C.minimum_distance()
sage: C.minimum_distance()
def BinaryGolayCode(): """ BinaryGolayCode() returns a binary Golay code. This is a perfect [23,12,7] code. It is also cyclic, and has generator polynomial $g(x)=1+x^2+x^4+x^5+x^6+x^{10}+x^{11}$. Extending it yields the extended Golay code (see ExtendedBinaryGolayCode). EXAMPLE: sage: C = BinaryGolayCode() sage: C Lin...
d5d38c59a0e04077fe8442bc7dec6d8a4821a553 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/d5d38c59a0e04077fe8442bc7dec6d8a4821a553/guava.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7896, 43, 355, 528, 1085, 13332, 3536, 7896, 43, 355, 528, 1085, 1435, 1135, 279, 3112, 611, 355, 528, 981, 18, 1220, 353, 279, 24746, 306, 4366, 16, 2138, 16, 27, 65, 981, 18, 2597, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7896, 43, 355, 528, 1085, 13332, 3536, 7896, 43, 355, 528, 1085, 1435, 1135, 279, 3112, 611, 355, 528, 981, 18, 1220, 353, 279, 24746, 306, 4366, 16, 2138, 16, 27, 65, 981, 18, 2597, ...
if not os.path.exists(src): if not os.path.exists(altsrc):
if not os.path.exists(os.path.join(sys.exec_prefix, src)): if not os.path.exists(os.path.join(sys.exec_prefix, altsrc)):
def mkcorealias(src, altsrc): import string import macostools version = string.split(sys.version)[0] dst = getextensiondirfile(src+ ' ' + version) if not os.path.exists(src): if not os.path.exists(altsrc): if verbose: print '*', src, 'not found' return 0 src = altsrc try: os.unlink(dst) except os.error: pass macostool...
43d9dab42c1d765ac82059ace912eb4294d765a4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/43d9dab42c1d765ac82059ace912eb4294d765a4/ConfigurePython.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5028, 3644, 4930, 12, 4816, 16, 524, 3428, 1310, 4672, 1930, 533, 1930, 5318, 669, 8192, 1177, 273, 533, 18, 4939, 12, 9499, 18, 1589, 25146, 20, 65, 3046, 273, 336, 6447, 1214, 768, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5028, 3644, 4930, 12, 4816, 16, 524, 3428, 1310, 4672, 1930, 533, 1930, 5318, 669, 8192, 1177, 273, 533, 18, 4939, 12, 9499, 18, 1589, 25146, 20, 65, 3046, 273, 336, 6447, 1214, 768, 1...
return changes[a.rev].author.lower()
return (changes[a.rev].author.lower(), embedded_numbers(a.name.lower()))
def file_order(a): return changes[a.rev].author.lower()
ff7b0c11f133725cdf79df0d1864a420f0dd28b8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2831/ff7b0c11f133725cdf79df0d1864a420f0dd28b8/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 585, 67, 1019, 12, 69, 4672, 327, 3478, 63, 69, 18, 9083, 8009, 4161, 18, 8167, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 585, 67, 1019, 12, 69, 4672, 327, 3478, 63, 69, 18, 9083, 8009, 4161, 18, 8167, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.assertRaises( Exception, not ssd.validate )
ssd.validate()
def testConvert ( self ): #test if the data is valid sc = self.buildTestSetup() converter = IECoreMaya.FromMayaSkinClusterConverter.create( sc )
2480cce42fdb1ef5a9041c8d2d3b9bdb4bacd40f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9042/2480cce42fdb1ef5a9041c8d2d3b9bdb4bacd40f/FromMayaSkinClusterConverterTest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2723, 261, 365, 262, 30, 468, 3813, 309, 326, 501, 353, 923, 888, 273, 365, 18, 3510, 4709, 7365, 1435, 6027, 273, 10897, 4670, 49, 528, 69, 18, 1265, 49, 528, 69, 26827, 3629, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 2723, 261, 365, 262, 30, 468, 3813, 309, 326, 501, 353, 923, 888, 273, 365, 18, 3510, 4709, 7365, 1435, 6027, 273, 10897, 4670, 49, 528, 69, 18, 1265, 49, 528, 69, 26827, 3629, ...
test_support.run_unittest(TestSFbugs) test_support.run_doctest(difflib)
Doctests = doctest.DocTestSuite(difflib) test_support.run_unittest(TestSFbugs, Doctests)
def test_ratio_for_null_seqn(self): # Check clearing of SF bug 763023 s = difflib.SequenceMatcher(None, [], []) self.assertEqual(s.ratio(), 1) self.assertEqual(s.quick_ratio(), 1) self.assertEqual(s.real_quick_ratio(), 1)
8f350650e1a8c3adb15418c560c9818eca2663d5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/8f350650e1a8c3adb15418c560c9818eca2663d5/test_difflib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9847, 67, 1884, 67, 2011, 67, 5436, 82, 12, 2890, 4672, 468, 2073, 29820, 434, 21318, 7934, 2371, 4449, 3103, 23, 272, 273, 1901, 12678, 18, 4021, 6286, 12, 7036, 16, 5378, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9847, 67, 1884, 67, 2011, 67, 5436, 82, 12, 2890, 4672, 468, 2073, 29820, 434, 21318, 7934, 2371, 4449, 3103, 23, 272, 273, 1901, 12678, 18, 4021, 6286, 12, 7036, 16, 5378, 1...
assert window == self.window_
def window_configured_cb(self, window, event, *param): # Undo the expander trick if it's still in effect: the user should be # able to resize the dialog. assert window == self.window_ if not self.window_.get_resizable(): self.window_.set_resizable(True) self.circle.set_size_request(*self.CIRCLE_MIN_SIZE)
683aac9ac60c426cd1cac95883bb38c844230a0d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7129/683aac9ac60c426cd1cac95883bb38c844230a0d/colorsamplerwindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2742, 67, 16449, 67, 7358, 12, 2890, 16, 2742, 16, 871, 16, 380, 891, 4672, 468, 1351, 2896, 326, 4542, 264, 28837, 309, 518, 1807, 4859, 316, 5426, 30, 326, 729, 1410, 506, 468, 7752,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2742, 67, 16449, 67, 7358, 12, 2890, 16, 2742, 16, 871, 16, 380, 891, 4672, 468, 1351, 2896, 326, 4542, 264, 28837, 309, 518, 1807, 4859, 316, 5426, 30, 326, 729, 1410, 506, 468, 7752,...
func.WriteCmdHelper(file)
if True: func.WriteCmdHelper(file)
def WriteCmdHelperHeader(self, filename): """Writes the gles2 command helper.""" file = CHeaderWriter(filename)
ee42ed4a69c7e3b162746340666f981a90cdd8be /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/ee42ed4a69c7e3b162746340666f981a90cdd8be/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 5931, 2276, 1864, 12, 2890, 16, 1544, 4672, 3536, 8368, 326, 314, 1040, 22, 1296, 4222, 12123, 585, 273, 385, 1864, 2289, 12, 3459, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 5931, 2276, 1864, 12, 2890, 16, 1544, 4672, 3536, 8368, 326, 314, 1040, 22, 1296, 4222, 12123, 585, 273, 385, 1864, 2289, 12, 3459, 13, 2, -100, -100, -100, -100, -100, -100, -100,...
d=(self._julianday(yr,1,0)-jd1901)+jul yr,mo,dy=self._calendarday(d+jd1901) x=(d-int(d))*86400.0 hr=int(x/3600) x=x-(hr*3600) mn=int(x/60) sc=x-(mn*60) if(hr==23 and mn==59 and sc>59.999): hr,mn,sc=0,0,0.0 else: if hr<0: hr=23+hr if mn<0: mn=59+mn if sc<0: if (sc-int(sc)>=0.999): sc=round(sc) sc=59+sc d=d-(self._tzin...
d=(_julianday(yr,1,0)-jd1901)+jul x_float = d * 86400.0 x_floor = math.floor(x_float) ms = x_float - x_floor x = long(x_floor) yr,mo,dy,hr,mn,sc = _calcYMDHMS(x, ms) s,d,t,millisecs = _calcIndependentSecondEtc(tz, x, ms)
def __init__(self,*args): """Return a new date-time object
befc802c3f8f99550f565b61586bed86f5a03c2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/befc802c3f8f99550f565b61586bed86f5a03c2d/DateTime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 14, 1968, 4672, 3536, 990, 279, 394, 1509, 17, 957, 733, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 14, 1968, 4672, 3536, 990, 279, 394, 1509, 17, 957, 733, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
smtp_host = self.smtp_host
msg = ('the configuration variable "smtp-host" is not defined,' ' check the "config.conf" file') raise RuntimeError, msg
def send_email(self, from_addr, to_addr, subject, body, **kw): context = get_context() response = context.response
f7a1d3a01cca44641347902e597c49f7ea648f30 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/f7a1d3a01cca44641347902e597c49f7ea648f30/root.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 3652, 12, 2890, 16, 628, 67, 4793, 16, 358, 67, 4793, 16, 3221, 16, 1417, 16, 2826, 9987, 4672, 819, 273, 336, 67, 2472, 1435, 766, 273, 819, 18, 2740, 2, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1366, 67, 3652, 12, 2890, 16, 628, 67, 4793, 16, 358, 67, 4793, 16, 3221, 16, 1417, 16, 2826, 9987, 4672, 819, 273, 336, 67, 2472, 1435, 766, 273, 819, 18, 2740, 2, -100, -100, -100,...
Returns: A list of failed test names.
Returns: A list of failed test names.
def _WaitForCompletion(self, spawned_tests): """Waits for tests to complete and returns a list of failed tests.
3bab0321232e7900a9e827658ca48c5797d77023 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9626/3bab0321232e7900a9e827658ca48c5797d77023/cros_run_parallel_vm_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 29321, 11238, 12, 2890, 16, 12560, 329, 67, 16341, 4672, 3536, 26153, 364, 7434, 358, 3912, 471, 1135, 279, 666, 434, 2535, 7434, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 29321, 11238, 12, 2890, 16, 12560, 329, 67, 16341, 4672, 3536, 26153, 364, 7434, 358, 3912, 471, 1135, 279, 666, 434, 2535, 7434, 18, 2, -100, -100, -100, -100, -100, -100, -100, -1...
rel_path = self.path[1:]
rel_path = unquote(self.path[1:])
def do_GET(self): global verbose try: # remove leading '/' rel_path = self.path[1:] abs_path = os.path.abspath(os.path.join( self.server.root_dir, rel_path)) print "rel_path=%s abs_path=%s" % (rel_path, abs_path) if os.path.isfile(abs_path): if verbose: print "File get '%s'" % rel_path content = open(abs_path, 'rb') co...
658591f8aa095b467b41ce92a5d3f30c009c6c73 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9134/658591f8aa095b467b41ce92a5d3f30c009c6c73/quick-file-server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 3264, 12, 2890, 4672, 2552, 3988, 775, 30, 468, 1206, 7676, 2023, 1279, 67, 803, 273, 25611, 12, 2890, 18, 803, 63, 21, 30, 5717, 2417, 67, 803, 273, 1140, 18, 803, 18, 5113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 3264, 12, 2890, 4672, 2552, 3988, 775, 30, 468, 1206, 7676, 2023, 1279, 67, 803, 273, 25611, 12, 2890, 18, 803, 63, 21, 30, 5717, 2417, 67, 803, 273, 1140, 18, 803, 18, 5113...
generator.index_text(smart_str(value), field.weight, prefix)
value = smart_str(value) generator.index_text(value, field.weight, prefix)
def update(self, documents=None, after_index=None, per_page=10000, commit_each=False): """ Update the database with the documents. There are some default value and terms in a document: * Values: 1. Used to store the ID of the document 2. Store the model of the object (in the string format, like "project.app.model") 3. ...
2505f2b4c7572e4c38568341fa3e82e74ca5c128 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4645/2505f2b4c7572e4c38568341fa3e82e74ca5c128/indexer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 7429, 33, 7036, 16, 1839, 67, 1615, 33, 7036, 16, 1534, 67, 2433, 33, 23899, 16, 3294, 67, 13798, 33, 8381, 4672, 3536, 2315, 326, 2063, 598, 326, 7429, 18, 6149, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 7429, 33, 7036, 16, 1839, 67, 1615, 33, 7036, 16, 1534, 67, 2433, 33, 23899, 16, 3294, 67, 13798, 33, 8381, 4672, 3536, 2315, 326, 2063, 598, 326, 7429, 18, 6149, ...
u = User(user_name='test', email_address='test@fedoraproject.org', display_name='Test', password='test') u.addGroup(Group.by_group_name('user')) test2 = User(user_name='test2', email_address='test2@fedoraproject.org', display_name='Test2', password='test') test2.addGroup(Group.by_group_name('user')) a = User(user_name=...
a = User( user_name='admin', email_address='admin@example.com', display_name='Admin', password='admin' ) a.addGroup(Group.by_group_name('user')) a.addGroup(Group.by_group_name('sysadmin'))
def add_test_groups_and_users(): Group(group_name='user', display_name='User') Group(group_name='sysadmin', display_name='Admin') u = User(user_name='test', email_address='test@fedoraproject.org', display_name='Test', password='test') u.addGroup(Group.by_group_name('user')) test2 = User(user_name='test2', email_address...
5df20837aa4d6cb0071169edcb38f7b1d5a5a930 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13031/5df20837aa4d6cb0071169edcb38f7b1d5a5a930/initial.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 3813, 67, 4650, 67, 464, 67, 5577, 13332, 3756, 12, 1655, 67, 529, 2218, 1355, 2187, 2562, 67, 529, 2218, 1299, 6134, 3756, 12, 1655, 67, 529, 2218, 9499, 3666, 2187, 2562, 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, 527, 67, 3813, 67, 4650, 67, 464, 67, 5577, 13332, 3756, 12, 1655, 67, 529, 2218, 1355, 2187, 2562, 67, 529, 2218, 1299, 6134, 3756, 12, 1655, 67, 529, 2218, 9499, 3666, 2187, 2562, 67...
def infoJobCB(self):
def infoJobCB(self, in_background):
def infoJobCB(self): capacity = 1 used = 0 infotext = "" mediatype = "" for line in self.mediuminfo: if line.find("Mounted Media:") > -1: mediatype = line.rsplit(',',1)[1][1:-1] if mediatype.find("RW") > 0: self.formattable = True else: self.formattable = False if line.find("Legacy lead-out at:") > -1: used = int(line....
1d03e7fbcfe2924ef9733d35fa160c62f3ea8555 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6652/1d03e7fbcfe2924ef9733d35fa160c62f3ea8555/DVDToolbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1123, 2278, 8876, 12, 2890, 16, 316, 67, 9342, 4672, 7519, 273, 404, 1399, 273, 374, 8286, 352, 408, 273, 1408, 25381, 273, 1408, 364, 980, 316, 365, 18, 19011, 1376, 30, 309, 980, 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, 1123, 2278, 8876, 12, 2890, 16, 316, 67, 9342, 4672, 7519, 273, 404, 1399, 273, 374, 8286, 352, 408, 273, 1408, 25381, 273, 1408, 364, 980, 316, 365, 18, 19011, 1376, 30, 309, 980, 18,...
return
return True
def restore_item(item, frame): global fles if not item.frames_info.has_key(frame): return modif = item.frames_info[frame].copy() if modif.has_key('delete'): item.canvas_item.get_property("parent").destroy() fles.framelist.remove(item) return if (modif.has_key('create') or (fles.gcomprisBoard.mode == 'draw')): if modif....
706fa09d626e044d7e0c6386807d3afa21cefb88 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/706fa09d626e044d7e0c6386807d3afa21cefb88/anim.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5217, 67, 1726, 12, 1726, 16, 2623, 4672, 2552, 284, 1040, 309, 486, 761, 18, 10278, 67, 1376, 18, 5332, 67, 856, 12, 3789, 4672, 327, 1053, 681, 430, 273, 761, 18, 10278, 67, 1376, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5217, 67, 1726, 12, 1726, 16, 2623, 4672, 2552, 284, 1040, 309, 486, 761, 18, 10278, 67, 1376, 18, 5332, 67, 856, 12, 3789, 4672, 327, 1053, 681, 430, 273, 761, 18, 10278, 67, 1376, ...
self.close()
try: data = self.socket.recv(1024, socket.MSG_OOB) self.in_buffer.append(data) except: self.log("Can't handle OOB data.") self.handle_close()
def handle_expt(self): # I didn't well understood when and why it is called and I'm not sure what # could I do here. asyncore documentation says: # > Called when there is out of band (OOB) data for a socket connection. # > This will almost never happen, as OOB is tenuously supported and rarely used. # OOB? How do I hav...
3b393a7e366f846f71a2da059e75a45c755e9f2d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3782/3b393a7e366f846f71a2da059e75a45c755e9f2d/FTPServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 338, 337, 12, 2890, 4672, 468, 467, 10242, 1404, 5492, 31727, 4773, 1347, 471, 11598, 518, 353, 2566, 471, 467, 17784, 486, 3071, 4121, 468, 3377, 467, 741, 2674, 18, 4326, 479...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 338, 337, 12, 2890, 4672, 468, 467, 10242, 1404, 5492, 31727, 4773, 1347, 471, 11598, 518, 353, 2566, 471, 467, 17784, 486, 3071, 4121, 468, 3377, 467, 741, 2674, 18, 4326, 479...
cdrom_type = forms.ChoiceField(label="CD-ROM Drive", choices=(('none', 'Disabled'),
cdrom_type = forms.ChoiceField(label="CD-ROM Drive", choices=(('none', 'Disabled'),
def clean(self): data = self.cleaned_data owner = self.owner if owner: if isinstance(owner, (Organization,)): grantee = owner.group else: grantee = owner.user data['grantee'] = grantee # superusers bypass all permission and quota checks if not self.user.is_superuser and owner: msg = None if isinstance(owner, (Organi...
e6159c881bbe0521f32dddc3af133da80064a4cd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10509/e6159c881bbe0521f32dddc3af133da80064a4cd/virtual_machine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 12, 2890, 4672, 501, 273, 365, 18, 6200, 329, 67, 892, 225, 3410, 273, 365, 18, 8443, 309, 3410, 30, 309, 1549, 12, 8443, 16, 261, 8113, 16, 3719, 30, 15889, 22579, 273, 3410, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 12, 2890, 4672, 501, 273, 365, 18, 6200, 329, 67, 892, 225, 3410, 273, 365, 18, 8443, 309, 3410, 30, 309, 1549, 12, 8443, 16, 261, 8113, 16, 3719, 30, 15889, 22579, 273, 3410, ...
handle = DLLCache[ matcher.groupdict()[ 'dllname' ] ] result = win32api.LoadString( handle, int( matcher.groupdict()[ 'index' ] ) )
handle = DLLCache[matcher.groupdict()['dllname']] result = win32api.LoadString(handle, int(matcher.groupdict()['index']))
def resolveMUITimeZone( spec ): """Resolve a multilingual user interface resource for the time zone name >>> result = resolveMUITimeZone( '@tzres.dll,-110' ) >>> expectedResultType = [type(None),unicode][sys.getwindowsversion() >= (6,)] >>> type( result ) is expectedResultType True spec should be of the format @path,-...
c68039a3f4004e3fe46621e4c6512fd2401398fc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/677/c68039a3f4004e3fe46621e4c6512fd2401398fc/win32timezone.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 49, 5370, 16760, 12, 857, 262, 30, 3536, 8460, 279, 1778, 25853, 729, 1560, 1058, 364, 326, 813, 4157, 508, 4080, 563, 273, 2245, 49, 5370, 16760, 12, 4622, 12994, 455, 18, 27670, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 49, 5370, 16760, 12, 857, 262, 30, 3536, 8460, 279, 1778, 25853, 729, 1560, 1058, 364, 326, 813, 4157, 508, 4080, 563, 273, 2245, 49, 5370, 16760, 12, 4622, 12994, 455, 18, 27670, ...
if S:
if S and not (S in ['sage', 'python']):
def _get_last_identifier(self, s): t = support.get_rightmost_identifier(s) S = self.system() if S: t = S + '.' + t return t
ad4ae43fd654264cc815a2e246cd6aefc523a915 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/ad4ae43fd654264cc815a2e246cd6aefc523a915/worksheet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 2722, 67, 5644, 12, 2890, 16, 272, 4672, 268, 273, 2865, 18, 588, 67, 4083, 10329, 67, 5644, 12, 87, 13, 348, 273, 365, 18, 4299, 1435, 565, 309, 348, 471, 486, 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, 389, 588, 67, 2722, 67, 5644, 12, 2890, 16, 272, 4672, 268, 273, 2865, 18, 588, 67, 4083, 10329, 67, 5644, 12, 87, 13, 348, 273, 365, 18, 4299, 1435, 565, 309, 348, 471, 486, 261, ...
moenergies.append(float(temp[3]))
moenergies.append(utils.convertor(float(temp[2]), "hartree", "eV"))
def parse(self, fupdate=0.05, cupdate=0.002): """Extract information from the logfile.""" inputfile = open(self.filename, "r") if self.progress: inputfile.seek(0, 2) #go to end of file nstep = inputfile.tell() inputfile.seek(0) self.progress.initialize(nstep) oldstep = 0
7ec870eb223db3001163e943c63ec9756821e843 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8167/7ec870eb223db3001163e943c63ec9756821e843/gamessukparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 284, 2725, 33, 20, 18, 6260, 16, 276, 2725, 33, 20, 18, 24908, 4672, 3536, 4976, 1779, 628, 326, 15204, 12123, 810, 768, 273, 1696, 12, 2890, 18, 3459, 16, 315, 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, 1109, 12, 2890, 16, 284, 2725, 33, 20, 18, 6260, 16, 276, 2725, 33, 20, 18, 24908, 4672, 3536, 4976, 1779, 628, 326, 15204, 12123, 810, 768, 273, 1696, 12, 2890, 18, 3459, 16, 315, 8...
self.b('const DBusGObjectInfo dbus_glib_%s%s_object_info = {'
self.b('static const DBusGObjectInfo _%s%s_object_info = {'
self.h('typedef struct _%s%sClass %s%sClass;' % (self.Prefix, node_name_mixed, self.Prefix, node_name_mixed))
97e8ab75641b309372fd2f3eabf91cd3ebb12082 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8150/97e8ab75641b309372fd2f3eabf91cd3ebb12082/glib-ginterface-gen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 365, 18, 76, 2668, 723, 536, 1958, 389, 9, 87, 9, 87, 797, 738, 87, 9, 87, 797, 4359, 738, 261, 2890, 18, 2244, 16, 756, 67, 529, 67, 19562, 16, 365, 18, 2244, 16, 756, 67, 529, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 365, 18, 76, 2668, 723, 536, 1958, 389, 9, 87, 9, 87, 797, 738, 87, 9, 87, 797, 4359, 738, 261, 2890, 18, 2244, 16, 756, 67, 529, 67, 19562, 16, 365, 18, 2244, 16, 756, 67, 529, 67, ...
c1_hash_key[int(residue_group.resseq)] = key c1_hash_xyz[int(residue_group.resseq)] = atom.xyz
c1_hash_key[residue_group.resseq_as_int()] = key c1_hash_xyz[residue_group.resseq_as_int()] = atom.xyz
def get_kin_lots(chain, pdbID=None, index=0, show_hydrogen=True): mc_atoms = ["N", "CA", "C", "O", "OXT", "P", "OP1", "OP2", "O5'", "C5'", "C4'", "O4'", "C1'", "C3'", "O3'", "C2'", "O2'"] mc_veclist = "" sc_veclist = "" mc_h_veclist = "" sc_h_veclist = "" ca_trace = "" virtual_bb = "" water_list = "" kin_out = "" color...
cf23624f960f6654c1080d039c5b085f6133a56c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/cf23624f960f6654c1080d039c5b085f6133a56c/validation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 15984, 67, 80, 6968, 12, 5639, 16, 10892, 734, 33, 7036, 16, 770, 33, 20, 16, 2405, 67, 18112, 24096, 33, 5510, 4672, 6108, 67, 14937, 273, 8247, 50, 3113, 315, 3587, 3113, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15984, 67, 80, 6968, 12, 5639, 16, 10892, 734, 33, 7036, 16, 770, 33, 20, 16, 2405, 67, 18112, 24096, 33, 5510, 4672, 6108, 67, 14937, 273, 8247, 50, 3113, 315, 3587, 3113, ...
synchronous.append((None, failure))
synchronous.append((None, fail))
def eb(failure): if cur: if getcurrent() is cur[0]: synchronous.append((None, failure)) else: failure.throwExceptionIntoGenerator(cur[0])
512b2eac768aa941bb19fa7abd6ef1e3780cbca3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10078/512b2eac768aa941bb19fa7abd6ef1e3780cbca3/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20371, 12, 12251, 4672, 309, 662, 30, 309, 336, 2972, 1435, 353, 662, 63, 20, 14542, 12209, 18, 6923, 12443, 7036, 16, 2321, 3719, 469, 30, 5166, 18, 12849, 503, 5952, 3908, 12, 1397, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20371, 12, 12251, 4672, 309, 662, 30, 309, 336, 2972, 1435, 353, 662, 63, 20, 14542, 12209, 18, 6923, 12443, 7036, 16, 2321, 3719, 469, 30, 5166, 18, 12849, 503, 5952, 3908, 12, 1397, ...