quickdbd-cli 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ __version__ = "0.1.0"
@@ -0,0 +1,5 @@
1
+ import sys
2
+
3
+ from .cli import main
4
+
5
+ sys.exit(main())
Binary file
Binary file
@@ -0,0 +1,92 @@
1
+ Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+ -----------------------------------------------------------
8
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
9
+ -----------------------------------------------------------
10
+
11
+ PREAMBLE
12
+ The goals of the Open Font License (OFL) are to stimulate worldwide
13
+ development of collaborative font projects, to support the font creation
14
+ efforts of academic and linguistic communities, and to provide a free and
15
+ open framework in which fonts may be shared and improved in partnership
16
+ with others.
17
+
18
+ The OFL allows the licensed fonts to be used, studied, modified and
19
+ redistributed freely as long as they are not sold by themselves. The
20
+ fonts, including any derivative works, can be bundled, embedded,
21
+ redistributed and/or sold with any software provided that any reserved
22
+ names are not used by derivative works. The fonts and derivatives,
23
+ however, cannot be released under any other type of license. The
24
+ requirement for fonts to remain under this license does not apply
25
+ to any document created using the fonts or their derivatives.
26
+
27
+ DEFINITIONS
28
+ "Font Software" refers to the set of files released by the Copyright
29
+ Holder(s) under this license and clearly marked as such. This may
30
+ include source files, build scripts and documentation.
31
+
32
+ "Reserved Font Name" refers to any names specified as such after the
33
+ copyright statement(s).
34
+
35
+ "Original Version" refers to the collection of Font Software components as
36
+ distributed by the Copyright Holder(s).
37
+
38
+ "Modified Version" refers to any derivative made by adding to, deleting,
39
+ or substituting -- in part or in whole -- any of the components of the
40
+ Original Version, by changing formats or by porting the Font Software to a
41
+ new environment.
42
+
43
+ "Author" refers to any designer, engineer, programmer, technical
44
+ writer or other person who contributed to the Font Software.
45
+
46
+ PERMISSION AND CONDITIONS
47
+ Permission is hereby granted, free of charge, to any person obtaining
48
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
49
+ redistribute, and sell modified and unmodified copies of the Font
50
+ Software, subject to the following conditions:
51
+
52
+ 1) Neither the Font Software nor any of its individual components,
53
+ in Original or Modified Versions, may be sold by itself.
54
+
55
+ 2) Original or Modified Versions of the Font Software may be bundled,
56
+ redistributed and/or sold with any software, provided that each copy
57
+ contains the above copyright notice and this license. These can be
58
+ included either as stand-alone text files, human-readable headers or
59
+ in the appropriate machine-readable metadata fields within text or
60
+ binary files as long as those fields can be easily viewed by the user.
61
+
62
+ 3) No Modified Version of the Font Software may use the Reserved Font
63
+ Name(s) unless explicit written permission is granted by the corresponding
64
+ Copyright Holder. This restriction only applies to the primary font name as
65
+ presented to the users.
66
+
67
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
68
+ Software shall not be used to promote, endorse or advertise any
69
+ Modified Version, except to acknowledge the contribution(s) of the
70
+ Copyright Holder(s) and the Author(s) or with their explicit written
71
+ permission.
72
+
73
+ 5) The Font Software, modified or unmodified, in part or in whole,
74
+ must be distributed entirely under this license, and must not be
75
+ distributed under any other license. The requirement for fonts to
76
+ remain under this license does not apply to any document created
77
+ using the Font Software.
78
+
79
+ TERMINATION
80
+ This license becomes null and void if any of the above conditions are
81
+ not met.
82
+
83
+ DISCLAIMER
84
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
85
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
86
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
87
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
88
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
89
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
90
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
91
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
92
+ OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file
Binary file
@@ -0,0 +1,244 @@
1
+ /* qdbd serve: editor pane (one tab per file), autosave, live reload, problems panel. */
2
+ (function () {
3
+ "use strict";
4
+ var AUTOSAVE_MS = 1000;
5
+ var files = {}; // path -> {path, text (disk), mtime, doc, dirty, timer, sentText}
6
+ var order = [];
7
+ var active = null;
8
+ var cm = null, textarea = null;
9
+ var diagnostics = [];
10
+ var tabs = document.getElementById("tabs");
11
+ var problems = document.getElementById("problems");
12
+ var banner = document.getElementById("banner");
13
+
14
+ if (window.CodeMirror && CodeMirror.defineSimpleMode) {
15
+ CodeMirror.defineSimpleMode("qdbd", {
16
+ start: [
17
+ { regex: /#.*/, token: "comment" },
18
+ { regex: /"(?:[^"])*"/, token: "string" },
19
+ { regex: /^\s*\[(tables|settings|layout)\]\s*$/i, token: "header" },
20
+ { regex: /^-+\s*$/, token: "qdbd-op" },
21
+ { regex: /(>-<|>0-|-0<|0-0|-<|>-|-0|0-)(?=\s)/, token: "qdbd-op" },
22
+ { regex: /\b(PK|FK|NULL|NULLABLE|UNIQUE|INDEX|IDENTITY|AUTOINCREMENT|as|rel)\b/i, token: "qdbd-kw" },
23
+ { regex: /default=\S*/i, token: "qdbd-kw" },
24
+ { regex: /^[^\s#-][^#]*$/, token: null, sol: true },
25
+ ],
26
+ });
27
+ }
28
+
29
+ function editorValue() { return cm ? cm.getValue() : textarea.value; }
30
+
31
+ function makeEditor() {
32
+ var host = document.getElementById("editor");
33
+ if (window.CodeMirror) {
34
+ cm = CodeMirror(host, { lineNumbers: true, mode: "qdbd", indentWithTabs: false, tabSize: 2, extraKeys: { Tab: false } });
35
+ cm.on("change", function (_, ch) { if (ch.origin !== "setValue") onEdit(); });
36
+ } else {
37
+ textarea = document.createElement("textarea");
38
+ textarea.spellcheck = false;
39
+ host.appendChild(textarea);
40
+ textarea.addEventListener("input", onEdit);
41
+ }
42
+ }
43
+
44
+ function setEditorText(f) {
45
+ if (cm) {
46
+ if (!f.doc) f.doc = CodeMirror.Doc(f.text, "qdbd");
47
+ cm.swapDoc(f.doc);
48
+ } else {
49
+ textarea.value = f.buffer != null ? f.buffer : f.text;
50
+ }
51
+ }
52
+
53
+ function currentText(f) {
54
+ if (cm) return f.doc ? f.doc.getValue() : f.text;
55
+ return f === files[active] ? textarea.value : (f.buffer != null ? f.buffer : f.text);
56
+ }
57
+
58
+ function replaceText(f, text) {
59
+ if (cm && f.doc) {
60
+ var cur = f.doc.getCursor(), scroll = f === files[active] ? cm.getScrollInfo() : null;
61
+ f.doc.setValue(text);
62
+ f.doc.setCursor(cur);
63
+ if (scroll) cm.scrollTo(scroll.left, scroll.top);
64
+ } else {
65
+ f.buffer = text;
66
+ if (f === files[active]) textarea.value = text;
67
+ }
68
+ }
69
+
70
+ function drawTabs() {
71
+ tabs.innerHTML = "";
72
+ order.forEach(function (p) {
73
+ var f = files[p], b = document.createElement("button");
74
+ b.innerHTML = p.split("/").pop() + (f.dirty ? ' <span class="dirty">●</span>' : "");
75
+ b.title = p;
76
+ b.className = p === active ? "on" : "";
77
+ b.onclick = function () { activate(p); };
78
+ tabs.appendChild(b);
79
+ });
80
+ }
81
+
82
+ function activate(p) {
83
+ if (!cm && active && files[active]) files[active].buffer = textarea.value;
84
+ active = p;
85
+ setEditorText(files[p]);
86
+ drawTabs();
87
+ markLines();
88
+ showBanner();
89
+ }
90
+
91
+ function onEdit() {
92
+ var f = files[active];
93
+ if (!f) return;
94
+ if (!cm) f.buffer = textarea.value;
95
+ f.dirty = currentText(f) !== f.text;
96
+ drawTabs();
97
+ clearTimeout(f.timer);
98
+ f.timer = setTimeout(function () { save(f); }, AUTOSAVE_MS);
99
+ }
100
+
101
+ function save(f) {
102
+ if (!f.dirty || f.conflict) return;
103
+ var text = currentText(f);
104
+ fetch("/file", { method: "PUT", headers: { "Content-Type": "application/json" },
105
+ body: JSON.stringify({ path: f.path, text: text, mtime: f.mtime }) })
106
+ .then(function (r) { return r.json().then(function (j) { return [r.status, j]; }); })
107
+ .then(function (res) {
108
+ var code = res[0], j = res[1];
109
+ if (code === 200) {
110
+ f.text = text;
111
+ f.mtime = j.mtime;
112
+ f.dirty = currentText(f) !== f.text;
113
+ if (f.dirty) onEditFor(f);
114
+ } else if (code === 409) {
115
+ f.conflict = { text: j.text, mtime: j.mtime };
116
+ showBanner();
117
+ }
118
+ drawTabs();
119
+ });
120
+ }
121
+
122
+ function onEditFor(f) {
123
+ clearTimeout(f.timer);
124
+ f.timer = setTimeout(function () { save(f); }, AUTOSAVE_MS);
125
+ }
126
+
127
+ function showBanner() {
128
+ var f = files[active];
129
+ banner.classList.toggle("open", !!(f && f.conflict));
130
+ }
131
+ document.getElementById("keepmine").onclick = function () {
132
+ var f = files[active];
133
+ if (!f || !f.conflict) return;
134
+ f.mtime = f.conflict.mtime;
135
+ f.text = f.conflict.text;
136
+ f.conflict = null;
137
+ f.dirty = true;
138
+ showBanner();
139
+ save(f);
140
+ };
141
+ document.getElementById("reload").onclick = function () {
142
+ var f = files[active];
143
+ if (!f || !f.conflict) return;
144
+ f.text = f.conflict.text;
145
+ f.mtime = f.conflict.mtime;
146
+ f.conflict = null;
147
+ f.dirty = false;
148
+ replaceText(f, f.text);
149
+ showBanner();
150
+ drawTabs();
151
+ };
152
+
153
+ /* ------------------------------------------------------------- problems */
154
+ var marked = [];
155
+ function markLines() {
156
+ if (!cm) return;
157
+ marked.forEach(function (m) { m.doc.removeLineClass(m.line, "background", "lineerr"); });
158
+ marked = [];
159
+ var f = files[active];
160
+ if (!f || !f.doc) return;
161
+ diagnostics.forEach(function (d) {
162
+ if (d.path === active && d.severity === "error") {
163
+ f.doc.addLineClass(d.line - 1, "background", "lineerr");
164
+ marked.push({ doc: f.doc, line: d.line - 1 });
165
+ }
166
+ });
167
+ }
168
+
169
+ function drawProblems() {
170
+ var errors = diagnostics.filter(function (d) { return d.severity === "error"; });
171
+ problems.classList.toggle("bad", errors.length > 0);
172
+ if (!diagnostics.length) {
173
+ problems.textContent = "No errors found. Good job!";
174
+ return;
175
+ }
176
+ problems.innerHTML = "";
177
+ if (errors.length) {
178
+ var note = document.createElement("div");
179
+ note.textContent = "Showing the last valid diagram until these are fixed:";
180
+ note.style.color = "#aaa";
181
+ problems.appendChild(note);
182
+ }
183
+ diagnostics.forEach(function (d) {
184
+ var el = document.createElement("div");
185
+ el.className = d.severity === "error" ? "err" : "warn";
186
+ el.textContent = d.text;
187
+ el.onclick = function () {
188
+ if (files[d.path]) {
189
+ activate(d.path);
190
+ if (cm) { cm.focus(); cm.setCursor({ line: d.line - 1, ch: 0 }); }
191
+ }
192
+ };
193
+ problems.appendChild(el);
194
+ });
195
+ }
196
+
197
+ /* ------------------------------------------------------------- sync with server */
198
+ var lastVersion = -1;
199
+ function refresh(first) {
200
+ return fetch("/state").then(function (r) { return r.json(); }).then(function (st) {
201
+ if (st.version === lastVersion) return;
202
+ lastVersion = st.version;
203
+ var seen = {};
204
+ st.files.forEach(function (sf) {
205
+ seen[sf.path] = true;
206
+ var f = files[sf.path];
207
+ if (!f) {
208
+ files[sf.path] = { path: sf.path, text: sf.text, mtime: sf.mtime, dirty: false };
209
+ order.push(sf.path);
210
+ return;
211
+ }
212
+ if (sf.mtime === f.mtime) return;
213
+ if (f.dirty) {
214
+ if (sf.text !== currentText(f)) f.conflict = { text: sf.text, mtime: sf.mtime };
215
+ else { f.text = sf.text; f.mtime = sf.mtime; f.dirty = false; }
216
+ } else {
217
+ f.text = sf.text;
218
+ f.mtime = sf.mtime;
219
+ if (currentText(f) !== sf.text) replaceText(f, sf.text);
220
+ }
221
+ });
222
+ order = order.filter(function (p) { return seen[p]; });
223
+ diagnostics = st.diagnostics;
224
+ if (first) activate(order[0]);
225
+ drawTabs();
226
+ showBanner();
227
+ drawProblems();
228
+ markLines();
229
+ if (!first) window.qdbdViewer.setData(st.model, st.positions);
230
+ });
231
+ }
232
+
233
+ window.qdbdServe = {
234
+ saveLayout: function (body) {
235
+ fetch("/layout", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(body) });
236
+ },
237
+ };
238
+
239
+ makeEditor();
240
+ refresh(true).then(function () {
241
+ var es = new EventSource("/events");
242
+ es.onmessage = function () { refresh(false); };
243
+ });
244
+ })();
@@ -0,0 +1,263 @@
1
+ # Eclipse Public License - v 2.0
2
+
3
+ THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE
4
+ PUBLIC LICENSE (“AGREEMENT”). ANY USE, REPRODUCTION OR DISTRIBUTION OF
5
+ THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
6
+
7
+ ## 1. DEFINITIONS
8
+
9
+ “Contribution” means:
10
+
11
+ - a\) in the case of the initial Contributor, the initial content
12
+ Distributed under this Agreement, and
13
+ - b\) in the case of each subsequent Contributor:
14
+ - i\) changes to the Program, and
15
+ - ii\) additions to the Program;
16
+
17
+ where such changes and/or additions to the Program originate from
18
+ and are Distributed by that particular Contributor. A Contribution
19
+ “originates” from a Contributor if it was added to the Program by
20
+ such Contributor itself or anyone acting on such Contributor's
21
+ behalf. Contributions do not include changes or additions to the
22
+ Program that are not Modified Works.
23
+
24
+ “Contributor” means any person or entity that Distributes the Program.
25
+
26
+ “Licensed Patents” mean patent claims licensable by a Contributor which
27
+ are necessarily infringed by the use or sale of its Contribution alone
28
+ or when combined with the Program.
29
+
30
+ “Program” means the Contributions Distributed in accordance with this
31
+ Agreement.
32
+
33
+ “Recipient” means anyone who receives the Program under this Agreement
34
+ or any Secondary License (as applicable), including Contributors.
35
+
36
+ “Derivative Works” shall mean any work, whether in Source Code or other
37
+ form, that is based on (or derived from) the Program and for which the
38
+ editorial revisions, annotations, elaborations, or other modifications
39
+ represent, as a whole, an original work of authorship.
40
+
41
+ “Modified Works” shall mean any work in Source Code or other form that
42
+ results from an addition to, deletion from, or modification of the
43
+ contents of the Program, including, for purposes of clarity any new file
44
+ in Source Code form that contains any contents of the Program. Modified
45
+ Works shall not include works that contain only declarations,
46
+ interfaces, types, classes, structures, or files of the Program solely
47
+ in each case in order to link to, bind by name, or subclass the Program
48
+ or Modified Works thereof.
49
+
50
+ “Distribute” means the acts of a) distributing or b) making available in
51
+ any manner that enables the transfer of a copy.
52
+
53
+ “Source Code” means the form of a Program preferred for making
54
+ modifications, including but not limited to software source code,
55
+ documentation source, and configuration files.
56
+
57
+ “Secondary License” means either the GNU General Public License, Version
58
+ 2.0, or any later versions of that license, including any exceptions or
59
+ additional permissions as identified by the initial Contributor.
60
+
61
+ ## 2. GRANT OF RIGHTS
62
+
63
+ - a\) Subject to the terms of this Agreement, each Contributor hereby
64
+ grants Recipient a non-exclusive, worldwide, royalty-free copyright
65
+ license to reproduce, prepare Derivative Works of, publicly display,
66
+ publicly perform, Distribute and sublicense the Contribution of such
67
+ Contributor, if any, and such Derivative Works.
68
+ - b\) Subject to the terms of this Agreement, each Contributor hereby
69
+ grants Recipient a non-exclusive, worldwide, royalty-free patent license
70
+ under Licensed Patents to make, use, sell, offer to sell, import and
71
+ otherwise transfer the Contribution of such Contributor, if any, in
72
+ Source Code or other form. This patent license shall apply to the
73
+ combination of the Contribution and the Program if, at the time the
74
+ Contribution is added by the Contributor, such addition of the
75
+ Contribution causes such combination to be covered by the
76
+ Licensed Patents. The patent license shall not apply to any other
77
+ combinations which include the Contribution. No hardware per se is
78
+ licensed hereunder.
79
+ - c\) Recipient understands that although each Contributor grants the
80
+ licenses to its Contributions set forth herein, no assurances are
81
+ provided by any Contributor that the Program does not infringe the
82
+ patent or other intellectual property rights of any other entity. Each
83
+ Contributor disclaims any liability to Recipient for claims brought by
84
+ any other entity based on infringement of intellectual property rights
85
+ or otherwise. As a condition to exercising the rights and licenses
86
+ granted hereunder, each Recipient hereby assumes sole responsibility to
87
+ secure any other intellectual property rights needed, if any. For
88
+ example, if a third party patent license is required to allow Recipient
89
+ to Distribute the Program, it is Recipient's responsibility to acquire
90
+ that license before distributing the Program.
91
+ - d\) Each Contributor represents that to its knowledge it has sufficient
92
+ copyright rights in its Contribution, if any, to grant the copyright
93
+ license set forth in this Agreement.
94
+ - e\) Notwithstanding the terms of any Secondary License, no Contributor
95
+ makes additional grants to any Recipient (other than those set forth in
96
+ this Agreement) as a result of such Recipient's receipt of the Program
97
+ under the terms of a Secondary License (if permitted under the terms of
98
+ Section 3).
99
+
100
+ ## 3. REQUIREMENTS
101
+
102
+ 3.1 If a Contributor Distributes the Program in any form, then:
103
+
104
+ - a\) the Program must also be made available as Source Code, in accordance
105
+ with section 3.2, and the Contributor must accompany the Program with a
106
+ statement that the Source Code for the Program is available under this
107
+ Agreement, and informs Recipients how to obtain it in a reasonable
108
+ manner on or through a medium customarily used for software exchange;
109
+ and
110
+ - b\) the Contributor may Distribute the Program under a license different
111
+ than this Agreement, provided that such license:
112
+ - i\) effectively disclaims on behalf of all other Contributors all
113
+ warranties and conditions, express and implied, including warranties or
114
+ conditions of title and non-infringement, and implied warranties or
115
+ conditions of merchantability and fitness for a particular purpose;
116
+ - ii\) effectively excludes on behalf of all other Contributors all
117
+ liability for damages, including direct, indirect, special, incidental
118
+ and consequential damages, such as lost profits;
119
+ - iii\) does not attempt to limit or alter the recipients' rights in the
120
+ Source Code under section 3.2; and
121
+ - iv\) requires any subsequent distribution of the Program by any party to
122
+ be under a license that satisfies the requirements of this section 3.
123
+
124
+ 3.2 When the Program is Distributed as Source Code:
125
+
126
+ - a\) it must be made available under this Agreement, or if the Program (i)
127
+ is combined with other material in a separate file or files made
128
+ available under a Secondary License, and (ii) the initial Contributor
129
+ attached to the Source Code the notice described in Exhibit A of this
130
+ Agreement, then the Program may be made available under the terms of
131
+ such Secondary Licenses, and
132
+ - b\) a copy of this Agreement must be included with each copy of
133
+ the Program.
134
+
135
+ 3.3 Contributors may not remove or alter any copyright, patent,
136
+ trademark, attribution notices, disclaimers of warranty, or limitations
137
+ of liability (‘notices’) contained within the Program from any copy of
138
+ the Program which they Distribute, provided that Contributors may add
139
+ their own appropriate notices.
140
+
141
+ ## 4. COMMERCIAL DISTRIBUTION
142
+
143
+ Commercial distributors of software may accept certain responsibilities
144
+ with respect to end users, business partners and the like. While this
145
+ license is intended to facilitate the commercial use of the Program, the
146
+ Contributor who includes the Program in a commercial product offering
147
+ should do so in a manner which does not create potential liability for
148
+ other Contributors. Therefore, if a Contributor includes the Program in
149
+ a commercial product offering, such Contributor (“Commercial
150
+ Contributor”) hereby agrees to defend and indemnify every other
151
+ Contributor (“Indemnified Contributor”) against any losses, damages and
152
+ costs (collectively “Losses”) arising from claims, lawsuits and other
153
+ legal actions brought by a third party against the Indemnified
154
+ Contributor to the extent caused by the acts or omissions of such
155
+ Commercial Contributor in connection with its distribution of the
156
+ Program in a commercial product offering. The obligations in this
157
+ section do not apply to any claims or Losses relating to any actual or
158
+ alleged intellectual property infringement. In order to qualify, an
159
+ Indemnified Contributor must: a) promptly notify the Commercial
160
+ Contributor in writing of such claim, and b) allow the Commercial
161
+ Contributor to control, and cooperate with the Commercial Contributor
162
+ in, the defense and any related settlement negotiations. The Indemnified
163
+ Contributor may participate in any such claim at its own expense.
164
+
165
+ For example, a Contributor might include the Program in a commercial
166
+ product offering, Product X. That Contributor is then a Commercial
167
+ Contributor. If that Commercial Contributor then makes performance
168
+ claims, or offers warranties related to Product X, those performance
169
+ claims and warranties are such Commercial Contributor's responsibility
170
+ alone. Under this section, the Commercial Contributor would have to
171
+ defend claims against the other Contributors related to those
172
+ performance claims and warranties, and if a court requires any other
173
+ Contributor to pay any damages as a result, the Commercial Contributor
174
+ must pay those damages.
175
+
176
+ ## 5. NO WARRANTY {#warranty}
177
+
178
+ EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT
179
+ PERMITTED BY APPLICABLE LAW, THE PROGRAM IS PROVIDED ON AN “AS IS”
180
+ BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR
181
+ IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF
182
+ TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR
183
+ PURPOSE. Each Recipient is solely responsible for determining the
184
+ appropriateness of using and distributing the Program and assumes all
185
+ risks associated with its exercise of rights under this Agreement,
186
+ including but not limited to the risks and costs of program errors,
187
+ compliance with applicable laws, damage to or loss of data, programs or
188
+ equipment, and unavailability or interruption of operations.
189
+
190
+ ## 6. DISCLAIMER OF LIABILITY {#disclaimer}
191
+
192
+ EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT
193
+ PERMITTED BY APPLICABLE LAW, NEITHER RECIPIENT NOR ANY CONTRIBUTORS
194
+ SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
195
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST
196
+ PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
197
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
198
+ ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE
199
+ EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE
200
+ POSSIBILITY OF SUCH DAMAGES.
201
+
202
+ ## 7. GENERAL
203
+
204
+ If any provision of this Agreement is invalid or unenforceable under
205
+ applicable law, it shall not affect the validity or enforceability of
206
+ the remainder of the terms of this Agreement, and without further action
207
+ by the parties hereto, such provision shall be reformed to the minimum
208
+ extent necessary to make such provision valid and enforceable.
209
+
210
+ If Recipient institutes patent litigation against any entity (including
211
+ a cross-claim or counterclaim in a lawsuit) alleging that the Program
212
+ itself (excluding combinations of the Program with other software or
213
+ hardware) infringes such Recipient's patent(s), then such Recipient's
214
+ rights granted under Section 2(b) shall terminate as of the date such
215
+ litigation is filed.
216
+
217
+ All Recipient's rights under this Agreement shall terminate if it fails
218
+ to comply with any of the material terms or conditions of this Agreement
219
+ and does not cure such failure in a reasonable period of time after
220
+ becoming aware of such noncompliance. If all Recipient's rights under
221
+ this Agreement terminate, Recipient agrees to cease use and distribution
222
+ of the Program as soon as reasonably practicable. However, Recipient's
223
+ obligations under this Agreement and any licenses granted by Recipient
224
+ relating to the Program shall continue and survive.
225
+
226
+ Everyone is permitted to copy and distribute copies of this Agreement,
227
+ but in order to avoid inconsistency the Agreement is copyrighted and may
228
+ only be modified in the following manner. The Agreement Steward reserves
229
+ the right to publish new versions (including revisions) of this
230
+ Agreement from time to time. No one other than the Agreement Steward has
231
+ the right to modify this Agreement. The Eclipse Foundation is the
232
+ initial Agreement Steward. The Eclipse Foundation may assign the
233
+ responsibility to serve as the Agreement Steward to a suitable separate
234
+ entity. Each new version of the Agreement will be given a distinguishing
235
+ version number. The Program (including Contributions) may always be
236
+ Distributed subject to the version of the Agreement under which it was
237
+ received. In addition, after a new version of the Agreement is
238
+ published, Contributor may elect to Distribute the Program (including
239
+ its Contributions) under the new version.
240
+
241
+ Except as expressly stated in Sections 2(a) and 2(b) above, Recipient
242
+ receives no rights or licenses to the intellectual property of any
243
+ Contributor under this Agreement, whether expressly, by implication,
244
+ estoppel or otherwise. All rights in the Program not expressly granted
245
+ under this Agreement are reserved. Nothing in this Agreement is intended
246
+ to be enforceable by any entity that is not a Contributor or Recipient.
247
+ No third-party beneficiary rights are created under this Agreement.
248
+
249
+ ## Exhibit A – Form of Secondary Licenses Notice {#exhibit-a}
250
+
251
+ “This Source Code may also be made available under the following
252
+ Secondary Licenses when the conditions for such availability set forth
253
+ in the Eclipse Public License, v. 2.0 are satisfied: GNU General Public License v3.0 or later”
254
+
255
+ > Simply including a copy of this Agreement, including this Exhibit A is
256
+ > not sufficient to license the Source Code under Secondary Licenses.
257
+ >
258
+ > If it is not possible or desirable to put the notice in a particular
259
+ > file, then You may include the notice in a location (such as a LICENSE
260
+ > file in a relevant directory) where a recipient would be likely to
261
+ > look for such a notice.
262
+ >
263
+ > You may add additional accurate notices of copyright ownership.