<commit_before># baw-server

The bioacoustic workbench server. Manages the structure and audio data. Provides an API for clients access.

[![Dependency Status](https://gemnasium.com/QutBioacoustics/baw-server.png)](https://gemnasium.com/QutBioacoustics/baw-server)
[![Code Climate](https://codeclimate.com/github/QutBioacoustics/baw-server.png)](https://codeclimate.com/github/QutBioacoustics/baw-server)
[![Build Status](https://travis-ci.org/QutBioacoustics/baw-server.png?branch=master)](https://travis-ci.org/QutBioacoustics/baw-server)

## Install instructions

Change directory to your cloned directory and then

	$ bundle install
	$ bundle update

To run the server you'll need to create some configuration files.
Create a `/config/settings/development.yml` and `/config/settings/test.yml` based on `/config/settings/default.yml`.

You may need to install some additional tools for working with audio and images.

 - [ImageMagick](http://www.imagemagick.org/) is used by [paperclip](https://github.com/thoughtbot/paperclip).
    - Set the path to the directory containing `convert.exe` in the settings file(s) at `Settings.paths.image_magick_dir` and in `/lib/modules/spectrogram.rb`.
 - [WavPack](http://www.wavpack.com/) is used to expand compressed `.wv` files.
    - Set the path to `wvunpack.exe` in `/lib/modules/audio.rb`.
 - [SoX](http://sox.sourceforge.net/) is used to create spectrograms and resample audio.
    - Set the path to `sox.exe` in `/lib/modules/audio.rb` and `/lib/modules/spectrogram.rb`.<commit_msg>Added coveralls.io badge<commit_after># baw-server

The bioacoustic workbench server. Manages the structure and audio data. Provides an API for clients access.

[![Dependency Status](https://gemnasium.com/QutBioacoustics/baw-server.png)](https://gemnasium.com/QutBioacoustics/baw-server)
[![Code Climate](https://codeclimate.com/github/QutBioacoustics/baw-server.png)](https://codeclimate.com/github/QutBioacoustics/baw-server)
[![Build Status](https://travis-ci.org/QutBioacoustics/baw-server.png?branch=master)](https://travis-ci.org/QutBioacoustics/baw-server)
[![Coverage Status](https://coveralls.io/repos/QutBioacoustics/baw-server/badge.png)](https://coveralls.io/r/QutBioacoustics/baw-server)

## Install instructions

Change directory to your cloned directory and then

	$ bundle install
	$ bundle update

To run the server you'll need to create some configuration files.
Create a `/config/settings/development.yml` and `/config/settings/test.yml` based on `/config/settings/default.yml`.

You may need to install some additional tools for working with audio and images.

 - [ImageMagick](http://www.imagemagick.org/) is used by [paperclip](https://github.com/thoughtbot/paperclip).
    - Set the path to the directory containing `convert.exe` in the settings file(s) at `Settings.paths.image_magick_dir` and in `/lib/modules/spectrogram.rb`.
 - [WavPack](http://www.wavpack.com/) is used to expand compressed `.wv` files.
    - Set the path to `wvunpack.exe` in `/lib/modules/audio.rb`.
 - [SoX](http://sox.sourceforge.net/) is used to create spectrograms and resample audio.
    - Set the path to `sox.exe` in `/lib/modules/audio.rb` and `/lib/modules/spectrogram.rb`.
{'fraction_non_alphanumeric': 0.13707165109034267, 'fraction_numerical': 0.0, 'mean_word_length': 4.613636363636363, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 16, 'lorem ipsum': 0, 'www.': 4, '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': '390945', 'n_tokens_mistral': 1102, 'n_tokens_neox': 1053, 'n_words': 255}