<commit_before>from conans import ConanFile, CMake
from conans.tools import download, unzip
import os

class FclConan(ConanFile):
    name = "fcl"
    version = "0.3"
    settings = "os", "compiler", "build_type", "arch"
    options = {"shared": [True, False]}
    default_options = "shared=True"
    requires = "libccd/2.0@jslee02/stable"
    exports = "fcl/*"
    url="https://github.com/jslee02/conan-dart/tree/master/fcl/0.3"

    def source(self):
        zip_name = "fcl-0.3.2.zip"
        download("https://github.com/flexible-collision-library/fcl/archive/0.3.2.zip", zip_name)
        unzip(zip_name)
        os.unlink(zip_name)

    def build(self):
        cmake = CMake(self.settings)
        shared = "-DBUILD_SHARED_LIBS=1" if self.options.shared else ""
        self.run('cd fcl-0.3.2 && cmake . %s %s' % (cmake.command_line, shared))
        self.run("cd fcl-0.3.2 && cmake --build . %s" % cmake.build_config)

    def package(self):
        self.copy("*.h", dst="include", src="fcl-0.3.2/include")
        self.copy("*.hxx", dst="include", src="fcl-0.3.2/include")
        self.copy("*.lib", dst="lib", src="fcl-0.3.2/lib")
        self.copy("*.a", dst="lib", src="fcl-0.3.2/lib")
        self.copy("*.so*", dst="lib", src="fcl-0.3.2/lib")

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

<commit_msg>Add boost dependency to fcl<commit_after>from conans import ConanFile, CMake
from conans.tools import download, unzip
import os

class FclConan(ConanFile):
    name = "fcl"
    version = "0.3"
    settings = "os", "compiler", "build_type", "arch"
    options = {"shared": [True, False]}
    default_options = "shared=True"
    requires = "libccd/2.0@jslee02/stable", "Boost/1.59.0@lasote/stable"
    exports = "fcl/*"
    url="https://github.com/jslee02/conan-dart/tree/master/fcl/0.3"

    def source(self):
        zip_name = "fcl-0.3.2.zip"
        download("https://github.com/flexible-collision-library/fcl/archive/0.3.2.zip", zip_name)
        unzip(zip_name)
        os.unlink(zip_name)

    def build(self):
        cmake = CMake(self.settings)
        shared = "-DBUILD_SHARED_LIBS=1" if self.options.shared else ""
        self.run('cd fcl-0.3.2 && cmake . %s %s' % (cmake.command_line, shared))
        self.run("cd fcl-0.3.2 && cmake --build . %s" % cmake.build_config)

    def package(self):
        self.copy("*.h", dst="include", src="fcl-0.3.2/include")
        self.copy("*.hxx", dst="include", src="fcl-0.3.2/include")
        self.copy("*.lib", dst="lib", src="fcl-0.3.2/lib")
        self.copy("*.a", dst="lib", src="fcl-0.3.2/lib")
        self.copy("*.so*", dst="lib", src="fcl-0.3.2/lib")

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


{'fraction_non_alphanumeric': 0.19440353460972018, 'fraction_numerical': 0.029455081001472753, 'mean_word_length': 2.7946927374301676, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3265172', 'n_tokens_mistral': 1068, 'n_tokens_neox': 1051, 'n_words': 175}