<commit_before>from conans import ConanFile, CMake, tools

class OoutConan(ConanFile):
	name = "2out"
	version = "0.9"
	description = "Object oriented unit testing framework"
	license = "MIT"
	url = "https://github.com/DronMDF/2out"

	settings = "os", "compiler", "build_type", "arch"
	options = {"shared": [True, False]}
	default_options = "shared=False"
	generators = "cmake"

	def source(self):
		git = tools.Git()
		git.clone('https://github.com/DronMDF/2out.git')
		git.checkout('v' + self.version)
		tools.replace_in_file(
			"CMakeLists.txt",
			"ENABLE_TESTING()",
			'\n'.join((
				"include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)",
				"conan_basic_setup()",
				"ENABLE_TESTING()"
			))
		)

	def build(self):
		cmake = CMake(self)
		cmake.configure()
		cmake.build()

	def package(self):
		self.copy("*.h", dst="include/2out", src="2out")
		self.copy("*.so", dst="lib", keep_path=False)
		self.copy("*.a", dst="lib", keep_path=False)

	def package_info(self):
		self.cpp_info.libs = ["2out"]
<commit_msg>#475: Version bump to 0.10<commit_after>from conans import ConanFile, CMake, tools

class OoutConan(ConanFile):
	name = "2out"
	version = "0.10"
	description = "Object oriented unit testing framework"
	license = "MIT"
	url = "https://github.com/DronMDF/2out"

	settings = "os", "compiler", "build_type", "arch"
	options = {"shared": [True, False]}
	default_options = "shared=False"
	generators = "cmake"

	def source(self):
		git = tools.Git()
		git.clone('https://github.com/DronMDF/2out.git')
		git.checkout('v' + self.version)
		tools.replace_in_file(
			"CMakeLists.txt",
			"ENABLE_TESTING()",
			'\n'.join((
				"include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)",
				"conan_basic_setup()",
				"ENABLE_TESTING()"
			))
		)

	def build(self):
		cmake = CMake(self)
		cmake.configure()
		cmake.build()

	def package(self):
		self.copy("*.h", dst="include/2out", src="2out")
		self.copy("*.so", dst="lib", keep_path=False)
		self.copy("*.a", dst="lib", keep_path=False)

	def package_info(self):
		self.cpp_info.libs = ["2out"]

{'fraction_non_alphanumeric': 0.18664717348927876, 'fraction_numerical': 0.011208576998050682, 'mean_word_length': 4.460106382978723, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '4458012', 'n_tokens_mistral': 874, 'n_tokens_neox': 788, 'n_words': 144}