<commit_before>import os
import re
from carbonate import __version__
from setuptools import setup, find_packages
from setuptools.command.install_scripts import install_scripts


class my_install_scripts(install_scripts):
  def write_script(self, script_name, contents, mode="t", *ignored):
    contents = re.sub("import sys",
                      "import sys\nsys.path.append('/opt/graphite/lib')",
                      contents)
    install_scripts.write_script(self, script_name, contents, mode="t", *ignored)


def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()

setup(
    name="carbonate",
    version=__version__,
    author="<NAME>",
    author_email="<EMAIL>",
    description=("Tools for managing federated carbon clusters."),
    license = "MIT",
    keywords = "graphite carbon",
    url = "https://github.com/jssjr/carbonate",
    include_package_data = True,
    packages=find_packages(),
    long_description = read('README.md'),
    install_requires = [
      "carbon",
      "whisper",
    ],
    cmdclass={'install_scripts': my_install_scripts},
    entry_points = {
        'console_scripts': [
            'carbon-lookup = carbonate.cli:carbon_lookup',
            'carbon-sync = carbonate.cli:carbon_sync',
            'carbon-sieve = carbonate.cli:carbon_sieve',
            'carbon-list = carbonate.cli:carbon_list',
            'carbon-hosts = carbonate.cli:carbon_hosts',
            'carbon-path = carbonate.cli:carbon_path',
            'whisper-fill = carbonate.cli:whisper_fill',
            'whisper-aggregate = carbonate.cli:whisper_aggregate'
            ]
        }
    )<commit_msg>change path to carbon lib<commit_after>import os
import re
from carbonate import __version__
from setuptools import setup, find_packages
from setuptools.command.install_scripts import install_scripts


class my_install_scripts(install_scripts):
  def write_script(self, script_name, contents, mode="t", *ignored):
    contents = re.sub("import sys",
                      "import sys\nsys.path.append('/opt/graphite-storage/lib')",
                      contents)
    install_scripts.write_script(self, script_name, contents, mode="t", *ignored)


def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()

setup(
    name="carbonate",
    version=__version__,
    author="<NAME>",
    author_email="<EMAIL>",
    description=("Tools for managing federated carbon clusters."),
    license = "MIT",
    keywords = "graphite carbon",
    url = "https://github.com/jssjr/carbonate",
    include_package_data = True,
    packages=find_packages(),
    long_description = read('README.md'),
    install_requires = [
      "whisper",
    ],
    cmdclass={'install_scripts': my_install_scripts},
    entry_points = {
        'console_scripts': [
            'carbon-lookup = carbonate.cli:carbon_lookup',
            'carbon-sync = carbonate.cli:carbon_sync',
            'carbon-sieve = carbonate.cli:carbon_sieve',
            'carbon-list = carbonate.cli:carbon_list',
            'carbon-hosts = carbonate.cli:carbon_hosts',
            'carbon-path = carbonate.cli:carbon_path',
            'whisper-fill = carbonate.cli:whisper_fill',
            'whisper-aggregate = carbonate.cli:whisper_aggregate'
            ]
        }
    )
{'fraction_non_alphanumeric': 0.12379227053140096, 'fraction_numerical': 0.0, 'mean_word_length': 3.045177045177045, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '1099527', 'n_tokens_mistral': 1037, 'n_tokens_neox': 972, 'n_words': 177}