<commit_before># Certificate Factory

Automagically generate [Open Data Certificates](https://certificates.theodi.org/)
from a CKAN Dataset or Data.gov.uk atom feed.

# Getting started

## Clone the repo

    git clone <EMAIL>:theodi/certificate-generator.git
  
## Add some environment variables

* Create a file named `.env`
* Add the following you your newly-created file:

    BASE_URI='https://certificates.theodi.org/'
    ODC_USERNAME='{YOUR OPEN DATA CERTIFICATE USERNAME}'
    ODC_API_KEY='{YOUR OPEN DATA CERTIFICATE API KEY}'
		
You can get your API key from your Account page when logged into the Open Data Certificates website

If you are running your own instance of Open Data Certificates (such as on your own machine), simply replace the `BASE_URL` with the URL of the instance you want to generate certificates on.
 
## Run some commands!
<commit_msg>Badges<commit_after>[![Build Status](http://img.shields.io/travis/theodi/certificate-factory.svg?style=flat-square)](https://travis-ci.org/theodi/certificate-factory)
[![Dependency CI](http://dependencyci.com/github/theodi/certificate-factory/badge?style=flat-square)](http://dependencyci.com/github/theodi/certificate-factory)
[![Coverage Status](http://img.shields.io/coveralls/theodi/certificate-factory.svg?style=flat-square)](https://coveralls.io/r/theodi/certificate-factory)
[![Code Climate](http://img.shields.io/codeclimate/github/theodi/certificate-factory.svg?style=flat-square)](https://codeclimate.com/github/theodi/certificate-factory)
[![Gem Version](http://img.shields.io/gem/v/certificate-factory.svg?style=flat-square)](https://rubygems.org/gems/certificate-factory)
[![License](http://img.shields.io/:license-mit-blue.svg?style=flat-square)](http://theodi.mit-license.org)

# Certificate Factory

Automagically generate [Open Data Certificates](https://certificates.theodi.org/)
from a CKAN Dataset or Data.gov.uk atom feed.

# Getting started

## Clone the repo

    git clone git@github.com:theodi/certificate-generator.git

## Add some environment variables

* Create a file named `.env`
* Add the following you your newly-created file:

    BASE_URI='https://certificates.theodi.org/'
    ODC_USERNAME='{YOUR OPEN DATA CERTIFICATE USERNAME}'
    ODC_API_KEY='{YOUR OPEN DATA CERTIFICATE API KEY}'

You can get your API key from your Account page when logged into the Open Data Certificates website

If you are running your own instance of Open Data Certificates (such as on your own machine), simply replace the `BASE_URL` with the URL of the instance you want to generate certificates on.

## Run some commands!

{'fraction_non_alphanumeric': 0.11635944700460829, 'fraction_numerical': 0.0, 'mean_word_length': 5.044083526682135, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5536545', 'n_tokens_mistral': 824, 'n_tokens_neox': 777, 'n_words': 222}