<commit_before><?php
/**
 * @copyright Copyright (c) 2017 netz98 GmbH (http://www.netz98.de)
 *
 * @see LICENSE
 */

namespace N98\Deployer\Task;

/**
 * TaskAbstract
 */
abstract class TaskAbstract
{
    /**
     * Path to Release Dir
     *
     * @var string
     */
    protected static $pathReleaseDir = '{{release_path}}';

    /**
     * Path to Application Dir
     *
     * @var string
     */
    protected static $pathAppDir = null;

    /**
     * Path to Shared Dir
     *
     * @var string
     */
    protected static $pathSharedDir = '{{deploy_path}}/shared';

    /**
     * Get AppDir
     *
     * @return string
     */
    public static function getAppDir()
    {
        return \Deployer\get('app_dir');
    }

    /**
     * Get AppDir
     *
     * @return string
     */
    public static function getPathAppDir()
    {
        if (self::$pathAppDir === null) {
            // use releaseDir
            self::$pathAppDir = self::$pathReleaseDir;

            // use custom app dir if set
            if (!empty( self::getAppDir())) {
                self::$pathAppDir = '/' .  self::getAppDir();
            }
        }

        return self::$pathAppDir;
    }

    /**
     * Get ReleaseDir
     *
     * @return string
     */
    public static function getPathReleaseDir()
    {
        return self::$pathReleaseDir;
    }

    /**
     * Get SharedDir
     *
     * @return string
     */
    public static function getPathSharedDir()
    {
        return self::$pathSharedDir;
    }

}<commit_msg>[FIX] correct building of pathAppDir<commit_after><?php
/**
 * @copyright Copyright (c) 2017 netz98 GmbH (http://www.netz98.de)
 *
 * @see LICENSE
 */

namespace N98\Deployer\Task;

/**
 * TaskAbstract
 */
abstract class TaskAbstract
{
    /**
     * Path to Release Dir
     *
     * @var string
     */
    protected static $pathReleaseDir = '{{release_path}}';

    /**
     * Path to Application Dir
     *
     * @var string
     */
    protected static $pathAppDir = null;

    /**
     * Path to Shared Dir
     *
     * @var string
     */
    protected static $pathSharedDir = '{{deploy_path}}/shared';

    /**
     * Get AppDir
     *
     * @return string
     */
    public static function getAppDir()
    {
        return \Deployer\get('app_dir');
    }

    /**
     * Get AppDir
     *
     * @return string
     */
    public static function getPathAppDir()
    {
        if (self::$pathAppDir === null) {
            // use releaseDir
            self::$pathAppDir = self::$pathReleaseDir;

            // use custom app dir if set
            if (!empty(self::getAppDir())) {
                self::$pathAppDir .= '/' . self::getAppDir();
            }
        }

        return self::$pathAppDir;
    }

    /**
     * Get ReleaseDir
     *
     * @return string
     */
    public static function getPathReleaseDir()
    {
        return self::$pathReleaseDir;
    }

    /**
     * Get SharedDir
     *
     * @return string
     */
    public static function getPathSharedDir()
    {
        return self::$pathSharedDir;
    }

}
{'fraction_non_alphanumeric': 0.1314935064935065, 'fraction_numerical': 0.006493506493506494, 'mean_word_length': 1.6791304347826086, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5696860', 'n_tokens_mistral': 956, 'n_tokens_neox': 925, 'n_words': 211}