<commit_before># Copyright (c) <NAME>, TU Delft.
# All rights reserved.
# See COPYRIGHT for details.

import config
from install_package import InstallPackage
import os
import shutil
import sys
import utils

MPL_TARBALL = "matplotlib-0.98.5.3.tar.gz"
MPL_URL = "http://surfnet.dl.sourceforge.net/sourceforge/matplotlib/%s" % \
          (MPL_TARBALL,)
MPL_DIRBASE = "matplotlib-0.98.5.3"

# I prefer that this be built with numpy, but it is not a dependency
# per se
dependencies = []

class matplotlib(InstallPackage):

    def __init__(self):
        self.tbfilename = os.path.join(config.archive_dir, MPL_TARBALL)
        self.build_dir = os.path.join(config.build_dir, MPL_DIRBASE)
        self.inst_dir = os.path.join(config.inst_dir, 'matplotlib')

    def get(self):
        if os.path.exists(self.tbfilename):
            utils.output("%s already present, not downloading." %
                         (MPL_TARBALL,))
        else:
            utils.goto_archive()
            utils.urlget(MPL_URL)

    def unpack(self):
        if os.path.isdir(self.build_dir):
            utils.output("MATPLOTLIB source already unpacked, not redoing.")
        else:
            utils.output("Unpacking MATPLOTLIB source.")
            utils.unpack_build(self.tbfilename)<commit_msg>Working on the matplotlib package.  Of course there are no win64 binaries.<commit_after># Copyright (c) <NAME>, TU Delft.
# All rights reserved.
# See COPYRIGHT for details.

import config
from install_package import InstallPackage
import os
import shutil
import sys
import utils

MPL_VER = "0.98.5.3"

if os.name == 'posix':
    MPL_ARCHIVE = "matplotlib-%s.tar.gz" % (MPL_VER,)
elif os.name == 'nt':
    MPL_ARCHIVE = "matplotlib-%s.win32-py2.6.exe" % (MPL_VER,)

MPL_URL = "http://surfnet.dl.sourceforge.net/sourceforge/matplotlib/%s" % \
          (MPL_ARCHIVE,)

MPL_DIRBASE = "matplotlib-%s" % (MPL_VER,)

# I prefer that this be built with numpy, but it is not a dependency
# per se
dependencies = []

class matplotlib(InstallPackage):

    def __init__(self):
        self.tbfilename = os.path.join(config.archive_dir, MPL_ARCHIVE)
        self.build_dir = os.path.join(config.build_dir, MPL_DIRBASE)
        self.inst_dir = os.path.join(config.inst_dir, 'matplotlib')

    def get(self):
        if os.path.exists(self.tbfilename):
            utils.output("%s already present, not downloading." %
                         (MPL_ARCHIVE,))
        else:
            utils.goto_archive()
            utils.urlget(MPL_URL)

    def unpack(self):
        if os.path.isdir(self.build_dir):
            utils.output("MATPLOTLIB source already unpacked, not redoing.")
        else:
            utils.output("Unpacking MATPLOTLIB source.")
            utils.unpack_build(self.tbfilename)
{'fraction_non_alphanumeric': 0.11528731478135164, 'fraction_numerical': 0.007589447054571739, 'mean_word_length': 2.81267217630854, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 3, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2116060', 'n_tokens_mistral': 958, 'n_tokens_neox': 910, 'n_words': 207}