diff --git a/src/licensedcode/data/licenses/bohl-0.2.LICENSE b/src/licensedcode/data/licenses/bohl-0.2.LICENSE new file mode 100644 index 00000000000..ad64a598984 --- /dev/null +++ b/src/licensedcode/data/licenses/bohl-0.2.LICENSE @@ -0,0 +1,40 @@ +The Balloon Open Hardware License (BOHL) +Version 0.2 For Discussion +The Text of this License is Copyright (c) 2006 2007 iTechnic Ltd +Permission is granted to copy this license unmodified and use it to protect Open Hardware +Designs. + +Preamble +This license agreement covers hardware designed, manufactured and distributed on an open basis. +The license outlines the Terms and Conditions placed on the use of the design. When licensing +Open Hardware it is important to note that there is a significant distinction between Open +Hardware and Open Software particularly with respect to both the design process and the +replication process. +Firstly the design and replication of hardware is different because there are intermediate steps in +the processes that are valuable in their own right. Secondly the process of replication can involve +considerable time, cost and expertise. For these reasons it is not appropriate to simply transfer +licenses that have validity in the software domain (such as the GPL) to the hardware domain. +This license is intended to establish an Open Design approach in the hardware domain while +building in practical safeguards, which are necessary for the design and manufacture of hardware, +where manufacturers take a financial and legal risk when replicating Open Hardware and where +the physical product must conform to approvals if its sale is to be legal. It is also important to +protect designers from issues of liability particularly as many designers may be working as +individuals and therefore not protected by an employer. +The license is written to apply to any type of hardware produced using an Open Hardware design +process. It has originated from the Balloon Project (www.balloonboard.org) but the license can be +freely applied to any Open Hardware. +In order to augment the text of the license it is accompanied by Notes and Appendices. The +notes help to provide interpretation and guidance within the text of the license and the +appendices contain more detailed discussions about the operation of the license and detail the +types of Manufacturing Information and Design Documentation that might be provided as a part +of any Open Hardware Design. The notes do not form part of the License but are intended to +clarify the intention of the license. The Appendices are intended to provide uniformity to the way +that hardware designs are released and managed when using this license. +{Notes occur in the text of the License between curly brackets and in italics} + +Purpose +The purpose of this license is to protect the designers of the hardware from any form of litigation +resulting from its design, manufacture, distribution or use. +It is also the purpose of this license to ensure that the design remains Open in the sense detailed +in the license and that manufacturers, distributors, and users are obliged to adhere to the Open +principles of the design and to protect their rights to access the design as specified in the license. diff --git a/src/licensedcode/data/licenses/bohl-0.2.yml b/src/licensedcode/data/licenses/bohl-0.2.yml new file mode 100644 index 00000000000..701b3bc45c9 --- /dev/null +++ b/src/licensedcode/data/licenses/bohl-0.2.yml @@ -0,0 +1,14 @@ +key: bohl-0.2 +short_name: BOHL-0.2 +name: The Balloon Open Hardware License v0.2 +category: Permissive +spdx_license_key: LicenseRef-scancode-bohl-0.2 +owner: The Balloon +text_urls: + - https://web.archive.org/web/20140426215620/http://www.balloonboard.org/docs/Balloon_License_0v2.pdf +ignorable_copyrights: + - Copyright (c) 2006 2007 iTechnic Ltd +ignorable_holders: + - iTechnic Ltd +ignorable_urls: + - http://www.balloonboard.org/ diff --git a/src/licensedcode/data/licenses/defensive-patent-1.1.LICENSE b/src/licensedcode/data/licenses/defensive-patent-1.1.LICENSE new file mode 100644 index 00000000000..d8df4ac6e79 --- /dev/null +++ b/src/licensedcode/data/licenses/defensive-patent-1.1.LICENSE @@ -0,0 +1,83 @@ +PREFACE +The Defensive Patent License (DPL) is a free, copyleft-style license for patents. + +Most patents and patent licenses are designed to take away the public’s access to knowledge and the freedom to share and improve on the patented inventions. By contrast, the DPL is intended to protect the freedom to share and improve patented inventions, among a community of like-minded people. It is also intended to help establish a robust body of prior art that prevents subsequent attempts to patent the same inventions in ways that restrict access and freedom. + +To join this community, all that a person or company must do is to guarantee the same freedom to everyone else in the DPL community, with respect to all of their own patents (and any future patents they may acquire). However, you do not need to own any patents to become part of the DPL community. You need only make the same commitment and then abide by it in the case that you do acquire patents at some future time. + +The result is that this patent-sharing community ends up with a network of patents that guarantees each member a zero-cost license to any or all of the patents within the network, while still leaving those patents enforceable against anyone who has chosen not to join the DPL’s patent-sharing community. + +Unlike copyright-based licenses such as the GNU General Public License, the DPL v1.1 requires that a person or organization license ALL their patents under the DPL in order to receive free licenses from other DPL users. This is due to differences between patents and copyrights and the ways in which patents can threaten access to knowledge and freedom in ways that copyright cannot. In requiring this, the DPL stands as a unequivocal commitment to non-aggression among + a community of people and companies who obtain patents to defend themselves, but who do not want to use those patents aggressively against the public. + +At the start, the DPL patent-sharing community is likely to be small, so joining it will seldom impact the revenues that a patent holder obtains from commercial licensees. As the community grows, it becomes more and more attractive to join the community, even for large companies with many patents. The benefit to each existing community member grows as more and more patent-holders join and freely license their patents to all the members. + +Another benefit is creating a robust body of prior art to prevent proprietary patent owners from patenting similar inventions. Currently, many innovators choose not to patent what they create because they disagree with the patent system or they are cautious or skeptical that their patents will end up being used to bully or troll other creators. The DPL legally binds patent owners to supporting access and freedom within the DPL community and thus provides assurances that + patenting a given innovation will not be abused or misused within the DPL community. In this way, DPL patents provide assurances regarding freedom and access while at the same time serving as serious roadblocks to subsequent attempts to file patents on the same inventions. + +The effect of the DPL v.1.1’s “all-in” requirement is that companies with large inventories of proprietary patents may be less likely to join the patent-sharing community at first. However, this means that DPL patent holders are free to enter commercial licenses with, collect royalties from, and/or file lawsuits against those companies. Alternatively, if such companies do at some point join the patent-sharing community, the community would get the free use of all of their numerous patents. + +To join the DPL community, you simply declare on a publicly available website your commitment to offer any patents you have or obtain under the DPL to anyone who makes a similar commitment (what we are calling an “Offering Announcement”) and then, when you contact another DPL user to accept the license to its patents, you provide it with the URL for the website where you posted your commitment. We also encourage you to email your Offering Announcement URL +to the DPL Foundation via the email address listed on its website (http://www.defensivepatentlicense.org/content/frequently-asked-questions#how-can-I-start) so others can learn about it and contact you to accept your licenses. + +If you were to change your mind later, you can withdraw from the DPL patent-sharing community on 180 days’ notice. You can effectuate this by posting another announcement on a publicly available website (what we are calling a “Discontinuation Announcement”) declaring the final date you will be offering your patents under the DPL and then emailing that URL to anyone from whom you’ve taken the DPL license. Again, we also encourage but do not require that you email +the DPL Foundation with your Discontinuation Announcement. + +After withdrawing, existing licenses you previously granted to community members remain valid, but your obligation to grant free licenses to the DPL community ceases. Also, you retain any free licenses that you obtained from other DPL users. But those other DPL users have the right at any point to convert your license to a similar license that requires you to pay a fair, reasonable, and non-discriminatory royalty for each licensed product or service. + +LICENSE +NOTICE +NOTICE: ALL RIGHTS IN LICENSED PATENTS (as defined below) PROVIDED UNDER THIS DEFENSIVE PATENT LICENSE (“DPL”) ARE SUBJECT TO ALL OF THE CONDITIONS AND LIMITATIONS SET FORTH BELOW. MAKING, USING, SELLING, OFFERING FOR SALE, IMPORTING, OR DISTRIBUTING PRODUCTS OR SERVICES EMBODYING THE LICENSED PATENTS, OTHER THAN AS EXPLICITLY AUTHORIZED UNDER THIS LICENSE OR PATENT LAW, IS PROHIBITED. +1. +LICENSE GRANT +Subject to the conditions and limitations of this License, Licensor hereby grants and agrees to grant to any DPL User (as defined in Section 7.6) who follows the procedures for License Acceptance (as defined in Section 1.1) a worldwide, royalty-free, no-charge, non-exclusive, irrevocable (except as stated in Sections 2(e) and 2(f)) license, perpetual for the term of the relevant Licensed Patents, to make, have made, use, sell, offer for sale, import, and distribute Licensed Products and Services that would otherwise infringe any claim of Licensed Patents. A Licensee’s sale of Licensed Products +and Services pursuant to this agreement exhausts the Licensor’s ability to assert infringement against a downstream purchaser or user of the Licensed Products or Services. Licensor’s obligation to grant Licenses under this provision ceases upon the arrival of any applicable Discontinuation Date, unless that Date is followed by a subsequent Offering Announcement. + +1.1 +LICENSE ACCEPTANCE +In order to accept this License, Licensee must qualify as a DPL User (as defined in Section 7.6) and must contact Licensor via the information provided in Licensor’s Offering Announcement to state affirmatively that Licensee accepts the terms of this License. Licensee must also communicate the URL of its own Offering Announcement (as defined in Section 7.13) and specify whether it is accepting the License to all Licensor’s Patents or only a subset of those Patents. If Licensee is only accepting the License to a subset +of Licensor’s Patents, Licensee must specify each individual Patent’s country of issuance and corresponding patent number for which it is accepting a License. There is no requirement that the Licensor respond to the Licensee’s affirmative acceptance of this License. + +2. +LICENSE RESTRICTIONS +Notwithstanding the foregoing, this License is expressly subject to and limited by the following restrictions: + +(a) No Sublicensing. This License does not include the right to sublicense any Licensed Patent of any Licensor. + +(b) License Extends Solely to Licensed Patents in Connection with Licensed Products and Services. For clarity, this License does not purport to grant any rights in any Licensor’s copyright, trademark, trade dress, design, trade secret, other intellectual property, or any other rights of Licensor other than the rights to Licensed Patents granted in Section 2, nor does the License cover products or services other than the Licensed Products and Services. For example, this License would not apply to any conduct of a Licensee that occurred prior to accepting this License under Section 1.1. + +(c) Scope. This License does not include Patents with a priority date or Effective Filing Date later than Licensor’s last Discontinuation Date that has not been followed by a subsequent Offering Announcement by Licensor. + +(d) Future DPL Users. This License does not extend to any DPL User whose Offering Announcement occurs later than Licensor’s last Discontinuation Date that has not been followed by a subsequent Offering Announcement by Licensor. + +(e) Revocation and Termination Rights. Licensor reserves the right to revoke and/or terminate this License with respect to a particular Licensee if, after the date of the Licensee’s most recent Offering Announcement: + +i. Licensee makes any Infringement Claim, not including Defensive Patent Claims, against a DPL User; or + +ii. Licensee assigns, transfers, or grants an exclusive license for a Patent to an entity or individual other than a DPL User without conditioning the assignment, transfer, or exclusive license on the recipient continuing to abide by the terms of this License, including but not limited to the revocation and termination rights under this Section. + +(f) Optional Conversion to FRAND Upon Discontinuation. Notwithstanding any other provision in this License, as of any particular Licensee’s Discontinuation Date, Licensor has the right to convert the License of that particular Licensee from one that is royalty-free and no-charge to one that is subject to Fair, Reasonable, And Non-Discriminatory (FRAND) terms going forward. No other terms in the license may be altered in any way under this provision. + +3. +VERSIONS OF THE LICENSE +(a) New Versions + +The DPL Foundation, Jason M. Schultz of New York University, and Jennifer M. Urban of the University of California at Berkeley are the license stewards. Unless otherwise designated by one of the license stewards, no one other than the license stewards has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number. + +(b) Effect of New or Revised Versions + +Any one of the license stewards may publish revised and/or new versions of the DPL from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If Licensor specifies in her Offering Announcement that she is offering a certain numbered version of the DPL “or any later version”, Licensee has the option of following the terms and conditions either of that numbered version or of any later version published by one of the license stewards. If Licensor does not specify a version number of the DPL in her Offering Announcement, +Licensee may choose any version ever published by any of the license stewards. + +4. +DISCLAIMER OF CLAIMS RELATED TO PATENT VALIDITY & NON-INFRINGEMENT +Licensor makes no representations and disclaims any and all warranties as to the validity of the Licensed Patents or the products or processes covered by Licensed Patents do not infringe the patent, copyright, trademark, trade secret, or other intellectual property rights of any other party. +5. +DISCLAIMER OF WARRANTIES +UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE PATENT LICENSE GRANTED HEREIN “AS IS” AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE LICENSED PATENTS OR ANY PRODUCT EMBODYING ANY LICENSED PATENT, EXPRESS OR IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE PRESENCE OR ABSENCE OF ERRORS, REGARDLESS OF THEIR DISCOVERABILITY. +SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, IN WHICH CASE SUCH EXCLUSION MAY NOT APPLY TO LICENSEE. +6. +LIMITATION OF LIABILITY +LICENSOR SHALL NOT BE LIABLE FOR ANY DAMAGES ARISING FROM OR RELATED TO THIS LICENSE, INCLUDING INDIRECT, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR SPECIAL DAMAGES, WHETHER ON WARRANTY, CONTRACT, NEGLIGENCE, OR OTHERWISE, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES PRIOR TO SUCH AN OCCURRENCE. diff --git a/src/licensedcode/data/licenses/defensive-patent-1.1.yml b/src/licensedcode/data/licenses/defensive-patent-1.1.yml new file mode 100644 index 00000000000..e582319f5e6 --- /dev/null +++ b/src/licensedcode/data/licenses/defensive-patent-1.1.yml @@ -0,0 +1,11 @@ +key: defensive-patent-1.1 +short_name: Defensive Patent License v1.1 +name: Defensive Patent License v1.1 +owner: DPL +category: Copyleft +spdx_license_key: LicenseRef-scancode-defensive-patent-1.1 +homepage_url: https://www.defensivepatentlicense.org/ +text_urls: + - https://www.defensivepatentlicense.org/license +ignorable_urls: + - http://www.defensivepatentlicense.org/content/frequently-asked-questions#how-can-I-start diff --git a/src/licensedcode/data/licenses/pbl-1.0.LICENSE b/src/licensedcode/data/licenses/pbl-1.0.LICENSE new file mode 100644 index 00000000000..161bfd20eb3 --- /dev/null +++ b/src/licensedcode/data/licenses/pbl-1.0.LICENSE @@ -0,0 +1,49 @@ +Permissive Binary License + +Version 1.0, September 2015 + +Redistribution. Redistribution and use in binary form, without +modification, are permitted provided that the following conditions are +met: + +1) Redistributions must reproduce the above copyright notice and the + following disclaimer in the documentation and/or other materials + provided with the distribution. + +2) Unless to the extent explicitly permitted by law, no reverse + engineering, decompilation, or disassembly of this software is + permitted. + +3) Redistribution as part of a software development kit must include the + accompanying file named "DEPENDENCIES" and any dependencies listed in + that file. + +4) Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +Limited patent license. The copyright holders (and contributors) grant a +worldwide, non-exclusive, no-charge, royalty-free patent license to +make, have made, use, offer to sell, sell, import, and otherwise +transfer this software, where such license applies only to those patent +claims licensable by the copyright holders (and contributors) that are +necessarily infringed by this software. This patent license shall not +apply to any combinations that include this software. No hardware is +licensed hereunder. + +If you institute patent litigation against any entity (including a +cross-claim or counterclaim in a lawsuit) alleging that the software +itself infringes your patent(s), then your rights granted under this +license shall terminate as of the date such litigation is filed. + +DISCLAIMER. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND +CONTRIBUTORS "AS IS." ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT +NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED +TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/src/licensedcode/data/licenses/pbl-1.0.yml b/src/licensedcode/data/licenses/pbl-1.0.yml new file mode 100644 index 00000000000..1ad3152921b --- /dev/null +++ b/src/licensedcode/data/licenses/pbl-1.0.yml @@ -0,0 +1,9 @@ +key: pbl-1.0 +short_name: PBL-1.0 +name: PERMISSIVE BINARY LICENSE v1.0 +owner: mbed +category: Permissive +spdx_license_key: LicenseRef-scancode-pbl-1.0 +text_urls: + - https://os.mbed.com/licenses/permissive-binary-license/ + \ No newline at end of file diff --git a/src/licensedcode/data/licenses/ttcl.LICENSE b/src/licensedcode/data/licenses/ttcl.LICENSE new file mode 100644 index 00000000000..222a66d6902 --- /dev/null +++ b/src/licensedcode/data/licenses/ttcl.LICENSE @@ -0,0 +1,57 @@ +The Talis Community Licence is intended to guarantee your freedom to use, share and modify data and to preserve the availability and accessibility of such data for the wider community. + +Definitions +You means an individual or a legal entity exercising rights under, and complying with all of the terms of, this Licence or a future version of this Licence. +Data means the data protected by database right which is offered under the terms of this Licence consisting of the Initial Data or Contributions or the combination of Initial Data and Contributions, in each case including portions thereof. +Initial Data means the initial body of data offered under the terms of this Licence. +Original Author means the individual (or entity) who created the Initial Data. +Licence means this document. +Derived Work means any work created by the editing, modification, adaptation or translation of the Data in any media. +Contributor means each entity that creates or contributes to the creation of Contributions. +Contributions means any addition to or deletion from the substance or structure of either the Initial Data or any other Contributions. +Licence Terms +Original Author Grant +Subject to third party intellectual property claims, the Original Author hereby grants You a world-wide, royalty-free, non-exclusive licence to: + +(a) use, reproduce, display, transmit, sublicence, sell and distribute copies of the Initial Data with or without Contributions; and + +(b) modify Your copy of the Initial Data or any portion of it thus forming a Derived Work; and + +(c) use, reproduce, display, transmit, sublicence, sell and distribute such Derived Work provided that You cause any Derived Work that you distribute or publish, that in whole or part contains or is derived from the Initial Data or any part thereof to be licenced as a whole to all third parties under the terms of this Licence. + +Contributor Grant +Subject to third party intellectual property claims, each Contributor hereby grants You a world-wide, royalty-free, non-exclusive licence to: + +(a) use, reproduce, display, transmit, sublicence and distribute the Contributions created by each such Contributor; and + +(b) modify Your copy of the Contributions or any portion of them thus forming a Derived Work; and + +(c) use, reproduce, display, transmit, sublicence, sell and distribute such Derived Work provided that You cause any Derived Work that you distribute or publish, that in whole or part contains or is derived from the Contributions or any part thereof to be licenced as a whole to all third parties under the terms of this Licence. + +Distribution Obligations +You must include a copy of this Licence with every copy of the Data or any portion of it You distribute and/or make available for electronic access. You must keep intact any notices of copyright ownership and any notices of database right. You must include the following text in each file containing part or whole of the Data: + +The contents of this file are subject to the Talis Community Licence (the "Licence"); you may not use this file except in compliance with the Licence. You may obtain a copy of the Licence at http://tdnarchive.capita-libraries.co.uk/tcl + +If it is not possible to put such notice in a particular file due to its structure, then You must include such notice in a location (such as a relevant directory) where a user would be likely to look for such a notice. You must also duplicate this Licence prominently in any documentation for the Data or any portion of it. + +Multiple Licenced Data +The Original Author may designate portions of the Data as Multiple-Licensed. Multiple-Licensed means that the Original Author permits you to utilize portions of the Data under Your choice of this Licence or the alternative licences, if any, specified by the Original Author. + +Warranties and Disclaimer +Except as required by law, the Data is licensed by the Original Author ,and/or Contributors on an "as is" and "as available" basis and without any warranty of any kind, either express or implied. + +Limit of Liability +Subject to any liability which may not be excluded or limited by law the Original Author ,and/or Contributors shall not be liable and hereby expressly excludes all liability for loss or damage howsoever and whenever caused to You. + +Termination +The rights granted to You under this Licence shall terminate automatically upon any breach by You of the terms of this Licence. + +Entire Agreement +This Licence constitutes the entire Licence Agreement between the parties with respect to the Data licensed here. There are no understandings, agreements or representations with respect to the Data not specified here. The Original Author and/or any Contributors shall not be bound by any additional provisions that may appear in any communication in any form. + +Severability +If any provision of this Licence Agreement shall be held to be invalid or unenforceable for any reason, the remaining provisions shall continue to be valid and enforceable. If a court finds that any provision of this Agreement is invalid or unenforceable, but that by limiting such provision it would become valid and enforceable, then such provision shall be deemed to be written, construed, and enforced as so limited. + +Applicable Law +This Licence shall be governed by the law of England and Wales and the parties irrevocably submit to the exclusive jurisdiction of the Courts of England and Wales. \ No newline at end of file diff --git a/src/licensedcode/data/licenses/ttcl.yml b/src/licensedcode/data/licenses/ttcl.yml new file mode 100644 index 00000000000..d0d9d633949 --- /dev/null +++ b/src/licensedcode/data/licenses/ttcl.yml @@ -0,0 +1,11 @@ +key: ttcl +short_name: TCL +name: The Talis Community License +category: Permissive +owner: Open Knowledge Foundation +spdx_license_key: LicenseRef-scancode-ttcl +homepage_url: https://opendefinition.org/licenses/tcl/ +text_urls: + - https://web.archive.org/web/20130923083859/http://tdnarchive.capita-libraries.co.uk/tcl +ignorable_urls: + - http://tdnarchive.capita-libraries.co.uk/tcl diff --git a/tests/licensedcode/data/query/query_lines/yahoo-eula.txt b/tests/licensedcode/data/query/query_lines/yahoo-eula.txt deleted file mode 100644 index 20f223eccb9..00000000000 --- a/tests/licensedcode/data/query/query_lines/yahoo-eula.txt +++ /dev/null @@ -1,7 +0,0 @@ -Software License - -Welcome to Yahoo! software (the "Yahoo! Software"). By clicking the "I Agree" button below, you agree to these software license terms (the "Software License") that supplement the Yahoo! Terms of Service ("TOS") below, also located at http://info.yahoo.com/legal/us/yahoo/utos/utos-173.html. If you disagree with any of the terms below, Yahoo! does not grant you a license to use the Yahoo! Software; click the "I Disagree" or "Cancel" button to exit the installer. - -Information collected through Yahoo! Software by Yahoo! is subject to the full Yahoo! Privacy Policy: http://info.yahoo.com/privacy/us/yahoo/. To find out more about setting your preferences and the information collected by the Yahoo! Software and used by Yahoo!, go to: http://info.yahoo.com/privacy/us/yahoo/toolbar/details.html. - -Yahoo! reserves the right to update and change, from time to time, this Software License and all documents incorporated by reference. You can always find the most recent version of this Software License at http://info.yahoo.com/legal/us/yahoo/toolbar/tbeula/tbeula-282.html. Yahoo! may change this Software License by posting a new version without notice to you. Use of the Yahoo! Software after such change constitutes acceptance of such changes. diff --git a/tests/licensedcode/data/query/query_lines/yahoo-eula.txt.json b/tests/licensedcode/data/query/query_lines/yahoo-eula.txt.json deleted file mode 100644 index 7e88d7c02f2..00000000000 --- a/tests/licensedcode/data/query/query_lines/yahoo-eula.txt.json +++ /dev/null @@ -1,843 +0,0 @@ -[ - [ - [ - 5680, - "software" - ], - [ - 2494, - "license" - ] - ], - [], - [ - [ - 9012, - "welcome" - ], - [ - 5935, - "to" - ], - [ - 5908, - "yahoo" - ], - [ - 5680, - "software" - ], - [ - 5933, - "the" - ], - [ - 5908, - "yahoo" - ], - [ - 5680, - "software" - ], - [ - 4684, - "by" - ], - [ - 6450, - "clicking" - ], - [ - 5933, - "the" - ], - [ - 5038, - "i" - ], - [ - 198, - "agree" - ], - [ - 6677, - "button" - ], - [ - 6040, - "below" - ], - [ - 5932, - "you" - ], - [ - 198, - "agree" - ], - [ - 5935, - "to" - ], - [ - 6265, - "these" - ], - [ - 5680, - "software" - ], - [ - 2494, - "license" - ], - [ - 5770, - "terms" - ], - [ - 5933, - "the" - ], - [ - 5680, - "software" - ], - [ - 2494, - "license" - ], - [ - 5987, - "that" - ], - [ - 5734, - "supplement" - ], - [ - 5933, - "the" - ], - [ - 5908, - "yahoo" - ], - [ - 5770, - "terms" - ], - [ - 5937, - "of" - ], - [ - 5639, - "service" - ], - [ - 5786, - "tos" - ], - [ - 6040, - "below" - ], - [ - 6318, - "also" - ], - [ - 6175, - "located" - ], - [ - 6052, - "at" - ], - [ - 6145, - "http" - ], - [ - 5067, - "info" - ], - [ - 5908, - "yahoo" - ], - [ - 4736, - "com" - ], - [ - 2430, - "legal" - ], - [ - 5817, - "us" - ], - [ - 5908, - "yahoo" - ], - [ - 20549, - "utos" - ], - [ - 20549, - "utos" - ], - [ - 8160, - "173" - ], - [ - 5984, - "html" - ], - [ - 5972, - "if" - ], - [ - 5932, - "you" - ], - [ - 1289, - "disagree" - ], - [ - 5881, - "with" - ], - [ - 5999, - "any" - ], - [ - 5937, - "of" - ], - [ - 5933, - "the" - ], - [ - 5770, - "terms" - ], - [ - 6040, - "below" - ], - [ - 5908, - "yahoo" - ], - [ - 6078, - "does" - ], - [ - 5940, - "not" - ], - [ - 1951, - "grant" - ], - [ - 5932, - "you" - ], - [ - 2494, - "license" - ], - [ - 5935, - "to" - ], - [ - 5819, - "use" - ], - [ - 5933, - "the" - ], - [ - 5908, - "yahoo" - ], - [ - 5680, - "software" - ], - [ - 4720, - "click" - ], - [ - 5933, - "the" - ], - [ - 5038, - "i" - ], - [ - 1289, - "disagree" - ], - [ - 5445, - "or" - ], - [ - 6902, - "cancel" - ] - ], - [ - [ - 6677, - "button" - ], - [ - 5935, - "to" - ], - [ - 13578, - "exit" - ], - [ - 5933, - "the" - ], - [ - 7007, - "installer" - ] - ], - [], - [ - [ - 6225, - "information" - ], - [ - 666, - "collected" - ], - [ - 5949, - "through" - ], - [ - 5908, - "yahoo" - ], - [ - 5680, - "software" - ], - [ - 4684, - "by" - ], - [ - 5908, - "yahoo" - ], - [ - 5091, - "is" - ], - [ - 5946, - "subject" - ], - [ - 5935, - "to" - ], - [ - 5933, - "the" - ], - [ - 6185, - "full" - ], - [ - 5908, - "yahoo" - ], - [ - 3134, - "privacy" - ], - [ - 5510, - "policy" - ], - [ - 6145, - "http" - ], - [ - 5067, - "info" - ], - [ - 5908, - "yahoo" - ], - [ - 4736, - "com" - ], - [ - 3134, - "privacy" - ], - [ - 5817, - "us" - ], - [ - 5908, - "yahoo" - ], - [ - 5935, - "to" - ], - [ - 6218, - "find" - ], - [ - 6013, - "out" - ], - [ - 6275, - "more" - ], - [ - 6195, - "about" - ], - [ - 7419, - "setting" - ], - [ - 5974, - "your" - ], - [ - 3083, - "preferences" - ], - [ - 5942, - "and" - ], - [ - 5933, - "the" - ], - [ - 6225, - "information" - ], - [ - 666, - "collected" - ], - [ - 4684, - "by" - ], - [ - 5933, - "the" - ], - [ - 5908, - "yahoo" - ], - [ - 5680, - "software" - ], - [ - 5942, - "and" - ], - [ - 5970, - "used" - ], - [ - 4684, - "by" - ], - [ - 5908, - "yahoo" - ], - [ - 7091, - "go" - ], - [ - 5935, - "to" - ], - [ - 6145, - "http" - ], - [ - 5067, - "info" - ], - [ - 5908, - "yahoo" - ], - [ - 4736, - "com" - ], - [ - 3134, - "privacy" - ], - [ - 5817, - "us" - ], - [ - 5908, - "yahoo" - ], - [ - 20555, - "toolbar" - ], - [ - 6147, - "details" - ], - [ - 5984, - "html" - ] - ], - [], - [ - [ - 5908, - "yahoo" - ], - [ - 3536, - "reserves" - ], - [ - 5933, - "the" - ], - [ - 5934, - "right" - ], - [ - 5935, - "to" - ], - [ - 7025, - "update" - ], - [ - 5942, - "and" - ], - [ - 4706, - "change" - ], - [ - 5962, - "from" - ], - [ - 6053, - "time" - ], - [ - 5935, - "to" - ], - [ - 6053, - "time" - ], - [ - 5938, - "this" - ], - [ - 5680, - "software" - ], - [ - 2494, - "license" - ], - [ - 5942, - "and" - ], - [ - 5969, - "all" - ], - [ - 6251, - "documents" - ], - [ - 2140, - "incorporated" - ], - [ - 4684, - "by" - ], - [ - 5573, - "reference" - ], - [ - 5932, - "you" - ], - [ - 4691, - "can" - ], - [ - 6952, - "always" - ], - [ - 6218, - "find" - ], - [ - 5933, - "the" - ], - [ - 6154, - "most" - ], - [ - 11457, - "recent" - ], - [ - 5975, - "version" - ], - [ - 5937, - "of" - ], - [ - 5938, - "this" - ], - [ - 5680, - "software" - ], - [ - 2494, - "license" - ], - [ - 6052, - "at" - ], - [ - 6145, - "http" - ], - [ - 5067, - "info" - ], - [ - 5908, - "yahoo" - ], - [ - 4736, - "com" - ], - [ - 2430, - "legal" - ], - [ - 5817, - "us" - ], - [ - 5908, - "yahoo" - ], - [ - 20555, - "toolbar" - ], - [ - null, - null - ], - [ - null, - null - ], - [ - null, - null - ], - [ - 5984, - "html" - ], - [ - 5908, - "yahoo" - ], - [ - 5958, - "may" - ], - [ - 4706, - "change" - ], - [ - 5938, - "this" - ], - [ - 5680, - "software" - ], - [ - 2494, - "license" - ], - [ - 4684, - "by" - ], - [ - 3054, - "posting" - ], - [ - 5349, - "new" - ], - [ - 5975, - "version" - ], - [ - 5963, - "without" - ], - [ - 5375, - "notice" - ], - [ - 5935, - "to" - ], - [ - 5932, - "you" - ], - [ - 5819, - "use" - ], - [ - 5937, - "of" - ], - [ - 5933, - "the" - ], - [ - 5908, - "yahoo" - ], - [ - 5680, - "software" - ], - [ - 6729, - "after" - ], - [ - 6016, - "such" - ], - [ - 4706, - "change" - ], - [ - 853, - "constitutes" - ], - [ - 20, - "acceptance" - ], - [ - 5937, - "of" - ], - [ - 6016, - "such" - ], - [ - 5967, - "changes" - ] - ] -] \ No newline at end of file diff --git a/tests/licensedcode/test_query.py b/tests/licensedcode/test_query.py index 304ddeace1b..bf6d34cfdbf 100644 --- a/tests/licensedcode/test_query.py +++ b/tests/licensedcode/test_query.py @@ -768,20 +768,3 @@ def test_query_run_for_text_with_long_lines(self): idx = cache.get_index() assert len(Query(location1, idx=idx).query_runs) == 17 assert len(Query(location2, idx=idx).query_runs) == 15 - - def test_Query_tokens_by_line_behaves_the_same_on_various_pythons(self): - # ensure that we have a consistent behavior wrt. to tokenization across - # all the Pythin implementations we run on. In particular this test may - # fail if the token sorting order is not strictly the same on all OSes. - # It may also fail when new licenses and rules are introdcued which - # would be suffling the token id assignments since this is using the - # live index on purpose. - location = self.get_test_loc('query/query_lines/yahoo-eula.txt') - idx = cache.get_index() - query = Query(location, idx=idx) - tbl = list(query.tokens_by_line()) - # inject the actual token string for sanity - tbt = idx.tokens_by_tid - results = [[[i, i and tbt[i] or i] for i in line] for line in tbl] - expected = self.get_test_loc('query/query_lines/yahoo-eula.txt.json') - check_result_equals_expected_json(results, expected, regen=False)