rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
(sb.get_offsets(),(ScrSize[0],ScrSize[1]-thick))))
(sb.get_scrolled(),(ScrSize[0],ScrSize[1]-thick))))
def examples(): """ Examples of how to use ezscroll. One is a scrollpane, the other is a scrollbar. The scrollpane handles some things like offsets, puts the scrollbars in a sprite group, and blits the world. If you just want one scrollbar, still may be easier to use ScrollPane and pass [S] or [E], etc. Closing window ...
ce829ee05f312063ba3f87e9a3d2b0c470044bdc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3807/ce829ee05f312063ba3f87e9a3d2b0c470044bdc/examples.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10991, 13332, 3536, 19830, 434, 3661, 358, 999, 8012, 12033, 18, 6942, 353, 279, 5532, 29009, 16, 326, 1308, 353, 279, 27123, 18, 1021, 5532, 29009, 7372, 2690, 9198, 3007, 8738, 16, 8200,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10991, 13332, 3536, 19830, 434, 3661, 358, 999, 8012, 12033, 18, 6942, 353, 279, 5532, 29009, 16, 326, 1308, 353, 279, 27123, 18, 1021, 5532, 29009, 7372, 2690, 9198, 3007, 8738, 16, 8200,...
ui.text(page, "You need to modify the ownership of " "htdocs/media/uploaded directory and all of its "
ui.text(page, "You need to modify the ownership of the " "\"htdocs/media/uploaded\" directory and all of its "
def show_finished(self): page = ui.page("The site has been installed", allow_back=False) ui.text(page, "The site has been installed in %s" % site.install_dir) ui.text(page, "Sample configuration files for web servers and " "cron are available in the conf/ directory.") ui.text(page, "You need to modify the ownership of ...
10e85e05bf571faacf70d94ca48a2ff614d26106 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1600/10e85e05bf571faacf70d94ca48a2ff614d26106/rbsite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 13527, 12, 2890, 4672, 1363, 273, 5915, 18, 2433, 2932, 1986, 2834, 711, 2118, 5876, 3113, 1699, 67, 823, 33, 8381, 13, 5915, 18, 955, 12, 2433, 16, 315, 1986, 2834, 711, 211...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 13527, 12, 2890, 4672, 1363, 273, 5915, 18, 2433, 2932, 1986, 2834, 711, 2118, 5876, 3113, 1699, 67, 823, 33, 8381, 13, 5915, 18, 955, 12, 2433, 16, 315, 1986, 2834, 711, 211...
tag.a('Builds Status', href=req.href.build(), accesskey=5,
tag.a('Build Status', href=req.href.build(), accesskey=5,
def get_navigation_items(self, req): """Return the navigation item for access the build status overview from the Trac navigation bar.""" if 'BUILD_VIEW' in req.perm: status = '' if BuildMaster(self.env).quick_status: repos = self.env.get_repository(req.authname) for config in BuildConfig.select(self.env, include_inacti...
590688826590771df00340251172c12e618808b5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4547/590688826590771df00340251172c12e618808b5/web_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 19537, 67, 3319, 12, 2890, 16, 1111, 4672, 3536, 990, 326, 10394, 761, 364, 2006, 326, 1361, 1267, 18471, 628, 326, 2197, 71, 10394, 4653, 12123, 309, 296, 20215, 67, 12145, 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, 336, 67, 19537, 67, 3319, 12, 2890, 16, 1111, 4672, 3536, 990, 326, 10394, 761, 364, 2006, 326, 1361, 1267, 18471, 628, 326, 2197, 71, 10394, 4653, 12123, 309, 296, 20215, 67, 12145, 11,...
sage: L = K.galois_closure(); L
sage: L.<a1> = K.galois_closure(); L
def embeddings(self, K): """ Compute all field embeddings of self into the field K (which need not even be a number field, e.g., it could be the complex numbers). This will return an identical result when given K as input again.
05f3a2a8ba9f83942ded7f49b8c102545c57b7b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/05f3a2a8ba9f83942ded7f49b8c102545c57b7b9/number_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4724, 24715, 12, 2890, 16, 1475, 4672, 3536, 8155, 777, 652, 4724, 24715, 434, 365, 1368, 326, 652, 1475, 261, 12784, 1608, 486, 5456, 506, 279, 1300, 652, 16, 425, 18, 75, 12990, 518, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4724, 24715, 12, 2890, 16, 1475, 4672, 3536, 8155, 777, 652, 4724, 24715, 434, 365, 1368, 326, 652, 1475, 261, 12784, 1608, 486, 5456, 506, 279, 1300, 652, 16, 425, 18, 75, 12990, 518, ...
must be given to `dont_wait` argument.
must be given for the `dont_wait` argument.
def shut_down_selenium_server(host='localhost', port=4444): """Shuts down the Selenium Server. `host` and `port` define where the location of Selenium Server. Does not fail even if the Selenium Server is not running. """ try: selenium(host, port, '', '').do_command('shutDownSeleniumServer', []) except socket.error: p...
90adda39a04f2fa5c1bf20ca4d21ff1a59a89474 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2148/90adda39a04f2fa5c1bf20ca4d21ff1a59a89474/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9171, 67, 2378, 67, 1786, 17327, 67, 3567, 12, 2564, 2218, 13014, 2187, 1756, 33, 6334, 6334, 4672, 3536, 1555, 12940, 2588, 326, 4352, 17327, 3224, 18, 225, 1375, 2564, 68, 471, 1375, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9171, 67, 2378, 67, 1786, 17327, 67, 3567, 12, 2564, 2218, 13014, 2187, 1756, 33, 6334, 6334, 4672, 3536, 1555, 12940, 2588, 326, 4352, 17327, 3224, 18, 225, 1375, 2564, 68, 471, 1375, 6...
if not c.repo_info: h.flash(_('%s repository is not mapped to db perhaps' ' it was created or renamed from the filesystem' ' please run the application again' ' in order to rescan repositories') % repo_name, category='error') return redirect(url('repos'))
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_model.get_by_repo_name(repo_name) r = ScmModel().get(repo_name)
b2a76f1191016d06acb1ff298be2e044e913c83e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4230/b2a76f1191016d06acb1ff298be2e044e913c83e/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, ...
known_return_types = [ "int", "const_char_ptr", "xmlDocPtr", "xmlNodePtr", "xmlChar_ptr", "const_xmlChar_ptr", "void_ptr", "xmlXPathObjectPtr", "xmlCharEncoding", "long", "const_void_ptr", "double", "xmlTextReaderPtr", "xmlDictPtr", ]
known_return_types = []
def is_known_param_type(name): for type in known_param_types: if type == name: return 1 return 0
34099b403124601d9cd4bde0846a637bf8952cea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12659/34099b403124601d9cd4bde0846a637bf8952cea/gentest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 2994, 67, 891, 67, 723, 12, 529, 4672, 364, 618, 316, 4846, 67, 891, 67, 2352, 30, 309, 618, 422, 508, 30, 327, 404, 327, 374, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 2994, 67, 891, 67, 723, 12, 529, 4672, 364, 618, 316, 4846, 67, 891, 67, 2352, 30, 309, 618, 422, 508, 30, 327, 404, 327, 374, 225, 2, -100, -100, -100, -100, -100, -100, ...
route = data.registration.route
route = data.route
def _NH_SIPAccountRegistrationDidFail(self, account, data): self.boring_messages.clear() if data.registration is not None: route = data.registration.route if data.next_route: next_route = data.next_route next_route = 'Trying next SIP route %s:%d;transport=%s.' % (next_route.address, next_route.port, next_route.transpor...
5f0274632adf98eacd50f09013c2dd27571ec45e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/5f0274632adf98eacd50f09013c2dd27571ec45e/sip_session2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 50, 44, 67, 17739, 3032, 7843, 18250, 3754, 12, 2890, 16, 2236, 16, 501, 4672, 365, 18, 70, 6053, 67, 6833, 18, 8507, 1435, 309, 501, 18, 14170, 353, 486, 599, 30, 1946, 273, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 50, 44, 67, 17739, 3032, 7843, 18250, 3754, 12, 2890, 16, 2236, 16, 501, 4672, 365, 18, 70, 6053, 67, 6833, 18, 8507, 1435, 309, 501, 18, 14170, 353, 486, 599, 30, 1946, 273, 50...
app_config_id=c.app.config._id))
app_config_id=c.app.config._id)).all()
def update_tickets(self, **post_data): tickets = Ticket.query.find(dict( _id={'$in':[ObjectId(id) for id in post_data['selected'].split(',')]}, app_config_id=c.app.config._id)) for ticket in tickets: require(has_artifact_access('write', ticket))
533650010b96d51a2aee832ef79c21f38abf2081 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1036/533650010b96d51a2aee832ef79c21f38abf2081/tracker_main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 6470, 2413, 12, 2890, 16, 2826, 2767, 67, 892, 4672, 24475, 273, 22023, 18, 2271, 18, 4720, 12, 1576, 12, 389, 350, 5899, 27521, 267, 4278, 63, 16661, 12, 350, 13, 364, 612, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 6470, 2413, 12, 2890, 16, 2826, 2767, 67, 892, 4672, 24475, 273, 22023, 18, 2271, 18, 4720, 12, 1576, 12, 389, 350, 5899, 27521, 267, 4278, 63, 16661, 12, 350, 13, 364, 612, ...
def _getCycles(self, index, cycleSets=None):
def _getNormalizedCycle(self, cycle): if len(cycle) == 0: return cycle min = 1<<30 minIndex = None for i in xrange(len(cycle)): elem = cycle[i] if elem < min: min = elem minIndex = i return cycle[minIndex:] + cycle[:minIndex] def _getCycles(self, index, uniqueCycleSets=None):
def _getCycles(self, index, cycleSets=None): # detect garbage cycles for a particular item of garbage assert self.notify.debugCall() # returns list of lists, sublists are garbage reference cycles cycles = [] # sets of cycle members, to avoid duplicates if cycleSets is None: cycleSets = [] stateStack = Stack() rootId = ...
0131783182b03e276b4eddac9e42891ddafb28c3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7242/0131783182b03e276b4eddac9e42891ddafb28c3/GarbageReport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 15577, 13279, 12, 2890, 16, 8589, 4672, 377, 309, 562, 12, 13946, 13, 422, 374, 30, 327, 8589, 1131, 273, 404, 17685, 5082, 1131, 1016, 273, 599, 364, 277, 316, 12314, 12, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 15577, 13279, 12, 2890, 16, 8589, 4672, 377, 309, 562, 12, 13946, 13, 422, 374, 30, 327, 8589, 1131, 273, 404, 17685, 5082, 1131, 1016, 273, 599, 364, 277, 316, 12314, 12, 18...
1/0
1./0
def f(): 1/0
bb86314d227aa1b695b7c968a2cdf42146cacf29 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/bb86314d227aa1b695b7c968a2cdf42146cacf29/test_profilehooks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 13332, 404, 19, 20, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 13332, 404, 19, 20, 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...
gLogger.info( "Executing action", "(%s:%s)%s %s( %s )" % ( self.serviceInfoDict[ 'clientAddress' ][0],
else: argsString = "\n\t%s\n" % ",\n\t".join( [ str( arg )[:50] for arg in args ] ) gLogger.info( "Executing action", "(%s:%s)%s %s(%s)" % ( self.serviceInfoDict[ 'clientAddress' ][0],
def __logRemoteQuery( self, method, args ): """ Log the contents of a remote query
d617f0ad9f2d75aeef80b6e3b19c7cb464301beb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/d617f0ad9f2d75aeef80b6e3b19c7cb464301beb/RequestHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1330, 5169, 1138, 12, 365, 16, 707, 16, 833, 262, 30, 3536, 1827, 326, 2939, 434, 279, 2632, 843, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1330, 5169, 1138, 12, 365, 16, 707, 16, 833, 262, 30, 3536, 1827, 326, 2939, 434, 279, 2632, 843, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
- ``bound (default 1024)`` - int: highest power to test.
- ``bound (default: 1024)`` - int: highest power to test.
def is_pseudoprime_small_power(n, bound=1024, get_data=False): r""" Return True if `n` is a small power of a pseudoprime, and False otherwise. The result is *NOT* proven correct - *this IS a pseudo-primality test!*. If `get_data` is set to true and `n = p^d`, for a pseudoprime `p` and power `d`, return [(p, d)]. IN...
77a54f69e28a7333c3cd3eba5214f2a668319f2c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/77a54f69e28a7333c3cd3eba5214f2a668319f2c/arith.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 84, 23715, 556, 86, 494, 67, 12019, 67, 12238, 12, 82, 16, 2489, 33, 2163, 3247, 16, 336, 67, 892, 33, 8381, 4672, 436, 8395, 2000, 1053, 309, 1375, 82, 68, 353, 279, 5264, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 84, 23715, 556, 86, 494, 67, 12019, 67, 12238, 12, 82, 16, 2489, 33, 2163, 3247, 16, 336, 67, 892, 33, 8381, 4672, 436, 8395, 2000, 1053, 309, 1375, 82, 68, 353, 279, 5264, ...
""" download the file inline (or return the tag for images) """
""" download the file inline or as an attachment """
def index_html(self, REQUEST, RESPONSE): """ download the file inline (or return the tag for images) """ field = self.getPrimaryField() if IATBlobImage.providedBy(self): return field.index_html(self, REQUEST, RESPONSE) else: return field.download(self, REQUEST, RESPONSE)
b60643343a59607e71ff09118becce2d20dbfd61 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12182/b60643343a59607e71ff09118becce2d20dbfd61/content.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 67, 2620, 12, 2890, 16, 12492, 16, 20645, 4672, 3536, 4224, 326, 585, 6370, 578, 487, 392, 6042, 3536, 652, 273, 365, 18, 588, 6793, 974, 1435, 309, 467, 789, 9405, 2040, 18, 2920...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 67, 2620, 12, 2890, 16, 12492, 16, 20645, 4672, 3536, 4224, 326, 585, 6370, 578, 487, 392, 6042, 3536, 652, 273, 365, 18, 588, 6793, 974, 1435, 309, 467, 789, 9405, 2040, 18, 2920...
self.close_connection_for_url('https://participatoryculture.org/')
self.close_connection_for_url('https://pculture.org/')
def test_counts(self): self.add_request("http://participatoryculture.org/") self.add_request("http://participatoryculture.org/democracytest/normalpage.txt") self.add_request("https://participatoryculture.org/") self.check_counts(3, 0, 0) self.finish_connection_for_url('http://participatoryculture.org') self.check_count...
e30788a9dacabc7a8a0d8e1a962216cf42816d5e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/e30788a9dacabc7a8a0d8e1a962216cf42816d5e/httpclienttest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8008, 12, 2890, 4672, 365, 18, 1289, 67, 2293, 2932, 2505, 2207, 2680, 24629, 8452, 71, 29923, 18, 3341, 4898, 13, 365, 18, 1289, 67, 2293, 2932, 2505, 2207, 2680, 24629, 8452,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8008, 12, 2890, 4672, 365, 18, 1289, 67, 2293, 2932, 2505, 2207, 2680, 24629, 8452, 71, 29923, 18, 3341, 4898, 13, 365, 18, 1289, 67, 2293, 2932, 2505, 2207, 2680, 24629, 8452,...
class server(ForkingMixIn, WSGIServer): pass
def make_server(host, port, app=None, threaded=False, processes=1, request_handler=None): """Create a new wsgiref server that is either threaded, or forks or just processes one request after another. """ if not have_wsgiref: raise RuntimeError('All the Werkzeug serving features require ' 'an installed wsgiref library.'...
59a8fc076a10ca1b191cfb0a00dd128bf39d0337 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14437/59a8fc076a10ca1b191cfb0a00dd128bf39d0337/serving.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 3567, 12, 2564, 16, 1756, 16, 595, 33, 7036, 16, 286, 20528, 33, 8381, 16, 8488, 33, 21, 16, 590, 67, 4176, 33, 7036, 4672, 3536, 1684, 279, 394, 341, 1055, 577, 74, 1438, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 3567, 12, 2564, 16, 1756, 16, 595, 33, 7036, 16, 286, 20528, 33, 8381, 16, 8488, 33, 21, 16, 590, 67, 4176, 33, 7036, 4672, 3536, 1684, 279, 394, 341, 1055, 577, 74, 1438, ...
PySCLang.setSCLogSink(WriteInLogWindow)
if(os.name == 'nt'): PySCLang.setSCLogSink(WriteInLogWindow) else: PySCLang.setSCLogSink(PostText)
def OnInit(self): self.config = wx.Config()
b5ea30b57d5075731a30ad7ec9060344402ec9c9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14712/b5ea30b57d5075731a30ad7ec9060344402ec9c9/Psycollider.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 2570, 12, 2890, 4672, 365, 18, 1425, 273, 7075, 18, 809, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 2570, 12, 2890, 4672, 365, 18, 1425, 273, 7075, 18, 809, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
fin = open(self.tmpin, 'rb')
fin = open(self.tmpin, 'r')
def test_encode(self): try: fin = open(self.tmpin, 'wb') fin.write(plaintext) fin.close()
3fa5e6ee4527219a9351413ac6ba425be8ea5dd8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3fa5e6ee4527219a9351413ac6ba425be8ea5dd8/test_uu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3015, 12, 2890, 4672, 775, 30, 574, 273, 1696, 12, 2890, 18, 5645, 267, 16, 296, 9464, 6134, 574, 18, 2626, 12, 412, 10133, 13, 574, 18, 4412, 1435, 2, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 3015, 12, 2890, 4672, 775, 30, 574, 273, 1696, 12, 2890, 18, 5645, 267, 16, 296, 9464, 6134, 574, 18, 2626, 12, 412, 10133, 13, 574, 18, 4412, 1435, 2, -100, -100, -100, -1...
labeled,nr_objs=ndimage.label(dnamasks) positives=zeros(nr_objs+1,numpy.bool)
positives = np.zeros(nr_objs+1,numpy.bool)
def dna_size_shape(dnamasks,scale,minarea,maxarea,minroundness): ''' positives = dna_size_shape(dnamasks,scale,minarea,maxarea,minroundness) Only accepts DNA objects that fulfill the following criterion: * are greater than minarea * are smaller than maxarea * are rounder than minroundness ''' labeled,nr_objs=ndimage....
b661ac13250f72232d0c217ee6ef04a767cd4c1b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12199/b661ac13250f72232d0c217ee6ef04a767cd4c1b/filters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31702, 67, 1467, 67, 4867, 12, 5176, 301, 835, 87, 16, 5864, 16, 1154, 5036, 16, 1896, 5036, 16, 1154, 2260, 4496, 4672, 9163, 949, 28737, 273, 31702, 67, 1467, 67, 4867, 12, 5176, 301...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31702, 67, 1467, 67, 4867, 12, 5176, 301, 835, 87, 16, 5864, 16, 1154, 5036, 16, 1896, 5036, 16, 1154, 2260, 4496, 4672, 9163, 949, 28737, 273, 31702, 67, 1467, 67, 4867, 12, 5176, 301...
s.write('<div id="journal_mtime">')
s.write('<div class="journal_mod_time">')
def print_entry(s, entry_id, headers, data, options = True, show_meta = False, edit = False, preview=False): if not headers.has_key('title'): headers['title'] = entry_id if not headers.has_key('author'): headers['author'] = 'unknown'
7b56a4dc8ff9532aacaada9da0c162cc61d23feb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5039/7b56a4dc8ff9532aacaada9da0c162cc61d23feb/journal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 4099, 12, 87, 16, 1241, 67, 350, 16, 1607, 16, 501, 16, 702, 273, 1053, 16, 2405, 67, 3901, 273, 1083, 16, 3874, 273, 1083, 16, 10143, 33, 8381, 4672, 309, 486, 1607, 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, 1172, 67, 4099, 12, 87, 16, 1241, 67, 350, 16, 1607, 16, 501, 16, 702, 273, 1053, 16, 2405, 67, 3901, 273, 1083, 16, 3874, 273, 1083, 16, 10143, 33, 8381, 4672, 309, 486, 1607, 18, ...
def search(self, cr, user, args, offset=0, limit=None, order=None, context=None, count=False):
def _search(self, cr, user, args, offset=0, limit=None, order=None, context=None, count=False, access_rights_uid=None):
def search(self, cr, user, args, offset=0, limit=None, order=None, context=None, count=False): if not context: context = {}
fb1b59cc7592103b77e5eba54e06b0470f245930 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/fb1b59cc7592103b77e5eba54e06b0470f245930/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3072, 12, 2890, 16, 4422, 16, 729, 16, 833, 16, 1384, 33, 20, 16, 1800, 33, 7036, 16, 1353, 33, 7036, 16, 819, 33, 7036, 16, 1056, 33, 8381, 16, 2006, 67, 23700, 67, 1911, 33,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3072, 12, 2890, 16, 4422, 16, 729, 16, 833, 16, 1384, 33, 20, 16, 1800, 33, 7036, 16, 1353, 33, 7036, 16, 819, 33, 7036, 16, 1056, 33, 8381, 16, 2006, 67, 23700, 67, 1911, 33,...
attrs = [(k.lower(), v) for k, v in attrs]
attrs = dict([(k.lower(), v) for k, v in attrs]).items()
def normalize_attrs(self, attrs): # utility method to be called by descendants attrs = [(k.lower(), v) for k, v in attrs] attrs = [(k, k in ('rel', 'type') and v.lower() or v) for k, v in attrs] return attrs
44482af2baebba8741223b8967e4efeaf8365c45 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/44482af2baebba8741223b8967e4efeaf8365c45/feedparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3883, 67, 7039, 12, 2890, 16, 3422, 4672, 468, 12788, 707, 358, 506, 2566, 635, 18039, 3422, 273, 2065, 3816, 12, 79, 18, 8167, 9334, 331, 13, 364, 417, 16, 331, 316, 3422, 65, 2934, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3883, 67, 7039, 12, 2890, 16, 3422, 4672, 468, 12788, 707, 358, 506, 2566, 635, 18039, 3422, 273, 2065, 3816, 12, 79, 18, 8167, 9334, 331, 13, 364, 417, 16, 331, 316, 3422, 65, 2934, ...
if len(hlines) != 1 + max([box[1] for box in boxes_dim]) \ or len(vlines) != 4 + sum([box[0] for box in boxes_dim]):
h_expected = 1 + max([box[1] for box in boxes_dim]) v_expected = 4 + sum([box[0] for box in boxes_dim]) if len(vlines) != v_expected:
def cell_corners(hlines, vlines, boxes_dim): if len(hlines) != 1 + max([box[1] for box in boxes_dim]) \ or len(vlines) != 4 + sum([box[0] for box in boxes_dim]): return [] corner_matrixes = [] vini = 1 for box_dim in boxes_dim: width, height = box_dim corners = [] for i in range(0, height + 1): cpart = [] corners.appen...
eeeb85797ac0ab6637c0f81ef25016c825bed99e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12267/eeeb85797ac0ab6637c0f81ef25016c825bed99e/imageproc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2484, 67, 3850, 9646, 12, 76, 3548, 16, 331, 3548, 16, 14356, 67, 3509, 4672, 366, 67, 3825, 273, 404, 397, 943, 3816, 2147, 63, 21, 65, 364, 3919, 316, 14356, 67, 3509, 5717, 331, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2484, 67, 3850, 9646, 12, 76, 3548, 16, 331, 3548, 16, 14356, 67, 3509, 4672, 366, 67, 3825, 273, 404, 397, 943, 3816, 2147, 63, 21, 65, 364, 3919, 316, 14356, 67, 3509, 5717, 331, 6...
boom
Traceback (most recent call last): ... TypeError
#def _singular_(self, singular):
f489bb6b1c9fe3c89f83352d227e6497ed9e9961 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/f489bb6b1c9fe3c89f83352d227e6497ed9e9961/constants.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 536, 389, 17835, 67, 12, 2890, 16, 10048, 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,...
[ 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, 468, 536, 389, 17835, 67, 12, 2890, 16, 10048, 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, ...
return self._round_up(prec)
return 1 elif _all_zeros(self._int, prec): return 0
def _round_half_up(self, prec): """Rounds 5 up (away from 0)""" if self._int[prec] in '56789': return self._round_up(prec) else: return self._round_down(prec)
291ea60bec6861615ac3aedcb91a7d6f3db03771 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/291ea60bec6861615ac3aedcb91a7d6f3db03771/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2260, 67, 20222, 67, 416, 12, 2890, 16, 13382, 4672, 3536, 54, 9284, 1381, 731, 261, 26718, 628, 374, 15574, 309, 365, 6315, 474, 63, 4036, 65, 316, 296, 20277, 4278, 327, 404, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2260, 67, 20222, 67, 416, 12, 2890, 16, 13382, 4672, 3536, 54, 9284, 1381, 731, 261, 26718, 628, 374, 15574, 309, 365, 6315, 474, 63, 4036, 65, 316, 296, 20277, 4278, 327, 404, 13...
print 'Error: "%s" does not contain = and therefore cannot be a dimension re-assignment. Dimension reassignments must be specified as OLDDIMENSIONNAME=NEWDIMENSIONNAME.' % assign
print 'Error: "%s" does not contain = and therefore cannot be a dimension reassignment. Dimension reassignments must be specified as OLDDIMENSIONNAME=NEWDIMENSIONNAME.' % assign
def newexpression(option, opt_str, value, parser): if parser.values.lastsource is None: raise optparse.OptionValueError('%s must be preceded by a -s/--source option.' % option) if not isinstance(value,tuple): value = (None,value) parser.values.expressions.append((value[0],parser.values.lastsource,value[1]))
0c4d467cfa16801c0b07902461d1ce0d5376baf9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/383/0c4d467cfa16801c0b07902461d1ce0d5376baf9/multiplot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 8692, 12, 3482, 16, 2153, 67, 701, 16, 460, 16, 2082, 4672, 309, 2082, 18, 2372, 18, 2722, 3168, 353, 599, 30, 1002, 2153, 2670, 18, 13366, 668, 29909, 87, 1297, 506, 29953, 635, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 8692, 12, 3482, 16, 2153, 67, 701, 16, 460, 16, 2082, 4672, 309, 2082, 18, 2372, 18, 2722, 3168, 353, 599, 30, 1002, 2153, 2670, 18, 13366, 668, 29909, 87, 1297, 506, 29953, 635, ...
self.assert_(set(self._box.list_folders()) == set(('two', 'three')))
self.assertEqual(set(self._box.list_folders()), set(('two', 'three')))
def test_add_and_remove_folders(self): # Delete folders self._box.add_folder('one') self._box.add_folder('two') self.assertEqual(len(self._box.list_folders()), 2) self.assert_(set(self._box.list_folders()) == set(('one', 'two'))) self._box.remove_folder('one') self.assertEqual(len(self._box.list_folders()), 1) self.ass...
ea8344797e1a0ebd0b419ce14e16ab25af771fcc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/ea8344797e1a0ebd0b419ce14e16ab25af771fcc/test_mailbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1289, 67, 464, 67, 4479, 67, 16064, 12, 2890, 4672, 468, 2504, 9907, 365, 6315, 2147, 18, 1289, 67, 5609, 2668, 476, 6134, 365, 6315, 2147, 18, 1289, 67, 5609, 2668, 15415, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1289, 67, 464, 67, 4479, 67, 16064, 12, 2890, 4672, 468, 2504, 9907, 365, 6315, 2147, 18, 1289, 67, 5609, 2668, 476, 6134, 365, 6315, 2147, 18, 1289, 67, 5609, 2668, 15415, 6...
print "revealCreatures for", self, cnl
def revealCreatures(self, cnl): """cnl is a list of creature names""" print "revealCreatures for", self, cnl if ((not cnl) or (superset(getCreatureNames(self.getCertainCreatures()), cnl) and (self.allDescendentsCertain()))): print "no new information, exiting" return
d3360650260167e99d819d46c099993d6e0f1f9e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3755/d3360650260167e99d819d46c099993d6e0f1f9e/predictsplits.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 283, 24293, 1996, 2790, 12, 2890, 16, 6227, 80, 4672, 3536, 10305, 80, 353, 279, 666, 434, 1519, 1231, 1257, 8395, 309, 14015, 902, 6227, 80, 13, 578, 261, 2859, 21686, 12, 588, 1996, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 283, 24293, 1996, 2790, 12, 2890, 16, 6227, 80, 4672, 3536, 10305, 80, 353, 279, 666, 434, 1519, 1231, 1257, 8395, 309, 14015, 902, 6227, 80, 13, 578, 261, 2859, 21686, 12, 588, 1996, ...
rows = __table_top(num_tables, num_answers)
rows = __table_top(num_tables, num_answers, compact)
def create_answer_table(num_questions, num_answers, model, num_tables = 0): """Returns a string with the answer tables of the asnwer sheet. Tables are LaTeX-formatted. 'num_questions' specifies the number of questions of the exam. 'num_answers' specifies the number of answers per question. 'num_tables' (optional) spec...
3266ab2a5a477efe7497af2db7fa11f3cd2e90d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12267/3266ab2a5a477efe7497af2db7fa11f3cd2e90d2/exammaker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 13490, 67, 2121, 12, 2107, 67, 9758, 16, 818, 67, 22340, 16, 938, 16, 818, 67, 9373, 273, 374, 4672, 3536, 1356, 279, 533, 598, 326, 5803, 4606, 434, 326, 12211, 2051, 6202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13490, 67, 2121, 12, 2107, 67, 9758, 16, 818, 67, 22340, 16, 938, 16, 818, 67, 9373, 273, 374, 4672, 3536, 1356, 279, 533, 598, 326, 5803, 4606, 434, 326, 12211, 2051, 6202, ...
print "servicelist is", self.servicelist
def firstRun(self): self.onShown.remove(self.firstRun) config.misc.initialchannelselection.value = False config.misc.initialchannelselection.save() print "servicelist is", self.servicelist self.switchChannelDown()
0ab1bf226b217ab6b446834bbc185a33a1d31425 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/0ab1bf226b217ab6b446834bbc185a33a1d31425/InfoBarGenerics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1122, 1997, 12, 2890, 4672, 365, 18, 265, 27042, 18, 4479, 12, 2890, 18, 3645, 1997, 13, 642, 18, 23667, 18, 6769, 4327, 10705, 18, 1132, 273, 1083, 642, 18, 23667, 18, 6769, 4327, 107...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1122, 1997, 12, 2890, 4672, 365, 18, 265, 27042, 18, 4479, 12, 2890, 18, 3645, 1997, 13, 642, 18, 23667, 18, 6769, 4327, 10705, 18, 1132, 273, 1083, 642, 18, 23667, 18, 6769, 4327, 107...
self.assert_([1,'user.create_vm'] in clusters)
self.assert_([cluster0.id,'user.create_vm'] in clusters)
def test_view_cluster_choices(self): """ Test retrieving list of clusters a user or usergroup has access to """ url = '/vm/add/choices/' Cluster.objects.all().delete() cluster0 = Cluster(hostname='user.create_vm', slug='user_create_vm') cluster0.save() cluster1 = Cluster(hostname='user.admin', slug='user_admin') cluste...
ca1881ba70a46cbf51fd87126fff358c5d5e5868 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10509/ca1881ba70a46cbf51fd87126fff358c5d5e5868/virtual_machine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1945, 67, 7967, 67, 11937, 12, 2890, 4672, 3536, 7766, 17146, 666, 434, 9566, 279, 729, 578, 729, 1655, 711, 2006, 358, 3536, 880, 273, 1173, 3489, 19, 1289, 19, 11937, 2473, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1945, 67, 7967, 67, 11937, 12, 2890, 4672, 3536, 7766, 17146, 666, 434, 9566, 279, 729, 578, 729, 1655, 711, 2006, 358, 3536, 880, 273, 1173, 3489, 19, 1289, 19, 11937, 2473, ...
self.config['g_series'] = sanitiseFileName(cfile['file_seriesname'])+self.graphic_suffix[rel_type]+u'.%(ext)s' self.config['g_season'] = sanitiseFileName(cfile['file_seriesname'])+u' Season %(seasonnumber)d'+self.graphic_suffix[rel_type]+u'.%(ext)s'
self.config['g_series'] = self.sanitiseFileName(cfile['file_seriesname'])+self.graphic_suffix[rel_type]+u'.%(ext)s' self.config['g_season'] = self.sanitiseFileName(cfile['file_seriesname'])+u' Season %(seasonnumber)d'+self.graphic_suffix[rel_type]+u'.%(ext)s'
def _getTvdbGraphics(self, cfile, graphic_type, toprated=False, watched=False): '''Download either a TV Series Poster, Banner, Fanart or Episode image return None return full qualified path and filename of downloaded graphic ''' rel_type = graphic_type if graphic_type == u'coverfile': graphic_type = u'poster' elif grap...
d7120a7dc6b48c0861502d071fe4f1897fab913e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/d7120a7dc6b48c0861502d071fe4f1897fab913e/jamu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 56, 90, 1966, 17558, 12, 2890, 16, 276, 768, 16, 19548, 67, 723, 16, 358, 683, 690, 33, 8381, 16, 23135, 33, 8381, 4672, 9163, 7109, 3344, 279, 399, 58, 9225, 5616, 264, 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, 389, 588, 56, 90, 1966, 17558, 12, 2890, 16, 276, 768, 16, 19548, 67, 723, 16, 358, 683, 690, 33, 8381, 16, 23135, 33, 8381, 4672, 9163, 7109, 3344, 279, 399, 58, 9225, 5616, 264, 16...
kwargs['command'] = "bash mountdmg.sh FILENAME ."
kwargs['command'] = ["bash", "installdmg.sh", "$FILENAME"]
def __init__(self, **kwargs): self.filename = "" self.branch = "" if 'branch' in kwargs: self.branch = kwargs['branch'] if 'filename' in kwargs: self.filename = kwargs['filename'] if not 'command' in kwargs: kwargs['command'] = "bash mountdmg.sh FILENAME ." ShellCommand.__init__(self, **kwargs)
b825368fab6010ffe7bcd08b08946510a7e8cf37 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13067/b825368fab6010ffe7bcd08b08946510a7e8cf37/perfrunner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2826, 4333, 4672, 365, 18, 3459, 273, 1408, 365, 18, 7500, 273, 1408, 309, 296, 7500, 11, 316, 1205, 30, 365, 18, 7500, 273, 1205, 3292, 7500, 3546, 309,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2826, 4333, 4672, 365, 18, 3459, 273, 1408, 365, 18, 7500, 273, 1408, 309, 296, 7500, 11, 316, 1205, 30, 365, 18, 7500, 273, 1205, 3292, 7500, 3546, 309,...
if self.document_class in ('book', 'report', 'scrartcl', 'scrbook'):
if self.document_class in ('book', 'report', 'scrreprt', 'scrbook'):
def section(self, level): """ Return the section name at the given level for the specific document class.
2c9d80d7936bf887c84ea7e582cfd6bb7fdbdf25 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5620/2c9d80d7936bf887c84ea7e582cfd6bb7fdbdf25/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2442, 12, 2890, 16, 1801, 4672, 3536, 2000, 326, 2442, 508, 622, 326, 864, 1801, 364, 326, 2923, 1668, 667, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2442, 12, 2890, 16, 1801, 4672, 3536, 2000, 326, 2442, 508, 622, 326, 864, 1801, 364, 326, 2923, 1668, 667, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
(self._w, 'add', name) + self._options(cnf, kw))
(self._w, 'add', name) + self._options(cnf, kw))
def add(self, name, cnf={}, **kw): """Add a button with given name to box."""
2c55b08db886232a6fd7f100f955f541567ab82d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2c55b08db886232a6fd7f100f955f541567ab82d/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 12, 2890, 16, 508, 16, 23118, 28793, 2826, 9987, 4672, 3536, 986, 279, 3568, 598, 864, 508, 358, 3919, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 12, 2890, 16, 508, 16, 23118, 28793, 2826, 9987, 4672, 3536, 986, 279, 3568, 598, 864, 508, 358, 3919, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
notification_center = NotificationCenter()
def _NH_CFGSettingsObjectDidChange(self, notification): from sipsimple.api import SIPApplication enabled_value = notification.data.modified.get('enabled', None) if 'enabled' in notification.data.modified: if not self.enabled: self._deactivate() elif SIPApplication.running: self._activate()
a73f51e1d9408e29872f3019042410c90e52dd18 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/a73f51e1d9408e29872f3019042410c90e52dd18/account.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 50, 44, 67, 19727, 2628, 921, 18250, 3043, 12, 2890, 16, 3851, 4672, 628, 272, 7146, 2052, 18, 2425, 1930, 348, 2579, 3208, 3696, 67, 1132, 273, 3851, 18, 892, 18, 7342, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 50, 44, 67, 19727, 2628, 921, 18250, 3043, 12, 2890, 16, 3851, 4672, 628, 272, 7146, 2052, 18, 2425, 1930, 348, 2579, 3208, 3696, 67, 1132, 273, 3851, 18, 892, 18, 7342, 18, 588, ...
def generate_config_py(config):
def generate_config_py(conf):
def generate_config_py(config): """Generate config.py from conf options.""" ## generate preamble: print "# -*- coding: utf-8 -*-" print "" print "### DO NOT EDIT THIS FILE!" print "### IT WAS AUTOMATICALLY GENERATED BY EXECUTING:" print "###", " ".join(sys.argv) print "" ## special treatment for CDSNAMEINTL options: ...
9c8a5e36353cf9e1bc15f70183a4ca5712c87bfd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/9c8a5e36353cf9e1bc15f70183a4ca5712c87bfd/inveniocfg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 1425, 67, 2074, 12, 3923, 4672, 3536, 4625, 642, 18, 2074, 628, 2195, 702, 12123, 225, 7541, 2103, 27841, 30, 1172, 6619, 300, 14, 17, 14848, 30, 7718, 17, 28, 300, 14, 10951...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 1425, 67, 2074, 12, 3923, 4672, 3536, 4625, 642, 18, 2074, 628, 2195, 702, 12123, 225, 7541, 2103, 27841, 30, 1172, 6619, 300, 14, 17, 14848, 30, 7718, 17, 28, 300, 14, 10951...
if self.strict or self["filesizes"][i] != 0:
if (self.strict or self["filesizes"][i] != 0) and \ self["arch"] != "sparc":
def verifyCpio(self, filedata, read_data, filenamehash, devinode, _): # Overall result is that apart from the filename information # we should not depend on any data from the cpio header. # Data is also stored in rpm tags and the cpio header has # been broken in enough details to ignore it. (filename, inode, mode, nlin...
ff6f3ccd07a935de383f3580dfd65ceb3dc8bc57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/ff6f3ccd07a935de383f3580dfd65ceb3dc8bc57/oldpyrpm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3929, 28954, 1594, 12, 2890, 16, 585, 892, 16, 855, 67, 892, 16, 1544, 2816, 16, 4461, 267, 390, 16, 389, 4672, 468, 10752, 454, 563, 353, 716, 513, 485, 628, 326, 1544, 1779, 468, 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, 3929, 28954, 1594, 12, 2890, 16, 585, 892, 16, 855, 67, 892, 16, 1544, 2816, 16, 4461, 267, 390, 16, 389, 4672, 468, 10752, 454, 563, 353, 716, 513, 485, 628, 326, 1544, 1779, 468, 7...
with open(tricky) as f:
with open(tricky, encoding='utf-8') as f:
def test_parse_errors(self): cf = self.newconfig() self.parse_error(cf, configparser.ParsingError, "[Foo]\n" "{}val-without-opt-name\n".format(self.delimiters[0])) self.parse_error(cf, configparser.ParsingError, "[Foo]\n" "{}val-without-opt-name\n".format(self.delimiters[1])) e = self.parse_error(cf, configparser.Missi...
50a8c9cad5d94246e776c5c0c55d4f061497bd03 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/50a8c9cad5d94246e776c5c0c55d4f061497bd03/test_cfgparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2670, 67, 4324, 12, 2890, 4672, 6080, 273, 365, 18, 2704, 1425, 1435, 365, 18, 2670, 67, 1636, 12, 8522, 16, 642, 4288, 18, 13963, 668, 16, 5158, 42, 5161, 13944, 82, 6, 74...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2670, 67, 4324, 12, 2890, 4672, 6080, 273, 365, 18, 2704, 1425, 1435, 365, 18, 2670, 67, 1636, 12, 8522, 16, 642, 4288, 18, 13963, 668, 16, 5158, 42, 5161, 13944, 82, 6, 74...
if '.' in word: module, xml_id = word.rsplit('.', 1) else: module, xml_id = current_module, word
module, xml_id = word.rsplit('.', 1)
def process_liness(self, datas, prefix, fields_def, position=0): line = datas[position] row = {} translate = {} todo = [] warning = '' data_id = False
33a2aefda755900cf1c79acb1b8300ca1ad3541f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/33a2aefda755900cf1c79acb1b8300ca1ad3541f/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 80, 6336, 12, 2890, 16, 5386, 16, 1633, 16, 1466, 67, 536, 16, 1754, 33, 20, 4672, 980, 273, 5386, 63, 3276, 65, 1027, 273, 2618, 4204, 273, 2618, 10621, 273, 5378, 3436, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 80, 6336, 12, 2890, 16, 5386, 16, 1633, 16, 1466, 67, 536, 16, 1754, 33, 20, 4672, 980, 273, 5386, 63, 3276, 65, 1027, 273, 2618, 4204, 273, 2618, 10621, 273, 5378, 3436, 2...
datetime.datetime(2007, 4, 10, 13, 11, 1)
datetime.datetime(2007, 4, 10, 13, 11, 1, ...)
def __set__(self, inst, value): field = inst.getField(self._name) if field is None: raise KeyError("Cannot find field with name %s" % self._name) if self._set_transform is not None: value = self._set_transform(value) field.set(inst, value)
b6f0219f248998f216f18492bdb64b5e7891d29c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12165/b6f0219f248998f216f18492bdb64b5e7891d29c/fieldproperty.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 972, 12, 2890, 16, 1804, 16, 460, 4672, 652, 273, 1804, 18, 588, 974, 12, 2890, 6315, 529, 13, 309, 652, 353, 599, 30, 1002, 4999, 2932, 4515, 1104, 652, 598, 508, 738, 87...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 972, 12, 2890, 16, 1804, 16, 460, 4672, 652, 273, 1804, 18, 588, 974, 12, 2890, 6315, 529, 13, 309, 652, 353, 599, 30, 1002, 4999, 2932, 4515, 1104, 652, 598, 508, 738, 87...
'date_invoice': fields.date('Date Invoiced', states={'open':[('readonly',True)],'close':[('readonly',True)]}),
'date_invoice': fields.date('Date Invoiced', states={'open':[('readonly',True)],'close':[('readonly',True)]}, help="Keep empty to use the current date"),
def _get_invoice_from_reconcile(self, cr, uid, ids, context={}): move = {} for r in self.pool.get('account.move.reconcile').browse(cr, uid, ids): for line in r.line_partial_ids: move[line.move_id.id] = True for line in r.line_id: move[line.move_id.id] = True invoice_ids = [] if move: invoice_ids = self.pool.get('accou...
d841cce003d40781ad74dae6fd93527f85329e70 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/d841cce003d40781ad74dae6fd93527f85329e70/invoice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 16119, 67, 2080, 67, 266, 11504, 398, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 3635, 273, 2618, 364, 436, 316, 365, 18, 6011, 18, 588, 2668, 4631, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16119, 67, 2080, 67, 266, 11504, 398, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 3635, 273, 2618, 364, 436, 316, 365, 18, 6011, 18, 588, 2668, 4631, ...
return S_OK(stdout)
return S_OK( stdout )
def __runCommand(self,cmd): """Wrapper around shellCall to return S_OK(stdout) or S_ERROR(message) """ result = shellCall(0,cmd) if not result['OK']: return result status = result['Value'][0] stdout = result['Value'][1] stderr = result['Value'][2]
b590345882082ff68315923d410c01c4d6437735 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/b590345882082ff68315923d410c01c4d6437735/LSFTimeLeft.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2681, 2189, 12, 2890, 16, 4172, 4672, 3536, 3611, 6740, 5972, 1477, 358, 327, 348, 67, 3141, 12, 3909, 262, 578, 348, 67, 3589, 12, 2150, 13, 3536, 563, 273, 5972, 1477, 12, 20, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2681, 2189, 12, 2890, 16, 4172, 4672, 3536, 3611, 6740, 5972, 1477, 358, 327, 348, 67, 3141, 12, 3909, 262, 578, 348, 67, 3589, 12, 2150, 13, 3536, 563, 273, 5972, 1477, 12, 20, ...
Returns the base ring of the elliptic curves.
Returns the base ring of the elliptic curve.
def base_ring(self): """ Returns the base ring of the elliptic curves. EXAMPLES: sage: E = EllipticCurve(GF(49, 'a'), [3,5]) sage: E.base_ring() Finite Field in a of size 7^2 sage: E = EllipticCurve([1,1]) sage: E.base_ring() Rational Field
09e345b25236d5bd15eecd86cc093a836e7ba6db /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/09e345b25236d5bd15eecd86cc093a836e7ba6db/ell_generic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1026, 67, 8022, 12, 2890, 4672, 3536, 2860, 326, 1026, 9221, 434, 326, 415, 549, 21507, 8882, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 512, 273, 10426, 549, 21507, 9423, 12, 43, 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, 1026, 67, 8022, 12, 2890, 4672, 3536, 2860, 326, 1026, 9221, 434, 326, 415, 549, 21507, 8882, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 512, 273, 10426, 549, 21507, 9423, 12, 43, 4...
groups = permissions
result = set()
def get_users_with_permissions(self, permissions): """Retrieve a list of users that have any of the specified permissions Users are returned as a list of usernames. """ db = self.env.get_db_cnx() cursor = db.cursor() groups = permissions users = set([u[0] for u in self.env.get_known_users()]) result = set()
7adaf5b36b8dfde957db7ff85a06b90ffd8de0eb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9317/7adaf5b36b8dfde957db7ff85a06b90ffd8de0eb/perm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5577, 67, 1918, 67, 9612, 12, 2890, 16, 4371, 4672, 3536, 5767, 279, 666, 434, 3677, 716, 1240, 1281, 434, 326, 1269, 4371, 225, 12109, 854, 2106, 487, 279, 666, 434, 27675, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5577, 67, 1918, 67, 9612, 12, 2890, 16, 4371, 4672, 3536, 5767, 279, 666, 434, 3677, 716, 1240, 1281, 434, 326, 1269, 4371, 225, 12109, 854, 2106, 487, 279, 666, 434, 27675, 1...
upload_limit = safe_int_convert(info['net']['vpn']['upload_limit'][:-3]) // 1000
offset = -3 unit = 1000 if 'Kbit' in info['net']['vpn']['upload_limit']: offset = -4 unit = 1 upload_limit = safe_int_convert(info['net']['vpn']['upload_limit'][:offset]) // unit
def process_node(node_ip, ping_results, is_duped, peers, varsize_results): """ Processes a single node. @param node_ip: Node's IP address @param ping_results: Results obtained from ICMP ECHO tests @param is_duped: True if duplicate echos received @param peers: Peering info from routing daemon @param varsize_results: R...
4fb6af186335addb1a39c08e825290be33ba7fea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11345/4fb6af186335addb1a39c08e825290be33ba7fea/monitor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2159, 12, 2159, 67, 625, 16, 10087, 67, 4717, 16, 353, 67, 26427, 329, 16, 10082, 16, 569, 1467, 67, 4717, 4672, 3536, 4389, 281, 279, 2202, 756, 18, 225, 632, 891, 756, 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, 1207, 67, 2159, 12, 2159, 67, 625, 16, 10087, 67, 4717, 16, 353, 67, 26427, 329, 16, 10082, 16, 569, 1467, 67, 4717, 4672, 3536, 4389, 281, 279, 2202, 756, 18, 225, 632, 891, 756, 67...
wp = [self._id_get(cr, user, context['report_id'], context)+(' in (%s)' % (','.join(map(lambda x: "'"+str(x)+"'",ids))))]
wp = '' if self.model_set_id: wp = [self._id_get(cr, user, context['report_id'], context)+(' in (%s)' % (','.join(map(lambda x: "'"+str(x)+"'",ids))))]
def read(self, cr, user, ids, fields=None, context=None, load='_classic_read'): if (not context) or 'report_id' not in context: return super(report_creator, self).read(cr, user, ids, fields, context, load) ctx = context or {} wp = [self._id_get(cr, user, context['report_id'], context)+(' in (%s)' % (','.join(map(lambda...
d3206b046ab59987d80ac535a164d50632d36a78 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/d3206b046ab59987d80ac535a164d50632d36a78/base_report_creator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 4422, 16, 729, 16, 3258, 16, 1466, 33, 7036, 16, 819, 33, 7036, 16, 1262, 2218, 67, 1106, 335, 67, 896, 11, 4672, 309, 261, 902, 819, 13, 578, 296, 6006, 67, 350...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 4422, 16, 729, 16, 3258, 16, 1466, 33, 7036, 16, 819, 33, 7036, 16, 1262, 2218, 67, 1106, 335, 67, 896, 11, 4672, 309, 261, 902, 819, 13, 578, 296, 6006, 67, 350...
The body is the buffer in art['__BODY__'] and the INN-reckoned line count is held as an integer in art['__LINES__']. (The
The body is the buffer in art[__BODY__] and the INN-reckoned line count is held as an integer in art[__LINES__]. (The
def filter_art(self, art): """Decide whether to keep offered articles.
30ea0b713f9ee22a7faa715b6e97518001fdf108 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3972/30ea0b713f9ee22a7faa715b6e97518001fdf108/filter_innd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 67, 485, 12, 2890, 16, 3688, 4672, 3536, 1799, 831, 2856, 358, 3455, 10067, 329, 15828, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 67, 485, 12, 2890, 16, 3688, 4672, 3536, 1799, 831, 2856, 358, 3455, 10067, 329, 15828, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
possible = Set(ENTRY_TYPES[objecttype]["require"] + ENTRY_TYPES[objecttype]["optional"]) required = Set(ENTRY_TYPES[objecttype]["require"])
possible = Set(ENTRY_TYPES[values["OBJECTTYPE"]]["require"] + ENTRY_TYPES[values["OBJECTTYPE"]]["optional"]) required = Set(ENTRY_TYPES[values["OBJECTTYPE"]]["require"])
def ParseEDSFile(filepath): eds_dict = {} # Read file text eds_file = open(filepath,'r').read() sections = ExtractSections(eds_file) # Parse assignments for each section for section_name, assignments in sections: # Reset values of entry values = {} # Search if the section name match an index or subindex expression in...
61bebf15508c105f83a17988733e8e2265365cb9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11017/61bebf15508c105f83a17988733e8e2265365cb9/eds_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2884, 2056, 55, 812, 12, 10561, 4672, 1675, 87, 67, 1576, 273, 2618, 468, 2720, 585, 977, 1675, 87, 67, 768, 273, 1696, 12, 10561, 11189, 86, 16063, 896, 1435, 7178, 273, 8152, 15965, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2884, 2056, 55, 812, 12, 10561, 4672, 1675, 87, 67, 1576, 273, 2618, 468, 2720, 585, 977, 1675, 87, 67, 768, 273, 1696, 12, 10561, 11189, 86, 16063, 896, 1435, 7178, 273, 8152, 15965, ...
if get_cover and mi.cover is None:
if get_cover:
def get_metadata(self, idx, index_is_id=False, get_cover=False): ''' Convenience method to return metadata as a :class:`Metadata` object. Note that the list of formats is not verified. ''' self.gm_count += 1 mi = self.data.get(idx, self.FIELD_MAP['all_metadata'], row_is_id = index_is_id) if mi is not None: if get_cover...
3ad46e0018f5c9b96e26d73b3d01c4a7cc4c70e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/3ad46e0018f5c9b96e26d73b3d01c4a7cc4c70e0/database2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4165, 12, 2890, 16, 2067, 16, 770, 67, 291, 67, 350, 33, 8381, 16, 336, 67, 3165, 33, 8381, 4672, 9163, 735, 9080, 707, 358, 327, 1982, 487, 279, 294, 1106, 28288, 2277, 68,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4165, 12, 2890, 16, 2067, 16, 770, 67, 291, 67, 350, 33, 8381, 16, 336, 67, 3165, 33, 8381, 4672, 9163, 735, 9080, 707, 358, 327, 1982, 487, 279, 294, 1106, 28288, 2277, 68,...
if game.state.galaxy[w.x][w.y].planet == None:
if game.state.galaxy[w.i][w.j].planet == None:
def setup(): "Prepare to play, set up cosmos." w = coord() # Decide how many of everything if choose(): return # frozen game # Prepare the Enterprise game.alldone = game.gamewon = False game.ship = IHE game.state.crew = FULLCREW game.energy = game.inenrg = 5000.0 game.shield = game.inshld = 2500.0 game.shldchg = False...
e67cf36a789c4ab1cd905a9a08e91d219395f538 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/e67cf36a789c4ab1cd905a9a08e91d219395f538/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13332, 315, 7543, 358, 6599, 16, 444, 731, 4987, 26719, 1199, 341, 273, 2745, 1435, 468, 225, 3416, 831, 3661, 4906, 434, 7756, 309, 9876, 13332, 327, 468, 12810, 7920, 468, 7730, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13332, 315, 7543, 358, 6599, 16, 444, 731, 4987, 26719, 1199, 341, 273, 2745, 1435, 468, 225, 3416, 831, 3661, 4906, 434, 7756, 309, 9876, 13332, 327, 468, 12810, 7920, 468, 7730, ...
1
True
def idwt(self,other="haar",wavelet_k=2): """ Implements the gsl WaveletTransform.backward in dwt.pyx. other must be an element of {"haar", "daubechies", "daubechies_centered", "haar_centered", "bspline", "bspline_centered"}. Assumes the length of the sample is a power of 2. Uses the GSL function gsl_wavelet_transform_b...
431e77dd49c749a75ebdd4465e177155608021e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/431e77dd49c749a75ebdd4465e177155608021e6/dft.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 612, 6046, 12, 2890, 16, 3011, 1546, 3395, 297, 3113, 24801, 808, 67, 79, 33, 22, 4672, 3536, 29704, 326, 314, 2069, 678, 842, 808, 4059, 18, 29275, 316, 302, 6046, 18, 2074, 92, 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, 612, 6046, 12, 2890, 16, 3011, 1546, 3395, 297, 3113, 24801, 808, 67, 79, 33, 22, 4672, 3536, 29704, 326, 314, 2069, 678, 842, 808, 4059, 18, 29275, 316, 302, 6046, 18, 2074, 92, 18, ...
else
else:
def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 883) else quickfix.DoubleField.__init__(self, 883, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 1725, 10261, 13, 469, 30, 9549, 904, 18, 5265, 974, 16186, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 1725, 10261, 13, 469, 30, 9549, 904, 18, 5265, 974, 16186, 2...
x.extra = fp.read(centdir[13]) x.comment = fp.read(centdir[14]) total = total + centdir[12] + centdir[13] + centdir[14] x.header_offset = centdir[18] + concat x.file_offset = x.header_offset + 30 + centdir[12] + centdir[13]
x.extra = fp.read(centdir[_CD_EXTRA_FIELD_LENGTH]) x.comment = fp.read(centdir[_CD_COMMENT_LENGTH]) total = (total + centdir[_CD_FILENAME_LENGTH] + centdir[_CD_EXTRA_FIELD_LENGTH] + centdir[_CD_COMMENT_LENGTH]) x.header_offset = centdir[_CD_LOCAL_HEADER_OFFSET] + concat
def _GetContents(self): """Read in the table of contents for the ZIP file.""" fp = self.fp fp.seek(-22, 2) # Start of end-of-archive record filesize = fp.tell() + 22 # Get file size endrec = fp.read(22) # Archive must not end with a comment! if endrec[0:4] != stringEndArchive or endrec[-2:] != "\000\00...
165fab35063ab4da4c158c4e6c7dd34245ad2f61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/165fab35063ab4da4c158c4e6c7dd34245ad2f61/zipfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 967, 6323, 12, 2890, 4672, 3536, 1994, 316, 326, 1014, 434, 2939, 364, 326, 18277, 585, 12123, 4253, 273, 365, 18, 7944, 4253, 18, 16508, 19236, 3787, 16, 576, 13, 540, 468, 3603, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 967, 6323, 12, 2890, 4672, 3536, 1994, 316, 326, 1014, 434, 2939, 364, 326, 18277, 585, 12123, 4253, 273, 365, 18, 7944, 4253, 18, 16508, 19236, 3787, 16, 576, 13, 540, 468, 3603, ...
exec('def f(a = 0, a = 1): pass')
exec 'def f(a = 0, a = 1): pass'
exec('def f(a = 0, a = 1): pass')
121b6eb018a839bfaf6af22ceb1a9793e62428df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/121b6eb018a839bfaf6af22ceb1a9793e62428df/test_compile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1196, 2668, 536, 284, 12, 69, 273, 374, 16, 279, 273, 404, 4672, 1342, 6134, 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, 1196, 2668, 536, 284, 12, 69, 273, 374, 16, 279, 273, 404, 4672, 1342, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
parser.add_option("-n", "--nap",dest="nap",default=1,type="int",nargs=1,help="Time to sleep between loops")
parser.add_option("-n", "--nap",dest="nap",default=0,nargs=1,help="Time to sleep between loops")
def OUIupdate(): """ update the ouilist """ #note to self why the hell am i calling another function hear? #must be marfi's code # Marfi: Which was working.... message.printMessage("Updating OUI list...") ouiUpdate() sys.exit(0)
991806d8b7872582dfe0caac799c29fa610935b6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9343/991806d8b7872582dfe0caac799c29fa610935b6/airdrop-ng.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 531, 5370, 2725, 13332, 3536, 1089, 326, 16694, 330, 376, 3536, 468, 7652, 358, 365, 11598, 326, 366, 1165, 2125, 277, 4440, 4042, 445, 366, 2091, 35, 468, 11926, 506, 21282, 22056, 1807, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 531, 5370, 2725, 13332, 3536, 1089, 326, 16694, 330, 376, 3536, 468, 7652, 358, 365, 11598, 326, 366, 1165, 2125, 277, 4440, 4042, 445, 366, 2091, 35, 468, 11926, 506, 21282, 22056, 1807, ...
log_format_string = '<%d>%s\000'
def _connect_unixsocket(self, address): self.socket = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM) # syslog may require either DGRAM or STREAM sockets try: self.socket.connect(address) except socket.error: self.socket.close() self.socket = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) self.socket.connect(addres...
467d12fcb2987d6530e683709978d6aadd7ceb05 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/467d12fcb2987d6530e683709978d6aadd7ceb05/handlers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3612, 67, 21136, 7814, 12, 2890, 16, 1758, 4672, 365, 18, 7814, 273, 2987, 18, 7814, 12, 7814, 18, 6799, 67, 10377, 60, 16, 2987, 18, 3584, 3507, 67, 40, 15370, 13, 468, 16718, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3612, 67, 21136, 7814, 12, 2890, 16, 1758, 4672, 365, 18, 7814, 273, 2987, 18, 7814, 12, 7814, 18, 6799, 67, 10377, 60, 16, 2987, 18, 3584, 3507, 67, 40, 15370, 13, 468, 16718, ...
if c.project.shortname.startswith('u/'):
if c.project.app_instance('home'): redirect('home/') elif c.project.app_instance('profile'):
def index(self): if c.project.shortname.startswith('u/'): redirect('profile/') else: redirect('home/')
6602640c2b0c48c1c9296bbdddb3771074ee7643 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1036/6602640c2b0c48c1c9296bbdddb3771074ee7643/project.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 12, 2890, 4672, 309, 276, 18, 4406, 18, 2910, 67, 1336, 2668, 8712, 11, 4672, 3136, 2668, 8712, 2473, 13, 1327, 276, 18, 4406, 18, 2910, 67, 1336, 2668, 5040, 11, 4672, 3136, 2668...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 12, 2890, 4672, 309, 276, 18, 4406, 18, 2910, 67, 1336, 2668, 8712, 11, 4672, 3136, 2668, 8712, 2473, 13, 1327, 276, 18, 4406, 18, 2910, 67, 1336, 2668, 5040, 11, 4672, 3136, 2668...
actual_size = support.get_size(url)
actual_size = int(support.get_size(url))
def is_uploaded(url, size): if url.startswith('http://TESTING/releases'): return True
661e35ce029fd9f6319b4c73a431b8e13ac9521a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3006/661e35ce029fd9f6319b4c73a431b8e13ac9521a/release.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 23249, 12, 718, 16, 963, 4672, 309, 880, 18, 17514, 1918, 2668, 2505, 2207, 16961, 1360, 19, 28416, 11, 4672, 327, 1053, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 23249, 12, 718, 16, 963, 4672, 309, 880, 18, 17514, 1918, 2668, 2505, 2207, 16961, 1360, 19, 28416, 11, 4672, 327, 1053, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if 'D_' + att not in self.removedAtt: self.res.setText(i, 0, att)
if 'D_' + att.name not in removed: self.res.setText(i, 0, att.name)
def setTable(self): self.res.setNumCols(2) self.res.setNumRows(len(self.discretizedAtts) - len(self.removedAtt))
dd1d765dc3e19161f4c3e8769c6d619e4b07ec77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/dd1d765dc3e19161f4c3e8769c6d619e4b07ec77/OWCategorize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30146, 12, 2890, 4672, 365, 18, 455, 18, 542, 2578, 8011, 12, 22, 13, 365, 18, 455, 18, 542, 2578, 4300, 12, 1897, 12, 2890, 18, 2251, 71, 1349, 1235, 3075, 87, 13, 300, 562, 12, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30146, 12, 2890, 4672, 365, 18, 455, 18, 542, 2578, 8011, 12, 22, 13, 365, 18, 455, 18, 542, 2578, 4300, 12, 1897, 12, 2890, 18, 2251, 71, 1349, 1235, 3075, 87, 13, 300, 562, 12, 2...
old, oldStreams = self.trvIterator.next()
old, oldStreams = old
def next(self): if not self.l and self.new: # self.l (and self.trvIterator) are empty; look to # self.new for new jobs we need
3168c7f956dffd370098f0cf25f821ac4851cd59 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/3168c7f956dffd370098f0cf25f821ac4851cd59/fsrepos.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 12, 2890, 4672, 309, 486, 365, 18, 80, 471, 365, 18, 2704, 30, 468, 365, 18, 80, 261, 464, 365, 18, 313, 90, 3198, 13, 854, 1008, 31, 2324, 358, 468, 365, 18, 2704, 364, 394,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1024, 12, 2890, 4672, 309, 486, 365, 18, 80, 471, 365, 18, 2704, 30, 468, 365, 18, 80, 261, 464, 365, 18, 313, 90, 3198, 13, 854, 1008, 31, 2324, 358, 468, 365, 18, 2704, 364, 394,...
print >> sys.stderr, "Actual response (has %r)" % s
print >> sys.stderr, "Actual response (has %r)" % no_s
def mustcontain(self, *strings, **kw): """ Assert that the response contains all of the strings passed in as arguments.
6423adda9472fbbd765e2b1573268af5d8be3b90 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2097/6423adda9472fbbd765e2b1573268af5d8be3b90/fixture.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1297, 28744, 12, 2890, 16, 380, 10219, 16, 2826, 9987, 4672, 3536, 5452, 716, 326, 766, 1914, 777, 434, 326, 2064, 2275, 316, 487, 1775, 18, 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, 1297, 28744, 12, 2890, 16, 380, 10219, 16, 2826, 9987, 4672, 3536, 5452, 716, 326, 766, 1914, 777, 434, 326, 2064, 2275, 316, 487, 1775, 18, 2, -100, -100, -100, -100, -100, -100, -100, ...
return str(path)
if path and path[-1] == '/': return path[:-1] return path
def resolve_key(self, path): # Performance is critical so assume the path is already relative to # the repository. path = normalize_path(path) if path and path.startswith(('/', '..', '.git')): raise ValueError, 'unexpected "%s" path' % path return str(path)
c48fc4ed711e2c8f512be3bce499a712da0e2d4e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12681/c48fc4ed711e2c8f512be3bce499a712da0e2d4e/database.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 67, 856, 12, 2890, 16, 589, 4672, 468, 11217, 1359, 353, 11239, 1427, 6750, 326, 589, 353, 1818, 3632, 358, 468, 326, 3352, 18, 589, 273, 3883, 67, 803, 12, 803, 13, 309, 589, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 856, 12, 2890, 16, 589, 4672, 468, 11217, 1359, 353, 11239, 1427, 6750, 326, 589, 353, 1818, 3632, 358, 468, 326, 3352, 18, 589, 273, 3883, 67, 803, 12, 803, 13, 309, 589, ...
def IsUnion(id):
def IsUnion(sid):
def IsUnion(id): """ Is a structure a union? @param id: structure type ID @return: 1: yes, this is a union id 0: no @note: Unions are a special kind of structures """ s = idaapi.get_struc(id) if not s: return 0 return s.is_union()
244a3cd02a580c0095170004ec30e922f0d1a8a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6984/244a3cd02a580c0095170004ec30e922f0d1a8a6/idc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2585, 14325, 12, 7453, 4672, 3536, 2585, 279, 3695, 279, 7812, 35, 225, 632, 891, 612, 30, 3695, 618, 1599, 225, 632, 2463, 30, 404, 30, 12465, 16, 333, 353, 279, 7812, 612, 374, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2585, 14325, 12, 7453, 4672, 3536, 2585, 279, 3695, 279, 7812, 35, 225, 632, 891, 612, 30, 3695, 618, 1599, 225, 632, 2463, 30, 404, 30, 12465, 16, 333, 353, 279, 7812, 612, 374, 30, ...
Title: <input type="text" name="title" size="50" value="%(initialTitle)s"><br> Description:<br>
<input type="hidden" name="report" value="%(report)s"> <table class="form"> <tr><td> <table class="form_group"> <tr> <td class="form_clabel">Title:</td> <td class="form_value"> <input type="text" name="title" size="50" value="%(initialTitle)s"> </td> </tr> <tr> <td class="form_label">Description:</td> <td class="form_...
def send_report(self, report): try: keys = self.load_report(report) except IOError: return self.send_internal_error('Invalid report.')
7dcc299a71844da0e4034ae99fca885eb91714fe /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11986/7dcc299a71844da0e4034ae99fca885eb91714fe/ScanView.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 6006, 12, 2890, 16, 2605, 4672, 775, 30, 1311, 273, 365, 18, 945, 67, 6006, 12, 6006, 13, 1335, 8340, 30, 327, 365, 18, 4661, 67, 7236, 67, 1636, 2668, 1941, 2605, 1093, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6006, 12, 2890, 16, 2605, 4672, 775, 30, 1311, 273, 365, 18, 945, 67, 6006, 12, 6006, 13, 1335, 8340, 30, 327, 365, 18, 4661, 67, 7236, 67, 1636, 2668, 1941, 2605, 1093, 13...
self.__character = character
def __init__(self, character, weight): self.__level = character.modulus() self.__character = character self.__P1 = p1list.P1List(self.level()) # The list returned from P1List is guaranteed to be sorted. # Thus each list constructed below is also sorted. This is # important since the index function assumes the list is ...
b95e8fadbb27e57c107c16b095df45d10634cb9c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/b95e8fadbb27e57c107c16b095df45d10634cb9c/manin_symbols.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3351, 16, 3119, 4672, 365, 16186, 2815, 273, 3351, 18, 1711, 17284, 1435, 365, 16186, 52, 21, 273, 293, 21, 1098, 18, 52, 21, 682, 12, 2890, 18, 2815, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3351, 16, 3119, 4672, 365, 16186, 2815, 273, 3351, 18, 1711, 17284, 1435, 365, 16186, 52, 21, 273, 293, 21, 1098, 18, 52, 21, 682, 12, 2890, 18, 2815, ...
r = self.resources.get(uriref, None)
r = self.resources.get(urirefString, None)
def intern(self, pair): """ Returns either a Fragment or a Resource or Literal as appropriate
bf03fcb3dcee8e7b8dc507a3648b413b810f31ff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/bf03fcb3dcee8e7b8dc507a3648b413b810f31ff/cwm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8216, 12, 2890, 16, 3082, 4672, 3536, 225, 2860, 3344, 279, 18009, 578, 279, 2591, 578, 14392, 487, 5505, 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, 8216, 12, 2890, 16, 3082, 4672, 3536, 225, 2860, 3344, 279, 18009, 578, 279, 2591, 578, 14392, 487, 5505, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self._authors = [] self._version = None self._seealsos = []
def __init__(self, obj, verbosity=0): """ Create the documentation for the given object. @param obj: The object to document. @type obj: any @param verbosity: The verbosity of output produced when creating documentation for the object. More positive numbers produce more verbose output; negative numbers supress warning...
2ea766fa637b1324e25724545303f11e624a5247 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/2ea766fa637b1324e25724545303f11e624a5247/objdoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1081, 16, 11561, 33, 20, 4672, 3536, 1788, 326, 7323, 364, 326, 864, 733, 18, 225, 632, 891, 1081, 30, 1021, 733, 358, 1668, 18, 632, 723, 1081, 30, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1081, 16, 11561, 33, 20, 4672, 3536, 1788, 326, 7323, 364, 326, 864, 733, 18, 225, 632, 891, 1081, 30, 1021, 733, 358, 1668, 18, 632, 723, 1081, 30, 12...
os.symlink(string.strip(cp.get('hipe-cache','hipe-cache-path')), 'cache')
if len(string.strip(cp.get('hipe-cache','hipe-cache-path'))) > 0: os.symlink(string.strip(cp.get('hipe-cache','hipe-cache-path')), 'cache') else: pass
def __init__(self, options,cp, currentPath): UserDict.__init__(self) self.dir = os.listdir(os.getcwd()) self.options = options self.types = ['TMPLTBANK', 'TRIGBANK', 'INSPIRAL-', \ 'INSPIRAL_H', 'THINCA-', 'THINCA_'] self.iniNames = ['tmpltbank-path', 'trigbank-path', 'first-inspiral-path', \ 'second-inspiral-path', 'f...
1dbdfefc5bd9c32e48cd9d02a07a6e45cb4d15f5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5758/1dbdfefc5bd9c32e48cd9d02a07a6e45cb4d15f5/fu_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 702, 16, 4057, 16, 18027, 4672, 2177, 5014, 16186, 2738, 972, 12, 2890, 13, 365, 18, 1214, 273, 1140, 18, 1098, 1214, 12, 538, 18, 588, 11089, 10756, 365...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 702, 16, 4057, 16, 18027, 4672, 2177, 5014, 16186, 2738, 972, 12, 2890, 13, 365, 18, 1214, 273, 1140, 18, 1098, 1214, 12, 538, 18, 588, 11089, 10756, 365...
>>> int(bool(it.next())) 1
>>> it.next() True
def letter(self, base=ord('a'), radix=26): """Get the iterator position as a lower-case letter
c2450cd2db47fce45ceeda283ccc45145d72ec81 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9778/c2450cd2db47fce45ceeda283ccc45145d72ec81/tales.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9471, 12, 2890, 16, 1026, 33, 517, 2668, 69, 19899, 19015, 33, 5558, 4672, 3536, 967, 326, 2775, 1754, 487, 279, 2612, 17, 3593, 9471, 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, 0, 0, 0, 0, 0, 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, 9471, 12, 2890, 16, 1026, 33, 517, 2668, 69, 19899, 19015, 33, 5558, 4672, 3536, 967, 326, 2775, 1754, 487, 279, 2612, 17, 3593, 9471, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
args = (self._modules, self._getopts(), self._progress, self._cancel)
args = (opts, self._progress, self._cancel) self._messages['state'] = 'normal' self._messages.delete('0.0', 'end') self._messages['state'] = 'disabled' self._errpipe.clear() for m in sys.modules.keys(): if m not in self._old_modules: del sys.modules[m] reset_uid_cache()
def _go(self, *e): if len(self._modules) == 0: self._top.bell() return
4cf6d74130c32443c10897614b39d1c2c512796c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/4cf6d74130c32443c10897614b39d1c2c512796c/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3240, 12, 2890, 16, 380, 73, 4672, 309, 562, 12, 2890, 6315, 6400, 13, 422, 374, 30, 365, 6315, 3669, 18, 70, 1165, 1435, 327, 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, 389, 3240, 12, 2890, 16, 380, 73, 4672, 309, 562, 12, 2890, 6315, 6400, 13, 422, 374, 30, 365, 6315, 3669, 18, 70, 1165, 1435, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
options: [-p NUM] [-b BASE] [-m MESSAGE] [-f] PATCH... -p --strip directory strip option for patch. This has the same meaning as the corresponding patch option (default: 1) -m --message use <text> as commit message -b --base base path -f --force skip check for outstanding uncommitted changes """
INPUT: filename -- a string options -- a string options: [-p NUM] [-b BASE] [-m MESSAGE] [-f] PATCH... -p --strip directory strip option for patch. This has the same meaning as the corresponding patch option (default: 1) -m --message use <text> as commit message -b --base base path -f --force skip check fo...
def import_patch(self, filename, options): """ Import an ordered set of patches from patch file, i.e., a plain text file created using the export command.
a69cc1915ec74c1816a129b46e00a63d7f45478e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/a69cc1915ec74c1816a129b46e00a63d7f45478e/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 2272, 12, 2890, 16, 1544, 16, 702, 4672, 3536, 6164, 392, 5901, 444, 434, 16482, 628, 4729, 585, 16, 277, 18, 73, 12990, 279, 7351, 977, 585, 2522, 1450, 326, 3359, 1296, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 2272, 12, 2890, 16, 1544, 16, 702, 4672, 3536, 6164, 392, 5901, 444, 434, 16482, 628, 4729, 585, 16, 277, 18, 73, 12990, 279, 7351, 977, 585, 2522, 1450, 326, 3359, 1296, 18,...
if aliased: _platform_aliased_cache[bool(terse)] = platform
if aliased and terse: _platform_aliased_cache_terse = platform elif aliased and not terse: _platform_aliased_cache_not_terse = platform
def platform(aliased=0, terse=0): """ Returns a single string identifying the underlying platform with as much useful information as possible (but no more :). The output is intended to be human readable rather than machine parseable. It may look different on different platforms and this is intended. If "aliased" is ...
1b1010688617181994c623f282e27d1820adcf26 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1b1010688617181994c623f282e27d1820adcf26/platform.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4072, 12, 18083, 8905, 33, 20, 16, 19272, 307, 33, 20, 4672, 225, 3536, 2860, 279, 2202, 533, 29134, 326, 6808, 4072, 598, 487, 9816, 5301, 1779, 487, 3323, 261, 12885, 1158, 1898, 294, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4072, 12, 18083, 8905, 33, 20, 16, 19272, 307, 33, 20, 4672, 225, 3536, 2860, 279, 2202, 533, 29134, 326, 6808, 4072, 598, 487, 9816, 5301, 1779, 487, 3323, 261, 12885, 1158, 1898, 294, ...
exts.append( Extension('audioop', ['audioop.c']) )
def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
ce856bacfb151ef9c53650c9b36ab9cb99eba3f1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/ce856bacfb151ef9c53650c9b36ab9cb99eba3f1/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
node_edgecolor='w'
def VisualizeNet(net, xy, figsize=(6,6), coloredNodes=True, equalsize=False, labels=None, fontsize=7, showAllNodes=True, nodeColor=None, nodeSize=1.0, minnode=2.0, maxnode=6.0, nodeColors=None, nodeSizes=None, bgcolor='white', maxwidth=2.0, minwidth=0.2, uselabels='none', edgeColorMap='winter', weightLimits=None, setNo...
5b590591c50efd58822f1cb0f934b092db648f88 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/768/5b590591c50efd58822f1cb0f934b092db648f88/visuals.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26832, 554, 7308, 12, 2758, 16, 7668, 16, 14697, 28657, 26, 16, 26, 3631, 19757, 3205, 33, 5510, 16, 1606, 554, 33, 8381, 16, 3249, 33, 7036, 16, 14869, 33, 27, 16, 2405, 1595, 3205, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26832, 554, 7308, 12, 2758, 16, 7668, 16, 14697, 28657, 26, 16, 26, 3631, 19757, 3205, 33, 5510, 16, 1606, 554, 33, 8381, 16, 3249, 33, 7036, 16, 14869, 33, 27, 16, 2405, 1595, 3205, ...
ret_dict = {'location_name':''}; location_name = pooler.get_pool(self.cr.dbname).get('stock.location').read(self.cr, self.uid, [location_id],['name']) if location_name: ret_dict['location_name']= str(location_name[0]['name']) prod_info = pooler.get_pool(self.cr.dbname).get('stock.location')._product_get(self.cr, self.u...
res = {} location_obj = pooler.get_pool(self.cr.dbname).get('stock.location') product_obj = pooler.get_pool(self.cr.dbname).get('product.product')
def process(self,location_id): ret_dict = {'location_name':''}; location_name = pooler.get_pool(self.cr.dbname).get('stock.location').read(self.cr, self.uid, [location_id],['name']) if location_name: ret_dict['location_name']= str(location_name[0]['name']) prod_info = pooler.get_pool(self.cr.dbname).get('stock.location...
e77eed0cf9896dd375b38f91f54f555a5da67947 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/e77eed0cf9896dd375b38f91f54f555a5da67947/lot_location.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 2890, 16, 3562, 67, 350, 4672, 325, 67, 1576, 273, 13666, 3562, 67, 529, 11, 2497, 11, 20451, 2117, 67, 529, 273, 2845, 264, 18, 588, 67, 6011, 12, 2890, 18, 3353, 18, 2097...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 2890, 16, 3562, 67, 350, 4672, 325, 67, 1576, 273, 13666, 3562, 67, 529, 11, 2497, 11, 20451, 2117, 67, 529, 273, 2845, 264, 18, 588, 67, 6011, 12, 2890, 18, 3353, 18, 2097...
If the mode contains any of the strings 'False', 'No', "Don't" (case-insensitive, so e.g. "Do not" also works) the keyword fails,
If the mode contains any of the strings 'False', 'No', 'Don't' (case-insensitive, so e.g. 'Do not' also works) the keyword fails,
def create_file(self, path, content='', mode='overwrite'): """Creates a file to the given path with the given content. If the mode contains any of the strings 'False', 'No', "Don't" (case-insensitive, so e.g. "Do not" also works) the keyword fails, if the file already exists and the file is not overwritten. If it cont...
df93f4a4dda43def9e2f818e6024f05afbb477ab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6988/df93f4a4dda43def9e2f818e6024f05afbb477ab/OperatingSystem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 768, 12, 2890, 16, 589, 16, 913, 2218, 2187, 1965, 2218, 19274, 11, 4672, 3536, 2729, 279, 585, 358, 326, 864, 589, 598, 326, 864, 913, 18, 225, 971, 326, 1965, 1914, 1281, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 768, 12, 2890, 16, 589, 16, 913, 2218, 2187, 1965, 2218, 19274, 11, 4672, 3536, 2729, 279, 585, 358, 326, 864, 589, 598, 326, 864, 913, 18, 225, 971, 326, 1965, 1914, 1281, ...
try: import setuptools except ImportError: egg = None try: egg = download_setuptools(version) sys.path.insert(0,egg) from setuptools.command.easy_install import main return main(list(argv)+[egg]) finally: if egg and os.path.exists(egg): os.unlink(egg)
if setuptools_is_loaded(): if not setuptools_is_new_enough(version): print >>sys.stderr, ( "The required version of setuptools (>=%s) is not installed, and\n" "can't be installed while this script is running. Please install\n" "a more recent version first.\n\n(Currently using %r)" ) % (version, get_setuptools_versio...
def main(argv, version=DEFAULT_VERSION): """Install or upgrade setuptools and EasyInstall""" try: import setuptools except ImportError: egg = None try: egg = download_setuptools(version) sys.path.insert(0,egg) from setuptools.command.easy_install import main return main(list(argv)+[egg]) # we're done here finally: i...
21bc510cae2ea2ea23b0f5d17df554274cea2c04 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9086/21bc510cae2ea2ea23b0f5d17df554274cea2c04/ez_setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 16, 1177, 33, 5280, 67, 5757, 4672, 3536, 6410, 578, 8400, 444, 30693, 471, 29442, 6410, 8395, 225, 775, 30, 1930, 444, 30693, 1335, 11308, 30, 25144, 273, 599, 775, 30,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 16, 1177, 33, 5280, 67, 5757, 4672, 3536, 6410, 578, 8400, 444, 30693, 471, 29442, 6410, 8395, 225, 775, 30, 1930, 444, 30693, 1335, 11308, 30, 25144, 273, 599, 775, 30,...
for fileID in migratedFiles: sizesToObtain = []
sizesToObtain = [] for fileID in allMigrated:
def __updateMigrationAccounting(self,se,migratedFiles,migratingFiles,mismatchingFiles,assumedEndTime,previousMonitorTime): """ Create accounting messages for the overall throughput observed and the total migration time for the files """ gMonitor.addMark("MigratedFiles%s" % se,len(migratedFiles)) gMonitor.addMark("Total...
4f91556b86199dede4b08bee27f08eea5a1de278 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/4f91556b86199dede4b08bee27f08eea5a1de278/MigrationMonitoringAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2725, 10224, 3032, 310, 12, 2890, 16, 307, 16, 81, 2757, 690, 2697, 16, 81, 2757, 1776, 2697, 16, 11173, 16271, 2697, 16, 428, 379, 329, 25255, 16, 11515, 7187, 950, 4672, 3536, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2725, 10224, 3032, 310, 12, 2890, 16, 307, 16, 81, 2757, 690, 2697, 16, 81, 2757, 1776, 2697, 16, 11173, 16271, 2697, 16, 428, 379, 329, 25255, 16, 11515, 7187, 950, 4672, 3536, ...
class M2(object, D):
class M2(D, object):
def all_method(self): return "D b"
82e8bd903266beafe011c7c4c70cde3218bccbed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/82e8bd903266beafe011c7c4c70cde3218bccbed/test_descr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 777, 67, 2039, 12, 2890, 4672, 327, 315, 40, 324, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 777, 67, 2039, 12, 2890, 4672, 327, 315, 40, 324, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
for (root_name, root_valdoc) in self._root_items: if root_name.dominates(name): val_doc = root_valdoc var_doc = None break else: return None, None
for root_valdoc in self._root_list: if root_valdoc.canonical_name.dominates(name): var_doc, val_doc = self._get_from( root_valdoc, name[len(root_valdoc.canonical_name):]) if var_doc is not None or val_doc is not None: return var_doc, val_doc return None, None def _get_from(self, root_valdoc, name):
def _get(self, name): """ A helper function that's used to implement L{get_vardoc()} and L{get_valdoc()}. """ # Convert name to a DottedName, if necessary. name = DottedName(name)
0890e888ac0f70c7afcf31de33353fca9e366441 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/0890e888ac0f70c7afcf31de33353fca9e366441/docindexer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 12, 2890, 16, 508, 4672, 3536, 432, 4222, 445, 716, 1807, 1399, 358, 2348, 511, 95, 588, 67, 90, 1060, 504, 17767, 471, 511, 95, 588, 67, 1125, 2434, 1435, 5496, 3536, 468, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 12, 2890, 16, 508, 4672, 3536, 432, 4222, 445, 716, 1807, 1399, 358, 2348, 511, 95, 588, 67, 90, 1060, 504, 17767, 471, 511, 95, 588, 67, 1125, 2434, 1435, 5496, 3536, 468, ...
content = self.codeSubWin.GetTextUTF8()
content = self.codeSubWin.GetText()
def SaveFile(self): if self.filePath == "": self.SaveFileAs() else: try: file = open(self.filePath, "w") content = self.codeSubWin.GetTextUTF8() file.write(content) self.SetTitle(self.filePath) self.isModified = False file.close() except: # Todo: better error handling? Just print error message for now wx.MessageBox("Er...
0893f81f66f70b379e7f9b32f2988e06325919d6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11200/0893f81f66f70b379e7f9b32f2988e06325919d6/Psycollider.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7074, 812, 12, 2890, 4672, 309, 365, 18, 22787, 422, 1408, 30, 365, 18, 4755, 812, 1463, 1435, 469, 30, 775, 30, 585, 273, 1696, 12, 2890, 18, 22787, 16, 315, 91, 7923, 913, 273, 365...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7074, 812, 12, 2890, 4672, 309, 365, 18, 22787, 422, 1408, 30, 365, 18, 4755, 812, 1463, 1435, 469, 30, 775, 30, 585, 273, 1696, 12, 2890, 18, 22787, 16, 315, 91, 7923, 913, 273, 365...
'g4x6':{'atoms':[3,4,5,6],'distances':[7,8,9,10,11],'molecule':[2]},
'g4x6':{'atoms':[3,4,5,6],'distances':[7,8,9,10,11,12],'molecule':[2]},
def cons_conv(oldInput,oldSect,newInput,new_sect,conv): del new_sect.auto_g new_sect.pre_comments=oldSect.pre_comments new_sect.post_comments=oldSect.post_comments consTypes={'g3x3':{'atoms':[3,4,5],'distances':[6,7,8],'molecule':[2]}, 'g4x6':{'atoms':[3,4,5,6],'distances':[7,8,9,10,11],'molecule':[2]}, 'dist':{'atoms'...
e0c4b5ab23ad2adb0c363b9e52cb0f9ff781518d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2834/e0c4b5ab23ad2adb0c363b9e52cb0f9ff781518d/input_converter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1959, 67, 4896, 12, 1673, 1210, 16, 1673, 55, 386, 16, 2704, 1210, 16, 2704, 67, 5709, 16, 4896, 4672, 1464, 394, 67, 5709, 18, 6079, 67, 75, 394, 67, 5709, 18, 1484, 67, 9231, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1959, 67, 4896, 12, 1673, 1210, 16, 1673, 55, 386, 16, 2704, 1210, 16, 2704, 67, 5709, 16, 4896, 4672, 1464, 394, 67, 5709, 18, 6079, 67, 75, 394, 67, 5709, 18, 1484, 67, 9231, 33, ...
class File(FieldSet):
while not self.eof: yield FileSection(self, "section[]") def createDescription(self): return "%s: %s containing %d section(s)" % ( self["name"].value, self["type"].display, len(self.array("section"))) class FirmwareVolume(FieldSet):
def createFields(self): yield GUID(self, "name") yield UInt16(self, "integrity_check") yield Enum(UInt8(self, "type"), EFI_FV_FILETYPE) yield UInt8(self, "attributes") yield UInt24(self, "size") yield UInt8(self, "state")
4c34302eae3017390090b71cea31d443e59c0cee /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/4c34302eae3017390090b71cea31d443e59c0cee/pifv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2314, 12, 2890, 4672, 2824, 20322, 12, 2890, 16, 315, 529, 7923, 2824, 29810, 2313, 12, 2890, 16, 315, 27423, 560, 67, 1893, 7923, 2824, 6057, 12, 14342, 28, 12, 2890, 16, 315, 72...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2314, 12, 2890, 4672, 2824, 20322, 12, 2890, 16, 315, 529, 7923, 2824, 29810, 2313, 12, 2890, 16, 315, 27423, 560, 67, 1893, 7923, 2824, 6057, 12, 14342, 28, 12, 2890, 16, 315, 72...
if getConfig()['threads'][key]['noSave'] == True: logStatusMsg( u"(not saving to disk)", 4)
def run(): u"""Provides main functionality -- scans threads.""" global saved, rss, downloader, _action getConfig(filename=configFile, reload=True) if _action == 'daemon': getConfig()['global']['verbose'] = 0 if isinstance(getConfig()['global']['umask'], int): os.umask( getConfig()['global']['umask'] ) if getConfig()['g...
87e68aa179ddb5b8355b2b97811bad9b19e23ab2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/87e68aa179ddb5b8355b2b97811bad9b19e23ab2/rssdler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 13332, 582, 8395, 17727, 2774, 14176, 1493, 19676, 7403, 12123, 2552, 5198, 16, 18817, 16, 28122, 16, 389, 1128, 4367, 12, 3459, 33, 1425, 812, 16, 7749, 33, 5510, 13, 309, 389, 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, 1086, 13332, 582, 8395, 17727, 2774, 14176, 1493, 19676, 7403, 12123, 2552, 5198, 16, 18817, 16, 28122, 16, 389, 1128, 4367, 12, 3459, 33, 1425, 812, 16, 7749, 33, 5510, 13, 309, 389, 11...
def warn( self, sMsg, sVarMsg = False ):
def warn( self, sMsg, sVarMsg = '' ):
def warn( self, sMsg, sVarMsg = False ): messageObject = Message( self._systemName, self._logLevels.warn, Time.dateTime(), sMsg, sVarMsg, self.__discoverCallingFrame() ) return self.processMessage( messageObject )
00e13738d94dd08de6744b950d46c69f83e164e4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/00e13738d94dd08de6744b950d46c69f83e164e4/Logger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1894, 12, 365, 16, 272, 3332, 16, 272, 1537, 3332, 273, 875, 262, 30, 883, 921, 273, 2350, 12, 365, 6315, 4299, 461, 16, 365, 6315, 1330, 12240, 18, 8935, 16, 2647, 18, 712, 950, 933...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1894, 12, 365, 16, 272, 3332, 16, 272, 1537, 3332, 273, 875, 262, 30, 883, 921, 273, 2350, 12, 365, 6315, 4299, 461, 16, 365, 6315, 1330, 12240, 18, 8935, 16, 2647, 18, 712, 950, 933...
'(dojo/resources/ifram_history\.html)',
'(dojo/resources/iframe_history\.html)',
def _remove_files(self, base_folder, regexp_list): for root, dirs, files in os.walk(base_folder): for file in files: # remove all html-files for regexp in regexp_list: my_re = re.compile(regexp) if my_re.match(file): os.remove(os.path.join(root, file)) for dir in dirs: for regexp in regexp_list: my_re = re.compile(rege...
c02a969cfd2635d19f4483e8e2e893260acae961 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12008/c02a969cfd2635d19f4483e8e2e893260acae961/dojobuild.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4479, 67, 2354, 12, 2890, 16, 1026, 67, 5609, 16, 7195, 67, 1098, 4672, 364, 1365, 16, 7717, 16, 1390, 316, 1140, 18, 11348, 12, 1969, 67, 5609, 4672, 364, 585, 316, 1390, 30, 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, 389, 4479, 67, 2354, 12, 2890, 16, 1026, 67, 5609, 16, 7195, 67, 1098, 4672, 364, 1365, 16, 7717, 16, 1390, 316, 1140, 18, 11348, 12, 1969, 67, 5609, 4672, 364, 585, 316, 1390, 30, 4...
""" Manage the log file, and write contents to it """
""" Manages the log file, and writes contents to it """
def manage_log(self, writcontents): """ Manage the log file, and write contents to it """
f9b5bccd6b4fd4355a72b9b495908af2da52cae3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2163/f9b5bccd6b4fd4355a72b9b495908af2da52cae3/pyfind_revdep.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10680, 67, 1330, 12, 2890, 16, 2518, 3980, 4672, 3536, 24247, 326, 613, 585, 16, 471, 1045, 2939, 358, 518, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10680, 67, 1330, 12, 2890, 16, 2518, 3980, 4672, 3536, 24247, 326, 613, 585, 16, 471, 1045, 2939, 358, 518, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
def __init__(self, element, model):
def __init__(self, element, parent, model):
def __init__(self, element, model): self.model = model self.element = element self.base = element.getBase() self.name = element.getName() self.type = element.getType() self.properties = dict()
f7dfca6f480dea7bcef9a6d2f82aea89291574e1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1844/f7dfca6f480dea7bcef9a6d2f82aea89291574e1/fu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 930, 16, 982, 16, 938, 4672, 365, 18, 2284, 273, 938, 365, 18, 2956, 273, 930, 365, 18, 1969, 273, 930, 18, 588, 2171, 1435, 365, 18, 529, 273, 930, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 930, 16, 982, 16, 938, 4672, 365, 18, 2284, 273, 938, 365, 18, 2956, 273, 930, 365, 18, 1969, 273, 930, 18, 588, 2171, 1435, 365, 18, 529, 273, 930, ...
alg - "pari" or "maxima"
alg - "pari" or "maxima" or "scipy"
def bessel_I(nu,z,alg = "pari",prec=53): r""" Implements the "I-Bessel function", or "modified Bessel function, 1st kind", with index (or "order") nu and argument z. INPUT: nu -- a real (or complex, for pari) number z -- a real (positive) alg - "pari" or "maxima" prec - real precision (for Pari only) DEFINITION: \be...
0fb37ff99a113a9a0b53b260456b3ff8fa211fee /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0fb37ff99a113a9a0b53b260456b3ff8fa211fee/special.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 403, 292, 67, 45, 12, 13053, 16, 94, 16, 18413, 273, 315, 1065, 77, 3113, 4036, 33, 8643, 4672, 436, 8395, 29704, 326, 315, 45, 17, 38, 403, 292, 445, 3113, 578, 315, 7342, 605,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 403, 292, 67, 45, 12, 13053, 16, 94, 16, 18413, 273, 315, 1065, 77, 3113, 4036, 33, 8643, 4672, 436, 8395, 29704, 326, 315, 45, 17, 38, 403, 292, 445, 3113, 578, 315, 7342, 605,...
def _compare(dt1, dt2): '''Compares the internal representation of dt1 with the representation in dt2. Allows sub-millisecond variations. Primarily for testing.''' assert dt1.millis() == dt2.millis(), \ '%s != %s' % (dt1.millis(),dt2.millis()) assert math.floor(dt1._t * 1000.0) == \ math.floor(dt2._t * 1000.0) assert ...
def _compare(dt1, dt2): '''Compares the internal representation of dt1 with the representation in dt2. Allows sub-millisecond variations. Primarily for testing.''' assert dt1.millis() == dt2.millis(), \ '%s != %s' % (dt1.millis(),dt2.millis()) assert math.floor(dt1._t * 1000.0) == \ math.floor(dt2._t * 1000.0) assert ...
b3c9e0f18e86ee332fdce4466b2b7295d9ea9fd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/b3c9e0f18e86ee332fdce4466b2b7295d9ea9fd7/testDateTime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return self.base_ring()(self._poly[n], absprec = self._valbase + self._relprecs[n])
return self.base_ring()(self.base_ring().prime_pow(self._valbase) * self._poly[n], absprec = self._valbase + self._relprecs[n])
def __getitem__(self, n): if n >= len(self._relprecs): return self.base_ring()(0) if not self._list is None: return self._list[n] return self.base_ring()(self._poly[n], absprec = self._valbase + self._relprecs[n])
04fbc0922cf1afbc8d5e2f783cea01d23cbba31a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/04fbc0922cf1afbc8d5e2f783cea01d23cbba31a/polynomial_padic_capped_relative_dense.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 290, 4672, 309, 290, 1545, 562, 12, 2890, 6315, 2878, 1484, 2143, 4672, 327, 365, 18, 1969, 67, 8022, 1435, 12, 20, 13, 309, 486, 365, 6315, 1098, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 31571, 972, 12, 2890, 16, 290, 4672, 309, 290, 1545, 562, 12, 2890, 6315, 2878, 1484, 2143, 4672, 327, 365, 18, 1969, 67, 8022, 1435, 12, 20, 13, 309, 486, 365, 6315, 1098, 353, ...
self.log.debug("Current DB version is %s, we need %s", row and int(row[0]) or None, schema_version)
def environment_needs_upgrade(self, db): cursor = db.cursor() cursor.execute("SELECT value FROM system WHERE name='bitten_version'") row = cursor.fetchone() self.log.debug("Current DB version is %s, we need %s", row and int(row[0]) or None, schema_version) if not row or int(row[0]) < schema_version: return True
67c66a0241e4647cd79a9621add1c68343bcf325 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4547/67c66a0241e4647cd79a9621add1c68343bcf325/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3330, 67, 20600, 67, 15097, 12, 2890, 16, 1319, 4672, 3347, 273, 1319, 18, 9216, 1435, 3347, 18, 8837, 2932, 4803, 460, 4571, 2619, 4852, 508, 2218, 3682, 2253, 67, 1589, 4970, 13, 1027,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3330, 67, 20600, 67, 15097, 12, 2890, 16, 1319, 4672, 3347, 273, 1319, 18, 9216, 1435, 3347, 18, 8837, 2932, 4803, 460, 4571, 2619, 4852, 508, 2218, 3682, 2253, 67, 1589, 4970, 13, 1027,...
ret += '<small>' + separator.join(url_list) + '<small><br />'
ret += '<small>' + separator.join(url_list) + '</small><br />'
def format(bfo, style, separator='; ', show_icons='no'): """ This is the default format for formatting full-text reference. @param separator the separator between urls. @param style CSS class of the link @param show_icons if 'yes', print icons for fulltexts """ urls = bfo.fields("8564_") ret = "" bibarchive = BibRecD...
ff4abf0195bd8901a0efb19b827b9c928fbfe64c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2763/ff4abf0195bd8901a0efb19b827b9c928fbfe64c/bfe_fulltext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 12, 70, 617, 16, 2154, 16, 4182, 2218, 31, 2265, 2405, 67, 14516, 2218, 2135, 11, 4672, 3536, 1220, 353, 326, 805, 740, 364, 10407, 1983, 17, 955, 2114, 18, 632, 891, 4182, 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, 740, 12, 70, 617, 16, 2154, 16, 4182, 2218, 31, 2265, 2405, 67, 14516, 2218, 2135, 11, 4672, 3536, 1220, 353, 326, 805, 740, 364, 10407, 1983, 17, 955, 2114, 18, 632, 891, 4182, 326, ...
uo=urllib.FancyURLopener()
uo=MyURLopener()
def getUrl(host,address): uo=urllib.FancyURLopener() f=uo.open('http://%s%s'%(host,address)) text=f.read() ct=f.info()['Content-Type'] R=re.compile('charset=([^\'\"]+)') m=R.search(ct) if m: charset=m.group(1) else: charset=None return text,charset
13c34ebdb18669c5213a85367d51775d0cb8e26f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/13c34ebdb18669c5213a85367d51775d0cb8e26f/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8928, 12, 2564, 16, 2867, 4672, 582, 83, 33, 12062, 1785, 25098, 1435, 284, 33, 89, 83, 18, 3190, 2668, 2505, 23155, 87, 9, 87, 11, 17105, 2564, 16, 2867, 3719, 977, 33, 74, 18, 896,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8928, 12, 2564, 16, 2867, 4672, 582, 83, 33, 12062, 1785, 25098, 1435, 284, 33, 89, 83, 18, 3190, 2668, 2505, 23155, 87, 9, 87, 11, 17105, 2564, 16, 2867, 3719, 977, 33, 74, 18, 896,...
m = Menu(self._canvas, tearoff=0)
m = Menu(p, tearoff=0)
def __init__(self, master, cwidth=1024, cheight=768, pix_per_dva=1.0, app=None, callback=None): """UserDisplay Class.
673ee6346b8467cb07cec5552855c42cb8e7ee49 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5701/673ee6346b8467cb07cec5552855c42cb8e7ee49/userdpy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4171, 16, 276, 2819, 33, 2163, 3247, 16, 462, 1274, 33, 6669, 28, 16, 11871, 67, 457, 67, 72, 15304, 33, 21, 18, 20, 16, 595, 33, 7036, 16, 1348, 33,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4171, 16, 276, 2819, 33, 2163, 3247, 16, 462, 1274, 33, 6669, 28, 16, 11871, 67, 457, 67, 72, 15304, 33, 21, 18, 20, 16, 595, 33, 7036, 16, 1348, 33,...
ogr.GetDriverByName('ESRI Shapefile').DeleteDataSource('tmp/Fields.shp')
ogr.GetDriverByName('ESRI Shapefile').DeleteDataSource('tmp/Fields.dbf')
def test_ogr2ogr_20(): if test_cli_utilities.get_ogr2ogr_path() is None: return 'skip' if not ogrtest.have_geos(): return 'skip' gml_drv = ogr.GetDriverByName('GML') if gml_drv is None: return 'skip' expected_fields = [ 'a', 'A_1', 'a_1_2', 'aaaaaAAAAA', 'aAaaaAAA_1', 'aaaaaAAAAB', 'aaaaaAAA_2', 'aaaaaAAA_3', 'aaaaa...
177ffd16a6f2da58876a744c1018aea601409d81 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10289/177ffd16a6f2da58876a744c1018aea601409d81/test_ogr2ogr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 717, 86, 22, 717, 86, 67, 3462, 13332, 309, 1842, 67, 4857, 67, 1367, 1961, 18, 588, 67, 717, 86, 22, 717, 86, 67, 803, 1435, 353, 599, 30, 327, 296, 7457, 11, 225, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 717, 86, 22, 717, 86, 67, 3462, 13332, 309, 1842, 67, 4857, 67, 1367, 1961, 18, 588, 67, 717, 86, 22, 717, 86, 67, 803, 1435, 353, 599, 30, 327, 296, 7457, 11, 225, 309, ...
page.save(get_reporter_id(req, 'author'), req.args.get('comment'), req.remote_addr) req.redirect(req.href.wiki(page.name))
try: page.save(get_reporter_id(req, 'author'), req.args.get('comment'), req.remote_addr) not_modified = False except TracError: not_modified = True req.redirect(context.resource_href(version=not_modified and \ page.version or None))
def _do_save(self, context): page = context.resource req = context.req db = context.db
014af479773f81b46947aad0130333e2f523fb31 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2831/014af479773f81b46947aad0130333e2f523fb31/web_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 5688, 12, 2890, 16, 819, 4672, 1363, 273, 819, 18, 3146, 1111, 273, 819, 18, 3658, 1319, 273, 819, 18, 1966, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 5688, 12, 2890, 16, 819, 4672, 1363, 273, 819, 18, 3146, 1111, 273, 819, 18, 3658, 1319, 273, 819, 18, 1966, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
x = np.array([1,2,3])
x = np.array([1,2,3], dtype=np.int32)
def test_buffer_hashlib(self): try: from hashlib import md5 except ImportError: from md5 import new as md5
73173cd85eae72e4a22b7b465ea74be0dacd8bc6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/73173cd85eae72e4a22b7b465ea74be0dacd8bc6/test_regression.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4106, 67, 2816, 2941, 12, 2890, 4672, 775, 30, 628, 15956, 1930, 3481, 25, 1335, 11308, 30, 628, 3481, 25, 1930, 394, 487, 3481, 25, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4106, 67, 2816, 2941, 12, 2890, 4672, 775, 30, 628, 15956, 1930, 3481, 25, 1335, 11308, 30, 628, 3481, 25, 1930, 394, 487, 3481, 25, 2, -100, -100, -100, -100, -100, -100, -1...
self.parser.parse_into_model(self.model,"file:../perl/dc.rdf")
self.parser.parse_into_model(self.model,"file:../data/dc.rdf")
def testFindStatements1(self): self.parser.parse_into_model(self.model,"file:../perl/dc.rdf") statement = Statement( Uri("http://purl.org/net/dajobe/"), None, None)
a61b7fbb628fcd9ecf6f0a1eb3d595671b166459 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14754/a61b7fbb628fcd9ecf6f0a1eb3d595671b166459/redlandtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3125, 14663, 21, 12, 2890, 4672, 365, 18, 4288, 18, 2670, 67, 18591, 67, 2284, 12, 2890, 18, 2284, 10837, 768, 30, 6216, 892, 19, 7201, 18, 19299, 7923, 3021, 273, 8056, 12, 1069...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3125, 14663, 21, 12, 2890, 4672, 365, 18, 4288, 18, 2670, 67, 18591, 67, 2284, 12, 2890, 18, 2284, 10837, 768, 30, 6216, 892, 19, 7201, 18, 19299, 7923, 3021, 273, 8056, 12, 1069...