Skip to content

Commit f357f0e

Browse files
authored
Merge pull request #66 from njsmith/show-code-license
Add proper license notice to show-code.js
2 parents d644686 + 310456a commit f357f0e

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

docs/source/_static/show-code.js

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,41 @@
11
// Stolen from statsmodels and fixed up
2+
// Here's what statsmodels' LICENSE.txt says:
3+
//
4+
// Copyright (C) 2006, Jonathan E. Taylor
5+
// All rights reserved.
6+
//
7+
// Copyright (c) 2006-2008 Scipy Developers.
8+
// All rights reserved.
9+
//
10+
// Copyright (c) 2009-2012 Statsmodels Developers.
11+
// All rights reserved.
12+
//
13+
//
14+
// Redistribution and use in source and binary forms, with or without
15+
// modification, are permitted provided that the following conditions are met:
16+
//
17+
// a. Redistributions of source code must retain the above copyright notice,
18+
// this list of conditions and the following disclaimer.
19+
// b. Redistributions in binary form must reproduce the above copyright
20+
// notice, this list of conditions and the following disclaimer in the
21+
// documentation and/or other materials provided with the distribution.
22+
// c. Neither the name of Statsmodels nor the names of its contributors
23+
// may be used to endorse or promote products derived from this software
24+
// without specific prior written permission.
25+
//
26+
//
27+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
28+
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
29+
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
30+
// ARE DISCLAIMED. IN NO EVENT SHALL STATSMODELS OR CONTRIBUTORS BE LIABLE FOR
31+
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
32+
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
33+
// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
34+
// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
35+
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
36+
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
37+
// DAMAGE.
38+
239

340
function htmlescape(text){
441
return (text.replace(/&/g, "&")

0 commit comments

Comments
 (0)