Is it unethical to use a published code in my PhD thesis work?Is it plagiarism for my thesis advisor to publish a paper using content from my thesis without citation?Does adding “All rights reserved” have no legal usefulness?How to mention colleagues from work in my thesisHow to mention a completely rewritten article in PhD thesis?Should licensed code be acknowledged in ThesisWho holds the copyright if I did research at one university and write a thesis at another?Using substantial parts of a paper you authored in your thesisI believe a publisher is infringing copyright when reproducing a figure I created. What can I do?Work flow for publishing figures under Common Creative license (in order to ease re-use in journal publications)Plagiarism of code by other PhD student

Live action TV show where High school Kids go into the virtual world and have to clear levels

bash vs. zsh: What are the practical differences?

Should I refuse to be named as co-author of a low quality paper?

Why are MBA programs closing in the United States?

tabular: caption and align problem

What do the pair of vertical lines in empirical entropy formula mean?

Should I put programming books I wrote a few years ago on my resume?

Write a function that checks if a string starts with or contains something

What is the polarity of this barrel plug with a double circle?

How does the Around command at zero work?

Why we don’t make use of the t-distribution for constructing a confidence interval for a proportion?

Why is Na5 not played in this line of the French Defense, Advance Variation?

What would prevent chimeras from reproducing with each other?

Is there a DSLR/mirorless camera with minimal options like a classic, simple SLR?

Shouldn't Apple consider allowing use of Apple Pencil while it's charging?

Russian word for a male zebra

How to publish items after pipeline is finished?

How to add arrows in smartdiagram (descriptive diagram)

Is it okay to have a sequel start immediately after the end of the first book?

Has there been a multiethnic Star Trek character?

How can I remove material from this wood beam?

Why do radiation hardened IC packages often have long leads?

Does the new finding on "reversing a quantum jump mid-flight" rule out any interpretations of QM?

How do we say "within a kilometer radius spherically"?



Is it unethical to use a published code in my PhD thesis work?


Is it plagiarism for my thesis advisor to publish a paper using content from my thesis without citation?Does adding “All rights reserved” have no legal usefulness?How to mention colleagues from work in my thesisHow to mention a completely rewritten article in PhD thesis?Should licensed code be acknowledged in ThesisWho holds the copyright if I did research at one university and write a thesis at another?Using substantial parts of a paper you authored in your thesisI believe a publisher is infringing copyright when reproducing a figure I created. What can I do?Work flow for publishing figures under Common Creative license (in order to ease re-use in journal publications)Plagiarism of code by other PhD student













8















I have used a code published in a published Masters thesis into my PhD work. I have modified just 10% of the code to suit my research requirement. However, most of the code is as developed by the original researcher. I had to use the code from the literature because I currently don't have the time, the resources or the motivation to write the code from scratch.



However, I am in a dilemma whether I am doing something unethical by using the code developed by someone else for my research. I will cite the original thesis in my papers and thesis. I will cite it in the following manner:



The code used in this thesis has been developed based on the work published by John Doe at the University of Agartha [1].

[1] Doe, J. Implementation of a code. University of Agartha, 2008.


Also, I am not going to add the code in my thesis or my paper. Will this be unethical and violation of the original author's copyright?










share|improve this question

















  • 8





    Under which licence has the code been published? Most likely, the original author published the code so that you and another researchers can work with it.

    – J-Kun
    May 25 at 6:11















8















I have used a code published in a published Masters thesis into my PhD work. I have modified just 10% of the code to suit my research requirement. However, most of the code is as developed by the original researcher. I had to use the code from the literature because I currently don't have the time, the resources or the motivation to write the code from scratch.



However, I am in a dilemma whether I am doing something unethical by using the code developed by someone else for my research. I will cite the original thesis in my papers and thesis. I will cite it in the following manner:



The code used in this thesis has been developed based on the work published by John Doe at the University of Agartha [1].

[1] Doe, J. Implementation of a code. University of Agartha, 2008.


Also, I am not going to add the code in my thesis or my paper. Will this be unethical and violation of the original author's copyright?










share|improve this question

















  • 8





    Under which licence has the code been published? Most likely, the original author published the code so that you and another researchers can work with it.

    – J-Kun
    May 25 at 6:11













8












8








8


2






I have used a code published in a published Masters thesis into my PhD work. I have modified just 10% of the code to suit my research requirement. However, most of the code is as developed by the original researcher. I had to use the code from the literature because I currently don't have the time, the resources or the motivation to write the code from scratch.



However, I am in a dilemma whether I am doing something unethical by using the code developed by someone else for my research. I will cite the original thesis in my papers and thesis. I will cite it in the following manner:



The code used in this thesis has been developed based on the work published by John Doe at the University of Agartha [1].

[1] Doe, J. Implementation of a code. University of Agartha, 2008.


Also, I am not going to add the code in my thesis or my paper. Will this be unethical and violation of the original author's copyright?










share|improve this question














I have used a code published in a published Masters thesis into my PhD work. I have modified just 10% of the code to suit my research requirement. However, most of the code is as developed by the original researcher. I had to use the code from the literature because I currently don't have the time, the resources or the motivation to write the code from scratch.



However, I am in a dilemma whether I am doing something unethical by using the code developed by someone else for my research. I will cite the original thesis in my papers and thesis. I will cite it in the following manner:



The code used in this thesis has been developed based on the work published by John Doe at the University of Agartha [1].

[1] Doe, J. Implementation of a code. University of Agartha, 2008.


Also, I am not going to add the code in my thesis or my paper. Will this be unethical and violation of the original author's copyright?







phd thesis plagiarism copyright






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked May 25 at 1:07









quriousqurious

411




411







  • 8





    Under which licence has the code been published? Most likely, the original author published the code so that you and another researchers can work with it.

    – J-Kun
    May 25 at 6:11












  • 8





    Under which licence has the code been published? Most likely, the original author published the code so that you and another researchers can work with it.

    – J-Kun
    May 25 at 6:11







8




8





Under which licence has the code been published? Most likely, the original author published the code so that you and another researchers can work with it.

– J-Kun
May 25 at 6:11





Under which licence has the code been published? Most likely, the original author published the code so that you and another researchers can work with it.

– J-Kun
May 25 at 6:11










3 Answers
3






active

oldest

votes


















11














There are three issues:



  1. Is it a copyright violation? This depends on the license under which the original code was released. You'll have to read it.


  2. Is it plagiarism? No, you have credited the original author. However, you may want to make it more clear that it is really a relatively minor modification of their code. Your current wording, "developed based on work...", could be interpreted as "I got some ideas from their work but then wrote all my code from scratch", which would misrepresent the real contribution of the other authors.



  3. Is it adequate for your PhD thesis? You could write an entire thesis that just used the work of others, appropriately cited, with minor tweaks. It wouldn't be plagiarism, but it also wouldn't get you a PhD, because it doesn't demonstrate an ability to do independent research. So, you need to make sure that your advisor and committee are fully aware of what parts are your own work, and what parts are the work of others, so that they can evaluate your research accomplishment based on what you did. If they don't feel it's adequate, then you may have to do more work in order to complete a thesis that will pass.



    The same applies when you publish a paper. Here, the editors and reviewers need to evaluate your paper based on its novelty - what part of it is new work, versus what simply makes use of existing work?







share|improve this answer


















  • 2





    Copyright isn't involved if the code isn't published.

    – Buffy
    May 25 at 10:42






  • 6





    @Buffy No, you also need a license to use the code. The question asks about the ethics of using the code, not writing a thesis about it.

    – Anonymous Physicist
    May 25 at 11:42







  • 1





    Good answer, I’ll add that when referencing code it’s fairly standard to provide a link to the public repository from which you got the code (eg GitHub)

    – Spark
    May 25 at 12:20











  • "a relatively minor modification of their code"; actually, that would depend on what the 10% does (and how 'critical' it is); if the 90% is just doing UI, data formatting and parsing and what-not, while the 10% is the part that's actually doing the actual analysis work, well, that 10% change would be, in fact, a major change IMHO...

    – poncho
    May 25 at 17:01











  • @AnonymousPhysicist That question is common sense and has little to do with Academia. It's the same as "Is it ethical to use Microsoft Word to write my thesis?", "Not if you pirated it".

    – user71659
    May 25 at 18:48


















4














No, it is not unethical. If the original authors didn't want you to use the code, they would not have made it public. In fact they're likely to be flattered that you find their code useful/interesting enough to make use of it.



Of course, you need to cite the original authors, since you're using their work.






share|improve this answer


















  • 2





    It depends what license they released it under.

    – Elin
    May 25 at 9:06






  • 2





    @Elin, not for use.

    – Buffy
    May 25 at 11:23











  • OP is not using, OP is modifying. And licenses can be about use, it is just that some licenses are more focused on distribution, e.g. the GPL license to you gives you the license to redistribute under certain conditions. It also gives you license to run, study and modify.

    – Elin
    May 26 at 8:38


















1














Disclaimer: I am not a lawyer.



But what you suggest is fine unless the code has been patented. That is very unlikely, of course.



Distinguish between using something (permitted - unless patented) and republishing it (depends on license).



The only time in which you can't use something is when it has been patented but not licensed to you. I doubt that is the case here. But otherwise you can use what you find and you can use modifications of it. You just can't republish the work of others without some sort of permission such as a license.



Plagiarism is a different issue than publishing/copyright. If you cite the work you are correctly attributing it to the source and so avoid plagiarism.



Think of an analogy with mathematics. If I find a (copyright) formula in a math book, I can use it. I can even adapt it for other use. I can't claim that I created it (that would be plagiarism) and I can't republish it without permission. If this were not the case it would be impossible for mathematics to advance. Every formula or other idea would be an absolute block to every other mathematician.



Think of an analogy with poetry. If I find a poem published somewhere, I can adapt and rewrite it for my own purposes. I just can't republish it and I may not be able to publish my rewrite. But I can use it myself, perhaps for my own enjoyment.



Code is a bit different since it can be executed. If I find it and it isn't patented, I can execute it. I can also rewrite it for my own purposes. And I can execute that also. I just can't republish it necessarily. And whether I can publish the changed code depends on things.



For reproducibility purposes you can publish how you changed the original because that is your work, but you may not be able to publish the complete version you used since it is in part the work of another, but that depends on the license.




Patenting code is extremely problematic in my view. Unfortunately it is possible to do it in some places.



Note that I've assumed that the program code is published as text, not as an executable. I've also assumed that you have legal access to that text.






share|improve this answer

























  • You are assuming the author has legal access to the code/book/poem in the first place. I wish you were right, but you're not. Your profile says you are CS professor. I would guess you have read the EULA on commercial software and seen all the restrictions it places. Your institution probably pays for licenses that do not follow the rules you have described in your answer.

    – Anonymous Physicist
    May 25 at 11:47







  • 1





    @AnonymousPhysicist, yes I make that assumption. I think that is fair for something (computer code) "published in a Masters thesis". It is quite different for things not published as source but only as executables.

    – Buffy
    May 25 at 11:50







  • 1





    @AnonymousPhysicist, Computer science textbooks are usually published with "all rights reserved". They contain code, like the "hello world" program. Is a student being unethical for entering that program and executing it? For adapting it to "hello universe"?

    – Buffy
    May 25 at 12:05






  • 2





    @AnonymousPhysicist, note that commercial entities use "trade secret" to protect their source code. By publishing executables the only way to "use" it is to circumvent copyright and the only use of the copy is to execute it. That isn't the same for the source code which has other uses, such as learning from it. If you have a legal copy of the source you can use it for all legal uses including execution. But you can't publish it or publish adaptations without license. Source code is just text.

    – Buffy
    May 25 at 12:11






  • 2





    @AnonymousPhysicist, also note that EULA agreements are about contract law, not copyright law. And, since they are restrictive, not permissive, some courts have ruled that some such "agreements" are not enforceable, being improper use of contract law. Confusing these things isn't helpful to the OP. Note that copyright license is, by its nature permissive. You can't impose added restrictions through a copyright license. Contract law is quite different.

    – Buffy
    May 25 at 12:24











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "415"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2facademia.stackexchange.com%2fquestions%2f131074%2fis-it-unethical-to-use-a-published-code-in-my-phd-thesis-work%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























3 Answers
3






active

oldest

votes








3 Answers
3






active

oldest

votes









active

oldest

votes






active

oldest

votes









11














There are three issues:



  1. Is it a copyright violation? This depends on the license under which the original code was released. You'll have to read it.


  2. Is it plagiarism? No, you have credited the original author. However, you may want to make it more clear that it is really a relatively minor modification of their code. Your current wording, "developed based on work...", could be interpreted as "I got some ideas from their work but then wrote all my code from scratch", which would misrepresent the real contribution of the other authors.



  3. Is it adequate for your PhD thesis? You could write an entire thesis that just used the work of others, appropriately cited, with minor tweaks. It wouldn't be plagiarism, but it also wouldn't get you a PhD, because it doesn't demonstrate an ability to do independent research. So, you need to make sure that your advisor and committee are fully aware of what parts are your own work, and what parts are the work of others, so that they can evaluate your research accomplishment based on what you did. If they don't feel it's adequate, then you may have to do more work in order to complete a thesis that will pass.



    The same applies when you publish a paper. Here, the editors and reviewers need to evaluate your paper based on its novelty - what part of it is new work, versus what simply makes use of existing work?







share|improve this answer


















  • 2





    Copyright isn't involved if the code isn't published.

    – Buffy
    May 25 at 10:42






  • 6





    @Buffy No, you also need a license to use the code. The question asks about the ethics of using the code, not writing a thesis about it.

    – Anonymous Physicist
    May 25 at 11:42







  • 1





    Good answer, I’ll add that when referencing code it’s fairly standard to provide a link to the public repository from which you got the code (eg GitHub)

    – Spark
    May 25 at 12:20











  • "a relatively minor modification of their code"; actually, that would depend on what the 10% does (and how 'critical' it is); if the 90% is just doing UI, data formatting and parsing and what-not, while the 10% is the part that's actually doing the actual analysis work, well, that 10% change would be, in fact, a major change IMHO...

    – poncho
    May 25 at 17:01











  • @AnonymousPhysicist That question is common sense and has little to do with Academia. It's the same as "Is it ethical to use Microsoft Word to write my thesis?", "Not if you pirated it".

    – user71659
    May 25 at 18:48















11














There are three issues:



  1. Is it a copyright violation? This depends on the license under which the original code was released. You'll have to read it.


  2. Is it plagiarism? No, you have credited the original author. However, you may want to make it more clear that it is really a relatively minor modification of their code. Your current wording, "developed based on work...", could be interpreted as "I got some ideas from their work but then wrote all my code from scratch", which would misrepresent the real contribution of the other authors.



  3. Is it adequate for your PhD thesis? You could write an entire thesis that just used the work of others, appropriately cited, with minor tweaks. It wouldn't be plagiarism, but it also wouldn't get you a PhD, because it doesn't demonstrate an ability to do independent research. So, you need to make sure that your advisor and committee are fully aware of what parts are your own work, and what parts are the work of others, so that they can evaluate your research accomplishment based on what you did. If they don't feel it's adequate, then you may have to do more work in order to complete a thesis that will pass.



    The same applies when you publish a paper. Here, the editors and reviewers need to evaluate your paper based on its novelty - what part of it is new work, versus what simply makes use of existing work?







share|improve this answer


















  • 2





    Copyright isn't involved if the code isn't published.

    – Buffy
    May 25 at 10:42






  • 6





    @Buffy No, you also need a license to use the code. The question asks about the ethics of using the code, not writing a thesis about it.

    – Anonymous Physicist
    May 25 at 11:42







  • 1





    Good answer, I’ll add that when referencing code it’s fairly standard to provide a link to the public repository from which you got the code (eg GitHub)

    – Spark
    May 25 at 12:20











  • "a relatively minor modification of their code"; actually, that would depend on what the 10% does (and how 'critical' it is); if the 90% is just doing UI, data formatting and parsing and what-not, while the 10% is the part that's actually doing the actual analysis work, well, that 10% change would be, in fact, a major change IMHO...

    – poncho
    May 25 at 17:01











  • @AnonymousPhysicist That question is common sense and has little to do with Academia. It's the same as "Is it ethical to use Microsoft Word to write my thesis?", "Not if you pirated it".

    – user71659
    May 25 at 18:48













11












11








11







There are three issues:



  1. Is it a copyright violation? This depends on the license under which the original code was released. You'll have to read it.


  2. Is it plagiarism? No, you have credited the original author. However, you may want to make it more clear that it is really a relatively minor modification of their code. Your current wording, "developed based on work...", could be interpreted as "I got some ideas from their work but then wrote all my code from scratch", which would misrepresent the real contribution of the other authors.



  3. Is it adequate for your PhD thesis? You could write an entire thesis that just used the work of others, appropriately cited, with minor tweaks. It wouldn't be plagiarism, but it also wouldn't get you a PhD, because it doesn't demonstrate an ability to do independent research. So, you need to make sure that your advisor and committee are fully aware of what parts are your own work, and what parts are the work of others, so that they can evaluate your research accomplishment based on what you did. If they don't feel it's adequate, then you may have to do more work in order to complete a thesis that will pass.



    The same applies when you publish a paper. Here, the editors and reviewers need to evaluate your paper based on its novelty - what part of it is new work, versus what simply makes use of existing work?







share|improve this answer













There are three issues:



  1. Is it a copyright violation? This depends on the license under which the original code was released. You'll have to read it.


  2. Is it plagiarism? No, you have credited the original author. However, you may want to make it more clear that it is really a relatively minor modification of their code. Your current wording, "developed based on work...", could be interpreted as "I got some ideas from their work but then wrote all my code from scratch", which would misrepresent the real contribution of the other authors.



  3. Is it adequate for your PhD thesis? You could write an entire thesis that just used the work of others, appropriately cited, with minor tweaks. It wouldn't be plagiarism, but it also wouldn't get you a PhD, because it doesn't demonstrate an ability to do independent research. So, you need to make sure that your advisor and committee are fully aware of what parts are your own work, and what parts are the work of others, so that they can evaluate your research accomplishment based on what you did. If they don't feel it's adequate, then you may have to do more work in order to complete a thesis that will pass.



    The same applies when you publish a paper. Here, the editors and reviewers need to evaluate your paper based on its novelty - what part of it is new work, versus what simply makes use of existing work?








share|improve this answer












share|improve this answer



share|improve this answer










answered May 25 at 3:14









Nate EldredgeNate Eldredge

110k36321420




110k36321420







  • 2





    Copyright isn't involved if the code isn't published.

    – Buffy
    May 25 at 10:42






  • 6





    @Buffy No, you also need a license to use the code. The question asks about the ethics of using the code, not writing a thesis about it.

    – Anonymous Physicist
    May 25 at 11:42







  • 1





    Good answer, I’ll add that when referencing code it’s fairly standard to provide a link to the public repository from which you got the code (eg GitHub)

    – Spark
    May 25 at 12:20











  • "a relatively minor modification of their code"; actually, that would depend on what the 10% does (and how 'critical' it is); if the 90% is just doing UI, data formatting and parsing and what-not, while the 10% is the part that's actually doing the actual analysis work, well, that 10% change would be, in fact, a major change IMHO...

    – poncho
    May 25 at 17:01











  • @AnonymousPhysicist That question is common sense and has little to do with Academia. It's the same as "Is it ethical to use Microsoft Word to write my thesis?", "Not if you pirated it".

    – user71659
    May 25 at 18:48












  • 2





    Copyright isn't involved if the code isn't published.

    – Buffy
    May 25 at 10:42






  • 6





    @Buffy No, you also need a license to use the code. The question asks about the ethics of using the code, not writing a thesis about it.

    – Anonymous Physicist
    May 25 at 11:42







  • 1





    Good answer, I’ll add that when referencing code it’s fairly standard to provide a link to the public repository from which you got the code (eg GitHub)

    – Spark
    May 25 at 12:20











  • "a relatively minor modification of their code"; actually, that would depend on what the 10% does (and how 'critical' it is); if the 90% is just doing UI, data formatting and parsing and what-not, while the 10% is the part that's actually doing the actual analysis work, well, that 10% change would be, in fact, a major change IMHO...

    – poncho
    May 25 at 17:01











  • @AnonymousPhysicist That question is common sense and has little to do with Academia. It's the same as "Is it ethical to use Microsoft Word to write my thesis?", "Not if you pirated it".

    – user71659
    May 25 at 18:48







2




2





Copyright isn't involved if the code isn't published.

– Buffy
May 25 at 10:42





Copyright isn't involved if the code isn't published.

– Buffy
May 25 at 10:42




6




6





@Buffy No, you also need a license to use the code. The question asks about the ethics of using the code, not writing a thesis about it.

– Anonymous Physicist
May 25 at 11:42






@Buffy No, you also need a license to use the code. The question asks about the ethics of using the code, not writing a thesis about it.

– Anonymous Physicist
May 25 at 11:42





1




1





Good answer, I’ll add that when referencing code it’s fairly standard to provide a link to the public repository from which you got the code (eg GitHub)

– Spark
May 25 at 12:20





Good answer, I’ll add that when referencing code it’s fairly standard to provide a link to the public repository from which you got the code (eg GitHub)

– Spark
May 25 at 12:20













"a relatively minor modification of their code"; actually, that would depend on what the 10% does (and how 'critical' it is); if the 90% is just doing UI, data formatting and parsing and what-not, while the 10% is the part that's actually doing the actual analysis work, well, that 10% change would be, in fact, a major change IMHO...

– poncho
May 25 at 17:01





"a relatively minor modification of their code"; actually, that would depend on what the 10% does (and how 'critical' it is); if the 90% is just doing UI, data formatting and parsing and what-not, while the 10% is the part that's actually doing the actual analysis work, well, that 10% change would be, in fact, a major change IMHO...

– poncho
May 25 at 17:01













@AnonymousPhysicist That question is common sense and has little to do with Academia. It's the same as "Is it ethical to use Microsoft Word to write my thesis?", "Not if you pirated it".

– user71659
May 25 at 18:48





@AnonymousPhysicist That question is common sense and has little to do with Academia. It's the same as "Is it ethical to use Microsoft Word to write my thesis?", "Not if you pirated it".

– user71659
May 25 at 18:48











4














No, it is not unethical. If the original authors didn't want you to use the code, they would not have made it public. In fact they're likely to be flattered that you find their code useful/interesting enough to make use of it.



Of course, you need to cite the original authors, since you're using their work.






share|improve this answer


















  • 2





    It depends what license they released it under.

    – Elin
    May 25 at 9:06






  • 2





    @Elin, not for use.

    – Buffy
    May 25 at 11:23











  • OP is not using, OP is modifying. And licenses can be about use, it is just that some licenses are more focused on distribution, e.g. the GPL license to you gives you the license to redistribute under certain conditions. It also gives you license to run, study and modify.

    – Elin
    May 26 at 8:38















4














No, it is not unethical. If the original authors didn't want you to use the code, they would not have made it public. In fact they're likely to be flattered that you find their code useful/interesting enough to make use of it.



Of course, you need to cite the original authors, since you're using their work.






share|improve this answer


















  • 2





    It depends what license they released it under.

    – Elin
    May 25 at 9:06






  • 2





    @Elin, not for use.

    – Buffy
    May 25 at 11:23











  • OP is not using, OP is modifying. And licenses can be about use, it is just that some licenses are more focused on distribution, e.g. the GPL license to you gives you the license to redistribute under certain conditions. It also gives you license to run, study and modify.

    – Elin
    May 26 at 8:38













4












4








4







No, it is not unethical. If the original authors didn't want you to use the code, they would not have made it public. In fact they're likely to be flattered that you find their code useful/interesting enough to make use of it.



Of course, you need to cite the original authors, since you're using their work.






share|improve this answer













No, it is not unethical. If the original authors didn't want you to use the code, they would not have made it public. In fact they're likely to be flattered that you find their code useful/interesting enough to make use of it.



Of course, you need to cite the original authors, since you're using their work.







share|improve this answer












share|improve this answer



share|improve this answer










answered May 25 at 1:11









AllureAllure

38.5k20112168




38.5k20112168







  • 2





    It depends what license they released it under.

    – Elin
    May 25 at 9:06






  • 2





    @Elin, not for use.

    – Buffy
    May 25 at 11:23











  • OP is not using, OP is modifying. And licenses can be about use, it is just that some licenses are more focused on distribution, e.g. the GPL license to you gives you the license to redistribute under certain conditions. It also gives you license to run, study and modify.

    – Elin
    May 26 at 8:38












  • 2





    It depends what license they released it under.

    – Elin
    May 25 at 9:06






  • 2





    @Elin, not for use.

    – Buffy
    May 25 at 11:23











  • OP is not using, OP is modifying. And licenses can be about use, it is just that some licenses are more focused on distribution, e.g. the GPL license to you gives you the license to redistribute under certain conditions. It also gives you license to run, study and modify.

    – Elin
    May 26 at 8:38







2




2





It depends what license they released it under.

– Elin
May 25 at 9:06





It depends what license they released it under.

– Elin
May 25 at 9:06




2




2





@Elin, not for use.

– Buffy
May 25 at 11:23





@Elin, not for use.

– Buffy
May 25 at 11:23













OP is not using, OP is modifying. And licenses can be about use, it is just that some licenses are more focused on distribution, e.g. the GPL license to you gives you the license to redistribute under certain conditions. It also gives you license to run, study and modify.

– Elin
May 26 at 8:38





OP is not using, OP is modifying. And licenses can be about use, it is just that some licenses are more focused on distribution, e.g. the GPL license to you gives you the license to redistribute under certain conditions. It also gives you license to run, study and modify.

– Elin
May 26 at 8:38











1














Disclaimer: I am not a lawyer.



But what you suggest is fine unless the code has been patented. That is very unlikely, of course.



Distinguish between using something (permitted - unless patented) and republishing it (depends on license).



The only time in which you can't use something is when it has been patented but not licensed to you. I doubt that is the case here. But otherwise you can use what you find and you can use modifications of it. You just can't republish the work of others without some sort of permission such as a license.



Plagiarism is a different issue than publishing/copyright. If you cite the work you are correctly attributing it to the source and so avoid plagiarism.



Think of an analogy with mathematics. If I find a (copyright) formula in a math book, I can use it. I can even adapt it for other use. I can't claim that I created it (that would be plagiarism) and I can't republish it without permission. If this were not the case it would be impossible for mathematics to advance. Every formula or other idea would be an absolute block to every other mathematician.



Think of an analogy with poetry. If I find a poem published somewhere, I can adapt and rewrite it for my own purposes. I just can't republish it and I may not be able to publish my rewrite. But I can use it myself, perhaps for my own enjoyment.



Code is a bit different since it can be executed. If I find it and it isn't patented, I can execute it. I can also rewrite it for my own purposes. And I can execute that also. I just can't republish it necessarily. And whether I can publish the changed code depends on things.



For reproducibility purposes you can publish how you changed the original because that is your work, but you may not be able to publish the complete version you used since it is in part the work of another, but that depends on the license.




Patenting code is extremely problematic in my view. Unfortunately it is possible to do it in some places.



Note that I've assumed that the program code is published as text, not as an executable. I've also assumed that you have legal access to that text.






share|improve this answer

























  • You are assuming the author has legal access to the code/book/poem in the first place. I wish you were right, but you're not. Your profile says you are CS professor. I would guess you have read the EULA on commercial software and seen all the restrictions it places. Your institution probably pays for licenses that do not follow the rules you have described in your answer.

    – Anonymous Physicist
    May 25 at 11:47







  • 1





    @AnonymousPhysicist, yes I make that assumption. I think that is fair for something (computer code) "published in a Masters thesis". It is quite different for things not published as source but only as executables.

    – Buffy
    May 25 at 11:50







  • 1





    @AnonymousPhysicist, Computer science textbooks are usually published with "all rights reserved". They contain code, like the "hello world" program. Is a student being unethical for entering that program and executing it? For adapting it to "hello universe"?

    – Buffy
    May 25 at 12:05






  • 2





    @AnonymousPhysicist, note that commercial entities use "trade secret" to protect their source code. By publishing executables the only way to "use" it is to circumvent copyright and the only use of the copy is to execute it. That isn't the same for the source code which has other uses, such as learning from it. If you have a legal copy of the source you can use it for all legal uses including execution. But you can't publish it or publish adaptations without license. Source code is just text.

    – Buffy
    May 25 at 12:11






  • 2





    @AnonymousPhysicist, also note that EULA agreements are about contract law, not copyright law. And, since they are restrictive, not permissive, some courts have ruled that some such "agreements" are not enforceable, being improper use of contract law. Confusing these things isn't helpful to the OP. Note that copyright license is, by its nature permissive. You can't impose added restrictions through a copyright license. Contract law is quite different.

    – Buffy
    May 25 at 12:24















1














Disclaimer: I am not a lawyer.



But what you suggest is fine unless the code has been patented. That is very unlikely, of course.



Distinguish between using something (permitted - unless patented) and republishing it (depends on license).



The only time in which you can't use something is when it has been patented but not licensed to you. I doubt that is the case here. But otherwise you can use what you find and you can use modifications of it. You just can't republish the work of others without some sort of permission such as a license.



Plagiarism is a different issue than publishing/copyright. If you cite the work you are correctly attributing it to the source and so avoid plagiarism.



Think of an analogy with mathematics. If I find a (copyright) formula in a math book, I can use it. I can even adapt it for other use. I can't claim that I created it (that would be plagiarism) and I can't republish it without permission. If this were not the case it would be impossible for mathematics to advance. Every formula or other idea would be an absolute block to every other mathematician.



Think of an analogy with poetry. If I find a poem published somewhere, I can adapt and rewrite it for my own purposes. I just can't republish it and I may not be able to publish my rewrite. But I can use it myself, perhaps for my own enjoyment.



Code is a bit different since it can be executed. If I find it and it isn't patented, I can execute it. I can also rewrite it for my own purposes. And I can execute that also. I just can't republish it necessarily. And whether I can publish the changed code depends on things.



For reproducibility purposes you can publish how you changed the original because that is your work, but you may not be able to publish the complete version you used since it is in part the work of another, but that depends on the license.




Patenting code is extremely problematic in my view. Unfortunately it is possible to do it in some places.



Note that I've assumed that the program code is published as text, not as an executable. I've also assumed that you have legal access to that text.






share|improve this answer

























  • You are assuming the author has legal access to the code/book/poem in the first place. I wish you were right, but you're not. Your profile says you are CS professor. I would guess you have read the EULA on commercial software and seen all the restrictions it places. Your institution probably pays for licenses that do not follow the rules you have described in your answer.

    – Anonymous Physicist
    May 25 at 11:47







  • 1





    @AnonymousPhysicist, yes I make that assumption. I think that is fair for something (computer code) "published in a Masters thesis". It is quite different for things not published as source but only as executables.

    – Buffy
    May 25 at 11:50







  • 1





    @AnonymousPhysicist, Computer science textbooks are usually published with "all rights reserved". They contain code, like the "hello world" program. Is a student being unethical for entering that program and executing it? For adapting it to "hello universe"?

    – Buffy
    May 25 at 12:05






  • 2





    @AnonymousPhysicist, note that commercial entities use "trade secret" to protect their source code. By publishing executables the only way to "use" it is to circumvent copyright and the only use of the copy is to execute it. That isn't the same for the source code which has other uses, such as learning from it. If you have a legal copy of the source you can use it for all legal uses including execution. But you can't publish it or publish adaptations without license. Source code is just text.

    – Buffy
    May 25 at 12:11






  • 2





    @AnonymousPhysicist, also note that EULA agreements are about contract law, not copyright law. And, since they are restrictive, not permissive, some courts have ruled that some such "agreements" are not enforceable, being improper use of contract law. Confusing these things isn't helpful to the OP. Note that copyright license is, by its nature permissive. You can't impose added restrictions through a copyright license. Contract law is quite different.

    – Buffy
    May 25 at 12:24













1












1








1







Disclaimer: I am not a lawyer.



But what you suggest is fine unless the code has been patented. That is very unlikely, of course.



Distinguish between using something (permitted - unless patented) and republishing it (depends on license).



The only time in which you can't use something is when it has been patented but not licensed to you. I doubt that is the case here. But otherwise you can use what you find and you can use modifications of it. You just can't republish the work of others without some sort of permission such as a license.



Plagiarism is a different issue than publishing/copyright. If you cite the work you are correctly attributing it to the source and so avoid plagiarism.



Think of an analogy with mathematics. If I find a (copyright) formula in a math book, I can use it. I can even adapt it for other use. I can't claim that I created it (that would be plagiarism) and I can't republish it without permission. If this were not the case it would be impossible for mathematics to advance. Every formula or other idea would be an absolute block to every other mathematician.



Think of an analogy with poetry. If I find a poem published somewhere, I can adapt and rewrite it for my own purposes. I just can't republish it and I may not be able to publish my rewrite. But I can use it myself, perhaps for my own enjoyment.



Code is a bit different since it can be executed. If I find it and it isn't patented, I can execute it. I can also rewrite it for my own purposes. And I can execute that also. I just can't republish it necessarily. And whether I can publish the changed code depends on things.



For reproducibility purposes you can publish how you changed the original because that is your work, but you may not be able to publish the complete version you used since it is in part the work of another, but that depends on the license.




Patenting code is extremely problematic in my view. Unfortunately it is possible to do it in some places.



Note that I've assumed that the program code is published as text, not as an executable. I've also assumed that you have legal access to that text.






share|improve this answer















Disclaimer: I am not a lawyer.



But what you suggest is fine unless the code has been patented. That is very unlikely, of course.



Distinguish between using something (permitted - unless patented) and republishing it (depends on license).



The only time in which you can't use something is when it has been patented but not licensed to you. I doubt that is the case here. But otherwise you can use what you find and you can use modifications of it. You just can't republish the work of others without some sort of permission such as a license.



Plagiarism is a different issue than publishing/copyright. If you cite the work you are correctly attributing it to the source and so avoid plagiarism.



Think of an analogy with mathematics. If I find a (copyright) formula in a math book, I can use it. I can even adapt it for other use. I can't claim that I created it (that would be plagiarism) and I can't republish it without permission. If this were not the case it would be impossible for mathematics to advance. Every formula or other idea would be an absolute block to every other mathematician.



Think of an analogy with poetry. If I find a poem published somewhere, I can adapt and rewrite it for my own purposes. I just can't republish it and I may not be able to publish my rewrite. But I can use it myself, perhaps for my own enjoyment.



Code is a bit different since it can be executed. If I find it and it isn't patented, I can execute it. I can also rewrite it for my own purposes. And I can execute that also. I just can't republish it necessarily. And whether I can publish the changed code depends on things.



For reproducibility purposes you can publish how you changed the original because that is your work, but you may not be able to publish the complete version you used since it is in part the work of another, but that depends on the license.




Patenting code is extremely problematic in my view. Unfortunately it is possible to do it in some places.



Note that I've assumed that the program code is published as text, not as an executable. I've also assumed that you have legal access to that text.







share|improve this answer














share|improve this answer



share|improve this answer








edited May 25 at 11:56

























answered May 25 at 10:41









BuffyBuffy

67k18204309




67k18204309












  • You are assuming the author has legal access to the code/book/poem in the first place. I wish you were right, but you're not. Your profile says you are CS professor. I would guess you have read the EULA on commercial software and seen all the restrictions it places. Your institution probably pays for licenses that do not follow the rules you have described in your answer.

    – Anonymous Physicist
    May 25 at 11:47







  • 1





    @AnonymousPhysicist, yes I make that assumption. I think that is fair for something (computer code) "published in a Masters thesis". It is quite different for things not published as source but only as executables.

    – Buffy
    May 25 at 11:50







  • 1





    @AnonymousPhysicist, Computer science textbooks are usually published with "all rights reserved". They contain code, like the "hello world" program. Is a student being unethical for entering that program and executing it? For adapting it to "hello universe"?

    – Buffy
    May 25 at 12:05






  • 2





    @AnonymousPhysicist, note that commercial entities use "trade secret" to protect their source code. By publishing executables the only way to "use" it is to circumvent copyright and the only use of the copy is to execute it. That isn't the same for the source code which has other uses, such as learning from it. If you have a legal copy of the source you can use it for all legal uses including execution. But you can't publish it or publish adaptations without license. Source code is just text.

    – Buffy
    May 25 at 12:11






  • 2





    @AnonymousPhysicist, also note that EULA agreements are about contract law, not copyright law. And, since they are restrictive, not permissive, some courts have ruled that some such "agreements" are not enforceable, being improper use of contract law. Confusing these things isn't helpful to the OP. Note that copyright license is, by its nature permissive. You can't impose added restrictions through a copyright license. Contract law is quite different.

    – Buffy
    May 25 at 12:24

















  • You are assuming the author has legal access to the code/book/poem in the first place. I wish you were right, but you're not. Your profile says you are CS professor. I would guess you have read the EULA on commercial software and seen all the restrictions it places. Your institution probably pays for licenses that do not follow the rules you have described in your answer.

    – Anonymous Physicist
    May 25 at 11:47







  • 1





    @AnonymousPhysicist, yes I make that assumption. I think that is fair for something (computer code) "published in a Masters thesis". It is quite different for things not published as source but only as executables.

    – Buffy
    May 25 at 11:50







  • 1





    @AnonymousPhysicist, Computer science textbooks are usually published with "all rights reserved". They contain code, like the "hello world" program. Is a student being unethical for entering that program and executing it? For adapting it to "hello universe"?

    – Buffy
    May 25 at 12:05






  • 2





    @AnonymousPhysicist, note that commercial entities use "trade secret" to protect their source code. By publishing executables the only way to "use" it is to circumvent copyright and the only use of the copy is to execute it. That isn't the same for the source code which has other uses, such as learning from it. If you have a legal copy of the source you can use it for all legal uses including execution. But you can't publish it or publish adaptations without license. Source code is just text.

    – Buffy
    May 25 at 12:11






  • 2





    @AnonymousPhysicist, also note that EULA agreements are about contract law, not copyright law. And, since they are restrictive, not permissive, some courts have ruled that some such "agreements" are not enforceable, being improper use of contract law. Confusing these things isn't helpful to the OP. Note that copyright license is, by its nature permissive. You can't impose added restrictions through a copyright license. Contract law is quite different.

    – Buffy
    May 25 at 12:24
















You are assuming the author has legal access to the code/book/poem in the first place. I wish you were right, but you're not. Your profile says you are CS professor. I would guess you have read the EULA on commercial software and seen all the restrictions it places. Your institution probably pays for licenses that do not follow the rules you have described in your answer.

– Anonymous Physicist
May 25 at 11:47






You are assuming the author has legal access to the code/book/poem in the first place. I wish you were right, but you're not. Your profile says you are CS professor. I would guess you have read the EULA on commercial software and seen all the restrictions it places. Your institution probably pays for licenses that do not follow the rules you have described in your answer.

– Anonymous Physicist
May 25 at 11:47





1




1





@AnonymousPhysicist, yes I make that assumption. I think that is fair for something (computer code) "published in a Masters thesis". It is quite different for things not published as source but only as executables.

– Buffy
May 25 at 11:50






@AnonymousPhysicist, yes I make that assumption. I think that is fair for something (computer code) "published in a Masters thesis". It is quite different for things not published as source but only as executables.

– Buffy
May 25 at 11:50





1




1





@AnonymousPhysicist, Computer science textbooks are usually published with "all rights reserved". They contain code, like the "hello world" program. Is a student being unethical for entering that program and executing it? For adapting it to "hello universe"?

– Buffy
May 25 at 12:05





@AnonymousPhysicist, Computer science textbooks are usually published with "all rights reserved". They contain code, like the "hello world" program. Is a student being unethical for entering that program and executing it? For adapting it to "hello universe"?

– Buffy
May 25 at 12:05




2




2





@AnonymousPhysicist, note that commercial entities use "trade secret" to protect their source code. By publishing executables the only way to "use" it is to circumvent copyright and the only use of the copy is to execute it. That isn't the same for the source code which has other uses, such as learning from it. If you have a legal copy of the source you can use it for all legal uses including execution. But you can't publish it or publish adaptations without license. Source code is just text.

– Buffy
May 25 at 12:11





@AnonymousPhysicist, note that commercial entities use "trade secret" to protect their source code. By publishing executables the only way to "use" it is to circumvent copyright and the only use of the copy is to execute it. That isn't the same for the source code which has other uses, such as learning from it. If you have a legal copy of the source you can use it for all legal uses including execution. But you can't publish it or publish adaptations without license. Source code is just text.

– Buffy
May 25 at 12:11




2




2





@AnonymousPhysicist, also note that EULA agreements are about contract law, not copyright law. And, since they are restrictive, not permissive, some courts have ruled that some such "agreements" are not enforceable, being improper use of contract law. Confusing these things isn't helpful to the OP. Note that copyright license is, by its nature permissive. You can't impose added restrictions through a copyright license. Contract law is quite different.

– Buffy
May 25 at 12:24





@AnonymousPhysicist, also note that EULA agreements are about contract law, not copyright law. And, since they are restrictive, not permissive, some courts have ruled that some such "agreements" are not enforceable, being improper use of contract law. Confusing these things isn't helpful to the OP. Note that copyright license is, by its nature permissive. You can't impose added restrictions through a copyright license. Contract law is quite different.

– Buffy
May 25 at 12:24

















draft saved

draft discarded
















































Thanks for contributing an answer to Academia Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2facademia.stackexchange.com%2fquestions%2f131074%2fis-it-unethical-to-use-a-published-code-in-my-phd-thesis-work%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos