<commit_before>Getting Started
===============

Docker
------

You can use the opmuse-dev docker image for development.

This will get a copy of the repo from the docker image and mount it inside the container.

.. code-block:: console

    $ docker export $(docker run -d inty/opmuse-dev) | tar xf - root/opmuse --strip-components=1
    $ cd opmuse
    $ docker run -d -p 8080:8080 --name=opmuse-dev -v `pwd`:/root/opmuse inty/opmuse-dev

To get cherrypy's output do this

.. code-block:: console

    $ docker start -a opmuse-dev<commit_msg>Use docker logs to tail logs<commit_after>Getting Started
===============

Docker
------

You can use the opmuse-dev docker image for development.

This will get a copy of the repo from the docker image and mount it inside the container.

.. code-block:: console

    $ docker export $(docker run -d inty/opmuse-dev) | tar xf - root/opmuse --strip-components=1
    $ cd opmuse
    $ docker run -d -p 8080:8080 --name=opmuse-dev -v `pwd`:/root/opmuse inty/opmuse-dev

To get cherrypy's output do this

.. code-block:: console

    $ docker logs -f opmuse-dev
{'fraction_non_alphanumeric': 0.13090909090909092, 'fraction_numerical': 0.016363636363636365, 'mean_word_length': 3.047794117647059, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '7184920', 'n_tokens_mistral': 399, 'n_tokens_neox': 359, 'n_words': 134}