<commit_before># Photo Album

### Setup

```bash
asdf install
brew install openssl postgresql imagemagick@6
bundle config build.puma --with-opt-dir=/usr/local/opt/openssl
bundle
bundle exec rake db:setup
bundle exec rails server
```

### Development

To run the rails server

```bash
bundle exec rails s
```

To run the sidekiq server

```bash
bundle exec sidekiq -q web -q utility
```
<commit_msg>Add offline instructions to README<commit_after># Photo Album

### Setup

```bash
asdf install
brew install openssl postgresql imagemagick@6
bundle config build.puma --with-opt-dir=/usr/local/opt/openssl
bundle
bundle exec rake db:setup
bundle exec rails server
```

### Development

To run the rails server

```bash
bundle exec rails s
```

To run the sidekiq server

```bash
bundle exec sidekiq -q web -q utility
```

To run in offline mode, run the server with

```bash
OFFLINE_DEV=true bundle exec rails s
```

Make sure you have downloaded the photos for any albums you want to work with,
and place them in `public/photos/<album_name>`. This can be done with the
following command:

```bash
aws s3 cp --recursive s3://robin-photos/<album_name>/ public/photos/<album_name>
```

{'fraction_non_alphanumeric': 0.10262934690415607, 'fraction_numerical': 0.0033927056827820186, 'mean_word_length': 4.43778801843318, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1709443', 'n_tokens_mistral': 408, 'n_tokens_neox': 364, 'n_words': 152}