<commit_before>#!/bin/bash

mkdir -p $HOME/.config/activitywatch/aw-server

# Configure CORS
# FIXME: Why is this not needed for aw-server?
# FIXME: Ideally this should only need to contain the cors_origins keys, with fallback to defaults
echo "
[server]
host = localhost
port = 5600
storage = peewee
cors_origins = http://localhost:27180

[server-testing]
host = localhost
port = 5666
storage = peewee
cors_origins = http://localhost:27180
" >  $HOME/.config/activitywatch/aw-server/aw-server.ini<commit_msg>ci: switched to toml config for aw-server<commit_after>#!/bin/bash

mkdir -p $HOME/.config/activitywatch/aw-server

# Configure CORS
# FIXME: Why is this not needed for aw-server-rust?
# FIXME: Ideally this should only need to contain the cors_origins keys, with fallback to defaults
cat > $HOME/.config/activitywatch/aw-server/aw-server.toml <<- EOM
[server]
#host = "localhost"
#port = "5600"
#storage = "peewee"
cors_origins = "http://localhost:27180"

[server-testing]
#host = "localhost"
#port = "5666"
#storage = "peewee"
cors_origins = "http://localhost:27180"
EOM
{'fraction_non_alphanumeric': 0.1259259259259259, 'fraction_numerical': 0.03333333333333333, 'mean_word_length': 4.811827956989247, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '7430995', 'n_tokens_mistral': 405, 'n_tokens_neox': 374, 'n_words': 105}