<commit_before>[![Stories in Ready](https://badge.waffle.io/bcgov/ckanext-bcgov.png?label=ready&title=Ready)](https://waffle.io/bcgov/ckanext-bcgov)
[![Build Status](https://cis.data.gov.bc.ca/job/bcdc/job/bcdc-dlv/badge/icon)](https://cis.data.gov.bc.ca/job/bcdc/job/bcdc-dlv/)
[![License](https://img.shields.io/badge/license-AGPL-blue.svg)](https://raw.githubusercontent.com/bcgov/ckanext-bcgov/master/license)
<a rel="Delivery" href="https://github.com/BCDevExchange/docs/blob/master/discussion/projectstates.md"><img alt="In production, but maybe in Alpha or Beta. Intended to persist and be supported." style="border-width:0" src="http://bcdevexchange.org/badge/3.svg" title="In production, but maybe in Alpha or Beta. Intended to persist and be supported." /></a>

ckanext-bcgov
=============

This extension provides the basic customized features on the [BC Data Catalogue](http://catalogue.data.gov.bc.ca), such as schema updates, theme changes, etc.

Installation
============

1.  Activate virtual environment, e.g.

        $ . /usr/lib/ckan/default/bin/activate

2.  Install the extension. Switch to `ckanext-bcgov` extension directory and run the following command:

        python setup.py develop


3.  Update config file and add the following plugins to `ckan.plugins` list : `edc_app` `edc_geo` `edc_ngeo` `edc_webservice` `edc_disqus`.

4.  Add the following lines to ini file to the search setting section if they don’t exist:

        search.facets.limit = 500
        search.facets.default = 20
        ckan.search.show_all_types = true

        ...

        ckan.api_key = your-sysadmin-api-key

        ...

        # Path for licenses and sectors JSON files, e.g.:
        licenses_group_url = https://$GOGS_URL/bcdc-licenses-data/edc_licenses.json
        sectors_file_url = https://$GOGS_URL/bcdc-licenses-data/edc_sectors.json

        ...

        # (optional) Environment name
        edc.environment_name = MYDEVBOX


4.  Update (or create) `import.ini` file inside `ckanext-bcgov/ckanext/bcgov/scripts/config`. Add `api_key`, `site_url` options (they should be the same as in your CKAN `.ini` file).

5.  Create default vocabularies

        cd ckanext-bcgov/ckanext/bcgov/scripts
        $ python create_vocabs.py

   Note: The following data files in `ckanext-bcgov/ckanext/bcgov/scripts/data` is required:

        edc-vocabs.json

6.  Create organizations

        $ cd ckanext-bcgov/ckanext/bcgov/scripts
        $ python create_orgs.py

   Note: The following data files in `ckanext-bcgov/ckanext/bcgov/scripts/data` is required:

        org_suborg_sector_mapping_forEDC.csv


    Originally converted from SVN Source

    Original Repo Copyright 2015, Province of British Columbia
<commit_msg>added space to readme<commit_after>[![Stories in Ready](https://badge.waffle.io/bcgov/ckanext-bcgov.png?label=ready&title=Ready)](https://waffle.io/bcgov/ckanext-bcgov)
[![Build Status](https://cis.data.gov.bc.ca/job/bcdc/job/bcdc-dlv/badge/icon)](https://cis.data.gov.bc.ca/job/bcdc/job/bcdc-dlv/)
[![License](https://img.shields.io/badge/license-AGPL-blue.svg)](https://raw.githubusercontent.com/bcgov/ckanext-bcgov/master/license)
<a rel="Delivery" href="https://github.com/BCDevExchange/docs/blob/master/discussion/projectstates.md"><img alt="In production, but maybe in Alpha or Beta. Intended to persist and be supported." style="border-width:0" src="http://bcdevexchange.org/badge/3.svg" title="In production, but maybe in Alpha or Beta. Intended to persist and be supported." /></a>

ckanext-bcgov
=============

This extension provides the basic customized features on the [BC Data Catalogue](http://catalogue.data.gov.bc.ca), such as schema updates, theme changes, etc.

Installation
============

1.  Activate virtual environment, e.g. 

        $ . /usr/lib/ckan/default/bin/activate

2.  Install the extension. Switch to `ckanext-bcgov` extension directory and run the following command:

        python setup.py develop


3.  Update config file and add the following plugins to `ckan.plugins` list : `edc_app` `edc_geo` `edc_ngeo` `edc_webservice` `edc_disqus`.

4.  Add the following lines to ini file to the search setting section if they don’t exist:

        search.facets.limit = 500
        search.facets.default = 20
        ckan.search.show_all_types = true

        ...

        ckan.api_key = your-sysadmin-api-key

        ...

        # Path for licenses and sectors JSON files, e.g.:
        licenses_group_url = https://$GOGS_URL/bcdc-licenses-data/edc_licenses.json
        sectors_file_url = https://$GOGS_URL/bcdc-licenses-data/edc_sectors.json

        ...

        # (optional) Environment name
        edc.environment_name = MYDEVBOX


4.  Update (or create) `import.ini` file inside `ckanext-bcgov/ckanext/bcgov/scripts/config`. Add `api_key`, `site_url` options (they should be the same as in your CKAN `.ini` file).

5.  Create default vocabularies

        cd ckanext-bcgov/ckanext/bcgov/scripts
        $ python create_vocabs.py

   Note: The following data files in `ckanext-bcgov/ckanext/bcgov/scripts/data` is required:

        edc-vocabs.json

6.  Create organizations

        $ cd ckanext-bcgov/ckanext/bcgov/scripts
        $ python create_orgs.py

   Note: The following data files in `ckanext-bcgov/ckanext/bcgov/scripts/data` is required:

        org_suborg_sector_mapping_forEDC.csv


    Originally converted from SVN Source

    Original Repo Copyright 2015, Province of British Columbia

{'fraction_non_alphanumeric': 0.12529680365296803, 'fraction_numerical': 0.006575342465753425, 'mean_word_length': 3.3843074459567655, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 18, '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': '2780189', 'n_tokens_mistral': 1882, 'n_tokens_neox': 1788, 'n_words': 431}