<commit_before><?php

namespace Probuild\Manager;

use Probuild\AbstractManager;

class Link extends AbstractManager
{

    /**
     * @param array $paths
     * @param string $target
     * @return Link
     * @author <NAME> <<EMAIL>>
     */
    public function createLinks($paths, $target)
    {
        foreach ($paths as $path) {
            $path = $this->prepareDirectoryPath($path);
            $this->getShell()->exec("ln -s {$path}* $target");
        }
<commit_msg>use cp -alf instead of ln -s for links + write results<commit_after><?php

namespace Probuild\Manager;

use Probuild\AbstractManager;

class Link extends AbstractManager
{

    /**
     * @param array $paths
     * @param string $target
     * @return Link
     * @author <NAME> <<EMAIL>>
     */
    public function createLinks($paths, $target)
    {
        foreach ($paths as $path) {
            $path = $this->prepareDirectoryPath($path);
            $this->write(
                $this->getShell()->exec("cp -alf {$path}* $target")
            );
        }

{'fraction_non_alphanumeric': 0.1424446583253128, 'fraction_numerical': 0.0, 'mean_word_length': 2.3226837060702876, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 16, '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': '7124001', 'n_tokens_mistral': 304, 'n_tokens_neox': 301, 'n_words': 79}