bee_api 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. data/bin/bee_api +84 -0
  2. data/lib/mdpreview.rb +80 -0
  3. data/lib/mdpreview/translator.rb +60 -0
  4. data/lib/mdpreview/version.rb +3 -0
  5. data/test/mdptest.rb +100 -0
  6. data/vendor/HISTORY.md +237 -0
  7. data/vendor/Jakefile.js +316 -0
  8. data/vendor/LICENSE +176 -0
  9. data/vendor/NOTICE +17 -0
  10. data/vendor/README.md +102 -0
  11. data/vendor/app/chrome/documentation.txt +12 -0
  12. data/vendor/app/chrome/manifest.json +24 -0
  13. data/vendor/app/web/ajax.js +43 -0
  14. data/vendor/app/web/app.css +292 -0
  15. data/vendor/app/web/app.js +377 -0
  16. data/vendor/app/web/beta/index.html +17 -0
  17. data/vendor/app/web/datapolicy.txt +48 -0
  18. data/vendor/app/web/doc/doc.css +60 -0
  19. data/vendor/app/web/doc/img/actions_menu.png +0 -0
  20. data/vendor/app/web/doc/img/button_actions_menu.png +0 -0
  21. data/vendor/app/web/doc/img/button_dragarea.png +0 -0
  22. data/vendor/app/web/doc/img/jsoneditor.png +0 -0
  23. data/vendor/app/web/doc/img/jsonformatter.png +0 -0
  24. data/vendor/app/web/doc/img/main_menu.png +0 -0
  25. data/vendor/app/web/doc/img/splitter.png +0 -0
  26. data/vendor/app/web/doc/index.html +201 -0
  27. data/vendor/app/web/favicon.ico +0 -0
  28. data/vendor/app/web/fileretriever.css +54 -0
  29. data/vendor/app/web/fileretriever.js +567 -0
  30. data/vendor/app/web/fileretriever.php +120 -0
  31. data/vendor/app/web/googlea47c4a0b36d11021.html +1 -0
  32. data/vendor/app/web/hash.js +133 -0
  33. data/vendor/app/web/img/description.txt +20 -0
  34. data/vendor/app/web/img/header_background.png +0 -0
  35. data/vendor/app/web/img/icon_128.png +0 -0
  36. data/vendor/app/web/img/icon_16.png +0 -0
  37. data/vendor/app/web/img/icon_gray.svg +151 -0
  38. data/vendor/app/web/img/icon_gray_16.svg +150 -0
  39. data/vendor/app/web/img/icon_orange.svg +151 -0
  40. data/vendor/app/web/img/logo.png +0 -0
  41. data/vendor/app/web/img/logo.xcf +0 -0
  42. data/vendor/app/web/img/logo_app.png +0 -0
  43. data/vendor/app/web/img/logo_app.xcf +0 -0
  44. data/vendor/app/web/index.html +191 -0
  45. data/vendor/app/web/notify.js +150 -0
  46. data/vendor/app/web/queryparams.js +71 -0
  47. data/vendor/app/web/robots.txt +0 -0
  48. data/vendor/app/web/splitter.js +179 -0
  49. data/vendor/app/web/test.html +224 -0
  50. data/vendor/component.json +33 -0
  51. data/vendor/docs/api.md +188 -0
  52. data/vendor/docs/usage.md +137 -0
  53. data/vendor/examples/01_basic_usage.html +45 -0
  54. data/vendor/examples/02_viewer.html +38 -0
  55. data/vendor/examples/03_switch_mode.html +98 -0
  56. data/vendor/examples/cur.file +1 -0
  57. data/vendor/examples/jquery.js +2 -0
  58. data/vendor/examples/meta.js +1 -0
  59. data/vendor/examples/requirejs_demo/requirejs_demo.html +19 -0
  60. data/vendor/examples/requirejs_demo/scripts/main.js +25 -0
  61. data/vendor/examples/requirejs_demo/scripts/require.js +35 -0
  62. data/vendor/img/jsoneditor-icons.png +0 -0
  63. data/vendor/jsoneditor-min.css +1 -0
  64. data/vendor/jsoneditor-min.js +34 -0
  65. data/vendor/jsoneditor.css +597 -0
  66. data/vendor/jsoneditor.js +6069 -0
  67. data/vendor/jsoneditor/css/contextmenu.css +219 -0
  68. data/vendor/jsoneditor/css/img/description.txt +13 -0
  69. data/vendor/jsoneditor/css/img/export.sh +16 -0
  70. data/vendor/jsoneditor/css/img/jsoneditor-icons.png +0 -0
  71. data/vendor/jsoneditor/css/img/jsoneditor-icons.svg +861 -0
  72. data/vendor/jsoneditor/css/jsoneditor.css +220 -0
  73. data/vendor/jsoneditor/css/menu.css +81 -0
  74. data/vendor/jsoneditor/css/searchbox.css +73 -0
  75. data/vendor/jsoneditor/js/appendnode.js +211 -0
  76. data/vendor/jsoneditor/js/contextmenu.js +440 -0
  77. data/vendor/jsoneditor/js/header.js +32 -0
  78. data/vendor/jsoneditor/js/highlighter.js +82 -0
  79. data/vendor/jsoneditor/js/history.js +218 -0
  80. data/vendor/jsoneditor/js/jsoneditor.js +206 -0
  81. data/vendor/jsoneditor/js/module.js +50 -0
  82. data/vendor/jsoneditor/js/node.js +2864 -0
  83. data/vendor/jsoneditor/js/searchbox.js +288 -0
  84. data/vendor/jsoneditor/js/texteditor.js +311 -0
  85. data/vendor/jsoneditor/js/treeeditor.js +770 -0
  86. data/vendor/jsoneditor/js/util.js +582 -0
  87. data/vendor/lib/ace/ace.js +11 -0
  88. data/vendor/lib/ace/mode-json.js +1 -0
  89. data/vendor/lib/ace/theme-jsoneditor.js +144 -0
  90. data/vendor/lib/ace/theme-textmate.js +163 -0
  91. data/vendor/lib/ace/worker-json.js +1 -0
  92. data/vendor/lib/jsonlint/README.md +62 -0
  93. data/vendor/lib/jsonlint/jsonlint.js +432 -0
  94. data/vendor/misc/screenshots/actionsmenu_640x400.png +0 -0
  95. data/vendor/misc/screenshots/codeeditor_640x400.png +0 -0
  96. data/vendor/misc/screenshots/description.json +17 -0
  97. data/vendor/misc/screenshots/jsoneditoronline.png +0 -0
  98. data/vendor/misc/screenshots/jsoneditoronline_640x400.png +0 -0
  99. data/vendor/misc/screenshots/search_640x400.png +0 -0
  100. data/vendor/misc/screenshots/small_tile.xcf +0 -0
  101. data/vendor/misc/screenshots/small_tile_440x280.png +0 -0
  102. data/vendor/misc/todo.txt +101 -0
  103. data/vendor/package.json +28 -0
  104. data/vendor/test/couchdbeditor.html +100 -0
  105. data/vendor/test/largefile.json +12605 -0
  106. data/vendor/test/test_ace.html +60 -0
  107. data/vendor/test/test_editable_div.html +449 -0
  108. metadata +154 -0
@@ -0,0 +1,316 @@
1
+ /**
2
+ * Jake build script
3
+ */
4
+ var jake = require('jake'),
5
+ path = require('path'),
6
+ cleanCss = require('clean-css'),
7
+ archiver = require('archiver'),
8
+ fs = require('fs');
9
+
10
+ require('jake-utils');
11
+
12
+ // constants
13
+ var JSONEDITOR = './jsoneditor.js',
14
+ JSONEDITOR_CSS = './jsoneditor.css',
15
+ JSONEDITOR_MIN = './jsoneditor-min.js',
16
+ JSONEDITOR_CSS_MIN = './jsoneditor-min.css',
17
+ BUILD = './build';
18
+
19
+ /**
20
+ * default task
21
+ */
22
+ desc('Execute all tasks');
23
+ task('default', ['clear', 'build', 'minify', 'zip', 'webapp', 'chromeapp'], function () {
24
+ console.log('Done');
25
+ });
26
+
27
+ /**
28
+ * build the library
29
+ */
30
+ desc('Clear the build directory');
31
+ task('clear', function () {
32
+ jake.rmRf(BUILD);
33
+ });
34
+
35
+ /**
36
+ * build the library
37
+ */
38
+ desc('Build the library');
39
+ task('build', ['clear'], function () {
40
+ var jsoneditorSrc = './jsoneditor/';
41
+ // concatenate the javascript files
42
+ concat({
43
+ src: [
44
+ jsoneditorSrc + 'js/jsoneditor.js',
45
+ jsoneditorSrc + 'js/treeeditor.js',
46
+ jsoneditorSrc + 'js/texteditor.js',
47
+ jsoneditorSrc + 'js/node.js',
48
+ jsoneditorSrc + 'js/appendnode.js',
49
+ jsoneditorSrc + 'js/contextmenu.js',
50
+ jsoneditorSrc + 'js/history.js',
51
+ jsoneditorSrc + 'js/searchbox.js',
52
+ jsoneditorSrc + 'js/highlighter.js',
53
+ jsoneditorSrc + 'js/util.js',
54
+ jsoneditorSrc + 'js/module.js'
55
+ ],
56
+ dest: JSONEDITOR,
57
+ header: read(jsoneditorSrc +'js/header.js') + '\n' +
58
+ '(function () {\n',
59
+ separator: '\n',
60
+ footer: '\n})();\n'
61
+ });
62
+
63
+ // update version number and stuff in the javascript files
64
+ replacePlaceholders(JSONEDITOR);
65
+ console.log('Created ' + JSONEDITOR);
66
+
67
+ // concatenate and stringify the css files
68
+ concat({
69
+ src: [
70
+ jsoneditorSrc + 'css/jsoneditor.css',
71
+ jsoneditorSrc + 'css/contextmenu.css',
72
+ jsoneditorSrc + 'css/menu.css',
73
+ jsoneditorSrc + 'css/searchbox.css'
74
+ ],
75
+ dest: JSONEDITOR_CSS,
76
+ separator: '\n'
77
+ });
78
+ console.log('Created ' + JSONEDITOR_CSS);
79
+
80
+ // minify the css file
81
+ write(JSONEDITOR_CSS_MIN, cleanCss.process(String(read(JSONEDITOR_CSS))));
82
+
83
+ // create a folder img and copy the icons
84
+ jake.mkdirP('./img');
85
+ jake.cpR(jsoneditorSrc + 'css/img/jsoneditor-icons.png', './img/');
86
+ console.log('Copied jsoneditor-icons.png to ./img/');
87
+ });
88
+
89
+ /**
90
+ * minify the library
91
+ */
92
+ desc('Minify the library');
93
+ task('minify', ['build'], function () {
94
+ // minify javascript
95
+ minify({
96
+ src: JSONEDITOR,
97
+ dest: JSONEDITOR_MIN,
98
+ header: read('./jsoneditor/js/header.js'),
99
+ separator: '\n'
100
+ });
101
+
102
+ // update version number and stuff in the javascript files
103
+ replacePlaceholders(JSONEDITOR_MIN);
104
+
105
+ console.log('Created ' + JSONEDITOR_MIN);
106
+ });
107
+
108
+ /**
109
+ * zip the library
110
+ */
111
+ desc('Zip the library');
112
+ task('zip', ['build', 'minify'], {async: true}, function () {
113
+ var zipfolder = BUILD + '/lib';
114
+ var pkg = 'jsoneditor-' + version();
115
+ var zipfile = zipfolder + '/' + pkg + '.zip';
116
+ jake.mkdirP(zipfolder);
117
+
118
+ var output = fs.createWriteStream(zipfile);
119
+ var archive = archiver('zip');
120
+
121
+ archive.on('error', function(err) {
122
+ throw err;
123
+ });
124
+
125
+ archive.pipe(output);
126
+
127
+ var filelist = new jake.FileList();
128
+ filelist.include([
129
+ 'README.md',
130
+ 'NOTICE',
131
+ 'LICENSE',
132
+ 'HISTORY.md',
133
+ JSONEDITOR,
134
+ JSONEDITOR_CSS,
135
+ JSONEDITOR_MIN,
136
+ JSONEDITOR_CSS_MIN,
137
+ 'img/*.*',
138
+ 'lib/**/*.*',
139
+ 'docs/**/*.*',
140
+ 'examples/**/*.*'
141
+ ]);
142
+ var files = filelist.toArray();
143
+ files.forEach(function (file) {
144
+ archive.append(fs.createReadStream(file), {
145
+ name: pkg + '/' + file
146
+ })
147
+ });
148
+
149
+ archive.finalize(function(err, written) {
150
+ if (err) {
151
+ throw err;
152
+ }
153
+
154
+ console.log('Zipped ' + zipfile);
155
+ complete();
156
+ });
157
+ });
158
+
159
+ /**
160
+ * build the web app
161
+ */
162
+ desc('Build web app');
163
+ task('webapp', ['build', 'minify'], function () {
164
+ var webAppSrc = './app/web/';
165
+ var libSrc = './lib/';
166
+ var webApp = BUILD + '/app/web/';
167
+ var webAppLib = webApp + 'lib/';
168
+ var webAppAce = webAppLib + 'ace/';
169
+ var webAppImg = webApp + 'img/';
170
+ var appJs = webApp + 'app.js';
171
+ var appCss = webApp + 'app.css';
172
+ var appCssMin = webApp + 'app-min.css';
173
+ var appJsMin = webApp + 'app-min.js';
174
+
175
+ // create directories
176
+ // TODO: should be created automatically...
177
+ jake.mkdirP(webApp);
178
+ jake.mkdirP(webAppLib);
179
+ jake.mkdirP(webAppLib + 'ace/');
180
+ jake.mkdirP(webAppLib + 'jsoneditor/');
181
+ jake.mkdirP(webAppLib + 'jsoneditor/img/');
182
+ jake.mkdirP(webAppLib + 'jsonlint/');
183
+ jake.mkdirP(webAppImg);
184
+
185
+ // concatenate the javascript files
186
+ concat({
187
+ src: [
188
+ webAppSrc + 'queryparams.js',
189
+ webAppSrc + 'ajax.js',
190
+ webAppSrc + 'fileretriever.js',
191
+ webAppSrc + 'notify.js',
192
+ webAppSrc + 'splitter.js',
193
+ webAppSrc + 'app.js'
194
+ ],
195
+ dest: appJs,
196
+ separator: '\n'
197
+ });
198
+
199
+ // minify javascript
200
+ minify({
201
+ src: appJs,
202
+ dest: appJsMin
203
+ });
204
+
205
+ // concatenate the css files
206
+ concat({
207
+ src: [
208
+ webAppSrc + 'fileretriever.css',
209
+ webAppSrc + 'app.css'
210
+ ],
211
+ dest: appCss,
212
+ separator: '\n'
213
+ });
214
+
215
+ // minify css file
216
+ write(appCssMin, cleanCss.process(String(read(appCss))));
217
+
218
+ // remove non minified javascript and css file
219
+ fs.unlinkSync(appJs);
220
+ fs.unlinkSync(appCss);
221
+
222
+ // copy files
223
+ jake.cpR('./README.md', webApp);
224
+ jake.cpR('./HISTORY.md', webApp);
225
+ jake.cpR('./NOTICE', webApp);
226
+ jake.cpR('./LICENSE', webApp);
227
+ jake.cpR('./LICENSE', webApp);
228
+ jake.cpR(webAppSrc + 'robots.txt', webApp);
229
+ jake.cpR(webAppSrc + 'datapolicy.txt', webApp);
230
+ jake.cpR(webAppSrc + 'index.html', webApp);
231
+ jake.cpR(webAppSrc + 'favicon.ico', webApp);
232
+ jake.cpR(webAppSrc + 'fileretriever.php', webApp);
233
+ jake.cpR(webAppSrc + 'googlea47c4a0b36d11021.html', webApp);
234
+ jake.cpR(webAppSrc + 'img/logo.png', webAppImg);
235
+ jake.cpR(webAppSrc + 'img/header_background.png', webAppImg);
236
+ jake.cpR(webAppSrc + 'doc/', webApp);
237
+
238
+ // update date and verison in index.html
239
+ replacePlaceholders(webApp + 'index.html');
240
+ replacePlaceholders(webApp + 'index.html'); // TODO: fix bug in replace, should replace all occurrences
241
+
242
+ // concatenate and copy ace files
243
+ concat({
244
+ src: [
245
+ libSrc + 'ace/ace.js',
246
+ libSrc + 'ace/mode-json.js',
247
+ libSrc + 'ace/theme-textmate.js',
248
+ libSrc + 'ace/theme-jsoneditor.js'
249
+ ],
250
+ dest: webAppAce + 'ace-min.js',
251
+ separator: '\n'
252
+ });
253
+ jake.cpR(libSrc + 'ace/worker-json.js', webAppAce);
254
+
255
+ // copy json lint file
256
+ jake.cpR(libSrc + 'jsonlint/jsonlint.js', webAppLib + 'jsonlint/')
257
+
258
+ // copy jsoneditor files
259
+ jake.cpR(JSONEDITOR_MIN, webAppLib + 'jsoneditor/');
260
+ jake.cpR(JSONEDITOR_CSS_MIN, webAppLib + 'jsoneditor/');
261
+ jake.cpR('img', webAppLib + 'jsoneditor/');
262
+
263
+ });
264
+
265
+ /**
266
+ * build the chrome app
267
+ */
268
+ desc('Build chrome app');
269
+ task('chromeapp', {async: true}, function () {
270
+ var folder = BUILD + '/app/';
271
+ var file = folder + 'chrome.zip';
272
+ jake.mkdirP(folder);
273
+
274
+ var output = fs.createWriteStream(file);
275
+ var archive = archiver('zip');
276
+
277
+ archive.on('error', function(err) {
278
+ throw err;
279
+ });
280
+
281
+ // create a temporary manifest file with version number
282
+ var manifestTmp = folder + 'manifest.json.tmp';
283
+ jake.cpR('./app/chrome/manifest.json', manifestTmp);
284
+ replacePlaceholders(manifestTmp);
285
+
286
+ archive.pipe(output);
287
+ archive.append(fs.createReadStream(manifestTmp), {name: 'manifest.json'});
288
+ archive.append(fs.createReadStream('./app/web/img/icon_16.png'), {name: 'icon_16.png'});
289
+ archive.append(fs.createReadStream('./app/web/img/icon_128.png'), {name: 'icon_128.png'});
290
+
291
+ // cleanup temporary manifest file
292
+ fs.unlinkSync(manifestTmp);
293
+
294
+ archive.finalize(function(err, written) {
295
+ if (err) {
296
+ throw err;
297
+ }
298
+
299
+ console.log('Created chrome app ' + file);
300
+ complete();
301
+ });
302
+ });
303
+
304
+ /**
305
+ * replace version, date, and name placeholders in the provided file
306
+ * @param {String} filename
307
+ */
308
+ var replacePlaceholders = function (filename) {
309
+ replace({
310
+ replacements: [
311
+ {pattern: '@@date', replacement: today()},
312
+ {pattern: '@@version', replacement: version()}
313
+ ],
314
+ src: filename
315
+ });
316
+ };
@@ -0,0 +1,176 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS