<commit_before># -*- coding: utf-8 -*-
"""
    POSIX Installation
    ~~~~~~~~~~~~~~~~~~

    This script is invoked by the makefile to install Zine on a POSIX system.

    :copyright: (c) 2009 by the Zine Team, see AUTHORS for more details.
    :license: BSD, see LICENSE for more details.
"""
import sys
import os
import shutil
from subprocess import call as run


join = os.path.join


PACKAGES = '_dynamic _ext importers utils views websetup docs'.split()
SCRIPTS = 'create-apache-config server shell'.split()
DESTDIR = os.environ.get('DESTDIR')

if DESTDIR is not None:
    DESTDIR = os.path.abspath(DESTDIR)


def silent(f, *args):
    try:
        return f(*args)
    except:
        pass


def rel_path(path, start):
    start_list = os.path.abspath(start).split(os.path.sep)
    path_list = os.path.abspath(path).split(os.path.sep)
    offset = len(os.path.commonprefix([start_list, path_list]))
    parts = [os.path.pardir] * (len(start_list) - offset) + path_list[offset:]
    if not parts:
        return os.path.curdir
    return join(*parts)


def rel_symlink(src, dst):
    os.symlink(rel_path(src, os.path.dirname(dst)), dst)

<commit_msg>Fix for the install script.  Did not install upgrades properly.<commit_after># -*- coding: utf-8 -*-
"""
    POSIX Installation
    ~~~~~~~~~~~~~~~~~~

    This script is invoked by the makefile to install Zine on a POSIX system.

    :copyright: (c) 2009 by the Zine Team, see AUTHORS for more details.
    :license: BSD, see LICENSE for more details.
"""
import sys
import os
import shutil
from subprocess import call as run


join = os.path.join


PACKAGES = '_dynamic _ext importers upgrades utils views websetup docs'.split()
SCRIPTS = 'create-apache-config server shell'.split()
DESTDIR = os.environ.get('DESTDIR')

if DESTDIR is not None:
    DESTDIR = os.path.abspath(DESTDIR)


def silent(f, *args):
    try:
        return f(*args)
    except:
        pass


def rel_path(path, start):
    start_list = os.path.abspath(start).split(os.path.sep)
    path_list = os.path.abspath(path).split(os.path.sep)
    offset = len(os.path.commonprefix([start_list, path_list]))
    parts = [os.path.pardir] * (len(start_list) - offset) + path_list[offset:]
    if not parts:
        return os.path.curdir
    return join(*parts)


def rel_symlink(src, dst):
    os.symlink(rel_path(src, os.path.dirname(dst)), dst)


{'fraction_non_alphanumeric': 0.1333896158716758, 'fraction_numerical': 0.004221190375685944, 'mean_word_length': 3.4052044609665426, 'pattern_counts': {'":': 0, '<': 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': '326060', 'n_tokens_mistral': 827, 'n_tokens_neox': 791, 'n_words': 228}