You can count that using the following commands
roboos@mentat055> cat /home/common/matlab/fieldtrip/*.m | grep -v ' *%' | grep -v '^ *$' | wc -l
18387 roboos@mentat055> cat /home/common/matlab/fieldtrip/private/*.m | grep -v ' *%' | grep -v '^ *$' | wc -l 25060
So the answer is approximately 43000 lines of code, excluding comments and empty lines.
Update: I don't know when this estimate was obtained, but judging by the name “mentat055” it must have been long ago. The computer name refers to a linux node in our compute cluster and I think it was part of our cluster in 2005 or 2006.
In October 2010 FieldTrip approximately consists of 130000 lines of code.
roboos@mentat240> cat `find . -name \*.m` | grep -v ' *%' | grep -v '^ *$' | wc -l 128059
Share this page: