<commit_before># hive-capture

## Using Apache

Install Passenger using http://recipes.sinatrarb.com/p/deployment/apache_with_passenger

Add the following lines to your Apache config:

    <VirtualHost *:80>
      ServerName www.yourhost.com
      # !!! Be sure to point DocumentRoot to 'public'!
      DocumentRoot /path/to/hive-capture/public
      <Directory /path/to/hive-capture/public>
        # This relaxes Apache security settings.
        AllowOverride all
        # MultiViews must be turned off.
        Options -MultiViews
        # Uncomment this if you're on Apache >= 2.4:
        #Require all granted
      </Directory>
    </VirtualHost>

## Using thin

To run:

    rackup

or, to run in the background,

    rackup -D<commit_msg>Setting environment<commit_after># hive-capture

## Using Apache

Install Passenger using http://recipes.sinatrarb.com/p/deployment/apache_with_passenger

Add the following lines to your Apache config:

    <VirtualHost *:80>
      ServerName www.yourhost.com
      # !!! Be sure to point DocumentRoot to 'public'!
      DocumentRoot /path/to/hive-capture/public
      <Directory /path/to/hive-capture/public>
        # Set environment as required
        SetEnv HIVE_ENVIRONMENT production
        SetEnv RACK_ENV production

        # This relaxes Apache security settings.
        AllowOverride all
        # MultiViews must be turned off.
        Options -MultiViews
        # Uncomment this if you're on Apache >= 2.4:
        #Require all granted
      </Directory>
    </VirtualHost>

## Using thin

To run:

    rackup

or, to run in the background,

    rackup -D
{'fraction_non_alphanumeric': 0.08081431215299198, 'fraction_numerical': 0.004935225169648365, 'mean_word_length': 2.588495575221239, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1287564', 'n_tokens_mistral': 477, 'n_tokens_neox': 465, 'n_words': 150}