<commit_before>CC2ASN
======

A simple lookup service for AS-numbers and prefixes belonging to any given country in the world. For more information check out the website at [www.cc2asn.com][1].

**Note:** if you're only interested in the CC2ASN data, I suggest you use the service on [www.cc2asn.com][1], either by querying the database or simply download the db.tar.gz package, rather than installing a completely new server. 

System prerequisites
--------------------

    sudo apt-get install python-naturalsort python-configobj

Installation
------------

    wget https://github.com/toringe/cc2asn/archive/master.zip
    unzip master.zip
    cd cc2asn-master
    sudo ./install.sh

Initializing with data
----------------------

    sudo RIR-downloader.sh
    sudo SEF-parser.py

You can run these scripts as a non-privileged user, provided that you set proper permissions on the `DATADIR` and `DBDIR` directories specified in the configuration file `cc2asn.conf`
<commit_msg>Added unzip as requirement<commit_after>CC2ASN
======

A simple lookup service for AS-numbers and prefixes belonging to any given country in the world. For more information check out the website at [www.cc2asn.com][1].

**Note:** if you're only interested in the CC2ASN data, I suggest you use the service on [www.cc2asn.com][1], either by querying the database or simply download the db.tar.gz package, rather than installing a completely new server. 

System prerequisites
--------------------

    sudo apt-get install python-naturalsort python-configobj unzip

Installation
------------

    wget https://github.com/toringe/cc2asn/archive/master.zip
    unzip master.zip
    cd cc2asn-master
    sudo ./install.sh

Initializing with data
----------------------

    sudo RIR-downloader.sh
    sudo SEF-parser.py

You can run these scripts as a non-privileged user, provided that you set proper permissions on the `DATADIR` and `DBDIR` directories specified in the configuration file `cc2asn.conf`

{'fraction_non_alphanumeric': 0.12102874432677761, 'fraction_numerical': 0.009077155824508321, 'mean_word_length': 3.1076604554865424, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1104114', 'n_tokens_mistral': 579, 'n_tokens_neox': 550, 'n_words': 226}