ohcount
14 years ago[CHANGE] complete last commit, add second necessary test
Andy Verprauskus [Sun, 21 Jun 2009 16:03:52 +0000 (09:03 -0700)] 
[CHANGE] complete last commit, add second necessary test

14 years ago[NEW] add tests (currently broken) for source_file_list
Andy Verprauskus [Sat, 20 Jun 2009 06:56:16 +0000 (23:56 -0700)] 
[NEW] add tests (currently broken) for source_file_list

14 years ago[FIX] temp fix for missing language in language_percents
Andy Verprauskus [Fri, 19 Jun 2009 22:20:47 +0000 (15:20 -0700)] 
[FIX] temp fix for missing language in language_percents

14 years ago[CHANGE] change src/diff.c for mitchell
Andy Verprauskus [Fri, 19 Jun 2009 22:19:08 +0000 (15:19 -0700)] 
[CHANGE] change src/diff.c for mitchell

14 years agoEdited build to build on Mac OSX.
mitchell [Thu, 11 Jun 2009 12:11:46 +0000 (05:11 -0700)] 
Edited build to build on Mac OSX.

14 years agoFixed build regexen to compile on Mac OSX.
mitchell [Wed, 10 Jun 2009 11:47:11 +0000 (04:47 -0700)] 
Fixed build regexen to compile on Mac OSX.

14 years agoMerge branch 'master' of git@github.com:andyverprauskus/ohcount
Andy Verprauskus [Fri, 5 Jun 2009 15:37:35 +0000 (08:37 -0700)] 
Merge branch 'master' of git@github.com:andyverprauskus/ohcount

14 years ago[FIX] make src/parsers/compile work on MACOS
Andy Verprauskus [Fri, 5 Jun 2009 15:37:13 +0000 (08:37 -0700)] 
[FIX] make src/parsers/compile work on MACOS

14 years ago[FIX] force build to use bash instead of default shell, makes build work on ubuntu
andy verprauskus [Mon, 1 Jun 2009 19:53:12 +0000 (12:53 -0700)] 
[FIX] force build to use bash instead of default shell, makes build work on ubuntu

14 years agoSince directories are added to SourceFileLists, don't mistake as extensions.
mitchell [Wed, 27 May 2009 01:43:05 +0000 (21:43 -0400)] 
Since directories are added to SourceFileLists, don't mistake as extensions.

14 years agoUpdated test/unit/sourcefile_test.h for completeness.
mitchell [Sun, 24 May 2009 19:18:43 +0000 (15:18 -0400)] 
Updated test/unit/sourcefile_test.h for completeness.

14 years agoAdded documentation to src/ohcount.h noting gestalts require Ruby extension.
mitchell [Sun, 24 May 2009 18:50:16 +0000 (14:50 -0400)] 
Added documentation to src/ohcount.h noting gestalts require Ruby extension.

14 years agoRemoved gestalt options from C ohcount (use ruby/gestalt.rb).
mitchell [Sun, 24 May 2009 18:41:12 +0000 (14:41 -0400)] 
Removed gestalt options from C ohcount (use ruby/gestalt.rb).

14 years agoFixed license detection for source files with no parsed languages.
mitchell [Sun, 24 May 2009 18:39:15 +0000 (14:39 -0400)] 
Fixed license detection for source files with no parsed languages.

14 years agoChanged build to use platform-specific Ruby include directory via mkmf.
mitchell [Sun, 24 May 2009 16:24:24 +0000 (12:24 -0400)] 
Changed build to use platform-specific Ruby include directory via mkmf.

14 years agoruby/gestalt.rb will print gestalts if it is run.
mitchell [Sun, 24 May 2009 15:59:45 +0000 (11:59 -0400)] 
ruby/gestalt.rb will print gestalts if it is run.

14 years agoRemove ruby/ohcount.so in build clean.
mitchell [Sun, 24 May 2009 14:56:57 +0000 (10:56 -0400)] 
Remove ruby/ohcount.so in build clean.

14 years agoAdded gestalt_test.rb helper and run it on build of Ruby extension.
mitchell [Sun, 24 May 2009 14:55:05 +0000 (10:55 -0400)] 
Added gestalt_test.rb helper and run it on build of Ruby extension.

14 years agoForgot to delete hash/*.h files in build.
mitchell [Sun, 24 May 2009 05:10:00 +0000 (01:10 -0400)] 
Forgot to delete hash/*.h files in build.

14 years agoAdded documentation for compiling Ruby extension; src/ohcount.h
mitchell [Sun, 24 May 2009 05:07:04 +0000 (01:07 -0400)] 
Added documentation for compiling Ruby extension; src/ohcount.h

14 years agoAdded gestalts.
mitchell [Sun, 24 May 2009 04:59:03 +0000 (00:59 -0400)] 
Added gestalts.

14 years agoRemoved hash header include guards; they're unnecessary.
mitchell [Sun, 24 May 2009 04:56:53 +0000 (00:56 -0400)] 
Removed hash header include guards; they're unnecessary.

14 years agoAdded Ruby interface.
mitchell [Sun, 24 May 2009 04:56:18 +0000 (00:56 -0400)] 
Added Ruby interface.

14 years agoRenamed ParsedLanguage->language to ParsedLanguage->name.
mitchell [Sat, 23 May 2009 22:41:08 +0000 (18:41 -0400)] 
Renamed ParsedLanguage->language to ParsedLanguage->name.

14 years agoAdded extra Doxygen doc; src/sourcefile.c
mitchell [Sat, 23 May 2009 19:09:39 +0000 (15:09 -0400)] 
Added extra Doxygen doc; src/sourcefile.c

14 years agoChanged BINARY from NULL to "\1" for faster binary file detection.
mitchell [Sat, 23 May 2009 19:08:58 +0000 (15:08 -0400)] 
Changed BINARY from NULL to "\1" for faster binary file detection.

14 years agoAdded #include guards for src/hash/ headers.
mitchell [Fri, 22 May 2009 22:30:04 +0000 (18:30 -0400)] 
Added #include guards for src/hash/ headers.

14 years agoAdd option to build file to build Ohcount as shared library.
mitchell [Wed, 20 May 2009 19:51:13 +0000 (15:51 -0400)] 
Add option to build file to build Ohcount as shared library.

14 years agoUse diskpath field if necessary for getting file contents; src/sourcefile.c
mitchell [Mon, 18 May 2009 21:09:49 +0000 (17:09 -0400)] 
Use diskpath field if necessary for getting file contents; src/sourcefile.c

14 years agoParsing SourceFileLists in src/sourcefile.c is much more memory efficient.
mitchell [Mon, 18 May 2009 20:43:03 +0000 (16:43 -0400)] 
Parsing SourceFileLists in src/sourcefile.c is much more memory efficient.

14 years agoAdded doc/html and bin/ to .gitignore.
mitchell [Sun, 17 May 2009 22:54:13 +0000 (18:54 -0400)] 
Added doc/html and bin/ to .gitignore.

14 years agoReduced calling of 'strlen' in loops for speed in src/detector.c.
mitchell [Sun, 17 May 2009 21:50:04 +0000 (17:50 -0400)] 
Reduced calling of 'strlen' in loops for speed in src/detector.c.

14 years agoModified build file to create 'bin/' directory if it does not exist.
mitchell [Sun, 17 May 2009 18:42:21 +0000 (14:42 -0400)] 
Modified build file to create 'bin/' directory if it does not exist.

14 years agoAdded Ohcount's output build files to .gitignore.
mitchell [Sun, 17 May 2009 18:40:13 +0000 (14:40 -0400)] 
Added Ohcount's output build files to .gitignore.

14 years agoFixed build script to generate headers when none are present.
mitchell [Sun, 17 May 2009 18:39:38 +0000 (14:39 -0400)] 
Fixed build script to generate headers when none are present.

14 years agoRemoved all Ruby parts of Ohcount.
mitchell [Sun, 17 May 2009 18:34:29 +0000 (14:34 -0400)] 
Removed all Ruby parts of Ohcount.

14 years agoModified .gitignore to not ignore doc/ directory.
mitchell [Sun, 17 May 2009 18:31:07 +0000 (14:31 -0400)] 
Modified .gitignore to not ignore doc/ directory.

14 years agoInitial import of files for generating Doxygen documentation.
mitchell [Sun, 17 May 2009 18:29:03 +0000 (14:29 -0400)] 
Initial import of files for generating Doxygen documentation.

14 years agoInitial import of build script.
mitchell [Sun, 17 May 2009 18:25:14 +0000 (14:25 -0400)] 
Initial import of build script.

14 years agoModified existing test/expected_licenses for C code.
mitchell [Sun, 17 May 2009 18:24:42 +0000 (14:24 -0400)] 
Modified existing test/expected_licenses for C code.

14 years agoInitial import of C tests.
mitchell [Sun, 17 May 2009 18:21:20 +0000 (14:21 -0400)] 
Initial import of C tests.

14 years agoInitial import of C source code.
mitchell [Sun, 17 May 2009 18:15:44 +0000 (14:15 -0400)] 
Initial import of C source code.

15 years ago[NEW] More disambiguation cleanup to support Limbo
Robin Luckey [Fri, 8 May 2009 01:12:47 +0000 (18:12 -0700)] 
[NEW] More disambiguation cleanup to support Limbo

15 years agoMerge branch 'limbo'
Robin Luckey [Fri, 8 May 2009 01:02:12 +0000 (18:02 -0700)] 
Merge branch 'limbo'

Conflicts:
test/unit/detector_test.rb

15 years agoand add the modified files too...
Mechiel Lukkien [Tue, 21 Apr 2009 12:15:36 +0000 (14:15 +0200)] 
and add the modified files too...

15 years agoadd support for Limbo.
Mechiel Lukkien [Tue, 21 Apr 2009 12:07:51 +0000 (14:07 +0200)] 
add support for Limbo.

it adds a parser, adjusts the detector (there is now extension clash
between matlab/limbo/objective c, and another for for limbo/basic).
there are also sample limbo files (in public domain) and a test.
all tests pass with this.

it has been tested on a large body of limbo code (mixed with C,
makefile, shell, awk):

http://code.google.com/p/inferno-os/

more info on Limbo:

http://www.vitanuova.com/inferno/papers/limbo.html

15 years ago[FIX] Clean up the mess in Objective-C/Matlab/Octave disambiguation. Fixes Ticket...
Robin Luckey [Fri, 8 May 2009 00:34:12 +0000 (17:34 -0700)] 
[FIX] Clean up the mess in Objective-C/Matlab/Octave disambiguation. Fixes Ticket 299.

15 years agoUnit test cmake parser.
James Webber [Tue, 21 Apr 2009 10:09:42 +0000 (11:09 +0100)] 
Unit test cmake parser.

15 years agoAdd CMake parser.
James Webber [Tue, 21 Apr 2009 10:09:23 +0000 (11:09 +0100)] 
Add CMake parser.

15 years agoTest detection mappings for cmake.
James Webber [Tue, 21 Apr 2009 07:47:15 +0000 (08:47 +0100)] 
Test detection mappings for cmake.

15 years agoDetect *.cmake, CMakeLists.txt as cmake script.
James Webber [Tue, 21 Apr 2009 07:46:30 +0000 (08:46 +0100)] 
Detect *.cmake, CMakeLists.txt as cmake script.

15 years agoOutput of file -b for xml can contain two spaces and no version.
James Webber [Tue, 21 Apr 2009 07:09:41 +0000 (08:09 +0100)] 
Output of file -b for xml can contain two spaces and no version.

15 years ago[NEW] Boost license detection
unwesen [Thu, 7 May 2009 23:12:45 +0000 (16:12 -0700)] 
[NEW] Boost license detection

15 years ago[NEW] Test file for z80
Robin Luckey [Thu, 7 May 2009 23:10:52 +0000 (16:10 -0700)] 
[NEW] Test file for z80

15 years ago[NEW] .z80 files now detected as assembler
Robin Luckey [Thu, 7 May 2009 23:04:18 +0000 (16:04 -0700)] 
[NEW] .z80 files now detected as assembler

15 years ago[FIX] Clean up the alphabetic sort on the language extensions map
Robin Luckey [Thu, 7 May 2009 23:02:16 +0000 (16:02 -0700)] 
[FIX] Clean up the alphabetic sort on the language extensions map

15 years ago[FIX] Remove unnecessary i9 file
Robin Luckey [Thu, 7 May 2009 22:53:16 +0000 (15:53 -0700)] 
[FIX] Remove unnecessary i9 file

15 years agoMerge git://github.com/vmlemon/ohcount into vmlemon
Robin Luckey [Thu, 7 May 2009 22:50:05 +0000 (15:50 -0700)] 
Merge git://github.com/vmlemon/ohcount into vmlemon

15 years ago[CHANGE] Change the default sort order of gestalts: type, counts desc, name
Robin Luckey [Thu, 7 May 2009 22:44:58 +0000 (15:44 -0700)] 
[CHANGE] Change the default sort order of gestalts: type, counts desc, name
[CHANGE] bin/ohcount -g outputs bare gestalt records on each line for easier scripting

15 years ago[FIX] BlitzMax entry in the language map was incorrect.
Robin Luckey [Thu, 7 May 2009 21:43:26 +0000 (14:43 -0700)] 
[FIX] BlitzMax entry in the language map was incorrect.
      Should have been listed by *name*, not by its *extension*.

15 years ago[CHANGE] Gestalt redesign.
jason [Thu, 7 May 2009 21:23:20 +0000 (14:23 -0700)] 
[CHANGE] Gestalt redesign.

15 years agoReally, really add the test cases this time. I hate Git. :(
Tyson Key [Thu, 16 Apr 2009 18:40:09 +0000 (19:40 +0100)] 
Really, really add the test cases this time. I hate Git. :(

15 years agoSync the tree. Hopefully adding the i9 License changes works this time.
Tyson Key [Thu, 16 Apr 2009 18:15:12 +0000 (19:15 +0100)] 
Sync the tree. Hopefully adding the i9 License changes works this time.

15 years agoAdd a sample file containing the i9 License header
Tyson Key [Thu, 16 Apr 2009 18:11:30 +0000 (19:11 +0100)] 
Add a sample file containing the i9 License header

15 years agoUpdate license_map.rb to add i9 License
Tyson Key [Thu, 16 Apr 2009 18:07:16 +0000 (19:07 +0100)] 
Update license_map.rb to add i9 License

15 years ago[FIX] Cleanup the progress reporting for bin/ohcount -g
Robin Luckey [Tue, 14 Apr 2009 18:30:13 +0000 (11:30 -0700)] 
[FIX] Cleanup the progress reporting for bin/ohcount -g

15 years agoMerge branch 'glassfish'
Robin Luckey [Tue, 14 Apr 2009 00:32:29 +0000 (17:32 -0700)] 
Merge branch 'glassfish'

15 years ago[FIX] Names of some platforms and tools have changed
Robin Luckey [Tue, 14 Apr 2009 00:32:02 +0000 (17:32 -0700)] 
[FIX] Names of some platforms and tools have changed

15 years agoTest for cecill license
Sylvestre Ledru [Tue, 7 Apr 2009 18:15:55 +0000 (20:15 +0200)] 
Test for cecill license

15 years agoHandle cecill licenses
Sylvestre Ledru [Tue, 7 Apr 2009 18:11:29 +0000 (20:11 +0200)] 
Handle cecill licenses

15 years agoScilab added
Sylvestre Ledru [Tue, 7 Apr 2009 20:16:15 +0000 (22:16 +0200)] 
Scilab added

15 years agoManage Scilab language
Sylvestre Ledru [Tue, 7 Apr 2009 18:11:11 +0000 (20:11 +0200)] 
Manage Scilab language

15 years ago[NEW] New platforms for detecting various Java application servers
Robin Luckey [Thu, 26 Mar 2009 23:39:38 +0000 (16:39 -0700)] 
[NEW] New platforms for detecting various Java application servers

15 years ago[FIX] Parse diff output ourselves instead of computing it twice
Benjamin Kramer [Sat, 21 Mar 2009 15:10:20 +0000 (16:10 +0100)] 
[FIX] Parse diff output ourselves instead of computing it twice

15 years ago[FIX] Alternate diff implementation for very large files.
Robin Luckey [Fri, 20 Mar 2009 15:31:15 +0000 (08:31 -0700)] 
[FIX] Alternate diff implementation for very large files.

      Our in-memory split and call to LCS::Diff could take literally days
to complete for large files.

      We now put the buffers into temp files, and shell out to the console
      to let the `diff` program handle it whenever a buffer exceeds 100K.

15 years agoCheck contents of .st files actually looks like Smalltalk.
Olly Betts [Mon, 9 Mar 2009 04:18:56 +0000 (17:18 +1300)] 
Check contents of .st files actually looks like Smalltalk.

15 years ago[FIX] BSD license detection was completely fubar. Many fixes:
Robin Luckey [Tue, 10 Mar 2009 19:11:23 +0000 (12:11 -0700)] 
[FIX] BSD license detection was completely fubar. Many fixes:

      1. If we match both 2-clause and 3-clause, choose 3-clause.
         Previously, we were doing the reverse.

      2. Test case test/src_licenses/bsd_2clause_ish_t2 was obviously
         a 3-clause license but the test was checking for 2-clause.
         This has been changed.

      Note that the online descriptions of the various BSD licenses
      on Ohloh have been edited by the community and now do not match
      the definitions used in Ohcount. This will have to be fixed.

15 years ago[FIX] Removing trailing whitespace through regex is far too slow. Use strip().
Robin Luckey [Tue, 10 Mar 2009 16:41:48 +0000 (09:41 -0700)] 
[FIX] Removing trailing whitespace through regex is far too slow. Use strip().

15 years ago[FIX] License detection didn't work in cases with trailing whitespace
Robin Luckey [Mon, 9 Mar 2009 17:33:17 +0000 (10:33 -0700)] 
[FIX] License detection didn't work in cases with trailing whitespace

15 years agoAdd parsing support for GNU Octave.
Jason Riedy [Mon, 2 Mar 2009 22:38:33 +0000 (17:38 -0500)] 
Add parsing support for GNU Octave.

This likely should use the Matlab(TM) parser machine, but I'm not
skilled enough with Ragel.  This parser also allows Matlab(TM)'s block
comments, although those are not currently supported by GNU Octave.

It'd be nice to separate documentation comment blocks and test comment
blocks, but not necessary yet.

Signed-off-by: Jason Riedy <jason@acm.org>
15 years agoPARSER_DOC should mention that ragel_parsers.c must be modified.
Jason Riedy [Mon, 2 Mar 2009 22:36:40 +0000 (17:36 -0500)] 
PARSER_DOC should mention that ragel_parsers.c must be modified.

Adding new parsers is not entirely automatic.

Signed-off-by: Jason Riedy <jason@acm.org>
15 years agoA few Matlab(TM) parser modifications.
Jason Riedy [Mon, 2 Mar 2009 22:35:57 +0000 (17:35 -0500)] 
A few Matlab(TM) parser modifications.

There is a very old style of commenting that hides the comment beyond
the line continuation sequence '...'.  Also, the next patch adds an
GNU Octave-specific parser, so remove GNU Octave features.  The double
quotes are not detected by the detector, so keep those.

Signed-off-by: Jason Riedy <jason@acm.org>
15 years agoDifferentiate between Matlab(TM) and GNU Octave in the detector.
Jason Riedy [Mon, 2 Mar 2009 22:02:56 +0000 (17:02 -0500)] 
Differentiate between Matlab(TM) and GNU Octave in the detector.

GNU Octave is a sufficiently different language that it's work checking
directly.  Also, GNU Octave files may not run in Matlab; GNU Octave
extends the syntax.  One caveat is that the detector does not detect
use of GNU Octave's doubly quoted strings, "foo".  Some files may be
mis-identified if "foo" is the only Octave-ism.

Signed-off-by: Jason Riedy <jason@acm.org>
15 years ago[NEW] LocDeltaList + LocDeltaList => LocDeltaList
Robin Luckey [Wed, 25 Feb 2009 22:17:05 +0000 (14:17 -0800)] 
[NEW] LocDeltaList + LocDeltaList => LocDeltaList

15 years agoMerge branch 'master' of git://github.com/d0k/ohcount
Robin Luckey [Mon, 23 Feb 2009 16:33:19 +0000 (08:33 -0800)] 
Merge branch 'master' of git://github.com/d0k/ohcount

15 years ago[FIX] license listing failed due to missing namespace
Benjamin Kramer [Sat, 21 Feb 2009 14:03:56 +0000 (15:03 +0100)] 
[FIX] license listing failed due to missing namespace

15 years ago[NEW] Version 2.0.1 - Internal support for LOC delta between two source files 2.0.1
Robin Luckey [Thu, 19 Feb 2009 23:06:39 +0000 (15:06 -0800)] 
[NEW] Version 2.0.1 - Internal support for LOC delta between two source files

15 years agoMerge branch 'master' of congo:dev/ohcount
Robin Luckey [Thu, 19 Feb 2009 23:02:48 +0000 (15:02 -0800)] 
Merge branch 'master' of congo:dev/ohcount

15 years ago[NEW] Implement LocList += LocDelta and LocList += LocDeltaList
Robin Luckey [Wed, 18 Feb 2009 23:44:36 +0000 (15:44 -0800)] 
[NEW] Implement LocList += LocDelta and LocList += LocDeltaList
      This lets us use LocList to keep a running total of LocDeltas

15 years ago[FIX] Many fixes to GemSpec:
Robin Luckey [Sat, 31 Jan 2009 16:03:22 +0000 (08:03 -0800)] 
[FIX] Many fixes to GemSpec:
       - Now includes all files (was missing rules.rb, platforms.rb)
       - RDoc now builds properly (no missing README warnings, no
         duplicated files)
       - Removed the [always misplaced] /rules folder and put its
         contents into the /lib/gestalt folder.

15 years ago[FIX] Improvements to the build process:
Robin Luckey [Sat, 31 Jan 2009 14:32:21 +0000 (06:32 -0800)] 
[FIX] Improvements to the build process:
         - accurate dependencies, for more reliable, efficient builds
         - ragel output files are kept in ragel_parsers directory
         - Rakefile cleanups

15 years ago[NEW] Add support for "Nix".
Nicolas Pierron [Tue, 27 Jan 2009 00:22:05 +0000 (01:22 +0100)] 
[NEW] Add support for "Nix".

15 years agoDon't fail the "perl -w" detector test on my openSUSE 11 box.
Michael Adam [Fri, 30 Jan 2009 21:23:16 +0000 (22:23 +0100)] 
Don't fail the "perl -w" detector test on my openSUSE 11 box.

This system's file returns "script text for ..." instead
of "script text executable for ..."

Michael

15 years ago[CHANGE] Some corrections to old comments.
Robin Luckey [Thu, 29 Jan 2009 02:43:18 +0000 (18:43 -0800)] 
[CHANGE] Some corrections to old comments.

15 years ago[CHANGE] Clean up source_file.rb -- remove the clone_and_rename() method
Robin Luckey [Thu, 29 Jan 2009 02:15:50 +0000 (18:15 -0800)] 
[CHANGE] Clean up source_file.rb -- remove the clone_and_rename() method

15 years ago[FIX] No one really uses it, but clean up and test Language class
Robin Luckey [Thu, 29 Jan 2009 01:50:39 +0000 (17:50 -0800)] 
[FIX] No one really uses it, but clean up and test Language class

15 years ago[CHANGE] Move more of Ohcount to the new Loc classes. Remove LanguageFacts class.
Robin Luckey [Thu, 29 Jan 2009 01:14:52 +0000 (17:14 -0800)] 
[CHANGE] Move more of Ohcount to the new Loc classes. Remove LanguageFacts class.

15 years ago[CHANGE] Begin moving Ohcount accross to new Loc classes. Rake passes. Removed SlocIn...
Robin Luckey [Thu, 29 Jan 2009 00:11:29 +0000 (16:11 -0800)] 
[CHANGE] Begin moving Ohcount accross to new Loc classes. Rake passes. Removed SlocInfo class.

15 years ago[FIX] Unneccessarily diff'ing every file twice.
Robin Luckey [Wed, 28 Jan 2009 22:53:50 +0000 (14:53 -0800)] 
[FIX] Unneccessarily diff'ing every file twice.

15 years ago[NEW] General objects for keeping track of line counts and line count deltas.
Robin Luckey [Wed, 28 Jan 2009 22:43:06 +0000 (14:43 -0800)] 
[NEW] General objects for keeping track of line counts and line count deltas.