<commit_before>from conans import ConanFile, CMake
from conans import tools
import os
import shutil

class libjpegConan(ConanFile):
    name = "libjpeg"
    version = "9a"
    url = "https://github.com/Kaosumaru/conan-libjpeg"
    settings = "os", "compiler", "build_type", "arch"
    exports = "libjpeg/*"


    libjpeg_name = "jpeg-%s" % version
    source_tgz = "http://www.ijg.org/files/jpegsr%s.zip" % version
    cmake_file = "https://raw.githubusercontent.com/Kaosumaru/conan-libjpeg/master/CMakeLists.txt"
    jconfig_file = "https://raw.githubusercontent.com/Kaosumaru/conan-libjpeg/master/jconfig.h.cmake"

    def source(self):
        self.output.info("Downloading %s" % self.source_tgz)
        tools.download(self.source_tgz, "libjpeg.zip")
        tools.unzip("libjpeg.zip", ".")
        os.unlink("libjpeg.zip")

        self.output.info("Downloading %s" % self.cmake_file)
        tools.download(self.cmake_file, "%s/CMakeLists.txt" % self.libjpeg_name)
        tools.download(self.jconfig_file, "%s/jconfig.h.cmake" % self.libjpeg_name)


    def config(self):
        pass

    def build(self):


        cmake = CMake(self.settings)
        self.run('cd %s && mkdir build' % self.libjpeg_name)
        self.run('cd %s/build && cmake -DCMAKE_INSTALL_PREFIX:PATH=../install .. %s' % (self.libjpeg_name, cmake.command_line))
        self.run("cd %s/build && cmake --build . --target install %s" % (self.libjpeg_name, cmake.build_config))

    def package(self):
        self.copy("*.h", dst="include", src="install/include")
        self.copy("*.lib", dst="lib", src="install/lib")
        self.copy("*.a", dst="lib", src="install/lib")

    def package_info(self):
        self.cpp_info.libs = ["jpeg"]<commit_msg>another update<commit_after>from conans import ConanFile, CMake
from conans import tools
import os
import shutil

class libjpegConan(ConanFile):
    name = "libjpeg"
    version = "9a"
    url = "https://github.com/Kaosumaru/conan-libjpeg"
    settings = "os", "compiler", "build_type", "arch"
    exports = "libjpeg/*"


    libjpeg_name = "jpeg-%s" % version
    source_tgz = "http://www.ijg.org/files/jpegsr%s.zip" % version
    cmake_file = "https://raw.githubusercontent.com/Kaosumaru/conan-libjpeg/master/CMakeLists.txt"
    jconfig_file = "https://raw.githubusercontent.com/Kaosumaru/conan-libjpeg/master/jconfig.h.cmake"

    def source(self):
        self.output.info("Downloading %s" % self.source_tgz)
        tools.download(self.source_tgz, "libjpeg.zip")
        tools.unzip("libjpeg.zip", ".")
        os.unlink("libjpeg.zip")

        self.output.info("Downloading %s" % self.cmake_file)
        tools.download(self.cmake_file, "%s/CMakeLists.txt" % self.libjpeg_name)
        tools.download(self.jconfig_file, "%s/jconfig.h.cmake" % self.libjpeg_name)


    def config(self):
        pass

    def build(self):


        cmake = CMake(self.settings)
        self.run('cd %s && mkdir build' % self.libjpeg_name)
        self.run('cd %s/build && cmake -DCMAKE_INSTALL_PREFIX:PATH=../../install .. %s' % (self.libjpeg_name, cmake.command_line))
        self.run("cd %s/build && cmake --build . --target install %s" % (self.libjpeg_name, cmake.build_config))

    def package(self):
        self.copy("*.h", dst="include", src="install/include")
        self.copy("*.lib", dst="lib", src="install/lib")
        self.copy("*.a", dst="lib", src="install/lib")

    def package_info(self):
        self.cpp_info.libs = ["jpeg"]
{'fraction_non_alphanumeric': 0.1646482122260669, 'fraction_numerical': 0.0005767012687427913, 'mean_word_length': 3.164465786314526, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3980894', 'n_tokens_mistral': 1287, 'n_tokens_neox': 1207, 'n_words': 198}