Skip to content

alysbrooks/clojure-stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clojure Stats

Usage

Installation

Using it

To scan repositories in path REPOS, saving the database to:

clojure -m clojure-stats.core REPOS -t duckdb -o LOCATION

Repos should follow the form:

owner
└──repository

Schema

EDN

Example:

{:root-id nil, :meta {:line 1, :column 1, :file "../shape-of-clojure/test_2025_10_17/lambdaisland/kaocha/dev/user.clj"},
:clojure-type nil,
:resolved-symbol nil,
:type :list,
:id #uuid "1f0bf79b-137f-6d70-8bb6-11df03da0930",
:parent-id nil,
:depth 1,
:form (ns user)} 

duckdb

The tables created look like this:

Full command line

  -a, --analysis
  -t, --to FORMAT            :stdout  Output format. One of
      --overwrite            false    Deletes the database if necessary
  -o, --output FILE                   Filename to output to.
      --fixed-prefix PREFIX           Override the prefix.
  -h, --help                          Show this help message.
      --version                       Show the version being used.

License

(c) 2025 Alys S Brooks

Released under the Eclipse Public License, same as Clojure.

About

Create a database of flat file out of Clojure code for analysis.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published