similarity_tree 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,365 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
2
+ <html><body>
3
+ <h3><em>License</em></h3>
4
+
5
+ <p>THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS
6
+ OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR
7
+ "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER
8
+ APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS
9
+ AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS
10
+ PROHIBITED.</p>
11
+
12
+ <p>BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU
13
+ ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE.
14
+ TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A
15
+ CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE
16
+ IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND
17
+ CONDITIONS.</p>
18
+
19
+ <p><strong>1. Definitions</strong></p>
20
+
21
+ <ol type="a">
22
+ <li>
23
+ <strong>"Adaptation"</strong> means a work based upon
24
+ the Work, or upon the Work and other pre-existing works,
25
+ such as a translation, adaptation, derivative work,
26
+ arrangement of music or other alterations of a literary
27
+ or artistic work, or phonogram or performance and
28
+ includes cinematographic adaptations or any other form in
29
+ which the Work may be recast, transformed, or adapted
30
+ including in any form recognizably derived from the
31
+ original, except that a work that constitutes a
32
+ Collection will not be considered an Adaptation for the
33
+ purpose of this License. For the avoidance of doubt,
34
+ where the Work is a musical work, performance or
35
+ phonogram, the synchronization of the Work in
36
+ timed-relation with a moving image ("synching") will be
37
+ considered an Adaptation for the purpose of this
38
+ License.</li>
39
+
40
+ <li>
41
+ <strong>"Collection"</strong> means a collection of
42
+ literary or artistic works, such as encyclopedias and
43
+ anthologies, or performances, phonograms or broadcasts,
44
+ or other works or subject matter other than works listed
45
+ in Section 1(f) below, which, by reason of the selection
46
+ and arrangement of their contents, constitute
47
+ intellectual creations, in which the Work is included in
48
+ its entirety in unmodified form along with one or more
49
+ other contributions, each constituting separate and
50
+ independent works in themselves, which together are
51
+ assembled into a collective whole. A work that
52
+ constitutes a Collection will not be considered an
53
+ Adaptation (as defined above) for the purposes of this
54
+ License.</li>
55
+
56
+ <li>
57
+ <strong>"Distribute"</strong> means to make available
58
+ to the public the original and copies of the Work through
59
+ sale or other transfer of ownership.</li>
60
+
61
+ <li>
62
+ <strong>"Licensor"</strong> means the individual,
63
+ individuals, entity or entities that offer(s) the Work
64
+ under the terms of this License.</li>
65
+
66
+ <li>
67
+ <strong>"Original Author"</strong> means, in the case
68
+ of a literary or artistic work, the individual,
69
+ individuals, entity or entities who created the Work or
70
+ if no individual or entity can be identified, the
71
+ publisher; and in addition (i) in the case of a
72
+ performance the actors, singers, musicians, dancers, and
73
+ other persons who act, sing, deliver, declaim, play in,
74
+ interpret or otherwise perform literary or artistic works
75
+ or expressions of folklore; (ii) in the case of a
76
+ phonogram the producer being the person or legal entity
77
+ who first fixes the sounds of a performance or other
78
+ sounds; and, (iii) in the case of broadcasts, the
79
+ organization that transmits the broadcast.</li>
80
+
81
+ <li>
82
+ <strong>"Work"</strong> means the literary and/or
83
+ artistic work offered under the terms of this License
84
+ including without limitation any production in the
85
+ literary, scientific and artistic domain, whatever may be
86
+ the mode or form of its expression including digital
87
+ form, such as a book, pamphlet and other writing; a
88
+ lecture, address, sermon or other work of the same
89
+ nature; a dramatic or dramatico-musical work; a
90
+ choreographic work or entertainment in dumb show; a
91
+ musical composition with or without words; a
92
+ cinematographic work to which are assimilated works
93
+ expressed by a process analogous to cinematography; a
94
+ work of drawing, painting, architecture, sculpture,
95
+ engraving or lithography; a photographic work to which
96
+ are assimilated works expressed by a process analogous to
97
+ photography; a work of applied art; an illustration, map,
98
+ plan, sketch or three-dimensional work relative to
99
+ geography, topography, architecture or science; a
100
+ performance; a broadcast; a phonogram; a compilation of
101
+ data to the extent it is protected as a copyrightable
102
+ work; or a work performed by a variety or circus
103
+ performer to the extent it is not otherwise considered a
104
+ literary or artistic work.</li>
105
+
106
+ <li>
107
+ <strong>"You"</strong> means an individual or entity
108
+ exercising rights under this License who has not
109
+ previously violated the terms of this License with
110
+ respect to the Work, or who has received express
111
+ permission from the Licensor to exercise rights under
112
+ this License despite a previous violation.</li>
113
+
114
+ <li>
115
+ <strong>"Publicly Perform"</strong> means to perform
116
+ public recitations of the Work and to communicate to the
117
+ public those public recitations, by any means or process,
118
+ including by wire or wireless means or public digital
119
+ performances; to make available to the public Works in
120
+ such a way that members of the public may access these
121
+ Works from a place and at a place individually chosen by
122
+ them; to perform the Work to the public by any means or
123
+ process and the communication to the public of the
124
+ performances of the Work, including by public digital
125
+ performance; to broadcast and rebroadcast the Work by any
126
+ means including signs, sounds or images.</li>
127
+
128
+ <li>
129
+ <strong>"Reproduce"</strong> means to make copies of
130
+ the Work by any means including without limitation by
131
+ sound or visual recordings and the right of fixation and
132
+ reproducing fixations of the Work, including storage of a
133
+ protected performance or phonogram in digital form or
134
+ other electronic medium.</li>
135
+ </ol>
136
+ <p><strong>2. Fair Dealing Rights.</strong> Nothing in this
137
+ License is intended to reduce, limit, or restrict any uses
138
+ free from copyright or rights arising from limitations or
139
+ exceptions that are provided for in connection with the
140
+ copyright protection under copyright law or other
141
+ applicable laws.</p>
142
+
143
+ <p><strong>3. License Grant.</strong> Subject to the terms
144
+ and conditions of this License, Licensor hereby grants You
145
+ a worldwide, royalty-free, non-exclusive, perpetual (for
146
+ the duration of the applicable copyright) license to
147
+ exercise the rights in the Work as stated below:</p>
148
+
149
+ <ol type="a">
150
+ <li>to Reproduce the Work, to incorporate the Work into
151
+ one or more Collections, and to Reproduce the Work as
152
+ incorporated in the Collections; and,</li>
153
+
154
+ <li>to Distribute and Publicly Perform the Work including
155
+ as incorporated in Collections.</li>
156
+
157
+ <li>
158
+ <p>For the avoidance of doubt:</p>
159
+
160
+ <ol type="i">
161
+ <li>
162
+ <strong>Non-waivable Compulsory License
163
+ Schemes</strong>. In those jurisdictions in which the
164
+ right to collect royalties through any statutory or
165
+ compulsory licensing scheme cannot be waived, the
166
+ Licensor reserves the exclusive right to collect such
167
+ royalties for any exercise by You of the rights
168
+ granted under this License;</li>
169
+
170
+ <li>
171
+ <strong>Waivable Compulsory License
172
+ Schemes</strong>. In those jurisdictions in which the
173
+ right to collect royalties through any statutory or
174
+ compulsory licensing scheme can be waived, the
175
+ Licensor waives the exclusive right to collect such
176
+ royalties for any exercise by You of the rights
177
+ granted under this License; and,</li>
178
+
179
+ <li>
180
+ <strong>Voluntary License Schemes</strong>. The
181
+ Licensor waives the right to collect royalties,
182
+ whether individually or, in the event that the
183
+ Licensor is a member of a collecting society that
184
+ administers voluntary licensing schemes, via that
185
+ society, from any exercise by You of the rights
186
+ granted under this License.</li>
187
+ </ol>
188
+ </li>
189
+ </ol>
190
+ <p>The above rights may be exercised in all media and
191
+ formats whether now known or hereafter devised. The above
192
+ rights include the right to make such modifications as are
193
+ technically necessary to exercise the rights in other media
194
+ and formats, but otherwise you have no rights to make
195
+ Adaptations. Subject to Section 8(f), all rights not
196
+ expressly granted by Licensor are hereby reserved.</p>
197
+
198
+ <p><strong>4. Restrictions.</strong> The license granted in
199
+ Section 3 above is expressly made subject to and limited by
200
+ the following restrictions:</p>
201
+
202
+ <ol type="a">
203
+ <li>You may Distribute or Publicly Perform the Work only
204
+ under the terms of this License. You must include a copy
205
+ of, or the Uniform Resource Identifier (URI) for, this
206
+ License with every copy of the Work You Distribute or
207
+ Publicly Perform. You may not offer or impose any terms
208
+ on the Work that restrict the terms of this License or
209
+ the ability of the recipient of the Work to exercise the
210
+ rights granted to that recipient under the terms of the
211
+ License. You may not sublicense the Work. You must keep
212
+ intact all notices that refer to this License and to the
213
+ disclaimer of warranties with every copy of the Work You
214
+ Distribute or Publicly Perform. When You Distribute or
215
+ Publicly Perform the Work, You may not impose any
216
+ effective technological measures on the Work that
217
+ restrict the ability of a recipient of the Work from You
218
+ to exercise the rights granted to that recipient under
219
+ the terms of the License. This Section 4(a) applies to
220
+ the Work as incorporated in a Collection, but this does
221
+ not require the Collection apart from the Work itself to
222
+ be made subject to the terms of this License. If You
223
+ create a Collection, upon notice from any Licensor You
224
+ must, to the extent practicable, remove from the
225
+ Collection any credit as required by Section 4(b), as
226
+ requested.</li>
227
+
228
+ <li>If You Distribute, or Publicly Perform the Work or
229
+ Collections, You must, unless a request has been made
230
+ pursuant to Section 4(a), keep intact all copyright
231
+ notices for the Work and provide, reasonable to the
232
+ medium or means You are utilizing: (i) the name of the
233
+ Original Author (or pseudonym, if applicable) if
234
+ supplied, and/or if the Original Author and/or Licensor
235
+ designate another party or parties (e.g., a sponsor
236
+ institute, publishing entity, journal) for attribution
237
+ ("Attribution Parties") in Licensor's copyright notice,
238
+ terms of service or by other reasonable means, the name
239
+ of such party or parties; (ii) the title of the Work if
240
+ supplied; (iii) to the extent reasonably practicable, the
241
+ URI, if any, that Licensor specifies to be associated
242
+ with the Work, unless such URI does not refer to the
243
+ copyright notice or licensing information for the Work.
244
+ The credit required by this Section 4(b) may be
245
+ implemented in any reasonable manner; provided, however,
246
+ that in the case of a Collection, at a minimum such
247
+ credit will appear, if a credit for all contributing
248
+ authors of the Collection appears, then as part of these
249
+ credits and in a manner at least as prominent as the
250
+ credits for the other contributing authors. For the
251
+ avoidance of doubt, You may only use the credit required
252
+ by this Section for the purpose of attribution in the
253
+ manner set out above and, by exercising Your rights under
254
+ this License, You may not implicitly or explicitly assert
255
+ or imply any connection with, sponsorship or endorsement
256
+ by the Original Author, Licensor and/or Attribution
257
+ Parties, as appropriate, of You or Your use of the Work,
258
+ without the separate, express prior written permission of
259
+ the Original Author, Licensor and/or Attribution
260
+ Parties.</li>
261
+
262
+ <li>Except as otherwise agreed in writing by the Licensor
263
+ or as may be otherwise permitted by applicable law, if
264
+ You Reproduce, Distribute or Publicly Perform the Work
265
+ either by itself or as part of any Collections, You must
266
+ not distort, mutilate, modify or take other derogatory
267
+ action in relation to the Work which would be prejudicial
268
+ to the Original Author's honor or reputation.</li>
269
+ </ol>
270
+ <p><strong>5. Representations, Warranties and
271
+ Disclaimer</strong></p>
272
+
273
+ <p>UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN
274
+ WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO
275
+ REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE
276
+ WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING,
277
+ WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY,
278
+ FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE
279
+ ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE
280
+ PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE.
281
+ SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED
282
+ WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.</p>
283
+
284
+ <p><strong>6. Limitation on Liability.</strong> EXCEPT TO
285
+ THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL
286
+ LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY
287
+ SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY
288
+ DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK,
289
+ EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF
290
+ SUCH DAMAGES.</p>
291
+
292
+ <p><strong>7. Termination</strong></p>
293
+
294
+ <ol type="a">
295
+ <li>This License and the rights granted hereunder will
296
+ terminate automatically upon any breach by You of the
297
+ terms of this License. Individuals or entities who have
298
+ received Collections from You under this License,
299
+ however, will not have their licenses terminated provided
300
+ such individuals or entities remain in full compliance
301
+ with those licenses. Sections 1, 2, 5, 6, 7, and 8 will
302
+ survive any termination of this License.</li>
303
+
304
+ <li>Subject to the above terms and conditions, the
305
+ license granted here is perpetual (for the duration of
306
+ the applicable copyright in the Work). Notwithstanding
307
+ the above, Licensor reserves the right to release the
308
+ Work under different license terms or to stop
309
+ distributing the Work at any time; provided, however that
310
+ any such election will not serve to withdraw this License
311
+ (or any other license that has been, or is required to
312
+ be, granted under the terms of this License), and this
313
+ License will continue in full force and effect unless
314
+ terminated as stated above.</li>
315
+ </ol>
316
+ <p><strong>8. Miscellaneous</strong></p>
317
+
318
+ <ol type="a">
319
+ <li>Each time You Distribute or Publicly Perform the Work
320
+ or a Collection, the Licensor offers to the recipient a
321
+ license to the Work on the same terms and conditions as
322
+ the license granted to You under this License.</li>
323
+
324
+ <li>If any provision of this License is invalid or
325
+ unenforceable under applicable law, it shall not affect
326
+ the validity or enforceability of the remainder of the
327
+ terms of this License, and without further action by the
328
+ parties to this agreement, such provision shall be
329
+ reformed to the minimum extent necessary to make such
330
+ provision valid and enforceable.</li>
331
+
332
+ <li>No term or provision of this License shall be deemed
333
+ waived and no breach consented to unless such waiver or
334
+ consent shall be in writing and signed by the party to be
335
+ charged with such waiver or consent.</li>
336
+
337
+ <li>This License constitutes the entire agreement between
338
+ the parties with respect to the Work licensed here. There
339
+ are no understandings, agreements or representations with
340
+ respect to the Work not specified here. Licensor shall
341
+ not be bound by any additional provisions that may appear
342
+ in any communication from You. This License may not be
343
+ modified without the mutual written agreement of the
344
+ Licensor and You.</li>
345
+
346
+ <li>The rights granted under, and the subject matter
347
+ referenced, in this License were drafted utilizing the
348
+ terminology of the Berne Convention for the Protection of
349
+ Literary and Artistic Works (as amended on September 28,
350
+ 1979), the Rome Convention of 1961, the WIPO Copyright
351
+ Treaty of 1996, the WIPO Performances and Phonograms
352
+ Treaty of 1996 and the Universal Copyright Convention (as
353
+ revised on July 24, 1971). These rights and subject
354
+ matter take effect in the relevant jurisdiction in which
355
+ the License terms are sought to be enforced according to
356
+ the corresponding provisions of the implementation of
357
+ those treaty provisions in the applicable national law.
358
+ If the standard suite of rights granted under applicable
359
+ copyright law includes additional rights not granted
360
+ under this License, such additional rights are deemed to
361
+ be included in the License; this License is not intended
362
+ to restrict the license of any rights under applicable
363
+ law.</li>
364
+ </ol>
365
+ </body></html>
metadata ADDED
@@ -0,0 +1,137 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: similarity_tree
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Kent Mewhort
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-07-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: fast_html_diff
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: tf-idf-similarity
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: ruby-progressbar
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ! '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ! '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: Generates a tree representing the branches or revisions to a set of HTML
84
+ files
85
+ email:
86
+ - kent@openissues.ca
87
+ executables: []
88
+ extensions: []
89
+ extra_rdoc_files: []
90
+ files:
91
+ - .gitignore
92
+ - Gemfile
93
+ - LICENSE.txt
94
+ - README.md
95
+ - Rakefile
96
+ - lib/similarity_tree.rb
97
+ - lib/similarity_tree/node.rb
98
+ - lib/similarity_tree/similarity_matrix.rb
99
+ - lib/similarity_tree/similarity_tree.rb
100
+ - lib/similarity_tree/version.rb
101
+ - similarity_tree.gemspec
102
+ - test/cc_licences/CC-BY-3.0.html
103
+ - test/cc_licences/CC-BY-NC-3.0.html
104
+ - test/cc_licences/CC-BY-NC-ND-3.0.html
105
+ - test/cc_licences/CC-BY-NC-SA-3.0.html
106
+ - test/cc_licences/CC-BY-ND-3.0.html
107
+ homepage: https://github.com/kmewhort/similarity_tree/
108
+ licenses:
109
+ - MIT
110
+ metadata: {}
111
+ post_install_message:
112
+ rdoc_options: []
113
+ require_paths:
114
+ - lib
115
+ required_ruby_version: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - ! '>='
118
+ - !ruby/object:Gem::Version
119
+ version: '0'
120
+ required_rubygems_version: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ! '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ requirements: []
126
+ rubyforge_project:
127
+ rubygems_version: 2.0.3
128
+ signing_key:
129
+ specification_version: 4
130
+ summary: Generates a tree representing the branches or revisions to a set of HTML
131
+ files
132
+ test_files:
133
+ - test/cc_licences/CC-BY-3.0.html
134
+ - test/cc_licences/CC-BY-NC-3.0.html
135
+ - test/cc_licences/CC-BY-NC-ND-3.0.html
136
+ - test/cc_licences/CC-BY-NC-SA-3.0.html
137
+ - test/cc_licences/CC-BY-ND-3.0.html