lines-of-code

Basis for claim that the number of bugs per line of code is constant regardless of the language used

I've heard people say (although I can't recall who in particular) that the number of bugs per line of code is roughly constant regardless of what language is used. What is the research that backs this up? Edited to add: I don't have access to it, but apparently the authors of this paper "asked the question whether the number of bugs pe...

how big should function length be (lines of code in a function)?

Possible Duplicate: How many lines of code should a function/procedure/method have? I would like to know how many lines of code should be function have? How many lines is too much. I read this a while back, it around 10 or 20 lines but it was because the screen would only accommodate so many lines. Now as the screen size bec...

What is the minimal licensable source code?

Let's suppose I want to "protect" this code about being used without attribution, patenting it, or through any open source licence... #include<stdio.h> int main (void) { int version=2; printf("\r\n.Hello world, ver:(%d).", version); return 0; } It's a little obvious or just a language definition example.. When a source ...

Counting changed lines of code over time

Is there any good tool that computes the number of changed lines of code over a certain time period in a mercurial repository? Something along the lines of statsvn would be great, but anything counting the number of changed lines of code within 6 months will do (including a clever combination of arguments to hg log). Thanks. PS: Please ...

Eclipse Class Count Lines Plugin?

I need a plugin that can count the lines of code that a particular class uses. This includes the code within the particular class, and the number of lines of code in all the classes that it uses as well. (If it has an object from another class, the lines of code in that class need to be counted as well). I've found plugins that tell me a...

Software lines of code measurement - are comments included?

As a hobby project and as a learning exercise, I decided to implement a software lines of code measurement script in Python. However, I have a question: Are comments included in the measurement? The approach I have followed is: open the file, read it from start to end, count the number of lines. If comments are to be ignored, skip th...

How do I get a breakup of my Lines Of Code?

Is there a tool that calculates various LOC statistics? It would have to support popular languages like C++, C#, Python, PHP, JavaScript, ActionScript, etc and interpret code accordingly. An example of the statistics I'm looking for: 350 Physical lines of code -- including braces 200 Logical lines of code -- actual code 190 Comment li...

Merging selective lines of code using Git?

I would like to force git to always merge using a (kind of) 3-way conflicts resolution. Moreover, I want to do it to the point of being able to choose single lines. At the moment I am merging two branches. However, if possible, I'd like to know how to perform this task even when merging multiple branches. ...