<commit_before># Pomegranate

[![Circle CI](https://circleci.com/gh/pulibrary/pomegranate.svg?style=svg)](https://circleci.com/gh/pulibrary/pomegranate)
[![Coverage Status](https://coveralls.io/repos/github/pulibrary/pomegranate/badge.svg?branch=master)](https://coveralls.io/github/pulibrary/pomegranate?branch=master)
[![Stories in Ready](https://badge.waffle.io/pulibrary/pomegranate.png?label=ready&title=Ready)](https://waffle.io/pulibrary/pomegranate)
[![Apache 2.0 License](https://img.shields.io/badge/license-Apache%202.0-blue.svg?style=plastic)](./LICENSE)

A [Spotlight](https://github.com/sul-dlss/spotlight) application for Princeton University Library.

## Setup

```sh
git clone git@github.com:pulibrary/pomegranate.git
cd pomegranate
bundle install
yarn install
bundle exec rake db:create
bundle exec rake db:migrate
```

After setup, run Pomegranate locally with `bundle exec foreman start`.

### Importing Data:

1. Log in once via CAS<commit_msg>Expand instructions for running in development<commit_after># Pomegranate

[![Circle CI](https://circleci.com/gh/pulibrary/pomegranate.svg?style=svg)](https://circleci.com/gh/pulibrary/pomegranate)
[![Coverage Status](https://coveralls.io/repos/github/pulibrary/pomegranate/badge.svg?branch=master)](https://coveralls.io/github/pulibrary/pomegranate?branch=master)
[![Stories in Ready](https://badge.waffle.io/pulibrary/pomegranate.png?label=ready&title=Ready)](https://waffle.io/pulibrary/pomegranate)
[![Apache 2.0 License](https://img.shields.io/badge/license-Apache%202.0-blue.svg?style=plastic)](./LICENSE)

A [Spotlight](https://github.com/sul-dlss/spotlight) application for Princeton University Library.

## Setup

```sh
git clone git@github.com:pulibrary/pomegranate.git
cd pomegranate
bundle install
yarn install
bundle exec rake db:create
bundle exec rake db:migrate
```

After setup, run Pomegranate locally either with

`bundle exec foreman start`

to run everything at once, or, in separate terminal windows:

```
bundle exec rake pomegranate:development
bin/rails s
bin/webpack-dev-server
```

### Importing Data:

1. Log in once via CAS
{'fraction_non_alphanumeric': 0.14690599905526688, 'fraction_numerical': 0.006613131790269249, 'mean_word_length': 6.2534246575342465, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 16, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '1576526', 'n_tokens_mistral': 781, 'n_tokens_neox': 734, 'n_words': 134}