<commit_before>import logging
import subprocess

import scripts.commands.distribute


logger = logging.getLogger("Main")


def configure_argument_parser(environment, configuration, subparsers): # pylint: disable=unused-argument
	return subparsers.add_parser("develop", help = "setup workspace for development")


def run(environment, configuration, arguments): # pylint: disable=unused-argument
	for package in configuration["packages"]:
		scripts.commands.distribute.setup(configuration, package, arguments.simulate)
	print("")
	install(environment["python3_executable"], arguments.simulate)
	print("")


def install(python_executable, simulate):
	logger.info("Installing packages for development")

	install_command = [ python_executable, "-m", "pip", "install", "--editable", "." ]
	logger.info("+ %s", " ".join(install_command))
	if not simulate:
		subprocess.check_call(install_command)<commit_msg>Install dependencies in develop command<commit_after>import logging
import subprocess

import scripts.commands.distribute


logger = logging.getLogger("Main")


def configure_argument_parser(environment, configuration, subparsers): # pylint: disable=unused-argument
	return subparsers.add_parser("develop", help = "setup workspace for development")


def run(environment, configuration, arguments): # pylint: disable=unused-argument
	for package in configuration["packages"]:
		scripts.commands.distribute.setup(configuration, package, arguments.simulate)
	print("")
	install(environment["python3_executable"], arguments.simulate)
	print("")


def install(python_executable, simulate):
	logger.info("Installing development dependencies")

	install_command = [ python_executable, "-m", "pip", "install", "--upgrade", "pylint", "wheel" ]
	logger.info("+ %s", " ".join(install_command))
	if not simulate:
		subprocess.check_call(install_command)
		print("")

	logger.info("Installing development packages")

	install_command = [ python_executable, "-m", "pip", "install", "--upgrade", "--editable", "." ]
	logger.info("+ %s", " ".join(install_command))
	if not simulate:
		subprocess.check_call(install_command)
		print("")
{'fraction_non_alphanumeric': 0.13612812058407914, 'fraction_numerical': 0.0009420631182289214, 'mean_word_length': 6.984962406015038, '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': '940273', 'n_tokens_mistral': 624, 'n_tokens_neox': 592, 'n_words': 139}