<commit_before>nfc_lock
========

(more) secure electric lock with DESFire EV1 NFC tags


## Go

Install Go and some deps you are going to need when fetching Go libraries

    sudo apt-get install golang mercurial git-core

Make sure your GOPATH is set

    mkdir $HOME/.go
    export GOPATH=$HOME/.go
    export PATH=$PATH:$GOPATH/bin

Install library dependencies

    go get github.com/fuzxxl/nfc/2.0/nfc
    go get github.com/fuzxxl/freefare/0.3/freefare
    go get gopkg.in/yaml.v2
    go get github.com/jacobsa/crypto/cmac
    go get code.google.com/p/go-sqlite/go1/sqlite3
    go get github.com/davecheney/gpio
    go get github.com/davecheney/gpio/rpi

### RasPi<commit_msg>update documentation<commit_after>nfc_lock
========

(more) secure electric lock with DESFire EV1 NFC tags

## libnfc and libfreefare

Ubuntu 14.04 has libnfc but no libfreefare, use [this PPA](https://launchpad.net/~christopher-hoskin/+archive/ubuntu/ppa)

    sudo apt-add-repository ppa:christopher-hoskin/ppa
    sudo apt-get update
    sudo apt-get install libnfc5 libnfc-bin libnfc-pn53x-examples libnfc-examples
    sudo apt-get install libfreefare0 libfreefare-bin 
    sudo apt-get install golang mercurial git-core

### RasPi

Install the debs from [./raspi/debs/](./raspi/debs/) (or compile them using source debs from Jessie)

## Go

Install Go and some deps you are going to need when fetching Go libraries

    sudo apt-get install golang mercurial git-core

Make sure your GOPATH is set

    mkdir $HOME/.go
    export GOPATH=$HOME/.go
    export PATH=$PATH:$GOPATH/bin

Install library dependencies

    go get github.com/fuzxxl/nfc/2.0/nfc
    go get github.com/fuzxxl/freefare/0.3/freefare
    go get gopkg.in/yaml.v2
    go get github.com/jacobsa/crypto/cmac
    go get code.google.com/p/go-sqlite/go1/sqlite3
    go get github.com/davecheney/gpio
    go get github.com/davecheney/gpio/rpi

### RasPi
{'fraction_non_alphanumeric': 0.09521304576538664, 'fraction_numerical': 0.01262493424513414, 'mean_word_length': 3.3325740318906605, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '157338', 'n_tokens_mistral': 722, 'n_tokens_neox': 658, 'n_words': 187}