# Licensing of code published with papers

**URL:** <https://discourse.julialang.org/t/licensing-of-code-published-with-papers/119140>\
**Category:** Offtopic\
**Tags:** licenses\
**Created:** [September 6, 2024, 6:22pm UTC](https://discourse.julialang.org/t/licensing-of-code-published-with-papers/119140 "2024-09-06T18:22:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gdkrmr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdkrmr/32/2791_2.png) [@gdkrmr](https://discourse.julialang.org/u/gdkrmr)\
**Post date:** [September 6, 2024, 6:22pm UTC](https://discourse.julialang.org/t/licensing-of-code-published-with-papers/119140/1 "2024-09-06T18:22:54Z")

</div>

Open access papers are usually published under a CC-BY license. Does this license also apply to the supporting information? Especially if there is code that has an extra GPL or CC-BY-SA license attached?

---

<div class="post-metadata">

**Author:** ![mike.ingold](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mike.ingold/32/203749_2.png) [@mike.ingold](https://discourse.julialang.org/u/mike.ingold)\
**Post date:** [September 6, 2024, 7:19pm UTC](https://discourse.julialang.org/t/licensing-of-code-published-with-papers/119140/2 "2024-09-06T19:19:11Z")

</div>

I am not a laywer. If the attached code includes an explicit license, I would not just assume that the license the paper was published under applies to the code as well. Especially if the GPL is involved.

---

<div class="post-metadata">

**Author:** ![mbauman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbauman/32/31082_2.png) [@mbauman](https://discourse.julialang.org/u/mbauman)\
**Post date:** [September 6, 2024, 7:49pm UTC](https://discourse.julialang.org/t/licensing-of-code-published-with-papers/119140/3 "2024-09-06T19:49:27Z")

</div>

It really depends on exact terms of the particular journal. For example, here’s what [JOSS says](https://joss.theoj.org/about#content_license):

> Copyright of JOSS papers is retained by submitting authors and accepted papers are subject to a [Creative Commons Attribution 4.0 International License](http://creativecommons.org/licenses/by/4.0/).
> 
> Any code snippets included in JOSS papers are subject to the [MIT license](https://opensource.org/licenses/MIT) regardless of the license of the submitted software package under review.

Note that this _does not affect_ the license of the linked software package.

There may be other open access journals that redistribute the supplementary materials directly and offer their own terms for those (at the express agreement of the copyright owner as a condition of publication).

_Someone(s)_ hold(s) the copyright and they’re the ones who can grant you the ability to copy and reproduce it (or not!). If the original authors maintained their copyright, then you can always just ask them directly if the terms from the journal are unclear.

---

<div class="post-metadata">

**Author:** ![gdkrmr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdkrmr/32/2791_2.png) [@gdkrmr](https://discourse.julialang.org/u/gdkrmr)\
**Post date:** [September 7, 2024, 2:10pm UTC](https://discourse.julialang.org/t/licensing-of-code-published-with-papers/119140/4 "2024-09-07T14:10:46Z")

</div>

It is specifically this [1] article. I have translated the code to Julia [2] and originally wanted to put the MIT License on it but found later that there was a GPLv3/CC-BY-SA license on the code in the supporting information.

Under the Article there is this:

> Terms & Conditions
> 
> Most electronic Supporting Information files are available without a subscription to ACS Web Editions. Such files may be downloaded by article for research use (if there is a public use license linked to the relevant article, that license may permit other uses). Permission may be obtained from ACS for other uses through requests via the RightsLink permission system: [http://pubs.acs.org/page/copyright/permissions.html](http://pubs.acs.org/page/copyright/permissions.html).

I read it like the CC-BY license should also apply to the supporting information.

[1] [https://pubs.acs.org/doi/10.1021/acsmeasuresciau.1c00054](https://pubs.acs.org/doi/10.1021/acsmeasuresciau.1c00054)

[2] [SRDFilter.jl/src/SRDFilter.jl at master · gdkrmr/SRDFilter.jl · GitHub](https://github.com/gdkrmr/SRDFilter.jl/blob/master/src/SRDFilter.jl)

---

<div class="post-metadata">

**Author:** ![goerz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/goerz/32/3269_2.png) [@goerz](https://discourse.julialang.org/u/goerz)\
**Post date:** [September 7, 2024, 4:07pm UTC](https://discourse.julialang.org/t/licensing-of-code-published-with-papers/119140/5 "2024-09-07T16:07:56Z")

</div>

CC licenses cannot, or at least should not, be applied to code, see [Frequently Asked Questions - Creative Commons](https://creativecommons.org/faq/), “Can I apply a Creative Commons license to software?”

License on the paper and the supplementary material covers the published text and form of the paper. For a license on any code that might be related to a paper, you would have to contact the authors. In an academic context, there might also be fair use considerations that could allow you to use published code. For that, you should get advice from a legal professional; your institution may have an office to deal with questions like this.

In this particular case, the code in the zip file linked from the paper clearly indicates that the code is licensed under GPLv3. The legally safest thing to do is to release your translation under GPLv3. You can also contact the authors and get permission from them to translate the code and release the result under the MIT license. That’s what I would do (since I dislike the GPL). Lastly, you could also ignore the license. When exactly a translation is or is not a derivative work isn’t fully settled, as far as I understand. The more you deviate from the original in structure, the more likely it is simply a new implementation of “math”. I also doubt that the authors of that paper have any interest in suing. These or other “fair use” questions depend on your specific jurisdiction. So make your own common-sense judgement on what kind of legal risk you are taking on, or consult a lawyer. (In case it needs to be said: IANAL, so this is not legal advice)
