Questions tagged [code]

Questions concerning computer code written or used in the context of a research project or other academic endeavour (including questions on licensing, ownership, sharing, distribution, and formatting of academic source code). For other questions on software (related to academic aspects of using the software rather then developing it), use the `software` tag instead.

Filter by
Sorted by
Tagged with
1
vote
1answer
50 views

Improving on a scientific paper (with source code) - publication of our work possible?

I and my students are working on a paper that has associated source code in GitHub. We are planning to change the architecture of the Deep Learning Network they have used, and check to see if we would ...
21
votes
3answers
96k views

Source code plagiarism detection tool that checks against online content

I asked this question on Stackoverflow and was directed to ask it here. The question is: I wanted to ask about plagiarism detection tools for source code written in C++. When I searched Google the ...
41
votes
7answers
11k views

Will a paper be retracted if a flaw in released software code invalidates its central idea?

Say I have written code that performs a physics calculation. After this, I get a paper published based on the results of the code. In the interest of advancing the progress of science, I upload the ...
45
votes
5answers
7k views

Double blind peer review when paper cites author's GitHub repo for code

I and my coauthor wrote a paper and the project involved creating a (small) software library. Part of the novelty of the paper is the output of the code, which is a digital object not intended for by-...
3
votes
2answers
226 views

When Submitting Code To Publisher Must It All Be In The Same Language?

I might have the opportunity to submit a paper to an academic journal and also submit my code for it as well. However, I tend to do my projects across different coding languages because sometimes i'll ...
-2
votes
1answer
100 views

Is simulation a necessary part of writing a research paper? [closed]

In fields like machine learning, where the validity of your solution is measured on the basis of the accuracy of your model, it is important to have a simulation i.e. write and run code to implement ...
16
votes
2answers
2k views

How to request source code?

During literature review for my research proposal, I have come across a professor who has published several papers in my field, some closely related to the topic of my own research. In a series of ...
1
vote
3answers
195 views

Can I use open-source code for a simulation for my research?

I am working on a paper and I found open-source code that I could use for running a simulation. Should I write my own code for that simulation? Will it be enough if I refer to the code in my citations/...
1
vote
0answers
38 views

API Usage Example Citation Necessity [closed]

Many APIs come with code examples on how to use them. Is it necessary to add attribution if one adapts these examples or copies them. Does using lines of code examples for api usage require ...
7
votes
5answers
530 views

Does building a Python library fall in the category of research?

If a Python library is built can it be turned into a research paper? Will it be accepted?
122
votes
12answers
18k views

Is publishing runnable code instead of pseudo code shunned?

In Computer Science is it preferable to describe algorithms using pseudo code rather than real code? If so, why? I've talked to a few academics who think so but I can't understand why. Some of the ...
2
votes
2answers
252 views

How do I improve a paper if they haven't published any code?

I am new in the field of research and am trying to publish my first paper. I am working on improving a paper that involves Machine Learning. However, in order to make changes to it, wouldn't I need ...
133
votes
10answers
12k views

Best-practice models for “research” code?

I have been a professional software developer for a number of years, I'm also an academic researcher - and my research has involved lots of software development. I sometimes feel as though my ...
1
vote
1answer
220 views

How to submit code (visual studio projects, C#, OpenCL) with my IEEE paper submission

I am trying to submit a paper to IEEE (transactions on signal processing). Along with my paper I have written some code (Visual studio projects, C#, OpenCL and accompanying dlls and exes). The ...
3
votes
1answer
107 views

Copyright in academic software in the UK

I work on statistical data analysis in neuroscience at a university, and to that end regularly develop small pieces of software. Most of that software I also publish on GitHub under the GNU General ...
1
vote
1answer
112 views

how to format computer code in APA style

If a psychological methods journal only specifies that the entire manuscript has to be in APA style, how should I format computer code snippets in the manuscript to be submitted? I see nothing ...
2
votes
2answers
119 views

How detailed should I describe my actions regarding code?

I am writing a thesis about a data analysis I'm implementing and am currently describing my data preparation where I talk about what needed to be done prior to the analysis (formatting the data, ...
27
votes
10answers
6k views

Supervisor wants me to support a diploma-thesis software tool after I graduated

During my last year of MSc. studies, I was part-time employed on the university project. The project was related to my diploma thesis, and my task was to create a data-mining software and run ...
7
votes
6answers
12k views

How to format code in a thesis (Word document)?

I have a couple of code snippets, included in my thesis. What is the most convenient way to format code in a Word document, particularly, in regard to keeping the syntax highlighting, etc.? And the ...
39
votes
6answers
10k views

I have found a mistake on someone's code published online: what is the protocol?

I have been using an econometrics toolbox for around 2 years and it is great, very useful. It is available from someone's personal website. I have found a mistake in one piece of code which has set ...
33
votes
4answers
22k views

Can I request the code behind a research paper from the author?

I am in the field of computer science. It is often the case when I am reading a paper I start to wonder, "Wow stunning results, however, I would like to prove that." or "How exactly did he get these ...
16
votes
6answers
4k views

Should I include code in my research paper?

My paper is about a specific application of blockchain. I've developed a basic prototype for it and so far, I've described it in detail, and put screencaps of the interface for it. Should I also ...
1
vote
4answers
130 views

Should I compare my proposed work with my implementation of the previous related papers or the reported result?

In computer science, I need to compare the accuracy of my proposed method to the previous ones. There are two possible options: Implement the methods described in related papers on my own machine Use ...
1
vote
0answers
96 views

In-house code used in paper methods section but not shared

I am muddling my way through my program an stumbled upon a technique I would really want to employ in my research. The technique is well outside the realm of my PI's expertise and my PI would not run ...
2
votes
1answer
110 views

Error discovered in an accepted conference paper but not yet presented

I'm a CS student, and I discovered two code bugs that change some numerical values on a table of a paper that got accepted and will be presented at a conference very soon. The changes is very small (...
3
votes
2answers
114 views

Code hosting platform that allows sharing through link [closed]

I am finishing my thesis (Physics) and need to add a link to all the codes I created to do the analysis presented in the manuscript. The codes are not polished and they are intended to be public ...
22
votes
7answers
3k views

Knowing when the code is good enough, for research

My question is in a similar vein to this one. My research requires code. I can write code and I know some things about writing good code. Both for readability, (e.g. standardised doc string, ...
56
votes
1answer
4k views

Is it OK to update code on repository after publication?

Journals consider that is good practice to release script and codes to repeat the published results, and many of us I think agree with this practice. Code are typically deposited in software version ...
1
vote
2answers
212 views

Sharing Code In thesis

My question is about sharing code in my thesis. I ran simulations using ready data in my field from a book. After that, I compared the results with those from the book. Do I need to share my code or ...
61
votes
9answers
12k views

Academic code copied by library author

The papers I write contain all the source code required to reproduce results. I have written a series of papers that build on each other over the years. My intention has been to release an open-source ...
27
votes
13answers
14k views

Outsourcing trivial authorless work

I have worked on a problem for close to two years. I feel I have an adequate theoretical solution. However I feel to get some backing on the theory I need some quantitative hard computer data. It is ...
4
votes
3answers
193 views

Is there a default license for code libraries that accompany scientific research papers

I read a scientific paper, which is accompanied by a code library published by the authors. I couldn't find anything about its license. Could I just reuse the code? Is there a default license for ...
1
vote
4answers
286 views

Code plagiarism by teacher at renowned university [duplicate]

As a post-graduate student at a renowned university, I am supposed to make an assignment (see attached images) which is obviously inspired on this licensed scikit tutorial. Since the assignment (code)...
21
votes
4answers
2k views

How much effort do researchers take to publish their source code?

When publishing a paper, some researchers publish the source code used for the paper. Is there any research/study/survey/... that looked at how much effort do researchers take to publish their source ...
9
votes
5answers
422 views

How do I comment the code I wrote for a course I am lecturing in?

I am an assistant professor for a course on audio signal processing (for engineers) and I often write snippets of code to try to help the students follow the material. In addition, I get to lecture (1)...
100
votes
10answers
18k views

During peer-review, should I comment on the authors' messy code?

I'm reviewing a paper in pure mathematics. A lot of results in the paper depend heavily on computer computations, and the authors have provided in the article a link to the Magma code they used for ...
56
votes
10answers
16k views

Is there any way to post my code on Code Review Stack Exchange and not be worried about plagiarism?

I am doing my thesis-based master’s in computer engineering and am required to program a tool in C++ as a part of my research. I am quite impressed by the help offered on the Code Review website and ...
7
votes
5answers
725 views

Can you publish a paper Simply Implementing another Paper's Algorithm?

There was a highly cited paper published earlier this year in my field which introduced a highly theoretical, non trivial, algorithm that relied on extremely heavy theory. The algorithm was exact (...
4
votes
4answers
268 views

How to cite or refer to programming codes in a non Computer Science Master's Thesis?

I am writing my Thesis in finance field and I am using Machine learning methods. Therefore, I wrote many Python and R scripts for collecting data, cleaning it and applying some statstics. should I ...
5
votes
3answers
885 views

Why would a university restrict publication of work due to plagiarism fears if TurnItIn was used?

I used to host some code I'd written for university assignments publicly on my GitHub account (after the deadlines had passed, of course). Before long, I received an email from the dep't asking me to ...
4
votes
3answers
285 views

Should I use a personal github account or a new one to publish academic code?

When I want to publish academic code, should I use my personal account with a pseudonymous username or create a new one with a username based on my real name? My current account uses a pseudonym as ...
4
votes
1answer
122 views

R Code attachment

Hello academia community, I'm writing a paper in Finance on Portfolio optimization and stock returns. For this, I'm using R code to compute optimal portfolio allocation, histograms, boxplots etc. My ...
3
votes
2answers
289 views

Who Owns the Code I Write (Graduate Student)? [closed]

As a graduate student in a CS program, "Who Owns the (rights to the) Code I Write"? I know that the answer is different depending upon: (Case-1) I work for the University or am supported in some way ...
1
vote
2answers
369 views

Thesis in use, potential employer wants to see source code

EDIT: Let me clarify things and specify my concerns: I wrote a program for my thesis that solved a problem for the target establishment. The establishment now uses the program with my consent but ...
14
votes
9answers
9k views

Is it possible to ask the professor to check assignment before submitting?

I have got assignments related to programming. They are tough and my friends could not get results. I wanted to ask my professor to run them to see whether I did them right or not. (the deadline is ...
10
votes
3answers
2k views

Making your code publicly available: Does it have to undergo review?

In cases when the authors would like to make their code available online after it is published, is it recommended for authors to make their code available for review when they submit technical papers ...
8
votes
1answer
609 views

Are there any citable Github repositories not published in journals, that receive a lot of citations?

I wish to know whether there is some way, or maybe even some standard, for making a GitHub repository citable in a way that is recognized by academics. Many options have been suggested here, e.g., ...
18
votes
3answers
3k views

How should I compare my algorithm to others when their code is not available?

In computer science, we usually implement our work into algorithms and codes. So in order to compare our work to others, we also need to implement their approaches as well. But the problem is that ...
8
votes
1answer
2k views

How and when to cite code from MATLAB File Exchange

What are the rules/etiquette to cite MATLAB File-exchange submissions on paper publications? There are different scenarios where I am curious what is best: FEX submission is clearly code from a ...
7
votes
5answers
1k views

How much code to include in a Physics paper?

This question is related to Physics research papers, particularly one that will be coming up for my ongoing PhD research (4th paper in all). A core part of the research is developing, testing and ...