Questions tagged [lines-of-code]

The number of code lines. Can be used as a metric.

The number of code lines. Generally, a set of metrics are placed to estimate the quality of coding. lines-of-code is one of the metrics used to determine for example if a class is too long or too short. This metric is not an accurate one and is most of the time used with other metrics such as the number of methods, number of static fields, etc.

170 questions
-1
votes
1 answer

How to shift all the values from a certain point of the dataframe to the right?

Example: I have this dataset A B C D E 0 0.1 0.2 0.3 0.4 0.5 1 1.1 1.2 1.3 1.4 1.5 2 2.1 2.2 2.4 2.5 2.6 3 3.1 3.2 3.4 3.5 3.6 4 4.1 4.2 4.4 4.5 4.6 5 5.1 …
TF7
  • 1
  • 1
-1
votes
1 answer

Does LOC includes header files line count

Does code metric tool of Microsoft visual studio 2010 counts the line of codes in header files included in the project.
Anuj Priyadarshi
  • 347
  • 4
  • 16
-1
votes
1 answer

Using Bash to Count Lines of Code That I Have Written

I know that this script: find . -name '*' | xargs wc -l will count all the lines of code recursively in a directory, however since I am using plugins, the script will count those too. I just want to be able to count the lines of code that I have…
mnm
  • 101
  • 11
-2
votes
1 answer

How to count the lines of code of multiple files in a directory?

I have 10 Java test case files saved in a directory. The folder structure looks like this, Test Folder test1.java test2.java . . etc. In each of these files, there are different Java Unit Test Cases. For example, test1.java looks like this,…
coder
  • 203
  • 5
  • 15
-6
votes
1 answer

Automatic detection of indented blocks for Python code

This would be fairly easy in Java since there are curly braces that are required for beginning and ending that code block and so I could write a program to look for the curly braces and label each function. The problem I'm having with Python is…
1 2 3
11
12