Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copyright and URLs data structure: Data structure inconsistency in results #2350

Closed
tdruez opened this issue Dec 11, 2020 · 4 comments
Closed
Assignees
Labels

Comments

@tdruez
Copy link
Member

tdruez commented Dec 11, 2020

Description

copyrights, holders, authors use the value key where urls and emails use url and email as keys.

'urls': [{'url': 'http://pypi.python.org/pypi/python-cjson/1.0.5', 'end_line': 57, 'start_line': 57}]
'copyrights': [{'value': 'Copyright (c) 2009, by the authors', 'end_line': 4, 'start_line': 3}]
@tdruez tdruez added the bug label Dec 11, 2020
@NinaPacifier
Copy link

hey @tdruez Can I work on this issue??

@tdruez
Copy link
Member Author

tdruez commented Dec 14, 2020

@NinaPacifier Sure 👍

@akugarg
Copy link
Collaborator

akugarg commented Jan 16, 2021

Hey @tdruez !
If this issue is still open Can I work on this?

@tdruez
Copy link
Member Author

tdruez commented Jan 18, 2021

Hi @akugarg, yes PR welcome 👍

@akugarg akugarg mentioned this issue Jan 19, 2021
4 tasks
@pombredanne pombredanne changed the title Data structure inconsistency in results Copyright and URLs data structure: Data structure inconsistency in results Aug 20, 2021
pombredanne pushed a commit that referenced this issue Jan 9, 2022
In copyright detection results, rename the "value" attribute to proper
descriptive names, respectively: copyright, holder and author

Signed-off-by: akugarg <akanksha.garg2k@gmail.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
pombredanne added a commit that referenced this issue Jan 9, 2022
This second commit updates the tests and code that did not exist yet
at the time of the initial patch or code that failed to pass tests.

In copyright detection results, rename the "value" attribute to proper
descriptive names, respectively: copyright, holder and author.

Also:
- rename "copyright_holder" to "holder" in CSV output
- apply minor refactorings

Co-authorred-by: akugarg <akanksha.garg2k@gmail.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
pombredanne added a commit that referenced this issue Jan 9, 2022
@tdruez tdruez closed this as completed May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants