From 1e75cece0b8289467a4e7776aafd5f30b8d0c483 Mon Sep 17 00:00:00 2001 From: Philippe Ombredanne Date: Fri, 22 Jun 2018 19:05:08 +0200 Subject: [PATCH] Add authors summaries #1043 #1107 Signed-off-by: Philippe Ombredanne --- src/summarycode/plugin_copyright_summary.py | 35 +++++++++++++++---- tests/cluecode/cluecode_assert_utils.py | 10 +++++- .../data/authors/author-config.rpath.yml | 4 +++ .../data/authors/author_addr_c-addr_c.c.yml | 4 +++ .../author_avinash-BitVector_py.py.yml | 4 +++ .../author_avinash_kak-BitVector_py.py.yml | 4 +++ .../author_complex_author-strtol_c.c.yml | 4 +++ .../author_correct-detail_9_html.html.yml | 1 + ..._do_not_detect_authorize_as_author.csv.yml | 1 + ...hor_does_not_report_incorrect_junk.txt.yml | 1 + ...thor_does_not_report_trailing_coma.txt.yml | 4 +++ ...railing_junk_and_incorrect_authors.txt.yml | 6 ++++ .../data/authors/author_expat-expat_h.h.yml | 1 + .../author_gary-ProjectInfo_java.java.yml | 4 +++ .../data/authors/author_gthomas_c-c.c.yml | 6 ++++ .../author_in_java-MergeSort_java.java.yml | 4 +++ .../authors/author_in_java_tag-java.java.yml | 4 +++ .../authors/author_in_postcript-9__ps.ps.yml | 1 + ...author_in_visio_doc-Glitch_ERD_vsd.vsd.yml | 1 + .../data/authors/author_iproute2.c.yml | 4 +++ .../data/authors/author_nathan-KEYS.yml | 5 +-- .../data/authors/author_no_author-c.c.yml | 1 + .../data/authors/author_none-wrong.yml | 1 + .../data/authors/author_none_c-c.c.yml | 1 + .../author_none_fp-false_positives_c.c.yml | 1 + .../author_none_js-editor_beta_de_js.js.yml | 1 + .../authors/author_none_license-LICENSE.yml | 1 + .../author_none_sample_java-java.java.yml | 1 + .../data/authors/author_russ_c-c.c.yml | 1 + .../data/authors/author_sample-c.c.yml | 1 + .../data/authors/author_samplepy-py.py.yml | 1 + .../cluecode/data/authors/author_snippet.yml | 1 + ...thor_stacktrace_cpp-stacktrace_cpp.cpp.yml | 4 +++ ...r_java-TreeTableModelAdapter_java.java.yml | 6 ++++ .../data/authors/author_uc-LICENSE.yml | 6 ++++ .../author_var_route_c-var_route_c.c.yml | 8 +++++ .../authors/author_vs-visual_studio.txt.yml | 1 + tests/cluecode/data/authors/configure.yml | 4 +++ tests/cluecode/data/authors/cvs_keywords.yml | 1 + tests/cluecode/data/authors/device_tree.c.yml | 4 +++ .../cluecode/data/authors/expat-ltmain.sh.yml | 4 +++ tests/cluecode/data/authors/fixed_bfin.h.yml | 4 +++ tests/cluecode/data/authors/hdp.c.yml | 4 +++ ...m_and_authors_are_detected_authors.txt.yml | 4 +++ tests/cluecode/data/authors/iproute.c.yml | 4 +++ .../authors/is_not_mixed_with_authors.txt.yml | 4 +++ tests/cluecode/data/authors/libtool.m4.yml | 4 +++ tests/cluecode/data/authors/ltcf-c.sh.yml | 4 +++ tests/cluecode/data/authors/ltcf-cxx.sh.yml | 4 +++ tests/cluecode/data/authors/ltconfig.yml | 4 +++ tests/cluecode/data/authors/ltmain.sh.yml | 4 +++ tests/cluecode/data/authors/mcbsp.h.yml | 4 +++ .../data/authors/memory-input-stream.c.yml | 4 +++ tests/cluecode/data/authors/strverscmp.c.yml | 4 +++ tests/cluecode/data/authors/strverscmp2.c.yml | 4 +++ tests/cluecode/data/authors/trailing_date.yml | 6 ++++ .../data/authors/vcdiff-ltmain.sh.yml | 4 +++ tests/cluecode/data/authors/wcstok.c.yml | 4 +++ ...ith_date_in_angle_brackets_authors.txt.yml | 4 +++ 59 files changed, 221 insertions(+), 10 deletions(-) diff --git a/src/summarycode/plugin_copyright_summary.py b/src/summarycode/plugin_copyright_summary.py index 96bcde67fab..f941db10d9d 100644 --- a/src/summarycode/plugin_copyright_summary.py +++ b/src/summarycode/plugin_copyright_summary.py @@ -78,6 +78,7 @@ class CopyrightSummary(PostScanPlugin): attributes = OrderedDict([ ('copyrights_summary', attr.ib(default=attr.Factory(list))), ('holders_summary', attr.ib(default=attr.Factory(list))), + ('authors_summary', attr.ib(default=attr.Factory(list))), ]) sort_order = 12 @@ -85,7 +86,7 @@ class CopyrightSummary(PostScanPlugin): options = [ CommandLineOption(('--copyrights-summary',), is_flag=True, default=False, - help='Summarize copyrights and holders at the file and ' + help='Summarize copyrights, holders and authors at the file and ' 'directory level.', help_group=POST_SCAN_GROUP) ] @@ -107,6 +108,10 @@ def process_codebase(self, codebase, copyrights_summary, **kwargs): {"value": "nexB Inc. and others.", "count": 13}, {"value": "MyCo Inc. and others.", "count": 13} ], + "authors_summary": [ + {"value": "nexB Inc. and others.", "count": 13}, + {"value": "MyCo Inc. and others.", "count": 13} + ], """ def _collect_existing_summary_text_objects(_summaries): @@ -119,16 +124,17 @@ def _collect_existing_summary_text_objects(_summaries): for resource in codebase.walk(topdown=False): if not (hasattr(resource, 'copyrights') - and hasattr(resource, 'holders')): + and hasattr(resource, 'holders') + and hasattr(resource, 'authors')): continue copyrights_summary = [] holders_summary = [] + authors_summary = [] try: - # 1. Collect statements from this file/resource if any. + # Collect values from this file/resource if any. copyrights_summary = [entry.get('value') for entry in resource.copyrights] - - # 2. Collect holders from this file/resource if any. holders_summary = [entry.get('value', []) for entry in resource.holders] + authors_summary = [entry.get('value') for entry in resource.authors] if TRACE_DEEP: logger_debug('process_codebase:1:from self:copyrights_summary:') @@ -139,12 +145,19 @@ def _collect_existing_summary_text_objects(_summaries): for s in holders_summary: logger_debug(' ', s) - # 3. Collect direct children pre-summarized Texts + logger_debug('process_codebase:1:from self:authors_summary:') + for s in authors_summary: + logger_debug(' ', s) + + + # Collect direct children pre-summarized Texts for child in resource.children(codebase): copyrights_summary.extend( _collect_existing_summary_text_objects(child.copyrights_summary)) holders_summary.extend( _collect_existing_summary_text_objects(child.holders_summary)) + authors_summary.extend( + _collect_existing_summary_text_objects(child.authors_summary)) if TRACE_DEEP: logger_debug('process_codebase:2:self+children:copyrights_summary:') @@ -155,17 +168,25 @@ def _collect_existing_summary_text_objects(_summaries): for s in holders_summary: logger_debug(' ', s) + logger_debug('process_codebase:2:self+children:authors_summary:') + for s in authors_summary: + logger_debug(' ', s) + # 3. summarize proper and save: expansion, cleaning and deduplication summarized_copyright = summarize_copyrights(copyrights_summary, ignore_years=True) summarized_holder = summarize_holders(holders_summary, expand=False) + summarized_authors = summarize_holders(authors_summary, expand=False) resource.copyrights_summary = summarized_copyright resource.holders_summary = summarized_holder + resource.authors_summary = summarized_authors codebase.save_resource(resource) except Exception as _e: - msg = 'Failed to create copyrights_summary or holders_summary for resource:\n{}\n'.format(repr(resource)) + msg = 'Failed to create copyrights, authors or holders summary ' + 'for resource:\n{}\n'.format(repr(resource)) msg += 'with copyrights_summary:{}\n'.format(repr(copyrights_summary)) msg += 'with holders_summary:{}\n'.format(repr(holders_summary)) + msg += 'with authors_summary:{}\n'.format(repr(authors_summary)) import traceback msg += traceback.format_exc() raise Exception(msg) diff --git a/tests/cluecode/cluecode_assert_utils.py b/tests/cluecode/cluecode_assert_utils.py index 658fbced1c2..9166b0822b3 100644 --- a/tests/cluecode/cluecode_assert_utils.py +++ b/tests/cluecode/cluecode_assert_utils.py @@ -79,6 +79,7 @@ class CopyrightTest(object): holders_summary = attr.ib(default=attr.Factory(list)) copyrights_summary = attr.ib(default=attr.Factory(list)) + authors_summary = attr.ib(default=attr.Factory(list)) expected_failures = attr.ib(default=attr.Factory(list)) notes = attr.ib(default=None) @@ -99,10 +100,12 @@ def __attrs_post_init__(self, *args, **kwargs): for holders_sum in self.holders_summary: holders_sum['count'] = int(holders_sum['count']) - # fix counts to be ints: sane yaml loads everything as string for copyrs_sum in self.copyrights_summary: copyrs_sum['count'] = int(copyrs_sum['count']) + for auths_sum in self.authors_summary: + auths_sum['count'] = int(auths_sum['count']) + def to_dict(self): """ Serialize self to an ordered mapping. @@ -236,12 +239,17 @@ def closure_test_function(*args, **kwargs): if 'copyrights_summary' in test.what: copyrights_summary = summarize_copyrights(copyrights) + authors_summary = [] + if 'authors_summary' in test.what: + authors_summary = summarize_holders(authors) + results = dict( copyrights=copyrights, authors=authors, holders=holders, holders_summary=holders_summary, copyrights_summary=copyrights_summary, + authors_summary=authors_summary, ) if regen: diff --git a/tests/cluecode/data/authors/author-config.rpath.yml b/tests/cluecode/data/authors/author-config.rpath.yml index ccc6a5f3f92..27ad8fa5c84 100644 --- a/tests/cluecode/data/authors/author-config.rpath.yml +++ b/tests/cluecode/data/authors/author-config.rpath.yml @@ -1,4 +1,8 @@ what: - authors + - authors_summary authors: - Gordon Matzigkeit +authors_summary: + - value: Gordon Matzigkeit + count: 1 diff --git a/tests/cluecode/data/authors/author_addr_c-addr_c.c.yml b/tests/cluecode/data/authors/author_addr_c-addr_c.c.yml index 486e4522704..9ec4b7e0fec 100644 --- a/tests/cluecode/data/authors/author_addr_c-addr_c.c.yml +++ b/tests/cluecode/data/authors/author_addr_c-addr_c.c.yml @@ -1,4 +1,8 @@ what: - authors + - authors_summary authors: - John Doe +authors_summary: + - value: John Doe + count: 1 diff --git a/tests/cluecode/data/authors/author_avinash-BitVector_py.py.yml b/tests/cluecode/data/authors/author_avinash-BitVector_py.py.yml index de77f54dd6e..223f8ae1f08 100644 --- a/tests/cluecode/data/authors/author_avinash-BitVector_py.py.yml +++ b/tests/cluecode/data/authors/author_avinash-BitVector_py.py.yml @@ -1,5 +1,9 @@ what: - authors + - authors_summary authors: - Avinash Kak (kak@purdue.edu) - Avinash Kak (kak@purdue.edu) +authors_summary: + - value: Avinash Kak (kak@purdue.edu) + count: 2 diff --git a/tests/cluecode/data/authors/author_avinash_kak-BitVector_py.py.yml b/tests/cluecode/data/authors/author_avinash_kak-BitVector_py.py.yml index de77f54dd6e..223f8ae1f08 100644 --- a/tests/cluecode/data/authors/author_avinash_kak-BitVector_py.py.yml +++ b/tests/cluecode/data/authors/author_avinash_kak-BitVector_py.py.yml @@ -1,5 +1,9 @@ what: - authors + - authors_summary authors: - Avinash Kak (kak@purdue.edu) - Avinash Kak (kak@purdue.edu) +authors_summary: + - value: Avinash Kak (kak@purdue.edu) + count: 2 diff --git a/tests/cluecode/data/authors/author_complex_author-strtol_c.c.yml b/tests/cluecode/data/authors/author_complex_author-strtol_c.c.yml index db765dee455..0c2f2dce7e0 100644 --- a/tests/cluecode/data/authors/author_complex_author-strtol_c.c.yml +++ b/tests/cluecode/data/authors/author_complex_author-strtol_c.c.yml @@ -1,4 +1,8 @@ what: - authors + - authors_summary authors: - the University of California, Berkeley and its contributors. +authors_summary: + - value: the University of California, Berkeley and its contributors. + count: 1 diff --git a/tests/cluecode/data/authors/author_correct-detail_9_html.html.yml b/tests/cluecode/data/authors/author_correct-detail_9_html.html.yml index 8880bc9ad8f..f62e10c69c7 100644 --- a/tests/cluecode/data/authors/author_correct-detail_9_html.html.yml +++ b/tests/cluecode/data/authors/author_correct-detail_9_html.html.yml @@ -1,2 +1,3 @@ what: - authors + - authors_summary diff --git a/tests/cluecode/data/authors/author_do_not_detect_authorize_as_author.csv.yml b/tests/cluecode/data/authors/author_do_not_detect_authorize_as_author.csv.yml index 8880bc9ad8f..f62e10c69c7 100644 --- a/tests/cluecode/data/authors/author_do_not_detect_authorize_as_author.csv.yml +++ b/tests/cluecode/data/authors/author_do_not_detect_authorize_as_author.csv.yml @@ -1,2 +1,3 @@ what: - authors + - authors_summary diff --git a/tests/cluecode/data/authors/author_does_not_report_incorrect_junk.txt.yml b/tests/cluecode/data/authors/author_does_not_report_incorrect_junk.txt.yml index 8880bc9ad8f..f62e10c69c7 100644 --- a/tests/cluecode/data/authors/author_does_not_report_incorrect_junk.txt.yml +++ b/tests/cluecode/data/authors/author_does_not_report_incorrect_junk.txt.yml @@ -1,2 +1,3 @@ what: - authors + - authors_summary diff --git a/tests/cluecode/data/authors/author_does_not_report_trailing_coma.txt.yml b/tests/cluecode/data/authors/author_does_not_report_trailing_coma.txt.yml index 83bfba0ae53..82ce5afc472 100644 --- a/tests/cluecode/data/authors/author_does_not_report_trailing_coma.txt.yml +++ b/tests/cluecode/data/authors/author_does_not_report_trailing_coma.txt.yml @@ -1,4 +1,8 @@ what: - authors + - authors_summary authors: - Gordon Matzigkeit +authors_summary: + - value: Gordon Matzigkeit + count: 1 diff --git a/tests/cluecode/data/authors/author_does_not_report_trailing_junk_and_incorrect_authors.txt.yml b/tests/cluecode/data/authors/author_does_not_report_trailing_junk_and_incorrect_authors.txt.yml index 9fb6883a1f7..69a2162e05b 100644 --- a/tests/cluecode/data/authors/author_does_not_report_trailing_junk_and_incorrect_authors.txt.yml +++ b/tests/cluecode/data/authors/author_does_not_report_trailing_junk_and_incorrect_authors.txt.yml @@ -1,5 +1,11 @@ what: - authors + - authors_summary authors: - Mohit Agarwal. - Mitsubishi and NTT. +authors_summary: + - value: Mitsubishi and NTT. + count: 1 + - value: Mohit Agarwal. + count: 1 diff --git a/tests/cluecode/data/authors/author_expat-expat_h.h.yml b/tests/cluecode/data/authors/author_expat-expat_h.h.yml index 8880bc9ad8f..f62e10c69c7 100644 --- a/tests/cluecode/data/authors/author_expat-expat_h.h.yml +++ b/tests/cluecode/data/authors/author_expat-expat_h.h.yml @@ -1,2 +1,3 @@ what: - authors + - authors_summary diff --git a/tests/cluecode/data/authors/author_gary-ProjectInfo_java.java.yml b/tests/cluecode/data/authors/author_gary-ProjectInfo_java.java.yml index 61f6a1df9d3..a922b04b04d 100644 --- a/tests/cluecode/data/authors/author_gary-ProjectInfo_java.java.yml +++ b/tests/cluecode/data/authors/author_gary-ProjectInfo_java.java.yml @@ -1,4 +1,8 @@ what: - authors + - authors_summary authors: - Gary O'Neall +authors_summary: + - value: Gary O'Neall + count: 1 diff --git a/tests/cluecode/data/authors/author_gthomas_c-c.c.yml b/tests/cluecode/data/authors/author_gthomas_c-c.c.yml index 1d5e752efbb..b8b0b4c01e0 100644 --- a/tests/cluecode/data/authors/author_gthomas_c-c.c.yml +++ b/tests/cluecode/data/authors/author_gthomas_c-c.c.yml @@ -1,5 +1,11 @@ what: - authors + - authors_summary authors: - gthomas, sorin@netappi.com - gthomas, sorin@netappi.com, andrew.lunn@ascom.ch +authors_summary: + - value: gthomas, sorin@netappi.com, andrew.lunn@ascom.ch + count: 1 + - value: gthomas, sorin@netappi.com + count: 1 diff --git a/tests/cluecode/data/authors/author_in_java-MergeSort_java.java.yml b/tests/cluecode/data/authors/author_in_java-MergeSort_java.java.yml index c9f05aa794c..9848a5138c0 100644 --- a/tests/cluecode/data/authors/author_in_java-MergeSort_java.java.yml +++ b/tests/cluecode/data/authors/author_in_java-MergeSort_java.java.yml @@ -1,4 +1,8 @@ what: - authors + - authors_summary authors: - Scott Violet +authors_summary: + - value: Scott Violet + count: 1 diff --git a/tests/cluecode/data/authors/author_in_java_tag-java.java.yml b/tests/cluecode/data/authors/author_in_java_tag-java.java.yml index ab7d337a203..a0c8f42ce47 100644 --- a/tests/cluecode/data/authors/author_in_java_tag-java.java.yml +++ b/tests/cluecode/data/authors/author_in_java_tag-java.java.yml @@ -1,4 +1,8 @@ what: - authors + - authors_summary authors: - Apple Banana Car +authors_summary: + - value: Apple Banana Car + count: 1 diff --git a/tests/cluecode/data/authors/author_in_postcript-9__ps.ps.yml b/tests/cluecode/data/authors/author_in_postcript-9__ps.ps.yml index 8880bc9ad8f..f62e10c69c7 100644 --- a/tests/cluecode/data/authors/author_in_postcript-9__ps.ps.yml +++ b/tests/cluecode/data/authors/author_in_postcript-9__ps.ps.yml @@ -1,2 +1,3 @@ what: - authors + - authors_summary diff --git a/tests/cluecode/data/authors/author_in_visio_doc-Glitch_ERD_vsd.vsd.yml b/tests/cluecode/data/authors/author_in_visio_doc-Glitch_ERD_vsd.vsd.yml index 8880bc9ad8f..f62e10c69c7 100644 --- a/tests/cluecode/data/authors/author_in_visio_doc-Glitch_ERD_vsd.vsd.yml +++ b/tests/cluecode/data/authors/author_in_visio_doc-Glitch_ERD_vsd.vsd.yml @@ -1,2 +1,3 @@ what: - authors + - authors_summary diff --git a/tests/cluecode/data/authors/author_iproute2.c.yml b/tests/cluecode/data/authors/author_iproute2.c.yml index 49c78678791..9394c24683f 100644 --- a/tests/cluecode/data/authors/author_iproute2.c.yml +++ b/tests/cluecode/data/authors/author_iproute2.c.yml @@ -1,4 +1,8 @@ what: - authors + - authors_summary authors: - Patrick McHardy +authors_summary: + - value: Patrick McHardy + count: 1 diff --git a/tests/cluecode/data/authors/author_nathan-KEYS.yml b/tests/cluecode/data/authors/author_nathan-KEYS.yml index fb80bb4a51c..8fca1b8d313 100644 --- a/tests/cluecode/data/authors/author_nathan-KEYS.yml +++ b/tests/cluecode/data/authors/author_nathan-KEYS.yml @@ -1,6 +1,7 @@ what: - authors + - authors_summary notes: |- name +email is not enough to create an author - hence this is not detected correctly - Nathan Mittler + hence this is not detected correctly + Nathan Mittler diff --git a/tests/cluecode/data/authors/author_no_author-c.c.yml b/tests/cluecode/data/authors/author_no_author-c.c.yml index 8880bc9ad8f..f62e10c69c7 100644 --- a/tests/cluecode/data/authors/author_no_author-c.c.yml +++ b/tests/cluecode/data/authors/author_no_author-c.c.yml @@ -1,2 +1,3 @@ what: - authors + - authors_summary diff --git a/tests/cluecode/data/authors/author_none-wrong.yml b/tests/cluecode/data/authors/author_none-wrong.yml index 8880bc9ad8f..f62e10c69c7 100644 --- a/tests/cluecode/data/authors/author_none-wrong.yml +++ b/tests/cluecode/data/authors/author_none-wrong.yml @@ -1,2 +1,3 @@ what: - authors + - authors_summary diff --git a/tests/cluecode/data/authors/author_none_c-c.c.yml b/tests/cluecode/data/authors/author_none_c-c.c.yml index 8880bc9ad8f..f62e10c69c7 100644 --- a/tests/cluecode/data/authors/author_none_c-c.c.yml +++ b/tests/cluecode/data/authors/author_none_c-c.c.yml @@ -1,2 +1,3 @@ what: - authors + - authors_summary diff --git a/tests/cluecode/data/authors/author_none_fp-false_positives_c.c.yml b/tests/cluecode/data/authors/author_none_fp-false_positives_c.c.yml index 8880bc9ad8f..f62e10c69c7 100644 --- a/tests/cluecode/data/authors/author_none_fp-false_positives_c.c.yml +++ b/tests/cluecode/data/authors/author_none_fp-false_positives_c.c.yml @@ -1,2 +1,3 @@ what: - authors + - authors_summary diff --git a/tests/cluecode/data/authors/author_none_js-editor_beta_de_js.js.yml b/tests/cluecode/data/authors/author_none_js-editor_beta_de_js.js.yml index 8880bc9ad8f..f62e10c69c7 100644 --- a/tests/cluecode/data/authors/author_none_js-editor_beta_de_js.js.yml +++ b/tests/cluecode/data/authors/author_none_js-editor_beta_de_js.js.yml @@ -1,2 +1,3 @@ what: - authors + - authors_summary diff --git a/tests/cluecode/data/authors/author_none_license-LICENSE.yml b/tests/cluecode/data/authors/author_none_license-LICENSE.yml index 8880bc9ad8f..f62e10c69c7 100644 --- a/tests/cluecode/data/authors/author_none_license-LICENSE.yml +++ b/tests/cluecode/data/authors/author_none_license-LICENSE.yml @@ -1,2 +1,3 @@ what: - authors + - authors_summary diff --git a/tests/cluecode/data/authors/author_none_sample_java-java.java.yml b/tests/cluecode/data/authors/author_none_sample_java-java.java.yml index 8880bc9ad8f..f62e10c69c7 100644 --- a/tests/cluecode/data/authors/author_none_sample_java-java.java.yml +++ b/tests/cluecode/data/authors/author_none_sample_java-java.java.yml @@ -1,2 +1,3 @@ what: - authors + - authors_summary diff --git a/tests/cluecode/data/authors/author_russ_c-c.c.yml b/tests/cluecode/data/authors/author_russ_c-c.c.yml index 2fb32996dfd..58c2686fa13 100644 --- a/tests/cluecode/data/authors/author_russ_c-c.c.yml +++ b/tests/cluecode/data/authors/author_russ_c-c.c.yml @@ -1,4 +1,5 @@ what: - authors + - authors_summary notes: these are detected as copyrights, not authors Russ Dill Vladimir Oleynik diff --git a/tests/cluecode/data/authors/author_sample-c.c.yml b/tests/cluecode/data/authors/author_sample-c.c.yml index 8880bc9ad8f..f62e10c69c7 100644 --- a/tests/cluecode/data/authors/author_sample-c.c.yml +++ b/tests/cluecode/data/authors/author_sample-c.c.yml @@ -1,2 +1,3 @@ what: - authors + - authors_summary diff --git a/tests/cluecode/data/authors/author_samplepy-py.py.yml b/tests/cluecode/data/authors/author_samplepy-py.py.yml index 8880bc9ad8f..f62e10c69c7 100644 --- a/tests/cluecode/data/authors/author_samplepy-py.py.yml +++ b/tests/cluecode/data/authors/author_samplepy-py.py.yml @@ -1,2 +1,3 @@ what: - authors + - authors_summary diff --git a/tests/cluecode/data/authors/author_snippet.yml b/tests/cluecode/data/authors/author_snippet.yml index 8880bc9ad8f..f62e10c69c7 100644 --- a/tests/cluecode/data/authors/author_snippet.yml +++ b/tests/cluecode/data/authors/author_snippet.yml @@ -1,2 +1,3 @@ what: - authors + - authors_summary diff --git a/tests/cluecode/data/authors/author_stacktrace_cpp-stacktrace_cpp.cpp.yml b/tests/cluecode/data/authors/author_stacktrace_cpp-stacktrace_cpp.cpp.yml index 1f9b1572ded..c5d02bdb8d0 100644 --- a/tests/cluecode/data/authors/author_stacktrace_cpp-stacktrace_cpp.cpp.yml +++ b/tests/cluecode/data/authors/author_stacktrace_cpp-stacktrace_cpp.cpp.yml @@ -1,4 +1,8 @@ what: - authors + - authors_summary authors: - faith@dict.org +authors_summary: + - value: faith@dict.org + count: 1 diff --git a/tests/cluecode/data/authors/author_treetablemodeladapter_java-TreeTableModelAdapter_java.java.yml b/tests/cluecode/data/authors/author_treetablemodeladapter_java-TreeTableModelAdapter_java.java.yml index 370a0947c3f..718ae0be011 100644 --- a/tests/cluecode/data/authors/author_treetablemodeladapter_java-TreeTableModelAdapter_java.java.yml +++ b/tests/cluecode/data/authors/author_treetablemodeladapter_java-TreeTableModelAdapter_java.java.yml @@ -1,5 +1,11 @@ what: - authors + - authors_summary authors: - Philip Milne - Scott Violet +authors_summary: + - value: Philip Milne + count: 1 + - value: Scott Violet + count: 1 diff --git a/tests/cluecode/data/authors/author_uc-LICENSE.yml b/tests/cluecode/data/authors/author_uc-LICENSE.yml index 18145c122a2..21e7a10ab0e 100644 --- a/tests/cluecode/data/authors/author_uc-LICENSE.yml +++ b/tests/cluecode/data/authors/author_uc-LICENSE.yml @@ -1,6 +1,12 @@ what: - authors + - authors_summary authors: - the University of California, Berkeley and its contributors. - UC Berkeley and its contributors. - the University of California, Berkeley and its contributors. +authors_summary: + - value: the University of California, Berkeley and its contributors. + count: 2 + - value: UC Berkeley and its contributors. + count: 1 diff --git a/tests/cluecode/data/authors/author_var_route_c-var_route_c.c.yml b/tests/cluecode/data/authors/author_var_route_c-var_route_c.c.yml index 92b3dfba89e..949116f3b59 100644 --- a/tests/cluecode/data/authors/author_var_route_c-var_route_c.c.yml +++ b/tests/cluecode/data/authors/author_var_route_c-var_route_c.c.yml @@ -1,6 +1,14 @@ what: - authors + - authors_summary authors: - Erik Schoenfelder (schoenfr@ibr.cs.tu-bs.de) - Jennifer Bray of Origin (jbray@origin-at.co.uk) - Simon Leinen (simon@switch.ch) +authors_summary: + - value: Erik Schoenfelder (schoenfr@ibr.cs.tu-bs.de) + count: 1 + - value: Jennifer Bray of Origin (jbray@origin-at.co.uk) + count: 1 + - value: Simon Leinen (simon@switch.ch) + count: 1 diff --git a/tests/cluecode/data/authors/author_vs-visual_studio.txt.yml b/tests/cluecode/data/authors/author_vs-visual_studio.txt.yml index 8880bc9ad8f..f62e10c69c7 100644 --- a/tests/cluecode/data/authors/author_vs-visual_studio.txt.yml +++ b/tests/cluecode/data/authors/author_vs-visual_studio.txt.yml @@ -1,2 +1,3 @@ what: - authors + - authors_summary diff --git a/tests/cluecode/data/authors/configure.yml b/tests/cluecode/data/authors/configure.yml index ccc6a5f3f92..27ad8fa5c84 100644 --- a/tests/cluecode/data/authors/configure.yml +++ b/tests/cluecode/data/authors/configure.yml @@ -1,4 +1,8 @@ what: - authors + - authors_summary authors: - Gordon Matzigkeit +authors_summary: + - value: Gordon Matzigkeit + count: 1 diff --git a/tests/cluecode/data/authors/cvs_keywords.yml b/tests/cluecode/data/authors/cvs_keywords.yml index 8880bc9ad8f..f62e10c69c7 100644 --- a/tests/cluecode/data/authors/cvs_keywords.yml +++ b/tests/cluecode/data/authors/cvs_keywords.yml @@ -1,2 +1,3 @@ what: - authors + - authors_summary diff --git a/tests/cluecode/data/authors/device_tree.c.yml b/tests/cluecode/data/authors/device_tree.c.yml index 53395ad3ad1..adea4c1e495 100644 --- a/tests/cluecode/data/authors/device_tree.c.yml +++ b/tests/cluecode/data/authors/device_tree.c.yml @@ -1,4 +1,8 @@ what: - authors + - authors_summary authors: - Jerone Young Hollis Blanchard +authors_summary: + - value: Jerone Young Hollis Blanchard + count: 1 diff --git a/tests/cluecode/data/authors/expat-ltmain.sh.yml b/tests/cluecode/data/authors/expat-ltmain.sh.yml index ccc6a5f3f92..27ad8fa5c84 100644 --- a/tests/cluecode/data/authors/expat-ltmain.sh.yml +++ b/tests/cluecode/data/authors/expat-ltmain.sh.yml @@ -1,4 +1,8 @@ what: - authors + - authors_summary authors: - Gordon Matzigkeit +authors_summary: + - value: Gordon Matzigkeit + count: 1 diff --git a/tests/cluecode/data/authors/fixed_bfin.h.yml b/tests/cluecode/data/authors/fixed_bfin.h.yml index d43916301d4..88832196537 100644 --- a/tests/cluecode/data/authors/fixed_bfin.h.yml +++ b/tests/cluecode/data/authors/fixed_bfin.h.yml @@ -1,4 +1,8 @@ what: - authors + - authors_summary authors: - Jean-Marc Valin +authors_summary: + - value: Jean-Marc Valin + count: 1 diff --git a/tests/cluecode/data/authors/hdp.c.yml b/tests/cluecode/data/authors/hdp.c.yml index 7f8a608d698..40b145fdf49 100644 --- a/tests/cluecode/data/authors/hdp.c.yml +++ b/tests/cluecode/data/authors/hdp.c.yml @@ -1,4 +1,8 @@ what: - authors + - authors_summary authors: - Santiago Carot Nemesio +authors_summary: + - value: Santiago Carot Nemesio + count: 1 diff --git a/tests/cluecode/data/authors/ibm_and_authors_are_detected_authors.txt.yml b/tests/cluecode/data/authors/ibm_and_authors_are_detected_authors.txt.yml index 79f12a4ee11..83e5a5fd762 100644 --- a/tests/cluecode/data/authors/ibm_and_authors_are_detected_authors.txt.yml +++ b/tests/cluecode/data/authors/ibm_and_authors_are_detected_authors.txt.yml @@ -1,4 +1,8 @@ what: - authors + - authors_summary authors: - Anthony Liguori +authors_summary: + - value: Anthony Liguori + count: 1 diff --git a/tests/cluecode/data/authors/iproute.c.yml b/tests/cluecode/data/authors/iproute.c.yml index 49c78678791..9394c24683f 100644 --- a/tests/cluecode/data/authors/iproute.c.yml +++ b/tests/cluecode/data/authors/iproute.c.yml @@ -1,4 +1,8 @@ what: - authors + - authors_summary authors: - Patrick McHardy +authors_summary: + - value: Patrick McHardy + count: 1 diff --git a/tests/cluecode/data/authors/is_not_mixed_with_authors.txt.yml b/tests/cluecode/data/authors/is_not_mixed_with_authors.txt.yml index a142d066e8c..cabd8767293 100644 --- a/tests/cluecode/data/authors/is_not_mixed_with_authors.txt.yml +++ b/tests/cluecode/data/authors/is_not_mixed_with_authors.txt.yml @@ -1,4 +1,8 @@ what: - authors + - authors_summary authors: - Nikos Mavrogiannopoulos +authors_summary: + - value: Nikos Mavrogiannopoulos + count: 1 diff --git a/tests/cluecode/data/authors/libtool.m4.yml b/tests/cluecode/data/authors/libtool.m4.yml index ccc6a5f3f92..27ad8fa5c84 100644 --- a/tests/cluecode/data/authors/libtool.m4.yml +++ b/tests/cluecode/data/authors/libtool.m4.yml @@ -1,4 +1,8 @@ what: - authors + - authors_summary authors: - Gordon Matzigkeit +authors_summary: + - value: Gordon Matzigkeit + count: 1 diff --git a/tests/cluecode/data/authors/ltcf-c.sh.yml b/tests/cluecode/data/authors/ltcf-c.sh.yml index ccc6a5f3f92..27ad8fa5c84 100644 --- a/tests/cluecode/data/authors/ltcf-c.sh.yml +++ b/tests/cluecode/data/authors/ltcf-c.sh.yml @@ -1,4 +1,8 @@ what: - authors + - authors_summary authors: - Gordon Matzigkeit +authors_summary: + - value: Gordon Matzigkeit + count: 1 diff --git a/tests/cluecode/data/authors/ltcf-cxx.sh.yml b/tests/cluecode/data/authors/ltcf-cxx.sh.yml index ccc6a5f3f92..27ad8fa5c84 100644 --- a/tests/cluecode/data/authors/ltcf-cxx.sh.yml +++ b/tests/cluecode/data/authors/ltcf-cxx.sh.yml @@ -1,4 +1,8 @@ what: - authors + - authors_summary authors: - Gordon Matzigkeit +authors_summary: + - value: Gordon Matzigkeit + count: 1 diff --git a/tests/cluecode/data/authors/ltconfig.yml b/tests/cluecode/data/authors/ltconfig.yml index d0bfae29cad..d42ba7df59b 100644 --- a/tests/cluecode/data/authors/ltconfig.yml +++ b/tests/cluecode/data/authors/ltconfig.yml @@ -1,5 +1,9 @@ what: - authors + - authors_summary authors: - Gordon Matzigkeit - Gordon Matzigkeit +authors_summary: + - value: Gordon Matzigkeit + count: 2 diff --git a/tests/cluecode/data/authors/ltmain.sh.yml b/tests/cluecode/data/authors/ltmain.sh.yml index ccc6a5f3f92..27ad8fa5c84 100644 --- a/tests/cluecode/data/authors/ltmain.sh.yml +++ b/tests/cluecode/data/authors/ltmain.sh.yml @@ -1,4 +1,8 @@ what: - authors + - authors_summary authors: - Gordon Matzigkeit +authors_summary: + - value: Gordon Matzigkeit + count: 1 diff --git a/tests/cluecode/data/authors/mcbsp.h.yml b/tests/cluecode/data/authors/mcbsp.h.yml index ff0c9f52c82..76cc5beb953 100644 --- a/tests/cluecode/data/authors/mcbsp.h.yml +++ b/tests/cluecode/data/authors/mcbsp.h.yml @@ -1,4 +1,8 @@ what: - authors + - authors_summary authors: - Steve Johnson +authors_summary: + - value: Steve Johnson + count: 1 diff --git a/tests/cluecode/data/authors/memory-input-stream.c.yml b/tests/cluecode/data/authors/memory-input-stream.c.yml index 30f03fa4aac..17a83927e54 100644 --- a/tests/cluecode/data/authors/memory-input-stream.c.yml +++ b/tests/cluecode/data/authors/memory-input-stream.c.yml @@ -1,4 +1,8 @@ what: - authors + - authors_summary authors: - Tim Janik +authors_summary: + - value: Tim Janik + count: 1 diff --git a/tests/cluecode/data/authors/strverscmp.c.yml b/tests/cluecode/data/authors/strverscmp.c.yml index 2674a558eba..eb393d4a644 100644 --- a/tests/cluecode/data/authors/strverscmp.c.yml +++ b/tests/cluecode/data/authors/strverscmp.c.yml @@ -1,4 +1,8 @@ what: - authors + - authors_summary authors: - Jean-Francois Bignolles +authors_summary: + - value: Jean-Francois Bignolles + count: 1 diff --git a/tests/cluecode/data/authors/strverscmp2.c.yml b/tests/cluecode/data/authors/strverscmp2.c.yml index 2674a558eba..eb393d4a644 100644 --- a/tests/cluecode/data/authors/strverscmp2.c.yml +++ b/tests/cluecode/data/authors/strverscmp2.c.yml @@ -1,4 +1,8 @@ what: - authors + - authors_summary authors: - Jean-Francois Bignolles +authors_summary: + - value: Jean-Francois Bignolles + count: 1 diff --git a/tests/cluecode/data/authors/trailing_date.yml b/tests/cluecode/data/authors/trailing_date.yml index e062dc93ef0..aac3d550ea6 100644 --- a/tests/cluecode/data/authors/trailing_date.yml +++ b/tests/cluecode/data/authors/trailing_date.yml @@ -1,5 +1,11 @@ what: - authors + - authors_summary authors: - Nikos Mavrogiannopoulos - Alexander Kanavin +authors_summary: + - value: Alexander Kanavin + count: 1 + - value: Nikos Mavrogiannopoulos + count: 1 diff --git a/tests/cluecode/data/authors/vcdiff-ltmain.sh.yml b/tests/cluecode/data/authors/vcdiff-ltmain.sh.yml index ccc6a5f3f92..27ad8fa5c84 100644 --- a/tests/cluecode/data/authors/vcdiff-ltmain.sh.yml +++ b/tests/cluecode/data/authors/vcdiff-ltmain.sh.yml @@ -1,4 +1,8 @@ what: - authors + - authors_summary authors: - Gordon Matzigkeit +authors_summary: + - value: Gordon Matzigkeit + count: 1 diff --git a/tests/cluecode/data/authors/wcstok.c.yml b/tests/cluecode/data/authors/wcstok.c.yml index d6bd02fadf4..4e905b19386 100644 --- a/tests/cluecode/data/authors/wcstok.c.yml +++ b/tests/cluecode/data/authors/wcstok.c.yml @@ -1,4 +1,8 @@ what: - authors + - authors_summary authors: - Wes Peters +authors_summary: + - value: Wes Peters + count: 1 diff --git a/tests/cluecode/data/authors/with_date_in_angle_brackets_authors.txt.yml b/tests/cluecode/data/authors/with_date_in_angle_brackets_authors.txt.yml index a2101b5a456..5a9541ed503 100644 --- a/tests/cluecode/data/authors/with_date_in_angle_brackets_authors.txt.yml +++ b/tests/cluecode/data/authors/with_date_in_angle_brackets_authors.txt.yml @@ -1,4 +1,8 @@ what: - authors + - authors_summary authors: - bj@open-rnd.pl +authors_summary: + - value: bj@open-rnd.pl + count: 1