<commit_before># coding: utf-8

pi = "3.141592653589793238462643383279"\
+"50288419716939937510582097494459230"\
+"7816406286208998628034825342117067"

import re
import utility
from commands import Command
				
class picomp(Command):
	def __init__(self):
		pass
	
	def trig_pi(self, bot, source, target, trigger, argument):
		argumet = argument.strip()
		if len(argument) > 50:
			return "Copypasta is FTL!"
		if argument == pi[:len(argument)]:
			return "Grattis, du kan pi till %s decimaler" % len(argument)
		return "Nejnej, %s är inte pi, försök igen, trunkera, avrunda inte" % argument
<commit_msg>Engelska<commit_after># coding: utf-8

pi = "3.141592653589793238462643383279"\
+"50288419716939937510582097494459230"\
+"7816406286208998628034825342117067"

import re
import utility
from commands import Command
				
class picomp(Command):
	def __init__(self):
		pass
	
	def trig_pi(self, bot, source, target, trigger, argument):
		argumet = argument.strip()
		if len(argument) > 50:
			return "Copypasta is FTL!"
		if argument == pi[:len(argument)]:
			return "Congratulations, you know pi to %s decimals" % len(argument)-4
		return "No no, %s isn't pi,try again, truncate this time" % argument

{'fraction_non_alphanumeric': 0.107085346215781, 'fraction_numerical': 0.16666666666666666, 'mean_word_length': 4.200836820083682, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3655499', 'n_tokens_mistral': 609, 'n_tokens_neox': 441, 'n_words': 119}