Some FreeCAD development stats

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
fosselius
Posts: 381
Joined: Sat Apr 23, 2016 10:03 am
Contact:

Re: Some FreeCAD development stats

Post by fosselius »

What! FEM is not no1 ? every day when i pull and build it feels like its all FEM FEM FEM bugfix FEM FEM..
Do not misinterprit this as anything bad, commits are good, more commits are better, but i was suprised that Fem was not the most active area as there is a lot of things going on there now.
Nice new splashscreen BTW :D
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Some FreeCAD development stats

Post by NormandC »

fosselius wrote:What! FEM is not no1 ? every day when i pull and build it feels like its all FEM FEM FEM bugfix FEM FEM..
TechDraw was first just because the whole branch, almost 2 years of commits was merged all at once. Rest assured, FEM will take back its throne in the next stats...
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Some FreeCAD development stats

Post by bernd »

fosselius wrote:What! FEM is not no1 ? every day when i pull and build it feels like its all FEM FEM FEM bugfix FEM FEM..
YEAH, and it's going on https://github.com/berndhahnebach/FreeC ... its/femdev :D :D

I must admit I'm a clean commit history freak. Przemo is a clean commit history freakfreakfreak :mrgreen: I learnt a lot from him. That is one of the reasons why FEM has much more commit count than other modules.
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Some FreeCAD development stats

Post by PrzemoF »

bernd wrote:
fosselius wrote:What! FEM is not no1 ? every day when i pull and build it feels like its all FEM FEM FEM bugfix FEM FEM..
YEAH, and it's going on https://github.com/berndhahnebach/FreeC ... its/femdev :D :D

I must admit I'm a clean commit history freak. Przemo is a clean commit history freakfreakfreak :mrgreen: I learnt a lot from him. That is one of the reasons why FEM has much more commit count than other modules.
Yes, I'm. :D If we ever need to do git bisect in FEM it will be a piece of cake. Try it with huge commits :D

I might try to generate stats with +/- number of lines
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Some FreeCAD development stats

Post by PrzemoF »

Code: Select all

[przemo@localhost freecad]$ cat stats.sh
#!/bin/bash

MODS=$(find src/Mod/ -maxdepth 1 -type d)
>stats
for MOD in $MODS
do
	echo -n $MOD >> stats
	git log --numstat --pretty="%H" --since "3 months" $MOD | awk 'NF==3 {plus+=$1; minus+=$2} END {printf(" +%d, -%d\n", plus, minus)}' >> stats
done
cat stats | sort -k2 -t+ -n -r | column -t
[przemo@localhost freecad]$ ./stats.sh 
src/Mod/                    +141736,  -37372
src/Mod/TechDraw            +93398,   -25816
src/Mod/Fem                 +17866,   -4430
src/Mod/Mesh                +7431,    -903
src/Mod/Part                +7218,    -1641
src/Mod/Arch                +6694,    -1734
src/Mod/Draft               +3367,    -521
src/Mod/Path                +1863,    -965
src/Mod/Measure             +1190,    -58
src/Mod/PartDesign          +971,     -564
src/Mod/Sketcher            +548,     -408
src/Mod/Spreadsheet         +466,     -5
src/Mod/MeshPart            +320,     -41
src/Mod/Robot               +125,     -113
src/Mod/Test                +64,      -25
src/Mod/Sandbox             +46,      -1
src/Mod/Drawing             +40,      -26
src/Mod/Inspection          +35,      -27
src/Mod/Points              +27,      -19
src/Mod/ReverseEngineering  +23,      -19
src/Mod/Raytracing          +23,      -29
src/Mod/Material            +14,      -25
src/Mod/Web                 +1,       -2
src/Mod/Image               +1,       -0
src/Mod/TemplatePyMod       +0,       -0
src/Mod/Start               +0,       -0
src/Mod/Show                +0,       -0
src/Mod/Ship                +0,       -0
src/Mod/Plot                +0,       -0
src/Mod/OpenSCAD            +0,       -0
src/Mod/JtReader            +0,       -0
src/Mod/Import              +0,       -0
src/Mod/Idf                 +0,       -0
src/Mod/Complete            +0,       -0
src/Mod/Cam                 +0,       -0
src/Mod/Assembly            +0,       -0
[przemo@localhost freecad]$ 
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Some FreeCAD development stats

Post by PrzemoF »

Last 3 months per commits:

Code: Select all

$ find src/Mod/ -maxdepth 1 -type d | xargs -I [] sh -c "echo -n []: && git log --oneline --since '3 months' [] | wc -l" | sort -k2 -n -t: -r
src/Mod/:607
src/Mod/Fem:127
src/Mod/Part:97
src/Mod/Path:92
src/Mod/TechDraw:83
src/Mod/Arch:64
src/Mod/Sketcher:45
src/Mod/PartDesign:39
src/Mod/Draft:36
src/Mod/Mesh:15
src/Mod/MeshPart:13
src/Mod/Test:8
src/Mod/OpenSCAD:7
src/Mod/Robot:5
src/Mod/Points:5
src/Mod/Spreadsheet:4
src/Mod/Show:4
src/Mod/ReverseEngineering:4
src/Mod/Raytracing:4
src/Mod/Measure:4
src/Mod/Inspection:4
src/Mod/Image:4
src/Mod/Drawing:4
src/Mod/Web:3
src/Mod/Sandbox:3
src/Mod/Import:3
src/Mod/Start:2
src/Mod/Ship:2
src/Mod/Material:2
src/Mod/Plot:1
src/Mod/JtReader:1
src/Mod/Idf:1
src/Mod/Complete:1
src/Mod/TemplatePyMod:0
src/Mod/Cam:0
src/Mod/Assembly:0
and per lines:

Code: Select all

$ ./stats.sh 
src/Mod/                    +80428,  -26818
src/Mod/Part                +18593,  -5182
src/Mod/Path                +18113,  -5636
src/Mod/TechDraw            +16522,  -6337
src/Mod/Fem                 +10570,  -3127
src/Mod/Arch                +7022,   -2585
src/Mod/Sketcher            +5215,   -1085
src/Mod/Mesh                +1158,   -821
src/Mod/PartDesign          +1097,   -969
src/Mod/Draft               +995,    -580
src/Mod/MeshPart            +335,    -45
src/Mod/Robot               +113,    -117
src/Mod/OpenSCAD            +90,     -44
src/Mod/Test                +80,     -6
src/Mod/Drawing             +78,     -66
src/Mod/Show                +70,     -3
src/Mod/Sandbox             +60,     -57
src/Mod/Points              +46,     -29
src/Mod/Spreadsheet         +43,     -12
src/Mod/Measure             +38,     -12
src/Mod/Inspection          +34,     -32
src/Mod/ReverseEngineering  +27,     -23
src/Mod/Image               +25,     -7
src/Mod/Raytracing          +21,     -13
src/Mod/Web                 +16,     -3
src/Mod/Import              +11,     -8
src/Mod/Start               +7,      -4
src/Mod/JtReader            +7,      -7
src/Mod/Material            +6,      -1
src/Mod/Ship                +4,      -2
src/Mod/Plot                +3,      -1
src/Mod/Idf                 +2,      -0
src/Mod/Complete            +1,      -1
src/Mod/TemplatePyMod       +0,      -0
src/Mod/Cam                 +0,      -0
src/Mod/Assembly            +0,      -0
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Some FreeCAD development stats

Post by sgrogan »

PrzemoF wrote:Last 3 months per commits:
@PrzemoF
Can you generate these stats from the 0.16 release? I want to add some thing to the FreeCAD 0.17_pre release github page. The amount of development is amazing.
What is after 0.17.9999?
"fight the good fight"
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Some FreeCAD development stats

Post by triplus »

sgrogan wrote:What is after 0.17.9999?
:lol:
User avatar
jnxd
Posts: 951
Joined: Mon Mar 30, 2015 2:30 pm
Contact:

Re: Some FreeCAD development stats

Post by jnxd »

sgrogan wrote: What is after 0.17.9999?
umm, 0.17.10000? isn't that just referring to the commit no. on master?
My latest (or last) project: B-spline Construction Project.
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Some FreeCAD development stats

Post by Jee-Bee »

jnxd wrote:
sgrogan wrote: What is after 0.17.9999?
umm, 0.17.10000? isn't that just referring to the commit no. on master?
0.18.10000
Post Reply