<commit_before>#!/usr/bin/env python

# Configuration parameters for a particular deployment.

import os
import random

# Run in debug mode. Raw JS locally, pretty-print exceptions.
debug = True

# The timestamp of the current deployment, or a cache buster locally.
version_id = (
    (os.environ.get('VERSION_ID', '').split('.', 1) + [''])[0]
    or random.randint(0, 10**10))

# Beaker keys
session_encrypt_key = 'asdf'
session_validate_key = 'asdfasdf'

# Queues
apply_queue = 'apply-posts'
cleanup_queue = 'cleanup-shard'
notify_queue = 'notify-posts'
pending_queue = 'pending-posts'

# How long posts stay alive before being deleted. About 10 days.
ephemeral_lifetime_seconds = 60 * 255

# How long a user can be inactive (no heartbeat) before being logged out.
user_max_inactive_seconds = 180

# How frequently the shard cleanup task should run.
shard_cleanup_period_seconds = 60

# How long a token is alive before it should be replenished.
user_token_lifetime_seconds =  6 * 60 * 60  # 6 hours

# Current version of the terms of service
terms_version = 1
<commit_msg>Looking way better<commit_after>#!/usr/bin/env python

# Configuration parameters for a particular deployment.

import os
import random

# Run in debug mode. Raw JS locally, pretty-print exceptions.
debug = True

# The timestamp of the current deployment, or a cache buster locally.
version_id = (
    (os.environ.get('VERSION_ID', '').split('.', 1) + [''])[0]
    or random.randint(0, 10**10))

# Beaker keys
session_encrypt_key = 'asdf'
session_validate_key = 'asdfasdf'

# Queues
apply_queue = 'apply-posts'
cleanup_queue = 'cleanup-shard'
notify_queue = 'notify-posts'
pending_queue = 'pending-posts'

# How long posts stay alive before being deleted. About 10 days.
ephemeral_lifetime_seconds = 60 * 255

# How long a user can be inactive (no heartbeat) before being logged out.
user_max_inactive_seconds = 90

# How frequently the shard cleanup task should run.
shard_cleanup_period_seconds = 60

# How long a token is alive before it should be replenished.
user_token_lifetime_seconds =  6 * 60 * 60  # 6 hours

# Current version of the terms of service
terms_version = 1

{'fraction_non_alphanumeric': 0.09099350046425256, 'fraction_numerical': 0.023676880222841225, 'mean_word_length': 4.5115089514066495, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5727878', 'n_tokens_mistral': 719, 'n_tokens_neox': 666, 'n_words': 246}