This repository contains various tools to support GSA's compliance with the Federal Source Code Policy.
Builds multiple code.*.json files (one per GSA organization) using the LLNL Scraper tool. As a prerequisite, you need to have scraper installed, which you can accomplish by running pip install -r requirements.txt. You should also have a config file named config.ORG_NAME.json for each GitHub organization you want to scan. See the LLNL Scraper docs for information on the config file format.
Combines multiple organizational code.*.json files into a single agency-wide code.json.
Builds a code.json file using the CodeInventory tool. The codeinventory and codeinventory-github Ruby gems must be installed.
Usage:
# outputs a combined code.json for GSA, 18F, PIF, and USWDS organizations
harvest.sh code.jsonSummarizes the usage types across all releases.
Usage:
# outputs statistics from an existing code.json file
count.sh code.json