<commit_before># Palava Portal

The palava portal is the single-page web application that runs [palava.tv](https://palava.tv). It is built using the following technologies:

- [Palava Client](https://github.com/palavatv/palava-client)
- [Middleman](http://middlemanapp.com/)
- [CoffeeScript](http://coffeescript.org/)
- [AngularJS](http://angularjs.org/)
- [Twitter Bootstrap](http://getbootstrap.com/)

## Setup

Clone this directory and checkout the submodule:

    $ git clone https://github.com/palavatv/palava-portal
    $ cd palava-portal
    $ git submodule init
    $ git submodule update

Make sure you have Ruby installed. Clone this repo and in the directory run:

    $ bundle install

In another tab, start the [PalavaMachine](https://github.com/palavatv/palava-machine).

Start the middleman development server on http://localhost:4567

    $ middleman

You can build a static version of the page using:

    $ middleman build

### Configure using environment variables

You can set the addresses of the rtc and stun server via environment variables. The defaults are a local rtc server 'ws:localhost:4223' and the palava stun server 'stun:stun.palava.tv'. Use `ws:` for unsecured and `wss:` for ssl secured websocket connections.

    $ export PALAVA_RTC_ADDRESS="ws:some_ip[:some_port]"
    $ export PALAVA_STUN_ADDRESS="stun:some_ip[:some_port]"
    $ export PALAVA_BASE_ADDRESS="http://your.domain.com"
    $ middleman
<commit_msg>Fix default rtc server port<commit_after># Palava Portal

The palava portal is the single-page web application that runs [palava.tv](https://palava.tv). It is built using the following technologies:

- [Palava Client](https://github.com/palavatv/palava-client)
- [Middleman](http://middlemanapp.com/)
- [CoffeeScript](http://coffeescript.org/)
- [AngularJS](http://angularjs.org/)
- [Twitter Bootstrap](http://getbootstrap.com/)

## Setup

Clone this directory and checkout the submodule:

    $ git clone https://github.com/palavatv/palava-portal
    $ cd palava-portal
    $ git submodule init
    $ git submodule update

Make sure you have Ruby installed. Clone this repo and in the directory run:

    $ bundle install

In another tab, start the [PalavaMachine](https://github.com/palavatv/palava-machine).

Start the middleman development server on http://localhost:4567

    $ middleman

You can build a static version of the page using:

    $ middleman build

### Configure using environment variables

You can set the addresses of the rtc and stun server via environment variables. The defaults are a local rtc server 'ws:localhost:4233' and the palava stun server 'stun:stun.palava.tv'. Use `ws:` for unsecured and `wss:` for ssl secured websocket connections.

    $ export PALAVA_RTC_ADDRESS="ws:some_ip[:some_port]"
    $ export PALAVA_STUN_ADDRESS="stun:some_ip[:some_port]"
    $ export PALAVA_BASE_ADDRESS="http://your.domain.com"
    $ middleman

{'fraction_non_alphanumeric': 0.10508241758241758, 'fraction_numerical': 0.005494505494505495, 'mean_word_length': 4.248648648648649, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, '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': '1126936', 'n_tokens_mistral': 912, 'n_tokens_neox': 863, 'n_words': 282}