diff --git a/src/cluecode/copyrights.py b/src/cluecode/copyrights.py index b646ec4565a..663864a6d28 100644 --- a/src/cluecode/copyrights.py +++ b/src/cluecode/copyrights.py @@ -2389,7 +2389,7 @@ def build_detection_from_node( NAME-EMAIL: { } #530 # Project Mayo. - NAME-YEAR: { + ?} #535 + NAME-YEAR: {? + ? ?} #535 NAME-YEAR: { + } #540 @@ -2404,7 +2404,6 @@ def build_detection_from_node( # Copyright 2018, OpenCensus Authors COPYRIGHT: {+ } #1579991 - NAME-YEAR: { + ?} #5612 #Academy of Motion Picture Arts and Sciences @@ -2418,6 +2417,8 @@ def build_detection_from_node( NAME-YEAR: { + ?} #570 + URL: { } #5700 + #also accept trailing email and URLs NAME-YEAR: { ??} #5701 NAME-YEAR: {+} #5702 @@ -2470,7 +2471,6 @@ def build_detection_from_node( # this is catching a wide net by treating any bare URL as a company COMPANY: {? } #830 - COMPANY: { } #840 # the Software and Component Technologies group of Trimble Navigation, Ltd. @@ -2649,6 +2649,9 @@ def build_detection_from_node( # Copyright (c) Ian F. Darwin 1986, 1987, 1989, 1990, 1991, 1992, 1994, 1995. COPYRIGHT: {+ + *} #157999 + # portions copyright The Internet Society, Tom Tromey and Red Hat, Inc. + COPYRIGHT: { } #157998 + COPYRIGHT: {+ + ?} #1590 # // (c) (C) → © @@ -2737,6 +2740,9 @@ def build_detection_from_node( # (c) Copyright 1985-1999 SOME TECHNOLOGY SYSTEMS COPYRIGHT2: { ? ?} #2271 + # Minpack Copyright Notice (1999) University of Chicago + COPYRIGHT: { } #2273.1 + # NAME-COPY is a name with a trailing copyright # Daisy (c) 1998 NAME-COPY: { } #2272 @@ -3081,6 +3087,12 @@ def build_detection_from_node( # Copyright (c) 2014 The Rust Project Developers COPYRIGHT: { } #83020 + # copyright its authors + COPYRIGHT: { } #83030 + + # Copyright: 2004-2007 by Internet Systems Consortium, Inc. ("ISC") + # 1995-2003 by Internet Software Consortium + COPYRIGHT: { } #1615 ####################################### # Copyright is held by .... diff --git a/src/textcode/markup.py b/src/textcode/markup.py index 8b403e234c3..05abd25eb4d 100644 --- a/src/textcode/markup.py +++ b/src/textcode/markup.py @@ -108,7 +108,22 @@ def demarkup(location): yield demarkup_text(line) -get_tags_and_entities = re.compile(r'(|\s)?|&[^\s&]+;|href|[\'"]?\/\>)', re.IGNORECASE).split +get_tags_and_entities = re.compile( + r'(' + r'' + r'|' + r'\s)?' + r'|' + r'&[^\s&]+;' + r'|' + r'href' + r'|' + '[\'"]?\/\>' + r'|' + r'/>' + r')', + re.IGNORECASE, +).split def demarkup_text(text): @@ -136,7 +151,7 @@ def demarkup_text(text): cleaned_append = cleaned.append for token in tags_and_ents: tlow = token.lower() - if tlow.startswith(('<', '/>', '&', 'href',)) and not any(k in tlow for k in kept_tags): + if tlow.startswith(('<', '/>', '"/>', "'/>", '&', 'href',)) and not any(k in tlow for k in kept_tags): cleaned_append(' ') else: cleaned_append(token) diff --git a/tests/cluecode/data/copyright_fossology/testdata87_raw b/tests/cluecode/data/copyright_fossology/testdata87_raw index bfe45a10d2c..98b8fab91f5 100644 --- a/tests/cluecode/data/copyright_fossology/testdata87_raw +++ b/tests/cluecode/data/copyright_fossology/testdata87_raw @@ -6,7 +6,7 @@ It was downloaded from http://ftp.isc.org/isc/dhcp/ Upstream Author: Internet Systems Consortium (ISC) Copyright 2004-2007 by Internet Systems Consortium, Inc. ("ISC") - 1995-2003 by Internet Software Consortium + 1995-2003 by Internet Software Consortium License: diff --git a/tests/cluecode/data/copyright_fossology/testdata93_raw b/tests/cluecode/data/copyright_fossology/testdata93_raw index 4b561185aa2..c7087355f09 100644 --- a/tests/cluecode/data/copyright_fossology/testdata93_raw +++ b/tests/cluecode/data/copyright_fossology/testdata93_raw @@ -33,10 +33,10 @@ Copyright: CTOCWidget.js: Copyright (c) 2003 The Netscape Corporation. xbCollapsibleLists.js: - Copyright (c) 1997 Michael Bostock (Netscape Communications). - Copyright (c) 2001 Bob Clary (Netscape Communications). - Copyright (c) 2001 Seth Dillingham (Macrobyte Resources). - Copyright (c) 2002 Mark Filanowicz (Amdahl IT Services). + Copyright (c) 1997 Michael Bostock (Netscape Communications). + Copyright (c) 2001 Bob Clary (Netscape Communications). + Copyright (c) 2001 Seth Dillingham (Macrobyte Resources). + Copyright (c) 2002 Mark Filanowicz (Amdahl IT Services). Upstream Author: diff --git a/tests/cluecode/data/copyrights/libcdio10-libcdio.label.yml b/tests/cluecode/data/copyrights/libcdio10-libcdio.label.yml index dd75e64e8a1..e52246af6a5 100644 --- a/tests/cluecode/data/copyrights/libcdio10-libcdio.label.yml +++ b/tests/cluecode/data/copyrights/libcdio10-libcdio.label.yml @@ -20,7 +20,7 @@ copyrights: - Copyright (c) 1985, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. - Copyright (c) 2003 Matthias Drochner - - Copyright (c) 1998-2001 VideoLAN ( Johan Bilien and Gildas Bazin ) + - Copyright (c) 1998-2001 VideoLAN Johan Bilien and Gildas Bazin - Copyright (c) 1992, 1993 Eric Youngdale - Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008 Rocky Bernstein and Herbert Valerio Riedel holders: diff --git a/tests/cluecode/data/copyrights/misco2/distributed_3.txt b/tests/cluecode/data/copyrights/misco2/distributed_3.txt deleted file mode 100644 index 56fa6e25e00..00000000000 --- a/tests/cluecode/data/copyrights/misco2/distributed_3.txt +++ /dev/null @@ -1 +0,0 @@ -(C) Distributed Management Task Force diff --git a/tests/cluecode/data/copyrights/misco2/distributed_3.txt.yml b/tests/cluecode/data/copyrights/misco2/distributed_3.txt.yml deleted file mode 100644 index 2c05cd0225d..00000000000 --- a/tests/cluecode/data/copyrights/misco2/distributed_3.txt.yml +++ /dev/null @@ -1,11 +0,0 @@ -what: - - copyrights - - holders - - holders_summary -copyrights: - - (c) Distributed Management Task Force -holders: - - Distributed Management Task Force -holders_summary: - - value: Distributed Management Task Force - count: 1 diff --git a/tests/cluecode/data/copyrights/misco2/its-authors.txt.yml b/tests/cluecode/data/copyrights/misco2/its-authors.txt.yml index d2d767fb096..42392c2268b 100644 --- a/tests/cluecode/data/copyrights/misco2/its-authors.txt.yml +++ b/tests/cluecode/data/copyrights/misco2/its-authors.txt.yml @@ -3,3 +3,11 @@ what: - holders - holders_summary - authors +copyrights: + - copyright its authors +holders: + - its authors +holders_summary: + - value: its authors + count: 1 + diff --git a/tests/cluecode/data/copyrights/misco3/and-others.txt b/tests/cluecode/data/copyrights/misco3/and-others.txt new file mode 100644 index 00000000000..917501f68d7 --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/and-others.txt @@ -0,0 +1,4 @@ + Copyright © 1998-2009 Bill Spitzak + (spitzak@users.sourceforge.net ) and others, including: + + diff --git a/tests/cluecode/data/copyrights/misco3/and-others.txt.yml b/tests/cluecode/data/copyrights/misco3/and-others.txt.yml new file mode 100644 index 00000000000..f54c19f86a2 --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/and-others.txt.yml @@ -0,0 +1,12 @@ +what: + - copyrights + - holders + - holders_summary + - authors +copyrights: + - Copyright (c) 1998-2009 Bill Spitzak (spitzak@users.sourceforge.net ) and others +holders: + - Bill Spitzak and others +holders_summary: + - value: Bill Spitzak and others + count: 1 diff --git a/tests/cluecode/data/copyrights/misco3/apache-foundation.txt b/tests/cluecode/data/copyrights/misco3/apache-foundation.txt new file mode 100644 index 00000000000..7785174ddc3 --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/apache-foundation.txt @@ -0,0 +1 @@ +

Copyright 2009 The Apache Software Foundation.
diff --git a/tests/cluecode/data/copyrights/misco3/apache-foundation.txt.yml b/tests/cluecode/data/copyrights/misco3/apache-foundation.txt.yml new file mode 100644 index 00000000000..45f36e38d69 --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/apache-foundation.txt.yml @@ -0,0 +1,12 @@ +what: + - copyrights + - holders + - holders_summary + - authors +copyrights: + - Copyright 2009 The Apache Software Foundation +holders: + - The Apache Software Foundation +holders_summary: + - value: The Apache Software Foundation + count: 1 diff --git a/tests/cluecode/data/copyrights/misco3/apache-mit-copyright.txt b/tests/cluecode/data/copyrights/misco3/apache-mit-copyright.txt new file mode 100644 index 00000000000..e59e9cfba75 --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/apache-mit-copyright.txt @@ -0,0 +1,5 @@ +This project is copyright its authors and licensed under either of + + Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0) + MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT) at your option. + diff --git a/tests/cluecode/data/copyrights/misco3/apache-mit-copyright.txt.yml b/tests/cluecode/data/copyrights/misco3/apache-mit-copyright.txt.yml new file mode 100644 index 00000000000..72741dc978d --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/apache-mit-copyright.txt.yml @@ -0,0 +1,12 @@ +what: + - copyrights + - holders + - holders_summary + - authors +copyrights: + - copyright its authors +holders: + - its authors +holders_summary: + - value: its authors + count: 1 diff --git a/tests/cluecode/data/copyrights/misco3/apple-author.txt b/tests/cluecode/data/copyrights/misco3/apple-author.txt new file mode 100644 index 00000000000..ad41dfce688 --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/apple-author.txt @@ -0,0 +1,3 @@ + +'cannot be modified' by Apple's SF Pro +Symbols Viewer v2.0.0 diff --git a/tests/cluecode/data/copyrights/misco3/apple-author.txt.yml b/tests/cluecode/data/copyrights/misco3/apple-author.txt.yml new file mode 100644 index 00000000000..ee0f38824f2 --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/apple-author.txt.yml @@ -0,0 +1,7 @@ +what: + - copyrights + - holders + - holders_summary + - authors +authors: + - Apple's SF Pro diff --git a/tests/cluecode/data/copyrights/misco3/complex-multiline-copyright.txt b/tests/cluecode/data/copyrights/misco3/complex-multiline-copyright.txt new file mode 100644 index 00000000000..078a1f9d989 --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/complex-multiline-copyright.txt @@ -0,0 +1,8 @@ +Copyright (c) 2016-2020 Alexey Svetliakov , +snerks , Krzysztof Cebula +, Vitaliy Polyanskiy , +James Lismore , Stack Builders , +Esteban Ibarra , Dominic Lee +, Dave Vedder , +Alec Flett and potentially other +DefinitelyTyped contributors. diff --git a/tests/cluecode/data/copyrights/misco3/complex-multiline-copyright.txt.yml b/tests/cluecode/data/copyrights/misco3/complex-multiline-copyright.txt.yml new file mode 100644 index 00000000000..bfb633e3723 --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/complex-multiline-copyright.txt.yml @@ -0,0 +1,18 @@ +what: + - copyrights + - holders + - holders_summary + - authors +copyrights: + - Copyright (c) 2016-2020 Alexey Svetliakov , snerks + , Krzysztof Cebula , Vitaliy Polyanskiy + , James Lismore , Stack Builders + , Esteban Ibarra , Dominic Lee + , Dave Vedder , Alec Flett +holders: + - Alexey Svetliakov , snerks , Krzysztof Cebula , Vitaliy Polyanskiy , James Lismore , Stack + Builders , Esteban Ibarra , Dominic Lee , Dave Vedder , Alec Flett +holders_summary: + - value: Alexey Svetliakov , snerks , Krzysztof Cebula , Vitaliy Polyanskiy , James Lismore + , Stack Builders , Esteban Ibarra , Dominic Lee , Dave Vedder , Alec Flett + count: 1 diff --git a/tests/cluecode/data/copyrights/misco3/copyright-republic-ireland.txt b/tests/cluecode/data/copyrights/misco3/copyright-republic-ireland.txt new file mode 100644 index 00000000000..8fe440ff413 --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/copyright-republic-ireland.txt @@ -0,0 +1 @@ +or Kana; or (c) the Republic of Ireland, if a license to the Software diff --git a/tests/cluecode/data/copyrights/misco3/copyright-republic-ireland.txt.yml b/tests/cluecode/data/copyrights/misco3/copyright-republic-ireland.txt.yml new file mode 100644 index 00000000000..d2d767fb096 --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/copyright-republic-ireland.txt.yml @@ -0,0 +1,5 @@ +what: + - copyrights + - holders + - holders_summary + - authors diff --git a/tests/cluecode/data/copyrights/misco3/correct-copyright-bsd.txt b/tests/cluecode/data/copyrights/misco3/correct-copyright-bsd.txt new file mode 100644 index 00000000000..d10d3e34a28 --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/correct-copyright-bsd.txt @@ -0,0 +1 @@ +The copyright of UC Berkeley's Berkeley Software Distribution ("BSD") \ No newline at end of file diff --git a/tests/cluecode/data/copyrights/misco3/correct-copyright-bsd.txt.yml b/tests/cluecode/data/copyrights/misco3/correct-copyright-bsd.txt.yml new file mode 100644 index 00000000000..93e09487c41 --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/correct-copyright-bsd.txt.yml @@ -0,0 +1,12 @@ +what: + - copyrights + - holders + - holders_summary + - authors +copyrights: + - copyright of UC Berkeley's Berkeley Software +holders: + - UC Berkeley's Berkeley Software +holders_summary: + - value: UC Berkeley's Berkeley Software + count: 1 diff --git a/tests/cluecode/data/copyrights/misco3/correct-copyright-libidn.txt b/tests/cluecode/data/copyrights/misco3/correct-copyright-libidn.txt new file mode 100644 index 00000000000..12f2d78c6d6 --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/correct-copyright-libidn.txt @@ -0,0 +1,2 @@ +* The libidn code is copyright Simon Josefsson, with portions copyright + The Internet Society, Tom Tromey and Red Hat, Inc.: diff --git a/tests/cluecode/data/copyrights/misco3/correct-copyright-libidn.txt.yml b/tests/cluecode/data/copyrights/misco3/correct-copyright-libidn.txt.yml new file mode 100644 index 00000000000..e90d25f055f --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/correct-copyright-libidn.txt.yml @@ -0,0 +1,16 @@ +what: + - copyrights + - holders + - holders_summary + - authors +copyrights: + - copyright Simon Josefsson + - portions copyright The Internet Society, Tom Tromey and Red Hat, Inc. +holders: + - Simon Josefsson + - The Internet Society, Tom Tromey and Red Hat, Inc. +holders_summary: + - value: Simon Josefsson + count: 1 + - value: The Internet Society, Tom Tromey and Red Hat, Inc. + count: 1 diff --git a/tests/cluecode/data/copyrights/misco3/correct-copyright-minpack.txt b/tests/cluecode/data/copyrights/misco3/correct-copyright-minpack.txt new file mode 100644 index 00000000000..e7f2dc3fc95 --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/correct-copyright-minpack.txt @@ -0,0 +1 @@ + Minpack Copyright Notice (1999) University of Chicago diff --git a/tests/cluecode/data/copyrights/misco3/correct-copyright-minpack.txt.yml b/tests/cluecode/data/copyrights/misco3/correct-copyright-minpack.txt.yml new file mode 100644 index 00000000000..a2276f8f22e --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/correct-copyright-minpack.txt.yml @@ -0,0 +1,12 @@ +what: + - copyrights + - holders + - holders_summary + - authors +copyrights: + - Copyright Notice (1999) University of Chicago +holders: + - University of Chicago +holders_summary: + - value: University of Chicago + count: 1 diff --git a/tests/cluecode/data/copyrights/misco3/distributed-copyright.txt b/tests/cluecode/data/copyrights/misco3/distributed-copyright.txt new file mode 100644 index 00000000000..87c1f201c87 --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/distributed-copyright.txt @@ -0,0 +1,7 @@ + * Copyright (C) 2010 GSyC/LibreSoft, Universidad Rey Juan Carlos. + + + + + +Copyright (c) Distributed Management Task Force diff --git a/tests/cluecode/data/copyrights/misco3/distributed-copyright.txt.yml b/tests/cluecode/data/copyrights/misco3/distributed-copyright.txt.yml new file mode 100644 index 00000000000..c2df105837f --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/distributed-copyright.txt.yml @@ -0,0 +1,16 @@ +what: + - copyrights + - holders + - holders_summary + - authors +copyrights: + - Copyright (c) 2010 GSyC/LibreSoft, Universidad Rey Juan Carlos + - Copyright (c) Distributed Management Task Force +holders: + - GSyC/LibreSoft, Universidad Rey Juan Carlos + - Distributed Management Task Force +holders_summary: + - value: Distributed Management Task Force + count: 1 + - value: GSyC/LibreSoft, Universidad Rey Juan Carlos + count: 1 diff --git a/tests/cluecode/data/copyrights/misco3/intractable-copyright-in-LICENSE.txt b/tests/cluecode/data/copyrights/misco3/intractable-copyright-in-LICENSE.txt new file mode 100644 index 00000000000..4d33f1aba85 --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/intractable-copyright-in-LICENSE.txt @@ -0,0 +1,30 @@ +The MIT License (MIT) + +Copyright (c) 2015-2020 Formidable Labs. + +Copyright (c) 2016-2020 Alexey Svetliakov , +snerks , Krzysztof Cebula , Vitaliy Polyanskiy , James Lismore +, Stack Builders , Esteban Ibarra , Dominic Lee +, Dave Vedder , Alec Flett and potentially other +DefinitelyTyped contributors. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. \ No newline at end of file diff --git a/tests/cluecode/data/copyrights/misco3/intractable-copyright-in-LICENSE.txt.yml b/tests/cluecode/data/copyrights/misco3/intractable-copyright-in-LICENSE.txt.yml new file mode 100644 index 00000000000..53d35a45ac5 --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/intractable-copyright-in-LICENSE.txt.yml @@ -0,0 +1,17 @@ +what: + - copyrights + - holders + - holders_summary + - authors +copyrights: + - Copyright (c) 2015-2020 Formidable Labs + - Copyright (c) 2016-2020 Alexey Svetliakov , snerks + , Krzysztof Cebula https://github.com +holders: + - Formidable Labs + - Alexey Svetliakov , snerks , Krzysztof Cebula +holders_summary: + - value: Alexey Svetliakov , snerks , Krzysztof Cebula + count: 1 + - value: Formidable Labs + count: 1 diff --git a/tests/cluecode/data/copyrights/misco3/intractable-copyright-in-LICENSE2.txt b/tests/cluecode/data/copyrights/misco3/intractable-copyright-in-LICENSE2.txt new file mode 100644 index 00000000000..57aeb87a681 --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/intractable-copyright-in-LICENSE2.txt @@ -0,0 +1,31 @@ +# here we fixed the text to restore URLs +The MIT License (MIT) + +Copyright (c) 2015-2020 Formidable Labs. + +Copyright (c) 2016-2020 Alexey Svetliakov , +snerks , Krzysztof Cebula , +Vitaliy Polyanskiy , James Lismore +, Stack Builders , +Esteban Ibarra , Dominic Lee +, Dave Vedder , +Alec Flett and potentially other +DefinitelyTyped contributors. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. \ No newline at end of file diff --git a/tests/cluecode/data/copyrights/misco3/intractable-copyright-in-LICENSE2.txt.yml b/tests/cluecode/data/copyrights/misco3/intractable-copyright-in-LICENSE2.txt.yml new file mode 100644 index 00000000000..481ca22b771 --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/intractable-copyright-in-LICENSE2.txt.yml @@ -0,0 +1,22 @@ +what: + - copyrights + - holders + - holders_summary + - authors +copyrights: + - Copyright (c) 2015-2020 Formidable Labs + - Copyright (c) 2016-2020 Alexey Svetliakov , snerks + , Krzysztof Cebula , Vitaliy Polyanskiy + , James Lismore , Stack Builders + , Esteban Ibarra , Dominic Lee + , Dave Vedder , Alec Flett +holders: + - Formidable Labs + - Alexey Svetliakov , snerks , Krzysztof Cebula , Vitaliy Polyanskiy , James Lismore , Stack + Builders , Esteban Ibarra , Dominic Lee , Dave Vedder , Alec Flett +holders_summary: + - value: Alexey Svetliakov , snerks , Krzysztof Cebula , Vitaliy Polyanskiy , James Lismore + , Stack Builders , Esteban Ibarra , Dominic Lee , Dave Vedder , Alec Flett + count: 1 + - value: Formidable Labs + count: 1 diff --git a/tests/cluecode/data/copyrights/misco3/javadoc-author.java b/tests/cluecode/data/copyrights/misco3/javadoc-author.java new file mode 100644 index 00000000000..27bb72cc29f --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/javadoc-author.java @@ -0,0 +1,2 @@ + * @author Stephane Hillion + diff --git a/tests/cluecode/data/copyrights/misco3/javadoc-author.java.yml b/tests/cluecode/data/copyrights/misco3/javadoc-author.java.yml new file mode 100644 index 00000000000..5ff17d6c03b --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/javadoc-author.java.yml @@ -0,0 +1,7 @@ +what: + - copyrights + - holders + - holders_summary + - authors +authors: + - stephane@hillion.org Stephane Hillion diff --git a/tests/cluecode/data/copyrights/misco3/javadoc-author.txt b/tests/cluecode/data/copyrights/misco3/javadoc-author.txt new file mode 100644 index 00000000000..9875908914c --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/javadoc-author.txt @@ -0,0 +1,8 @@ + * This interface represents the objects which provide support for + * shorthand properties. + * + * @author Stephane Hillion + * @version $Id: ShorthandManager.java 1733416 2016-03-03 07:07:13Z gadams $ + */ +public interface ShorthandManager { + diff --git a/tests/cluecode/data/copyrights/misco3/javadoc-author.txt.yml b/tests/cluecode/data/copyrights/misco3/javadoc-author.txt.yml new file mode 100644 index 00000000000..5ff17d6c03b --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/javadoc-author.txt.yml @@ -0,0 +1,7 @@ +what: + - copyrights + - holders + - holders_summary + - authors +authors: + - stephane@hillion.org Stephane Hillion diff --git a/tests/cluecode/data/copyrights/misco3/misc-copyrights-tests.txt b/tests/cluecode/data/copyrights/misco3/misc-copyrights-tests.txt new file mode 100644 index 00000000000..592d6d8267a --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/misc-copyrights-tests.txt @@ -0,0 +1,7 @@ +Copyright (c) AliasDotCom +Copyright (c) AllThingsTalk + + +Copyright (c) 2014 The Rust Project Developers + + diff --git a/tests/cluecode/data/copyrights/misco3/misc-copyrights-tests.txt.yml b/tests/cluecode/data/copyrights/misco3/misc-copyrights-tests.txt.yml new file mode 100644 index 00000000000..5bf2326ef5e --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/misc-copyrights-tests.txt.yml @@ -0,0 +1,20 @@ +what: + - copyrights + - holders + - holders_summary + - authors +copyrights: + - Copyright (c) AliasDotCom + - Copyright (c) AllThingsTalk + - Copyright (c) 2014 The Rust Project Developers +holders: + - AliasDotCom + - AllThingsTalk + - The Rust Project Developers +holders_summary: + - value: AliasDotCom + count: 1 + - value: AllThingsTalk + count: 1 + - value: The Rust Project Developers + count: 1 diff --git a/tests/cluecode/data/copyrights/misco3/not-real-copyrights b/tests/cluecode/data/copyrights/misco3/not-real-copyrights new file mode 100644 index 00000000000..9a4257f6938 --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/not-real-copyrights @@ -0,0 +1,187 @@ +(c) grant Mentor Graphics the rights + + + + + + + +see copyright notice in LICENSE-tests + + + + + + + + see copyright notice in LICENSE-assets + + + + + + + + the above copyright notice of Xerox Corporation, + + (Copyright ) GNU General Public Licence 3 + + + + + + + +(Copyright ) GNU General Public License 3 + + + + + + + + - Copyright notice GNU General + + + + + + + + - (c) If Exhibit B + + + + + + + +(c) "CockroachDB Enterprise Edition" shall mean + + + + + + + +license (copyright owned by the author or another company other + + + + + + + +Your customers. (c) Custom Nessus Plugin Development and Distribution. Tenable + + + + + + + +at the U.S. Copyright website or at www.chillingeffects.org + + + + + + + +as Hangul or Kana; or (c) the Republic of Ireland, if a + + + + + + + +days prior written notice, Couchbase Inc + + + + + + + +(c) No Re-Creating Google Products or Features. Customer + + + + + + + +(c) the Google Maps/Google Earth Additional Terms of Service + + + + + + + +2. Copyright +The LavanTech Software and the accompanying + + + + + + +rights +this copyright notice (directly copied from +X Consortium licence): + + + + + + + +Copyright " {YEAR} United States Government as represented by + + + + + + + +Copyright " {YEAR} United States Government as represented by . No copyright is + + + + + + + +11. Copyright Directives +The Initial Developer retains all rights, title and + + + + + + + +Quirksmode Copyright Notice +http://www.quirksmode.org/about/copyright.html + + + + + + +f the Copyright Directive 2001/29/EC + + + + + + + +EU Copyright Directive. 2001/29/EC + + + + + diff --git a/tests/cluecode/data/copyrights/misco3/not-real-copyrights.yml b/tests/cluecode/data/copyrights/misco3/not-real-copyrights.yml new file mode 100644 index 00000000000..d2d767fb096 --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/not-real-copyrights.yml @@ -0,0 +1,5 @@ +what: + - copyrights + - holders + - holders_summary + - authors diff --git a/tests/cluecode/data/copyrights/misco3/parens-with-spaces.txt b/tests/cluecode/data/copyrights/misco3/parens-with-spaces.txt new file mode 100644 index 00000000000..e841ce2ec6b --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/parens-with-spaces.txt @@ -0,0 +1,3 @@ + +Copyright (1997 3Dfx Interactive, Inc.) +All Rights Reserved diff --git a/tests/cluecode/data/copyrights/misco3/parens-with-spaces.txt.yml b/tests/cluecode/data/copyrights/misco3/parens-with-spaces.txt.yml new file mode 100644 index 00000000000..edbba5e7144 --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/parens-with-spaces.txt.yml @@ -0,0 +1,12 @@ +what: + - copyrights + - holders + - holders_summary + - authors +copyrights: + - Copyright (1997 3Dfx Interactive, Inc.) +holders: + - 3Dfx Interactive, Inc. +holders_summary: + - value: 3Dfx Interactive, Inc. + count: 1 diff --git a/tests/cluecode/data/copyrights/misco3/rachana.copyright b/tests/cluecode/data/copyrights/misco3/rachana.copyright new file mode 100644 index 00000000000..9ba377492fb --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/rachana.copyright @@ -0,0 +1,7 @@ + + (Rachana_04.ttf) + Copyright (C) 2005 Rachana Akshara Vedi + (Chitrajakumar R, Hussain KH, Rajeev Sebastian, + Gangadharan N, Vijayakumaran Nair, Subash Kuraiakose) + + diff --git a/tests/cluecode/data/copyrights/misco3/rachana.copyright.yml b/tests/cluecode/data/copyrights/misco3/rachana.copyright.yml new file mode 100644 index 00000000000..0095b5992a5 --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/rachana.copyright.yml @@ -0,0 +1,15 @@ +what: + - copyrights + - holders + - holders_summary + - authors +copyrights: + - Copyright (c) 2005 Rachana Akshara Vedi (Chitrajakumar R, Hussain KH, Rajeev Sebastian, + Gangadharan N, Vijayakumaran Nair, Subash Kuraiakose) +holders: + - Rachana Akshara Vedi (Chitrajakumar R, Hussain KH, Rajeev Sebastian, Gangadharan N, Vijayakumaran + Nair, Subash Kuraiakose) +holders_summary: + - value: Rachana Akshara Vedi (Chitrajakumar R, Hussain KH, Rajeev Sebastian, Gangadharan + N, Vijayakumaran Nair, Subash Kuraiakose) + count: 1 diff --git a/tests/cluecode/data/copyrights/misco3/rachana2.copyright b/tests/cluecode/data/copyrights/misco3/rachana2.copyright new file mode 100644 index 00000000000..128829560b9 --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/rachana2.copyright @@ -0,0 +1,7 @@ + + (Rachana_04.ttf) + Copyright (C) 2005 Rachana Akshara Vedi + (Chitrajakumar R, Hussain KH, Rajeev Sebastian, + Gangadharan N, Vijayakumaran Nair, Subash Kuraiakose) + + diff --git a/tests/cluecode/data/copyrights/misco3/rachana2.copyright.yml b/tests/cluecode/data/copyrights/misco3/rachana2.copyright.yml new file mode 100644 index 00000000000..0095b5992a5 --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/rachana2.copyright.yml @@ -0,0 +1,15 @@ +what: + - copyrights + - holders + - holders_summary + - authors +copyrights: + - Copyright (c) 2005 Rachana Akshara Vedi (Chitrajakumar R, Hussain KH, Rajeev Sebastian, + Gangadharan N, Vijayakumaran Nair, Subash Kuraiakose) +holders: + - Rachana Akshara Vedi (Chitrajakumar R, Hussain KH, Rajeev Sebastian, Gangadharan N, Vijayakumaran + Nair, Subash Kuraiakose) +holders_summary: + - value: Rachana Akshara Vedi (Chitrajakumar R, Hussain KH, Rajeev Sebastian, Gangadharan + N, Vijayakumaran Nair, Subash Kuraiakose) + count: 1 diff --git a/tests/cluecode/data/copyrights/misco3/rice-uni.txt b/tests/cluecode/data/copyrights/misco3/rice-uni.txt new file mode 100644 index 00000000000..ca56c77a117 --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/rice-uni.txt @@ -0,0 +1 @@ + Copyright (©) 2001, Rice University diff --git a/tests/cluecode/data/copyrights/misco3/rice-uni.txt.yml b/tests/cluecode/data/copyrights/misco3/rice-uni.txt.yml new file mode 100644 index 00000000000..01166c4dddc --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/rice-uni.txt.yml @@ -0,0 +1,12 @@ +what: + - copyrights + - holders + - holders_summary + - authors +copyrights: + - Copyright (c) 2001, Rice University +holders: + - Rice University +holders_summary: + - value: Rice University + count: 1 diff --git a/tests/cluecode/data/copyrights/misco3/videola-with-parens.txt b/tests/cluecode/data/copyrights/misco3/videola-with-parens.txt new file mode 100644 index 00000000000..3d972cf6738 --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/videola-with-parens.txt @@ -0,0 +1,2 @@ + Copyright (C) 1998-2001 VideoLAN (Johan Bilien and Gildas Bazin ) + diff --git a/tests/cluecode/data/copyrights/misco3/videola-with-parens.txt.yml b/tests/cluecode/data/copyrights/misco3/videola-with-parens.txt.yml new file mode 100644 index 00000000000..d7705cf3e45 --- /dev/null +++ b/tests/cluecode/data/copyrights/misco3/videola-with-parens.txt.yml @@ -0,0 +1,12 @@ +what: + - copyrights + - holders + - holders_summary + - authors +copyrights: + - Copyright (c) 1998-2001 VideoLAN Johan Bilien and Gildas Bazin +holders: + - VideoLAN Johan Bilien and Gildas Bazin +holders_summary: + - value: VideoLAN Johan Bilien and Gildas Bazin + count: 1 diff --git a/tests/cluecode/data/generated/copyright_33.txt.yml b/tests/cluecode/data/generated/copyright_33.txt.yml index 63ee3f8be99..4410dc3cd16 100644 --- a/tests/cluecode/data/generated/copyright_33.txt.yml +++ b/tests/cluecode/data/generated/copyright_33.txt.yml @@ -5,7 +5,7 @@ what: copyrights: - Copyright 2019 authors: - - Author Pine + - Pine expected_failures: - holders - copyrights diff --git a/tests/cluecode/data/ics/libvpx-examples-includes-PHP-Markdown-Extra-1.2.3/markdown.php.yml b/tests/cluecode/data/ics/libvpx-examples-includes-PHP-Markdown-Extra-1.2.3/markdown.php.yml index 752adf32491..91ec24e7471 100644 --- a/tests/cluecode/data/ics/libvpx-examples-includes-PHP-Markdown-Extra-1.2.3/markdown.php.yml +++ b/tests/cluecode/data/ics/libvpx-examples-includes-PHP-Markdown-Extra-1.2.3/markdown.php.yml @@ -3,10 +3,10 @@ what: - holders - holders_summary copyrights: - - Copyright (c) 2004-2008 Michel Fortin http //www.michelf.com/projects/php-markdown + - Copyright (c) 2004-2008 Michel Fortin - Copyright (c) 2004-2006 John Gruber - - Copyright (c) 2004-2008 Michel Fortin - - Copyright (c) 2003-2006 John Gruber + - Copyright (c) 2004-2008 Michel Fortin http://www.michelf.com + - Copyright (c) 2003-2006 John Gruber http://daringfireball.net holders: - Michel Fortin - John Gruber diff --git a/tests/cluecode/data/ics/libvpx-examples-includes-PHP-SmartyPants-1.5.1e/smartypants.php.yml b/tests/cluecode/data/ics/libvpx-examples-includes-PHP-SmartyPants-1.5.1e/smartypants.php.yml index 11ac9206af4..6dc20b6be7d 100644 --- a/tests/cluecode/data/ics/libvpx-examples-includes-PHP-SmartyPants-1.5.1e/smartypants.php.yml +++ b/tests/cluecode/data/ics/libvpx-examples-includes-PHP-SmartyPants-1.5.1e/smartypants.php.yml @@ -5,8 +5,8 @@ what: copyrights: - Copyright (c) 2003-2004 John Gruber - Copyright (c) 2004-2005 Michel Fortin - - Copyright (c) 2003 John Gruber - - Copyright (c) 2004-2005 Michel Fortin + - Copyright (c) 2003 John Gruber http://daringfireball.net + - Copyright (c) 2004-2005 Michel Fortin holders: - John Gruber - Michel Fortin diff --git a/tests/cluecode/data/ics/zlib-contrib-minizip/ioapi.c.yml b/tests/cluecode/data/ics/zlib-contrib-minizip/ioapi.c.yml index f0d300c4c95..e5db9f9e590 100644 --- a/tests/cluecode/data/ics/zlib-contrib-minizip/ioapi.c.yml +++ b/tests/cluecode/data/ics/zlib-contrib-minizip/ioapi.c.yml @@ -3,8 +3,9 @@ what: - holders - holders_summary copyrights: - - Copyright (c) 1998-2010 Gilles Vollant (minizip) http://www.winimage.com/zLibDll/minizip.html - - Copyright (c) 2009-2010 Mathias Svensson http://result42.com + - Copyright (c) 1998-2010 Gilles Vollant (minizip) ( http://www.winimage.com/zLibDll/minizip.html + ) + - Copyright (c) 2009-2010 Mathias Svensson ( http://result42.com ) holders: - Gilles Vollant - Mathias Svensson diff --git a/tests/cluecode/data/ics/zlib-contrib-minizip/miniunz.c.yml b/tests/cluecode/data/ics/zlib-contrib-minizip/miniunz.c.yml index 412d7f3b67c..16b11067462 100644 --- a/tests/cluecode/data/ics/zlib-contrib-minizip/miniunz.c.yml +++ b/tests/cluecode/data/ics/zlib-contrib-minizip/miniunz.c.yml @@ -3,9 +3,10 @@ what: - holders - holders_summary copyrights: - - Copyright (c) 1998-2010 Gilles Vollant (minizip) http://www.winimage.com/zLibDll/minizip.html + - Copyright (c) 1998-2010 Gilles Vollant (minizip) ( http://www.winimage.com/zLibDll/minizip.html + ) - Copyright (c) 2007-2008 Even Rouault - - Copyright (c) 2009-2010 Mathias Svensson http://result42.com + - Copyright (c) 2009-2010 Mathias Svensson ( http://result42.com ) holders: - Gilles Vollant - Even Rouault diff --git a/tests/cluecode/data/ics/zlib-contrib-minizip/unzip.c.yml b/tests/cluecode/data/ics/zlib-contrib-minizip/unzip.c.yml index 30cb941112e..0c6023f688c 100644 --- a/tests/cluecode/data/ics/zlib-contrib-minizip/unzip.c.yml +++ b/tests/cluecode/data/ics/zlib-contrib-minizip/unzip.c.yml @@ -3,9 +3,9 @@ what: - holders - holders_summary copyrights: - - Copyright (c) 1998-2010 Gilles Vollant (minizip) http://www.winimage.com/zLibDll/minizip.html + - Copyright (c) 1998-2010 Gilles Vollant (minizip) ( http://www.winimage.com/zLibDll/minizip.html ) - Copyright (c) 2007-2008 Even Rouault - - Copyright (c) 2009-2010 Mathias Svensson http://result42.com + - Copyright (c) 2009-2010 Mathias Svensson ( http://result42.com ) - Copyright (c) 1990-2000 Info-ZIP. - Copyright (c) 2007-2008 Even Rouault - Copyright (c) 1998 - 2010 Gilles Vollant, Even Rouault, Mathias Svensson diff --git a/tests/cluecode/data/ics/zlib-contrib-minizip/zip.c.yml b/tests/cluecode/data/ics/zlib-contrib-minizip/zip.c.yml index c0916a35530..4e28f0bf3a3 100644 --- a/tests/cluecode/data/ics/zlib-contrib-minizip/zip.c.yml +++ b/tests/cluecode/data/ics/zlib-contrib-minizip/zip.c.yml @@ -3,8 +3,9 @@ what: - holders - holders_summary copyrights: - - Copyright (c) 1998-2010 Gilles Vollant (minizip) http://www.winimage.com/zLibDll/minizip.html - - Copyright (c) 2009-2010 Mathias Svensson http://result42.com + - Copyright (c) 1998-2010 Gilles Vollant (minizip) ( http://www.winimage.com/zLibDll/minizip.html + ) + - Copyright (c) 2009-2010 Mathias Svensson ( http://result42.com ) - Copyright 1998-2004 Gilles Vollant - http://www.winimage.com/zLibDll holders: - Gilles Vollant