<commit_before>=====
Spoke
=====

Spoke provides a framework for building reusable front-end components.

Installing
==========

The spoke project lives on github_, and is available via pip_.

.. _github: https://github.com/axialmarket/spoke
.. _pip: https://pypi.python.org/pypi?:action=display&name=spoke

Installing v0.1 From Pip
------------------------

::

    sudo pip install spoke==0.1

Installing v0.1 From Source
---------------------------

::

    curl https://github.com/axialmarket/spoke/archive/version_0.1.tar.gz | tar vzxf -
    cd spoke
    sudo python setup.py install


What is a Spoke?
================

A spoke is an executable javascript file that can contain javascript, CSS and HTML templates. In addition, a spoke can have dependencies on other spokes, which allows us to partition front-end components into small discrete chunks and at build time create a single loadable javascript file for a page that includes just the functionality we need. Now, you may be wondering how we embed CSS and HTML templates into an executable javascript file. We're using a somewhat unsophisticated approach; we URI-encode the CSS or HTML content into a string and embed it in some simple javascript that decodes the content and dynamically adds it to the DOM.

A simple example
================
<commit_msg>add the correct pypi url<commit_after>=====
Spoke
=====

Spoke provides a framework for building reusable front-end components.

Installing
==========

The spoke project lives on github_, and is available via pip_.

.. _github: https://github.com/axialmarket/spoke
.. _pip: https://pypi.python.org/pypi/spoke/0.1

Installing v0.1 From Pip
------------------------

::

    sudo pip install spoke==0.1

Installing v0.1 From Source
---------------------------

::

    curl https://github.com/axialmarket/spoke/archive/version_0.1.tar.gz | tar vzxf -
    cd spoke
    sudo python setup.py install


What is a Spoke?
================

A spoke is an executable javascript file that can contain javascript, CSS and HTML templates. In addition, a spoke can have dependencies on other spokes, which allows us to partition front-end components into small discrete chunks and at build time create a single loadable javascript file for a page that includes just the functionality we need. Now, you may be wondering how we embed CSS and HTML templates into an executable javascript file. We're using a somewhat unsophisticated approach; we URI-encode the CSS or HTML content into a string and embed it in some simple javascript that decodes the content and dynamically adds it to the DOM.

A simple example
================

{'fraction_non_alphanumeric': 0.1276595744680851, 'fraction_numerical': 0.006838905775075988, 'mean_word_length': 3.4177852348993287, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '4766430', 'n_tokens_mistral': 715, 'n_tokens_neox': 651, 'n_words': 330}