<commit_before>from spack import *
import os

class PyMatplotlib(Package):
    """Python plotting package."""
    homepage = "https://pypi.python.org/pypi/matplotlib"
    url      = "https://pypi.python.org/packages/source/m/matplotlib/matplotlib-1.4.2.tar.gz"

    version('1.4.2', '<KEY>')
    version('1.4.3', '86af2e3e3c61849ac7576a6f5ca44267')

    extends('python', ignore=r'bin/nosetests.*$')

    depends_on('py-pyside')
    depends_on('py-ipython')
    depends_on('py-pyparsing')
    depends_on('py-six')
    depends_on('py-dateutil')
    depends_on('py-pytz')
    depends_on('py-nose')
    depends_on('py-numpy')

    depends_on('qt')
    depends_on('bzip2')
    depends_on('tcl')
    depends_on('tk')<commit_msg>py-matplotlib: make the gui and ipython support optional<commit_after>from spack import *
import os

class PyMatplotlib(Package):
    """Python plotting package."""
    homepage = "https://pypi.python.org/pypi/matplotlib"
    url      = "https://pypi.python.org/packages/source/m/matplotlib/matplotlib-1.4.2.tar.gz"

    version('1.4.2', '<KEY>')
    version('1.4.3', '8<PASSWORD>e3e3c6184<PASSWORD>6a6f5<PASSWORD>')

    variant('gui', default=False, description='Enable GUI')
    variant('ipython', default=False, description='Enable ipython support')

    extends('python', ignore=r'bin/nosetests.*$')

    depends_on('py-pyside', when='+gui')
    depends_on('py-ipython', when='+ipython')
    depends_on('py-pyparsing')
    depends_on('py-six')
    depends_on('py-dateutil')
    depends_on('py-pytz')
    depends_on('py-nose')
    depends_on('py-numpy')

    depends_on('qt', when='+gui')
    depends_on('bzip2')
    depends_on('tcl', when='+gui')
    depends_on('tk', when='+gui')
{'fraction_non_alphanumeric': 0.1832552693208431, 'fraction_numerical': 0.029859484777517563, 'mean_word_length': 4.116766467065868, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '5385494', 'n_tokens_mistral': 680, 'n_tokens_neox': 676, 'n_words': 84}