Questions tagged [code-statistics]

This tag is about statistics concerning the code itself. Questions about about a metric that is reported by static code analysis tools should use this tag. If your question is about the implementation of a statistical problem use the statistics tag instead of this tag.

27 questions
102
votes
12 answers

Which Git commit stats are easy to pull

Previously I have enjoyed TortoiseSvn's ability to generate simple commit stats for a given SVN repository. I wonder what is available in Git and am particularly interested in : Number of commits per user Number of lines changed per user activity…
Jesper Rønn-Jensen
  • 106,591
  • 44
  • 118
  • 155
20
votes
1 answer

How can I use gitstats to find out how many SLOC a Git repo has in total and per commiter?

I just installed GitStats, and I'm at that point where I have to say, "Now, what?". I see examples on the site of user lines of code, etc., but no examples of how to get simple stats like that. I don't need a chart or anything. I just want to be…
orokusaki
  • 55,146
  • 59
  • 179
  • 257
11
votes
2 answers

What tools or techniques are available to "datamine" my mercurial repository?

We have a 2,000,000 lines of code application in Mercurial. Obviously there is a lot of valuable information inside this repository. Are there any tools or techniques to dig out some of that information? For instance, over the history of the…
Nick Hodges
  • 16,902
  • 11
  • 68
  • 130
6
votes
1 answer

Track changes in code over time

I would like to collect some statistics of the code that we have in our TFS installation to be able to see how some aspects of the code changes over time. Basically I'd like to see if we learn something from the lessons about Clean Code and…
Roland
  • 5,328
  • 10
  • 37
  • 55
4
votes
1 answer

Maven plugin for gathering source code statistics

Our project is based on J2EE and we would like to know if there is a open source maven-plugin which either integrates with cloc (Refer How can I measure source code statistics?) or other tools?
Joe
  • 14,513
  • 28
  • 82
  • 144
4
votes
1 answer

Automation for Generating Reports

We are using Stata to combine and analyze data for all of our agencies in a district each month. I'd like to somehow create reports of the data analysis automatically for these monthly reports. The report includes a summary table of the reported…
3
votes
2 answers

Calculate weighted statistical moments in Python

I've been looking for a function or package that would allow me to calculate the skew and kurtosis of a distribution in a weighted way, as I have histogram data. For instance I have the data import numpy as np np.array([[1, 2], [2, 5], …
hex93
  • 319
  • 3
  • 15
3
votes
3 answers

How do I extract a specific function from a C/C++ source code file for subsequent processing

I am looking for an easy way to print out a specific function from within some C/C++ source code. For example, assume that test.c has several functions defined within it. I want to be able to print out the source code associated with only one of…
elsaturnino
3
votes
5 answers

What free, low-overhead (statistical) profilers one can use under Linux?

Preferably from Ubuntu repositories.
Łukasz Lew
  • 48,526
  • 41
  • 139
  • 208
3
votes
2 answers

Scan Git Repository for Statistics

How can I get some sort of statistics of my Git repository? I am currently hosting the Git repository in BitBucket and wanted to find the following details: Total number of commits Used Programming Languages Lines of code in total for each…
Jordan
  • 327
  • 8
  • 23
3
votes
1 answer

How to get changes statistics per day in Git

What I want is something like this: 2014-12-01, 4 files changed, 244 insertions(+), 58 deletions(-) 2014-12-02, 100 files changed, 3770 insertions(+), 1230 deletions(-) 2014-12-05, 17 files changed, 803 insertions(+), 506…
Kokizzu
  • 24,974
  • 37
  • 137
  • 233
3
votes
1 answer

How to determine the number of lines of code in each file after each commit in a git repo

I need to determine the number of lines in each file after each commit of a git repo. How do I do this? I've looked at gitstats and git-loc, but both seem to calculate aggregate statistics, and I'm not sure how to adapt their code to my needs.
Matt Fenwick
  • 48,199
  • 22
  • 128
  • 192
2
votes
1 answer

How do you find out release, mailing list statistics information on open source projects

We are interested in finding out some statistics of various frameworks Mailing list activity on say richfaces. Much similar to what is available on http://code.google.com (Low, Medium, High) + average number of emails per day | per month. Number…
Sam
  • 8,387
  • 19
  • 62
  • 97
2
votes
1 answer

Project summary - Source code lines

I'm looking for a tool that would count the number of files, the number of lines (with or without comments) and possibly other statistics for my project in PHP and JavaScript. Notes: I've already found SLOCCount which seems quite nice. It requires…
MartyIX
  • 27,828
  • 29
  • 136
  • 207
2
votes
1 answer

How is SLOC counted by Delphi IDE?

You see pretty often here people saying that they have a x million of lines of code project. How is this measured? Is this number, the number shown under 'Information' menu? The manual says that only the compilable lines are counted (so, without…
Gabriel
  • 20,797
  • 27
  • 159
  • 293
1
2