entropy 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. data/.gitignore +4 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE.txt +674 -0
  4. data/README.txt +48 -0
  5. data/Rakefile +22 -0
  6. data/doc/rdocs/Entropy.html +234 -0
  7. data/doc/rdocs/Entropy/Dict.html +311 -0
  8. data/doc/rdocs/Entropy/ProbabilityMetricSpace.html +544 -0
  9. data/doc/rdocs/Entropy/ProbabilitySpace.html +473 -0
  10. data/doc/rdocs/Entropy/Stream.html +281 -0
  11. data/doc/rdocs/LICENSE_txt.html +834 -0
  12. data/doc/rdocs/README_txt.html +138 -0
  13. data/doc/rdocs/created.rid +9 -0
  14. data/doc/rdocs/images/brick.png +0 -0
  15. data/doc/rdocs/images/brick_link.png +0 -0
  16. data/doc/rdocs/images/bug.png +0 -0
  17. data/doc/rdocs/images/bullet_black.png +0 -0
  18. data/doc/rdocs/images/bullet_toggle_minus.png +0 -0
  19. data/doc/rdocs/images/bullet_toggle_plus.png +0 -0
  20. data/doc/rdocs/images/date.png +0 -0
  21. data/doc/rdocs/images/find.png +0 -0
  22. data/doc/rdocs/images/loadingAnimation.gif +0 -0
  23. data/doc/rdocs/images/macFFBgHack.png +0 -0
  24. data/doc/rdocs/images/package.png +0 -0
  25. data/doc/rdocs/images/page_green.png +0 -0
  26. data/doc/rdocs/images/page_white_text.png +0 -0
  27. data/doc/rdocs/images/page_white_width.png +0 -0
  28. data/doc/rdocs/images/plugin.png +0 -0
  29. data/doc/rdocs/images/ruby.png +0 -0
  30. data/doc/rdocs/images/tag_green.png +0 -0
  31. data/doc/rdocs/images/wrench.png +0 -0
  32. data/doc/rdocs/images/wrench_orange.png +0 -0
  33. data/doc/rdocs/images/zoom.png +0 -0
  34. data/doc/rdocs/index.html +155 -0
  35. data/doc/rdocs/js/darkfish.js +116 -0
  36. data/doc/rdocs/js/jquery.js +32 -0
  37. data/doc/rdocs/js/quicksearch.js +114 -0
  38. data/doc/rdocs/js/thickbox-compressed.js +10 -0
  39. data/doc/rdocs/lib/entropy/dict_rb.html +56 -0
  40. data/doc/rdocs/lib/entropy/metric_space_rb.html +54 -0
  41. data/doc/rdocs/lib/entropy/probability_space_rb.html +52 -0
  42. data/doc/rdocs/lib/entropy/stream_rb.html +52 -0
  43. data/doc/rdocs/lib/entropy/version_rb.html +52 -0
  44. data/doc/rdocs/lib/entropy_rb.html +62 -0
  45. data/doc/rdocs/rdoc.css +763 -0
  46. data/entropy.gemspec +24 -0
  47. data/example/metric_prob_space.rb +42 -0
  48. data/example/prob_space.rb +31 -0
  49. data/lib/entropy.rb +13 -0
  50. data/lib/entropy/dict.rb +30 -0
  51. data/lib/entropy/metric_space.rb +116 -0
  52. data/lib/entropy/probability_space.rb +91 -0
  53. data/lib/entropy/stream.rb +37 -0
  54. data/lib/entropy/version.rb +3 -0
  55. data/test/stream0.txt +1 -0
  56. data/test/stream1.txt +1 -0
  57. data/test/stream2.txt +1 -0
  58. data/test/stream_random.bin +2 -0
  59. data/test/test_entropy_def.rb +10 -0
  60. data/test/test_entropy_metr.rb +36 -0
  61. data/test/test_entropy_prob.rb +64 -0
  62. data/test/test_entropy_stream.rb +29 -0
  63. metadata +127 -0
@@ -0,0 +1,281 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
7
+
8
+ <title>Class: Entropy::Stream</title>
9
+
10
+ <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
13
+ <script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
14
+ <script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
15
+ <script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
16
+
17
+ </head>
18
+ <body id="top" class="class">
19
+
20
+ <div id="metadata">
21
+ <div id="home-metadata">
22
+ <div id="home-section" class="section">
23
+ <h3 class="section-header">
24
+ <a href="../index.html">Home</a>
25
+ <a href="../index.html#classes">Classes</a>
26
+ <a href="../index.html#methods">Methods</a>
27
+ </h3>
28
+ </div>
29
+ </div>
30
+
31
+ <div id="file-metadata">
32
+ <div id="file-list-section" class="section">
33
+ <h3 class="section-header">In Files</h3>
34
+ <div class="section-body">
35
+ <ul>
36
+
37
+ <li><a href="../lib/entropy/stream_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
+ class="thickbox" title="lib/entropy/stream.rb">lib/entropy/stream.rb</a></li>
39
+
40
+ </ul>
41
+ </div>
42
+ </div>
43
+
44
+
45
+ </div>
46
+
47
+ <div id="class-metadata">
48
+
49
+ <!-- Parent Class -->
50
+ <div id="parent-class-section" class="section">
51
+ <h3 class="section-header">Parent</h3>
52
+
53
+ <p class="link">Object</p>
54
+
55
+ </div>
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+ <!-- Method Quickref -->
64
+ <div id="method-list-section" class="section">
65
+ <h3 class="section-header">Methods</h3>
66
+ <ul class="link-list">
67
+
68
+ <li><a href="#method-c-new">::new</a></li>
69
+
70
+ <li><a href="#method-i-add_stream">#add_stream</a></li>
71
+
72
+ </ul>
73
+ </div>
74
+
75
+
76
+
77
+ </div>
78
+
79
+ <div id="project-metadata">
80
+
81
+
82
+ <div id="fileindex-section" class="section project-section">
83
+ <h3 class="section-header">Files</h3>
84
+ <ul>
85
+
86
+ <li class="file"><a href="../LICENSE_txt.html">LICENSE.txt</a></li>
87
+
88
+ <li class="file"><a href="../README_txt.html">README.txt</a></li>
89
+
90
+ </ul>
91
+ </div>
92
+
93
+
94
+ <div id="classindex-section" class="section project-section">
95
+ <h3 class="section-header">Class/Module Index
96
+ <span class="search-toggle"><img src="../images/find.png"
97
+ height="16" width="16" alt="[+]"
98
+ title="show/hide quicksearch" /></span></h3>
99
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
100
+ <fieldset>
101
+ <legend>Quicksearch</legend>
102
+ <input type="text" name="quicksearch" value=""
103
+ class="quicksearch-field" />
104
+ </fieldset>
105
+ </form>
106
+
107
+ <ul class="link-list">
108
+
109
+ <li><a href="../Entropy.html">Entropy</a></li>
110
+
111
+ <li><a href="../Entropy/Dict.html">Entropy::Dict</a></li>
112
+
113
+ <li><a href="../Entropy/ProbabilityMetricSpace.html">Entropy::ProbabilityMetricSpace</a></li>
114
+
115
+ <li><a href="../Entropy/ProbabilitySpace.html">Entropy::ProbabilitySpace</a></li>
116
+
117
+ <li><a href="../Entropy/Stream.html">Entropy::Stream</a></li>
118
+
119
+ </ul>
120
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
121
+ </div>
122
+
123
+
124
+ </div>
125
+ </div>
126
+
127
+ <div id="documentation">
128
+ <h1 class="class">Entropy::Stream</h1>
129
+
130
+ <div id="description" class="description">
131
+
132
+ <p>Class used to define a stream inside the space</p>
133
+
134
+ </div><!-- description -->
135
+
136
+
137
+
138
+
139
+ <div id="5Buntitled-5D" class="documentation-section">
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+ <!-- Attributes -->
148
+ <div id="attribute-method-details" class="method-section section">
149
+ <h3 class="section-header">Attributes</h3>
150
+
151
+
152
+ <div id="streams-attribute-method" class="method-detail">
153
+ <a name="streams"></a>
154
+
155
+ <div class="method-heading attribute-method-heading">
156
+ <span class="method-name">streams</span><span
157
+ class="attribute-access-type">[R]</span>
158
+ </div>
159
+
160
+ <div class="method-description">
161
+
162
+
163
+
164
+ </div>
165
+ </div>
166
+
167
+ </div><!-- attribute-method-details -->
168
+
169
+
170
+ <!-- Methods -->
171
+
172
+ <div id="public-class-method-details" class="method-section section">
173
+ <h3 class="section-header">Public Class Methods</h3>
174
+
175
+
176
+ <div id="new-method" class="method-detail ">
177
+ <a name="method-c-new"></a>
178
+
179
+
180
+ <div class="method-heading">
181
+ <span class="method-name">new</span><span
182
+ class="method-args">()</span>
183
+ <span class="method-click-advice">click to toggle source</span>
184
+ </div>
185
+
186
+
187
+ <div class="method-description">
188
+
189
+
190
+
191
+
192
+
193
+ <div class="method-source-code" id="new-source">
194
+ <pre>
195
+ <span class="ruby-comment"># File lib/entropy/stream.rb, line 8</span>
196
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>
197
+ <span class="ruby-ivar">@streams</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>
198
+ <span class="ruby-keyword">end</span></pre>
199
+ </div><!-- new-source -->
200
+
201
+ </div>
202
+
203
+
204
+
205
+
206
+ </div><!-- new-method -->
207
+
208
+
209
+ </div><!-- public-class-method-details -->
210
+
211
+ <div id="public-instance-method-details" class="method-section section">
212
+ <h3 class="section-header">Public Instance Methods</h3>
213
+
214
+
215
+ <div id="add_stream-method" class="method-detail ">
216
+ <a name="method-i-add_stream"></a>
217
+
218
+
219
+ <div class="method-heading">
220
+ <span class="method-name">add_stream</span><span
221
+ class="method-args">(stream)</span>
222
+ <span class="method-click-advice">click to toggle source</span>
223
+ </div>
224
+
225
+
226
+ <div class="method-description">
227
+
228
+ <p>Adds a stream (a File or a String) to the space</p>
229
+
230
+
231
+
232
+ <div class="method-source-code" id="add_stream-source">
233
+ <pre>
234
+ <span class="ruby-comment"># File lib/entropy/stream.rb, line 13</span>
235
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">add_stream</span>(<span class="ruby-identifier">stream</span>)
236
+ <span class="ruby-identifier">iter</span> = <span class="ruby-keyword">nil</span>
237
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">stream</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-string">&quot;binmode?&quot;</span>)
238
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">stream</span>.<span class="ruby-identifier">binmode?</span>
239
+ <span class="ruby-identifier">puts</span> <span class="ruby-string">&quot;Binary File Stream Initialization...&quot;</span>
240
+ <span class="ruby-identifier">iter</span> = <span class="ruby-value">:each_byte</span>
241
+ <span class="ruby-keyword">else</span>
242
+ <span class="ruby-identifier">puts</span> <span class="ruby-string">&quot;Char File Stream Initialization...&quot;</span>
243
+ <span class="ruby-identifier">iter</span> = <span class="ruby-value">:each_char</span>
244
+ <span class="ruby-keyword">end</span>
245
+ <span class="ruby-keyword">elsif</span> <span class="ruby-identifier">stream</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-string">&quot;each_char&quot;</span>)
246
+ <span class="ruby-identifier">puts</span> <span class="ruby-string">&quot;Char Stream Initialization...&quot;</span>
247
+ <span class="ruby-identifier">iter</span> = <span class="ruby-value">:each_char</span>
248
+ <span class="ruby-keyword">elsif</span> <span class="ruby-identifier">stream</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-string">&quot;each_byte&quot;</span>)
249
+ <span class="ruby-identifier">puts</span> <span class="ruby-string">&quot;Binary Stream Initialization...&quot;</span>
250
+ <span class="ruby-identifier">iter</span> = <span class="ruby-value">:each_byte</span>
251
+ <span class="ruby-keyword">else</span>
252
+ <span class="ruby-identifier">raise</span> <span class="ruby-string">&quot;Wrong type of stream&quot;</span>
253
+ <span class="ruby-keyword">end</span>
254
+ <span class="ruby-ivar">@streams</span>[<span class="ruby-identifier">stream</span>] = <span class="ruby-identifier">iter</span>
255
+ <span class="ruby-keyword">end</span></pre>
256
+ </div><!-- add_stream-source -->
257
+
258
+ </div>
259
+
260
+
261
+
262
+
263
+ </div><!-- add_stream-method -->
264
+
265
+
266
+ </div><!-- public-instance-method-details -->
267
+
268
+ </div><!-- 5Buntitled-5D -->
269
+
270
+
271
+ </div><!-- documentation -->
272
+
273
+ <div id="validator-badges">
274
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
275
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
276
+ Rdoc Generator</a> 2</small>.</p>
277
+ </div>
278
+
279
+ </body>
280
+ </html>
281
+
@@ -0,0 +1,834 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+
5
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
+ <head>
7
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
8
+
9
+ <title>File: LICENSE.txt [RDoc Documentation]</title>
10
+
11
+ <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet" />
12
+
13
+ <script src="./js/jquery.js" type="text/javascript"
14
+ charset="utf-8"></script>
15
+ <script src="./js/thickbox-compressed.js" type="text/javascript"
16
+ charset="utf-8"></script>
17
+ <script src="./js/quicksearch.js" type="text/javascript"
18
+ charset="utf-8"></script>
19
+ <script src="./js/darkfish.js" type="text/javascript"
20
+ charset="utf-8"></script>
21
+ </head>
22
+
23
+ <body class="file">
24
+ <div id="metadata">
25
+ <div id="home-metadata">
26
+ <div id="home-section" class="section">
27
+ <h3 class="section-header">
28
+ <a href="./index.html">Home</a>
29
+ <a href="./index.html#classes">Classes</a>
30
+ <a href="./index.html#methods">Methods</a>
31
+ </h3>
32
+ </div>
33
+ </div>
34
+
35
+ <div id="project-metadata">
36
+
37
+
38
+ <div id="fileindex-section" class="section project-section">
39
+ <h3 class="section-header">Files</h3>
40
+ <ul>
41
+
42
+ <li class="file"><a href="./LICENSE_txt.html">LICENSE.txt</a></li>
43
+
44
+ <li class="file"><a href="./README_txt.html">README.txt</a></li>
45
+
46
+ </ul>
47
+ </div>
48
+
49
+
50
+ <div id="classindex-section" class="section project-section">
51
+ <h3 class="section-header">Class Index
52
+ <span class="search-toggle"><img src="./images/find.png"
53
+ height="16" width="16" alt="[+]"
54
+ title="show/hide quicksearch" /></span></h3>
55
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
56
+ <fieldset>
57
+ <legend>Quicksearch</legend>
58
+ <input type="text" name="quicksearch" value=""
59
+ class="quicksearch-field" />
60
+ </fieldset>
61
+ </form>
62
+
63
+ <ul class="link-list">
64
+
65
+ <li><a href="./Entropy.html">Entropy</a></li>
66
+
67
+ <li><a href="./Entropy/Dict.html">Entropy::Dict</a></li>
68
+
69
+ <li><a href="./Entropy/ProbabilityMetricSpace.html">Entropy::ProbabilityMetricSpace</a></li>
70
+
71
+ <li><a href="./Entropy/ProbabilitySpace.html">Entropy::ProbabilitySpace</a></li>
72
+
73
+ <li><a href="./Entropy/Stream.html">Entropy::Stream</a></li>
74
+
75
+ </ul>
76
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
77
+ </div>
78
+
79
+
80
+ </div>
81
+ </div>
82
+
83
+ <div id="documentation">
84
+
85
+ <pre> GNU GENERAL PUBLIC LICENSE
86
+ Version 3, 29 June 2007
87
+
88
+ Copyright (C) 2007 Free Software Foundation, Inc. &lt;http://fsf.org/&gt;
89
+ Everyone is permitted to copy and distribute verbatim copies
90
+ of this license document, but changing it is not allowed.
91
+
92
+ Preamble
93
+
94
+ The GNU General Public License is a free, copyleft license for</pre>
95
+
96
+ <p>software and other kinds of works.</p>
97
+
98
+ <pre>The licenses for most software and other practical works are designed</pre>
99
+
100
+ <p>to take away your freedom to share and change the works. By contrast, the
101
+ GNU General Public License is intended to guarantee your freedom to share
102
+ and change all versions of a program–to make sure it remains free software
103
+ for all its users. We, the Free Software Foundation, use the GNU General
104
+ Public License for most of our software; it applies also to any other work
105
+ released this way by its authors. You can apply it to your programs, too.</p>
106
+
107
+ <pre>When we speak of free software, we are referring to freedom, not</pre>
108
+
109
+ <p>price. Our General Public Licenses are designed to make sure that you have
110
+ the freedom to distribute copies of free software (and charge for them if
111
+ you wish), that you receive source code or can get it if you want it, that
112
+ you can change the software or use pieces of it in new free programs, and
113
+ that you know you can do these things.</p>
114
+
115
+ <pre>To protect your rights, we need to prevent others from denying you</pre>
116
+
117
+ <p>these rights or asking you to surrender the rights. Therefore, you have
118
+ certain responsibilities if you distribute copies of the software, or if
119
+ you modify it: responsibilities to respect the freedom of others.</p>
120
+
121
+ <pre>For example, if you distribute copies of such a program, whether</pre>
122
+
123
+ <p>gratis or for a fee, you must pass on to the recipients the same freedoms
124
+ that you received. You must make sure that they, too, receive or can get
125
+ the source code. And you must show them these terms so they know their
126
+ rights.</p>
127
+
128
+ <pre>Developers that use the GNU GPL protect your rights with two steps:</pre>
129
+
130
+ <p>(1) assert copyright on the software, and (2) offer you this License giving
131
+ you legal permission to copy, distribute and/or modify it.</p>
132
+
133
+ <pre>For the developers' and authors' protection, the GPL clearly explains</pre>
134
+
135
+ <p>that there is no warranty for this free software. For both users’ and
136
+ authors’ sake, the GPL requires that modified versions be marked as
137
+ changed, so that their problems will not be attributed erroneously to
138
+ authors of previous versions.</p>
139
+
140
+ <pre>Some devices are designed to deny users access to install or run</pre>
141
+
142
+ <p>modified versions of the software inside them, although the manufacturer
143
+ can do so. This is fundamentally incompatible with the aim of protecting
144
+ users’ freedom to change the software. The systematic pattern of such
145
+ abuse occurs in the area of products for individuals to use, which is
146
+ precisely where it is most unacceptable. Therefore, we have designed this
147
+ version of the GPL to prohibit the practice for those products. If such
148
+ problems arise substantially in other domains, we stand ready to extend
149
+ this provision to those domains in future versions of the GPL, as needed to
150
+ protect the freedom of users.</p>
151
+
152
+ <pre>Finally, every program is threatened constantly by software patents.</pre>
153
+
154
+ <p>States should not allow patents to restrict development and use of software
155
+ on general-purpose computers, but in those that do, we wish to avoid the
156
+ special danger that patents applied to a free program could make it
157
+ effectively proprietary. To prevent this, the GPL assures that patents
158
+ cannot be used to render the program non-free.</p>
159
+
160
+ <pre>The precise terms and conditions for copying, distribution and</pre>
161
+
162
+ <p>modification follow.</p>
163
+
164
+ <pre> TERMS AND CONDITIONS
165
+
166
+ 0. Definitions.
167
+
168
+ &quot;This License&quot; refers to version 3 of the GNU General Public License.
169
+
170
+ &quot;Copyright&quot; also means copyright-like laws that apply to other kinds of</pre>
171
+
172
+ <p>works, such as semiconductor masks.</p>
173
+
174
+ <pre>&quot;The Program&quot; refers to any copyrightable work licensed under this</pre>
175
+
176
+ <p>License. Each licensee is addressed as “you”. “Licensees” and
177
+ “recipients” may be individuals or organizations.</p>
178
+
179
+ <pre>To &quot;modify&quot; a work means to copy from or adapt all or part of the work</pre>
180
+
181
+ <p>in a fashion requiring copyright permission, other than the making of an
182
+ exact copy. The resulting work is called a “modified version” of the
183
+ earlier work or a work “based on” the earlier work.</p>
184
+
185
+ <pre>A &quot;covered work&quot; means either the unmodified Program or a work based</pre>
186
+
187
+ <p>on the Program.</p>
188
+
189
+ <pre>To &quot;propagate&quot; a work means to do anything with it that, without</pre>
190
+
191
+ <p>permission, would make you directly or secondarily liable for infringement
192
+ under applicable copyright law, except executing it on a computer or
193
+ modifying a private copy. Propagation includes copying, distribution (with
194
+ or without modification), making available to the public, and in some
195
+ countries other activities as well.</p>
196
+
197
+ <pre>To &quot;convey&quot; a work means any kind of propagation that enables other</pre>
198
+
199
+ <p>parties to make or receive copies. Mere interaction with a user through a
200
+ computer network, with no transfer of a copy, is not conveying.</p>
201
+
202
+ <pre>An interactive user interface displays &quot;Appropriate Legal Notices&quot;</pre>
203
+
204
+ <p>to the extent that it includes a convenient and prominently visible feature
205
+ that (1) displays an appropriate copyright notice, and (2) tells the user
206
+ that there is no warranty for the work (except to the extent that
207
+ warranties are provided), that licensees may convey the work under this
208
+ License, and how to view a copy of this License. If the interface presents
209
+ a list of user commands or options, such as a menu, a prominent item in the
210
+ list meets this criterion.</p>
211
+
212
+ <pre>1. Source Code.
213
+
214
+ The &quot;source code&quot; for a work means the preferred form of the work</pre>
215
+
216
+ <p>for making modifications to it. “Object code” means any non-source form of
217
+ a work.</p>
218
+
219
+ <pre>A &quot;Standard Interface&quot; means an interface that either is an official</pre>
220
+
221
+ <p>standard defined by a recognized standards body, or, in the case of
222
+ interfaces specified for a particular programming language, one that is
223
+ widely used among developers working in that language.</p>
224
+
225
+ <pre>The &quot;System Libraries&quot; of an executable work include anything, other</pre>
226
+
227
+ <p>than the work as a whole, that (a) is included in the normal form of
228
+ packaging a Major Component, but which is not part of that Major Component,
229
+ and (b) serves only to enable use of the work with that Major Component, or
230
+ to implement a Standard Interface for which an implementation is available
231
+ to the public in source code form. A “Major Component”, in this context,
232
+ means a major essential component (kernel, window system, and so on) of the
233
+ specific operating system (if any) on which the executable work runs, or a
234
+ compiler used to produce the work, or an object code interpreter used to
235
+ run it.</p>
236
+
237
+ <pre>The &quot;Corresponding Source&quot; for a work in object code form means all</pre>
238
+
239
+ <p>the source code needed to generate, install, and (for an executable work)
240
+ run the object code and to modify the work, including scripts to control
241
+ those activities. However, it does not include the work’s System
242
+ Libraries, or general-purpose tools or generally available free programs
243
+ which are used unmodified in performing those activities but which are not
244
+ part of the work. For example, Corresponding Source includes interface
245
+ definition files associated with source files for the work, and the source
246
+ code for shared libraries and dynamically linked subprograms that the work
247
+ is specifically designed to require, such as by intimate data communication
248
+ or control flow between those subprograms and other parts of the work.</p>
249
+
250
+ <pre>The Corresponding Source need not include anything that users</pre>
251
+
252
+ <p>can regenerate automatically from other parts of the Corresponding Source.</p>
253
+
254
+ <pre>The Corresponding Source for a work in source code form is that</pre>
255
+
256
+ <p>same work.</p>
257
+
258
+ <pre>2. Basic Permissions.
259
+
260
+ All rights granted under this License are granted for the term of</pre>
261
+
262
+ <p>copyright on the Program, and are irrevocable provided the stated
263
+ conditions are met. This License explicitly affirms your unlimited
264
+ permission to run the unmodified Program. The output from running a
265
+ covered work is covered by this License only if the output, given its
266
+ content, constitutes a covered work. This License acknowledges your rights
267
+ of fair use or other equivalent, as provided by copyright law.</p>
268
+
269
+ <pre>You may make, run and propagate covered works that you do not</pre>
270
+
271
+ <p>convey, without conditions so long as your license otherwise remains in
272
+ force. You may convey covered works to others for the sole purpose of
273
+ having them make modifications exclusively for you, or provide you with
274
+ facilities for running those works, provided that you comply with the terms
275
+ of this License in conveying all material for which you do not control
276
+ copyright. Those thus making or running the covered works for you must do
277
+ so exclusively on your behalf, under your direction and control, on terms
278
+ that prohibit them from making any copies of your copyrighted material
279
+ outside their relationship with you.</p>
280
+
281
+ <pre>Conveying under any other circumstances is permitted solely under</pre>
282
+
283
+ <p>the conditions stated below. Sublicensing is not allowed; section 10 makes
284
+ it unnecessary.</p>
285
+
286
+ <pre>3. Protecting Users' Legal Rights From Anti-Circumvention Law.
287
+
288
+ No covered work shall be deemed part of an effective technological</pre>
289
+
290
+ <p>measure under any applicable law fulfilling obligations under article 11 of
291
+ the WIPO copyright treaty adopted on 20 December 1996, or similar laws
292
+ prohibiting or restricting circumvention of such measures.</p>
293
+
294
+ <pre>When you convey a covered work, you waive any legal power to forbid</pre>
295
+
296
+ <p>circumvention of technological measures to the extent such circumvention is
297
+ effected by exercising rights under this License with respect to the
298
+ covered work, and you disclaim any intention to limit operation or
299
+ modification of the work as a means of enforcing, against the work’s users,
300
+ your or third parties’ legal rights to forbid circumvention of
301
+ technological measures.</p>
302
+
303
+ <pre>4. Conveying Verbatim Copies.
304
+
305
+ You may convey verbatim copies of the Program's source code as you</pre>
306
+
307
+ <p>receive it, in any medium, provided that you conspicuously and
308
+ appropriately publish on each copy an appropriate copyright notice; keep
309
+ intact all notices stating that this License and any non-permissive terms
310
+ added in accord with section 7 apply to the code; keep intact all notices
311
+ of the absence of any warranty; and give all recipients a copy of this
312
+ License along with the Program.</p>
313
+
314
+ <pre>You may charge any price or no price for each copy that you convey,</pre>
315
+
316
+ <p>and you may offer support or warranty protection for a fee.</p>
317
+
318
+ <pre>5. Conveying Modified Source Versions.
319
+
320
+ You may convey a work based on the Program, or the modifications to</pre>
321
+
322
+ <p>produce it from the Program, in the form of source code under the terms of
323
+ section 4, provided that you also meet all of these conditions:</p>
324
+
325
+ <pre> a) The work must carry prominent notices stating that you modified
326
+ it, and giving a relevant date.
327
+
328
+ b) The work must carry prominent notices stating that it is
329
+ released under this License and any conditions added under section
330
+ 7. This requirement modifies the requirement in section 4 to
331
+ &quot;keep intact all notices&quot;.
332
+
333
+ c) You must license the entire work, as a whole, under this
334
+ License to anyone who comes into possession of a copy. This
335
+ License will therefore apply, along with any applicable section 7
336
+ additional terms, to the whole of the work, and all its parts,
337
+ regardless of how they are packaged. This License gives no
338
+ permission to license the work in any other way, but it does not
339
+ invalidate such permission if you have separately received it.
340
+
341
+ d) If the work has interactive user interfaces, each must display
342
+ Appropriate Legal Notices; however, if the Program has interactive
343
+ interfaces that do not display Appropriate Legal Notices, your
344
+ work need not make them do so.
345
+
346
+ A compilation of a covered work with other separate and independent</pre>
347
+
348
+ <p>works, which are not by their nature extensions of the covered work, and
349
+ which are not combined with it such as to form a larger program, in or on a
350
+ volume of a storage or distribution medium, is called an “aggregate” if the
351
+ compilation and its resulting copyright are not used to limit the access or
352
+ legal rights of the compilation’s users beyond what the individual works
353
+ permit. Inclusion of a covered work in an aggregate does not cause this
354
+ License to apply to the other parts of the aggregate.</p>
355
+
356
+ <pre>6. Conveying Non-Source Forms.
357
+
358
+ You may convey a covered work in object code form under the terms</pre>
359
+
360
+ <p>of sections 4 and 5, provided that you also convey the machine-readable
361
+ Corresponding Source under the terms of this License, in one of these ways:</p>
362
+
363
+ <pre> a) Convey the object code in, or embodied in, a physical product
364
+ (including a physical distribution medium), accompanied by the
365
+ Corresponding Source fixed on a durable physical medium
366
+ customarily used for software interchange.
367
+
368
+ b) Convey the object code in, or embodied in, a physical product
369
+ (including a physical distribution medium), accompanied by a
370
+ written offer, valid for at least three years and valid for as
371
+ long as you offer spare parts or customer support for that product
372
+ model, to give anyone who possesses the object code either (1) a
373
+ copy of the Corresponding Source for all the software in the
374
+ product that is covered by this License, on a durable physical
375
+ medium customarily used for software interchange, for a price no
376
+ more than your reasonable cost of physically performing this
377
+ conveying of source, or (2) access to copy the
378
+ Corresponding Source from a network server at no charge.
379
+
380
+ c) Convey individual copies of the object code with a copy of the
381
+ written offer to provide the Corresponding Source. This
382
+ alternative is allowed only occasionally and noncommercially, and
383
+ only if you received the object code with such an offer, in accord
384
+ with subsection 6b.
385
+
386
+ d) Convey the object code by offering access from a designated
387
+ place (gratis or for a charge), and offer equivalent access to the
388
+ Corresponding Source in the same way through the same place at no
389
+ further charge. You need not require recipients to copy the
390
+ Corresponding Source along with the object code. If the place to
391
+ copy the object code is a network server, the Corresponding Source
392
+ may be on a different server (operated by you or a third party)
393
+ that supports equivalent copying facilities, provided you maintain
394
+ clear directions next to the object code saying where to find the
395
+ Corresponding Source. Regardless of what server hosts the
396
+ Corresponding Source, you remain obligated to ensure that it is
397
+ available for as long as needed to satisfy these requirements.
398
+
399
+ e) Convey the object code using peer-to-peer transmission, provided
400
+ you inform other peers where the object code and Corresponding
401
+ Source of the work are being offered to the general public at no
402
+ charge under subsection 6d.
403
+
404
+ A separable portion of the object code, whose source code is excluded</pre>
405
+
406
+ <p>from the Corresponding Source as a System Library, need not be included in
407
+ conveying the object code work.</p>
408
+
409
+ <pre>A &quot;User Product&quot; is either (1) a &quot;consumer product&quot;, which means any</pre>
410
+
411
+ <p>tangible personal property which is normally used for personal, family, or
412
+ household purposes, or (2) anything designed or sold for incorporation into
413
+ a dwelling. In determining whether a product is a consumer product,
414
+ doubtful cases shall be resolved in favor of coverage. For a particular
415
+ product received by a particular user, “normally used” refers to a typical
416
+ or common use of that class of product, regardless of the status of the
417
+ particular user or of the way in which the particular user actually uses,
418
+ or expects or is expected to use, the product. A product is a consumer
419
+ product regardless of whether the product has substantial commercial,
420
+ industrial or non-consumer uses, unless such uses represent the only
421
+ significant mode of use of the product.</p>
422
+
423
+ <pre>&quot;Installation Information&quot; for a User Product means any methods,</pre>
424
+
425
+ <p>procedures, authorization keys, or other information required to install
426
+ and execute modified versions of a covered work in that User Product from a
427
+ modified version of its Corresponding Source. The information must suffice
428
+ to ensure that the continued functioning of the modified object code is in
429
+ no case prevented or interfered with solely because modification has been
430
+ made.</p>
431
+
432
+ <pre>If you convey an object code work under this section in, or with, or</pre>
433
+
434
+ <p>specifically for use in, a User Product, and the conveying occurs as part
435
+ of a transaction in which the right of possession and use of the User
436
+ Product is transferred to the recipient in perpetuity or for a fixed term
437
+ (regardless of how the transaction is characterized), the Corresponding
438
+ Source conveyed under this section must be accompanied by the Installation
439
+ Information. But this requirement does not apply if neither you nor any
440
+ third party retains the ability to install modified object code on the User
441
+ Product (for example, the work has been installed in ROM).</p>
442
+
443
+ <pre>The requirement to provide Installation Information does not include a</pre>
444
+
445
+ <p>requirement to continue to provide support service, warranty, or updates
446
+ for a work that has been modified or installed by the recipient, or for the
447
+ User Product in which it has been modified or installed. Access to a
448
+ network may be denied when the modification itself materially and adversely
449
+ affects the operation of the network or violates the rules and protocols
450
+ for communication across the network.</p>
451
+
452
+ <pre>Corresponding Source conveyed, and Installation Information provided,</pre>
453
+
454
+ <p>in accord with this section must be in a format that is publicly documented
455
+ (and with an implementation available to the public in source code form),
456
+ and must require no special password or key for unpacking, reading or
457
+ copying.</p>
458
+
459
+ <pre>7. Additional Terms.
460
+
461
+ &quot;Additional permissions&quot; are terms that supplement the terms of this</pre>
462
+
463
+ <p>License by making exceptions from one or more of its conditions. Additional
464
+ permissions that are applicable to the entire Program shall be treated as
465
+ though they were included in this License, to the extent that they are
466
+ valid under applicable law. If additional permissions apply only to part
467
+ of the Program, that part may be used separately under those permissions,
468
+ but the entire Program remains governed by this License without regard to
469
+ the additional permissions.</p>
470
+
471
+ <pre>When you convey a copy of a covered work, you may at your option</pre>
472
+
473
+ <p>remove any additional permissions from that copy, or from any part of it.
474
+ (Additional permissions may be written to require their own removal in
475
+ certain cases when you modify the work.) You may place additional
476
+ permissions on material, added by you to a covered work, for which you have
477
+ or can give appropriate copyright permission.</p>
478
+
479
+ <pre>Notwithstanding any other provision of this License, for material you</pre>
480
+
481
+ <p>add to a covered work, you may (if authorized by the copyright holders of
482
+ that material) supplement the terms of this License with terms:</p>
483
+
484
+ <pre> a) Disclaiming warranty or limiting liability differently from the
485
+ terms of sections 15 and 16 of this License; or
486
+
487
+ b) Requiring preservation of specified reasonable legal notices or
488
+ author attributions in that material or in the Appropriate Legal
489
+ Notices displayed by works containing it; or
490
+
491
+ c) Prohibiting misrepresentation of the origin of that material, or
492
+ requiring that modified versions of such material be marked in
493
+ reasonable ways as different from the original version; or
494
+
495
+ d) Limiting the use for publicity purposes of names of licensors or
496
+ authors of the material; or
497
+
498
+ e) Declining to grant rights under trademark law for use of some
499
+ trade names, trademarks, or service marks; or
500
+
501
+ f) Requiring indemnification of licensors and authors of that
502
+ material by anyone who conveys the material (or modified versions of
503
+ it) with contractual assumptions of liability to the recipient, for
504
+ any liability that these contractual assumptions directly impose on
505
+ those licensors and authors.
506
+
507
+ All other non-permissive additional terms are considered &quot;further</pre>
508
+
509
+ <p>restrictions“ within the meaning of section 10. If the Program as you
510
+ received it, or any part of it, contains a notice stating that it is
511
+ governed by this License along with a term that is a further restriction,
512
+ you may remove that term. If a license document contains a further
513
+ restriction but permits relicensing or conveying under this License, you
514
+ may add to a covered work material governed by the terms of that license
515
+ document, provided that the further restriction does not survive such
516
+ relicensing or conveying.</p>
517
+
518
+ <pre>If you add terms to a covered work in accord with this section, you</pre>
519
+
520
+ <p>must place, in the relevant source files, a statement of the additional
521
+ terms that apply to those files, or a notice indicating where to find the
522
+ applicable terms.</p>
523
+
524
+ <pre>Additional terms, permissive or non-permissive, may be stated in the</pre>
525
+
526
+ <p>form of a separately written license, or stated as exceptions; the above
527
+ requirements apply either way.</p>
528
+
529
+ <pre>8. Termination.
530
+
531
+ You may not propagate or modify a covered work except as expressly</pre>
532
+
533
+ <p>provided under this License. Any attempt otherwise to propagate or modify
534
+ it is void, and will automatically terminate your rights under this License
535
+ (including any patent licenses granted under the third paragraph of section
536
+ 11).</p>
537
+
538
+ <pre>However, if you cease all violation of this License, then your</pre>
539
+
540
+ <p>license from a particular copyright holder is reinstated (a) provisionally,
541
+ unless and until the copyright holder explicitly and finally terminates
542
+ your license, and (b) permanently, if the copyright holder fails to notify
543
+ you of the violation by some reasonable means prior to 60 days after the
544
+ cessation.</p>
545
+
546
+ <pre>Moreover, your license from a particular copyright holder is</pre>
547
+
548
+ <p>reinstated permanently if the copyright holder notifies you of the
549
+ violation by some reasonable means, this is the first time you have
550
+ received notice of violation of this License (for any work) from that
551
+ copyright holder, and you cure the violation prior to 30 days after your
552
+ receipt of the notice.</p>
553
+
554
+ <pre>Termination of your rights under this section does not terminate the</pre>
555
+
556
+ <p>licenses of parties who have received copies or rights from you under this
557
+ License. If your rights have been terminated and not permanently
558
+ reinstated, you do not qualify to receive new licenses for the same
559
+ material under section 10.</p>
560
+
561
+ <pre>9. Acceptance Not Required for Having Copies.
562
+
563
+ You are not required to accept this License in order to receive or</pre>
564
+
565
+ <p>run a copy of the Program. Ancillary propagation of a covered work
566
+ occurring solely as a consequence of using peer-to-peer transmission to
567
+ receive a copy likewise does not require acceptance. However, nothing
568
+ other than this License grants you permission to propagate or modify any
569
+ covered work. These actions infringe copyright if you do not accept this
570
+ License. Therefore, by modifying or propagating a covered work, you
571
+ indicate your acceptance of this License to do so.</p>
572
+
573
+ <pre>10. Automatic Licensing of Downstream Recipients.
574
+
575
+ Each time you convey a covered work, the recipient automatically</pre>
576
+
577
+ <p>receives a license from the original licensors, to run, modify and
578
+ propagate that work, subject to this License. You are not responsible for
579
+ enforcing compliance by third parties with this License.</p>
580
+
581
+ <pre>An &quot;entity transaction&quot; is a transaction transferring control of an</pre>
582
+
583
+ <p>organization, or substantially all assets of one, or subdividing an
584
+ organization, or merging organizations. If propagation of a covered work
585
+ results from an entity transaction, each party to that transaction who
586
+ receives a copy of the work also receives whatever licenses to the work the
587
+ party’s predecessor in interest had or could give under the previous
588
+ paragraph, plus a right to possession of the Corresponding Source of the
589
+ work from the predecessor in interest, if the predecessor has it or can get
590
+ it with reasonable efforts.</p>
591
+
592
+ <pre>You may not impose any further restrictions on the exercise of the</pre>
593
+
594
+ <p>rights granted or affirmed under this License. For example, you may not
595
+ impose a license fee, royalty, or other charge for exercise of rights
596
+ granted under this License, and you may not initiate litigation (including
597
+ a cross-claim or counterclaim in a lawsuit) alleging that any patent claim
598
+ is infringed by making, using, selling, offering for sale, or importing the
599
+ Program or any portion of it.</p>
600
+
601
+ <pre>11. Patents.
602
+
603
+ A &quot;contributor&quot; is a copyright holder who authorizes use under this</pre>
604
+
605
+ <p>License of the Program or a work on which the Program is based. The work
606
+ thus licensed is called the contributor’s “contributor version”.</p>
607
+
608
+ <pre>A contributor's &quot;essential patent claims&quot; are all patent claims</pre>
609
+
610
+ <p>owned or controlled by the contributor, whether already acquired or
611
+ hereafter acquired, that would be infringed by some manner, permitted by
612
+ this License, of making, using, or selling its contributor version, but do
613
+ not include claims that would be infringed only as a consequence of further
614
+ modification of the contributor version. For purposes of this definition,
615
+ “control” includes the right to grant patent sublicenses in a manner
616
+ consistent with the requirements of this License.</p>
617
+
618
+ <pre>Each contributor grants you a non-exclusive, worldwide, royalty-free</pre>
619
+
620
+ <p>patent license under the contributor’s essential patent claims, to make,
621
+ use, sell, offer for sale, import and otherwise run, modify and propagate
622
+ the contents of its contributor version.</p>
623
+
624
+ <pre>In the following three paragraphs, a &quot;patent license&quot; is any express</pre>
625
+
626
+ <p>agreement or commitment, however denominated, not to enforce a patent (such
627
+ as an express permission to practice a patent or covenant not to sue for
628
+ patent infringement). To “grant” such a patent license to a party means to
629
+ make such an agreement or commitment not to enforce a patent against the
630
+ party.</p>
631
+
632
+ <pre>If you convey a covered work, knowingly relying on a patent license,</pre>
633
+
634
+ <p>and the Corresponding Source of the work is not available for anyone to
635
+ copy, free of charge and under the terms of this License, through a
636
+ publicly available network server or other readily accessible means, then
637
+ you must either (1) cause the Corresponding Source to be so available, or
638
+ (2) arrange to deprive yourself of the benefit of the patent license for
639
+ this particular work, or (3) arrange, in a manner consistent with the
640
+ requirements of this License, to extend the patent license to downstream
641
+ recipients. “Knowingly relying” means you have actual knowledge that, but
642
+ for the patent license, your conveying the covered work in a country, or
643
+ your recipient’s use of the covered work in a country, would infringe one
644
+ or more identifiable patents in that country that you have reason to
645
+ believe are valid.</p>
646
+
647
+ <pre>If, pursuant to or in connection with a single transaction or</pre>
648
+
649
+ <p>arrangement, you convey, or propagate by procuring conveyance of, a covered
650
+ work, and grant a patent license to some of the parties receiving the
651
+ covered work authorizing them to use, propagate, modify or convey a
652
+ specific copy of the covered work, then the patent license you grant is
653
+ automatically extended to all recipients of the covered work and works
654
+ based on it.</p>
655
+
656
+ <pre>A patent license is &quot;discriminatory&quot; if it does not include within</pre>
657
+
658
+ <p>the scope of its coverage, prohibits the exercise of, or is conditioned on
659
+ the non-exercise of one or more of the rights that are specifically granted
660
+ under this License. You may not convey a covered work if you are a party
661
+ to an arrangement with a third party that is in the business of
662
+ distributing software, under which you make payment to the third party
663
+ based on the extent of your activity of conveying the work, and under which
664
+ the third party grants, to any of the parties who would receive the covered
665
+ work from you, a discriminatory patent license (a) in connection with
666
+ copies of the covered work conveyed by you (or copies made from those
667
+ copies), or (b) primarily for and in connection with specific products or
668
+ compilations that contain the covered work, unless you entered into that
669
+ arrangement, or that patent license was granted, prior to 28 March 2007.</p>
670
+
671
+ <pre>Nothing in this License shall be construed as excluding or limiting</pre>
672
+
673
+ <p>any implied license or other defenses to infringement that may otherwise be
674
+ available to you under applicable patent law.</p>
675
+
676
+ <pre>12. No Surrender of Others' Freedom.
677
+
678
+ If conditions are imposed on you (whether by court order, agreement or</pre>
679
+
680
+ <p>otherwise) that contradict the conditions of this License, they do not
681
+ excuse you from the conditions of this License. If you cannot convey a
682
+ covered work so as to satisfy simultaneously your obligations under this
683
+ License and any other pertinent obligations, then as a consequence you may
684
+ not convey it at all. For example, if you agree to terms that obligate you
685
+ to collect a royalty for further conveying from those to whom you convey
686
+ the Program, the only way you could satisfy both those terms and this
687
+ License would be to refrain entirely from conveying the Program.</p>
688
+
689
+ <pre>13. Use with the GNU Affero General Public License.
690
+
691
+ Notwithstanding any other provision of this License, you have</pre>
692
+
693
+ <p>permission to link or combine any covered work with a work licensed under
694
+ version 3 of the GNU Affero General Public License into a single combined
695
+ work, and to convey the resulting work. The terms of this License will
696
+ continue to apply to the part which is the covered work, but the special
697
+ requirements of the GNU Affero General Public License, section 13,
698
+ concerning interaction through a network will apply to the combination as
699
+ such.</p>
700
+
701
+ <pre>14. Revised Versions of this License.
702
+
703
+ The Free Software Foundation may publish revised and/or new versions of</pre>
704
+
705
+ <p>the GNU General Public License from time to time. Such new versions will
706
+ be similar in spirit to the present version, but may differ in detail to
707
+ address new problems or concerns.</p>
708
+
709
+ <pre>Each version is given a distinguishing version number. If the</pre>
710
+
711
+ <p>Program specifies that a certain numbered version of the GNU General Public
712
+ License “or any later version” applies to it, you have the option of
713
+ following the terms and conditions either of that numbered version or of
714
+ any later version published by the Free Software Foundation. If the
715
+ Program does not specify a version number of the GNU General Public
716
+ License, you may choose any version ever published by the Free Software
717
+ Foundation.</p>
718
+
719
+ <pre>If the Program specifies that a proxy can decide which future</pre>
720
+
721
+ <p>versions of the GNU General Public License can be used, that proxy’s public
722
+ statement of acceptance of a version permanently authorizes you to choose
723
+ that version for the Program.</p>
724
+
725
+ <pre>Later license versions may give you additional or different</pre>
726
+
727
+ <p>permissions. However, no additional obligations are imposed on any author
728
+ or copyright holder as a result of your choosing to follow a later version.</p>
729
+
730
+ <pre>15. Disclaimer of Warranty.
731
+
732
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY</pre>
733
+
734
+ <p>APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
735
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY
736
+ OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
737
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
738
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
739
+ IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
740
+ ALL NECESSARY SERVICING, REPAIR OR CORRECTION.</p>
741
+
742
+ <pre>16. Limitation of Liability.
743
+
744
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING</pre>
745
+
746
+ <p>WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
747
+ THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
748
+ GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
749
+ USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
750
+ DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
751
+ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
752
+ EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
753
+ SUCH DAMAGES.</p>
754
+
755
+ <pre>17. Interpretation of Sections 15 and 16.
756
+
757
+ If the disclaimer of warranty and limitation of liability provided</pre>
758
+
759
+ <p>above cannot be given local legal effect according to their terms,
760
+ reviewing courts shall apply local law that most closely approximates an
761
+ absolute waiver of all civil liability in connection with the Program,
762
+ unless a warranty or assumption of liability accompanies a copy of the
763
+ Program in return for a fee.</p>
764
+
765
+ <pre> END OF TERMS AND CONDITIONS
766
+
767
+ How to Apply These Terms to Your New Programs
768
+
769
+ If you develop a new program, and you want it to be of the greatest</pre>
770
+
771
+ <p>possible use to the public, the best way to achieve this is to make it free
772
+ software which everyone can redistribute and change under these terms.</p>
773
+
774
+ <pre>To do so, attach the following notices to the program. It is safest</pre>
775
+
776
+ <p>to attach them to the start of each source file to most effectively state
777
+ the exclusion of warranty; and each file should have at least the
778
+ “copyright” line and a pointer to where the full notice is found.</p>
779
+
780
+ <pre>&lt;one line to give the program's name and a brief idea of what it does.&gt;
781
+ Copyright (C) &lt;year&gt; &lt;name of author&gt;
782
+
783
+ This program is free software: you can redistribute it and/or modify
784
+ it under the terms of the GNU General Public License as published by
785
+ the Free Software Foundation, either version 3 of the License, or
786
+ (at your option) any later version.
787
+
788
+ This program is distributed in the hope that it will be useful,
789
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
790
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
791
+ GNU General Public License for more details.
792
+
793
+ You should have received a copy of the GNU General Public License
794
+ along with this program. If not, see &lt;http://www.gnu.org/licenses/&gt;.</pre>
795
+
796
+ <p>Also add information on how to contact you by electronic and paper mail.</p>
797
+
798
+ <pre>If the program does terminal interaction, make it output a short</pre>
799
+
800
+ <p>notice like this when it starts in an interactive mode:</p>
801
+
802
+ <pre>&lt;program&gt; Copyright (C) &lt;year&gt; &lt;name of author&gt;
803
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
804
+ This is free software, and you are welcome to redistribute it
805
+ under certain conditions; type `show c' for details.</pre>
806
+
807
+ <p>The hypothetical commands `show w’ and `show c’ should show the appropriate
808
+ parts of the General Public License. Of course, your program’s commands
809
+ might be different; for a GUI interface, you would use an “about box”.</p>
810
+
811
+ <pre>You should also get your employer (if you work as a programmer) or school,</pre>
812
+
813
+ <p>if any, to sign a “copyright disclaimer” for the program, if necessary. For
814
+ more information on this, and how to apply and follow the GNU GPL, see
815
+ &lt;<a href="http://www.gnu.org/licenses/">www.gnu.org/licenses/</a>&gt;.</p>
816
+
817
+ <pre>The GNU General Public License does not permit incorporating your program</pre>
818
+
819
+ <p>into proprietary programs. If your program is a subroutine library, you
820
+ may consider it more useful to permit linking proprietary applications with
821
+ the library. If this is what you want to do, use the GNU Lesser General
822
+ Public License instead of this License. But first, please read &lt;<a
823
+ href="http://www.gnu.org/philosophy/why-not-lgpl.html">www.gnu.org/philosophy/why-not-lgpl.html</a>&gt;.</p>
824
+
825
+ </div>
826
+
827
+ <div id="validator-badges">
828
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
829
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
830
+ Rdoc Generator</a> 2</small>.</p>
831
+ </div>
832
+ </body>
833
+ </html>
834
+