<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","calculator","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]))
setup(
    name="calculator",
    version = "0.1",
    description="calculator perspective for SansView",
    package_dir={"sans.perspectives":"perspectives",
                   "sans.perspectives.calculator":"perspectives/calculator"},
    data_files=data_files,
    packages=["sans.perspectives",
                "sans.perspectives.calculator"],
    )

<commit_msg>calculatorview: update setup.py to allow --prefix<commit_after>"""
     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

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


{'fraction_non_alphanumeric': 0.12303030303030303, 'fraction_numerical': 0.0036363636363636364, 'mean_word_length': 3.344736842105263, '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': '3478711', 'n_tokens_mistral': 518, 'n_tokens_neox': 480, 'n_words': 92}