<commit_before>#!/usr/bin/env python

import sys

from distutils.core import setup, Extension
import distutils.ccompiler

packages=['qutepart', 'qutepart/syntax']

package_data={'qutepart/syntax' : ['data/*.xml',
                                   'data/syntax_db.json']
             }

extension = Extension('qutepart.syntax.cParser',
                      sources = ['qutepart/syntax/cParser.c'],
                      libraries = ['pcre'])


def _checkDependencies():
    compiler = distutils.ccompiler.new_compiler()
    if not compiler.has_function('pcre_version', includes = ['pcre.h'], libraries = ['pcre']):
        print "Failed to find pcre library."
        print "\tTry to install libpcre{version}-dev package, or go to http://pcre.org"
        print "\tIf not standard directories are used, set CFLAGS and LDFLAGS environment variables"
        return False
    
    return True


if 'install' in sys.argv or 'build' in sys.argv or 'build_ext' in sys.argv:
    if not '--force' in sys.argv and not '--help' in sys.argv:
        if not _checkDependencies():
            sys.exit(-1)


setup (name = 'qutepart',
       version = '1.0',
       description = 'Code editor component for PyQt and PySide',
       packages = packages,
       package_data = package_data,
       ext_modules = [extension])
<commit_msg>Install icons<commit_after>#!/usr/bin/env python

import sys

from distutils.core import setup, Extension
import distutils.ccompiler

packages=['qutepart', 'qutepart/syntax']

package_data={'qutepart' : ['icons/*.png'],
              'qutepart/syntax' : ['data/*.xml',
                                   'data/syntax_db.json']
             }

extension = Extension('qutepart.syntax.cParser',
                      sources = ['qutepart/syntax/cParser.c'],
                      libraries = ['pcre'])


def _checkDependencies():
    compiler = distutils.ccompiler.new_compiler()
    if not compiler.has_function('pcre_version', includes = ['pcre.h'], libraries = ['pcre']):
        print "Failed to find pcre library."
        print "\tTry to install libpcre{version}-dev package, or go to http://pcre.org"
        print "\tIf not standard directories are used, set CFLAGS and LDFLAGS environment variables"
        return False
    
    return True


if 'install' in sys.argv or 'build' in sys.argv or 'build_ext' in sys.argv:
    if not '--force' in sys.argv and not '--help' in sys.argv:
        if not _checkDependencies():
            sys.exit(-1)


setup (name = 'qutepart',
       version = '1.0',
       description = 'Code editor component for PyQt and PySide',
       packages = packages,
       package_data = package_data,
       ext_modules = [extension])

{'fraction_non_alphanumeric': 0.12007434944237919, 'fraction_numerical': 0.0022304832713754648, 'mean_word_length': 2.490272373540856, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, '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': '1605161', 'n_tokens_mistral': 818, 'n_tokens_neox': 788, 'n_words': 225}