<commit_before>import asyncio
import datetime
import os
import re
import socket
import subprocess
import time
import traceback
import inspect

from pathlib import Path
from decimal import *

import random
import requests

import discord
from discord.ext import commands

import configparser

import PIL.Image
import PIL.ImageFilter
import PIL.ImageOps

import logging
import logging.handlers
import sys

# TODO: COGS https://gist.github.com/leovoel/46cd89ed6a8f41fd09c5
# TODO: >get >dget size and timeouts

config_file_name = "avebot.ini"
log_file_name = "avebot.log"

perm_names = {'0': 'Banned', '1': 'Regular User', '2': 'Privileged User', '8': 'Mod', '9': 'Owner'}

max_file_size = 1000 * 1000 * 8 # Limit of discord (non-nitro) is 8MB (not MiB)
backup_count = 90000000000000 # random big number
file_handler = logging.handlers.RotatingFileHandler(filename=log_file_name, maxBytes=max_file_size, backupCount=backup_count)<commit_msg>Update backup count<commit_after>import asyncio
import datetime
import os
import re
import socket
import subprocess
import time
import traceback
import inspect

from pathlib import Path
from decimal import *

import random
import requests

import discord
from discord.ext import commands

import configparser

import PIL.Image
import PIL.ImageFilter
import PIL.ImageOps

import logging
import logging.handlers
import sys

# TODO: COGS https://gist.github.com/leovoel/46cd89ed6a8f41fd09c5
# TODO: >get >dget size and timeouts

config_file_name = "avebot.ini"
log_file_name = "avebot.log"

perm_names = {'0': 'Banned', '1': 'Regular User', '2': 'Privileged User', '8': 'Mod', '9': 'Owner'}

max_file_size = 1000 * 1000 * 8 # Limit of discord (non-nitro) is 8MB (not MiB)
backup_count = 10000 # random big number
file_handler = logging.handlers.RotatingFileHandler(filename=log_file_name, maxBytes=max_file_size, backupCount=backup_count)
{'fraction_non_alphanumeric': 0.08862786972770956, 'fraction_numerical': 0.037907100907634814, 'mean_word_length': 5.915129151291513, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '3155050', 'n_tokens_mistral': 660, 'n_tokens_neox': 603, 'n_words': 193}