<commit_before>======================================================
ckanext-geoview - Geospatial viewer for CKAN resources
======================================================


This extension contains view plugins to display geospatial files and services in CKAN.
It contains an OpenLayers based viewer originally developed by `<NAME>`_ and other view plugins that
used to be part of ckanext-spatial_.

**Note:** This is a work in progress, if you can help with `OpenLayers`_ or `Leaflet`_ development,
check the `Issues` section for what needs to be done or add a new issue.



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

To install ckanext-geoview on a production site:

1. Activate your CKAN virtual environment, for example::

     source /usr/lib/ckan/default/bin/activate

2. Install the ckanext-geoview Python package into your virtual environment::

     pip install ckanext-geoview

3. Add the relevant plugins to the ``ckan.plugins`` setting in your CKAN
   config file (by default the config file is located at
   ``/etc/ckan/default/production.ini``). Check `Available plugins`_ to see which
   ones are available and if they require further configuration.

4. Add the ``resource_proxy`` plugin to the ``ckan.plugins`` setting.

5. Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu::

     sudo service apache2 reload

------------------------
Development Installation
------------------------

To install ckanext-geoview for development:

1. Clone the source:

    cd /usr/lib/ckan/default/src
    git clone https://github.com/ckan/ckanext-geoview.git

2. Activate your CKAN virtual environment, for example::

    source /usr/lib/ckan/default/bin/activate

3. Install the ckanext-geoview Python package into your python virtual environment::

    cd ckanext-geoview
    python setup.py develop

4. Continue with the main installation instructions above (step 3 onwards).

-----------------
Available plugins
-----------------<commit_msg>Split in two lines the clone commands<commit_after>======================================================
ckanext-geoview - Geospatial viewer for CKAN resources
======================================================


This extension contains view plugins to display geospatial files and services in CKAN.
It contains an OpenLayers based viewer originally developed by `<NAME>`_ and other view plugins that
used to be part of ckanext-spatial_.

**Note:** This is a work in progress, if you can help with `OpenLayers`_ or `Leaflet`_ development,
check the `Issues` section for what needs to be done or add a new issue.



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

To install ckanext-geoview on a production site:

1. Activate your CKAN virtual environment, for example::

     source /usr/lib/ckan/default/bin/activate

2. Install the ckanext-geoview Python package into your virtual environment::

     pip install ckanext-geoview

3. Add the relevant plugins to the ``ckan.plugins`` setting in your CKAN
   config file (by default the config file is located at
   ``/etc/ckan/default/production.ini``). Check `Available plugins`_ to see which
   ones are available and if they require further configuration.

4. Add the ``resource_proxy`` plugin to the ``ckan.plugins`` setting.

5. Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu::

     sudo service apache2 reload

------------------------
Development Installation
------------------------

To install ckanext-geoview for development:

1. Clone the source::

    cd /usr/lib/ckan/default/src
    git clone https://github.com/ckan/ckanext-geoview.git

2. Activate your CKAN virtual environment, for example::

    source /usr/lib/ckan/default/bin/activate

3. Install the ckanext-geoview Python package into your python virtual environment::

    cd ckanext-geoview
    python setup.py develop

4. Continue with the main installation instructions above (step 3 onwards).

-----------------
Available plugins
-----------------
{'fraction_non_alphanumeric': 0.16687641580669518, 'fraction_numerical': 0.0055373772967530835, 'mean_word_length': 3.268528464017186, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3562857', 'n_tokens_mistral': 1103, 'n_tokens_neox': 1030, 'n_words': 450}