<commit_before># strava-gear-tagger

Set default bike or shoes on Strava activities depending on type.

e.g.

- Use my trainer for all virual rides
- Use hiking boots by default for all hikes
- Use running shoes for all runs

Save those precious 5 seconds.

## Development

``` sh
# Dev server
npm run dev

# Miniflare (local CloudFlare Workers impl)
npm start
```

Server will be running on http://127.0.0.1:8787

## Deployment

First modify `wrangler.toml` so it doesn't point to my resources.

``` sh
# Deploy the worker
npm run deploy

# Create the secrets
wrangler secret put STRAVA_CLIENT_ID
wrangler secret put STRAVA_CLIENT_SECRET
wrangler secret put STRAVA_WEBHOOK_TOKEN<commit_msg>Fix README typo<commit_after># strava-gear-tagger

Set default bike or shoes on Strava activities depending on type.

e.g.

- Use my trainer for all virtual rides
- Use hiking boots by default for all hikes
- Use running shoes for all runs

Save those precious 5 seconds.

## Development

``` sh
# Dev server
npm run dev

# Miniflare (local CloudFlare Workers impl)
npm start
```

Server will be running on http://127.0.0.1:8787

## Deployment

First modify `wrangler.toml` so it doesn't point to my resources.

``` sh
# Deploy the worker
npm run deploy

# Create the secrets
wrangler secret put STRAVA_CLIENT_ID
wrangler secret put STRAVA_CLIENT_SECRET
wrangler secret put STRAVA_WEBHOOK_TOKEN
{'fraction_non_alphanumeric': 0.06353790613718412, 'fraction_numerical': 0.01588447653429603, 'mean_word_length': 4.191011235955056, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4316654', 'n_tokens_mistral': 476, 'n_tokens_neox': 447, 'n_words': 187}