<commit_before>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Apr 23 13:55:25 2017

@author: pnbrown
"""

import signal
import logging

class DelayedKeyboardInterrupt(object):
    def __enter__(self):
        self.signal_received = False
        self.old_handler = signal.getsignal(signal.SIGINT)
        signal.signal(signal.SIGINT, self.handler)

    def handler(self, sig, frame):
        self.signal_received = (sig, frame)
        logging.debug('SIGINT received. Delaying KeyboardInterrupt.')

    def __exit__(self, type, value, traceback):
        signal.signal(signal.SIGINT, self.old_handler)
        if self.signal_received:
            self.old_handler(*self.signal_received)

START_BLOCK = 1
GENESIS_INTERVAL = (14*24*60)*20 # 14 days, 20 blocks/minute
GENESIS_ACCOUNT = 'philipnbrown'
GENESIS_POSTS_TH = 5
GENESIS_CREDIT = 1000001
TOKEN_NAME = '<PASSWORD>'<commit_msg>ready to launch<commit_after>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Apr 23 13:55:25 2017

@author: pnbrown
"""

import signal
import logging

class DelayedKeyboardInterrupt(object):
    def __enter__(self):
        self.signal_received = False
        self.old_handler = signal.getsignal(signal.SIGINT)
        signal.signal(signal.SIGINT, self.handler)

    def handler(self, sig, frame):
        self.signal_received = (sig, frame)
        logging.debug('SIGINT received. Delaying KeyboardInterrupt.')

    def __exit__(self, type, value, traceback):
        signal.signal(signal.SIGINT, self.old_handler)
        if self.signal_received:
            self.old_handler(*self.signal_received)

START_BLOCK = 1
GENESIS_INTERVAL = (14*24*60)*20 # 14 days, 20 blocks/minute
GENESIS_ACCOUNT = 'biophil'
GENESIS_POSTS_TH = 5
GENESIS_CREDIT = 1000001
TOKEN_NAME = 'pocket'
{'fraction_non_alphanumeric': 0.11377579475738984, 'fraction_numerical': 0.03904071388733965, 'mean_word_length': 3.6840731070496084, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '1631514', 'n_tokens_mistral': 655, 'n_tokens_neox': 584, 'n_words': 129}