<commit_before>"""
     Installation script for DANSE calculator perspective for SansView
"""

    
import os

from distutils.core import setup
from distutils.sysconfig import get_python_lib
from distutils.filelist import findall
new_path = os.path.join(get_python_lib(),"sans","perspectives","invariant","media")
path = "media"
data_files = []
for f in findall(path):
    if os.path.split(f)[0].count('.svn')==0:
        data_files.append((new_path, [f]))
from distutils.core import setup
setup(
    name="invariant",
    description = "Invariant perspective for SansView",
    package_dir = {"sans.perspectives":"perspectives",
                   "sans.perspectives.invariant":"perspectives/invariant"},
    data_files=data_files,
    packages = ["sans.perspectives",
                "sans.perspectives.invariant"],
    )

<commit_msg>invariantview: update setup.py to allow install with --prefix<commit_after>"""
     Installation script for DANSE calculator perspective for SansView
"""
import os
from distutils.core import setup

setup(
    name="invariant",
    description = "Invariant perspective for SansView",
    package_dir = {"sans.perspectives":"perspectives",
                   "sans.perspectives.invariant":"perspectives/invariant",
                   "sans.perspectives.invariant.media":"media"},
    package_data={'sans.perspectives.invariant.media': ['*']},
    packages = ["sans.perspectives",
                "sans.perspectives.invariant",
                "sans.perspectives.invariant.media"],
    )


{'fraction_non_alphanumeric': 0.12244897959183673, 'fraction_numerical': 0.0012755102040816326, 'mean_word_length': 3.172872340425532, 'pattern_counts': {'":': 5, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '5358289', 'n_tokens_mistral': 474, 'n_tokens_neox': 435, 'n_words': 92}