<commit_before>import os
import re
import shutil
import subprocess

from armaadmin import config, errors, log

sources = {}

sources_allowed = re.compile('[0-9a-zA-Z-_+]+$')

def get(name):
	if not name in sources:
		raise errors.NoSourceError

	return sources[name]

def add(name, bzr):
	if not config.creation:
		raise errors.NoServerCreationError

	if name in sources:
		raise errors.SourceExistsError

	if not sources_allowed.match(name):<commit_msg>Allow dots in source names<commit_after>import os
import re
import shutil
import subprocess

from armaadmin import config, errors, log

sources = {}

sources_allowed = re.compile('[0-9a-zA-Z-_+.]+$')

def get(name):
	if not name in sources:
		raise errors.NoSourceError

	return sources[name]

def add(name, bzr):
	if not config.creation:
		raise errors.NoServerCreationError

	if name in sources:
		raise errors.SourceExistsError

	if not sources_allowed.match(name):
{'fraction_non_alphanumeric': 0.09436008676789588, 'fraction_numerical': 0.004338394793926247, 'mean_word_length': 4.841772151898734, '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': '5354357', 'n_tokens_mistral': 317, 'n_tokens_neox': 296, 'n_words': 93}