<commit_before><?php

namespace Isaac\Services\Filesystem;

use League\Flysystem\Adapter\Local;

/**
 * A fork of the Local adapter that grants us permissions to any absolute path
 * instead of working with relative paths.
 */
class AbsoluteLocal extends Local
{
    /**
     * LooseLocal constructor.
     */
    public function __construct()
    {
        $this->permissionMap = static::$permissions;
        $this->writeFlags = LOCK_EX;
    }

    /**
     * {@inheritdoc}
     */
    public function applyPathPrefix($path)
    {
        return $path;
    }
}<commit_msg>Fix path prefix on unix<commit_after><?php

namespace Isaac\Services\Filesystem;

use League\Flysystem\Adapter\Local;

/**
 * A fork of the Local adapter that grants us permissions to any absolute path
 * instead of working with relative paths.
 */
class AbsoluteLocal extends Local
{
    /**
     * LooseLocal constructor.
     */
    public function __construct()
    {
        $this->permissionMap = static::$permissions;
        $this->writeFlags = LOCK_EX;
    }

    /**
     * {@inheritdoc}
     */
    public function applyPathPrefix($path)
    {
        return PHP_OS === 'Linux' ? '/'.$path : $path;
    }
}
{'fraction_non_alphanumeric': 0.11418975650713686, 'fraction_numerical': 0.0, 'mean_word_length': 2.6012084592145017, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '3094199', 'n_tokens_mistral': 343, 'n_tokens_neox': 339, 'n_words': 95}