<commit_before><?php

/*
 * This file is part of the 'octris/proc' package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

declare(ticks=1);

namespace Octris\Process;

/**
 * Abstract child process class.
 *
 * @copyright   copyright (c) 2015 by <NAME>
 * @author      <NAME> <<EMAIL>>
 */
abstract class Child extends \Octris\Process
{
    /**
     * Messaging channel.
     *
     * @type    \Octris\Proc\Messaging
     */
    protected $messaging;

    /**
     * Constructor.
     *
     * @param   \Octris\Proc\Messaging  $messaging          Messaging channel.
     */
    public function __construct(\Octris\Process\Messaging $messaging)
    {
        $this->messaging = $messaging;

        parent::__construct();

        // signal handlers
        pcntl_signal(SIGTERM, function() {
            exit;
        });
    }
<commit_msg>moved signal handling to parent class<commit_after><?php

/*
 * This file is part of the 'octris/proc' package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Octris\Process;

/**
 * Abstract child process class.
 *
 * @copyright   copyright (c) 2015 by <NAME>
 * @author      <NAME> <<EMAIL>>
 */
abstract class Child extends \Octris\Process
{
    /**
     * Messaging channel.
     *
     * @type    \Octris\Proc\Messaging
     */
    protected $messaging;

    /**
     * Constructor.
     *
     * @param   \Octris\Proc\Messaging  $messaging          Messaging channel.
     */
    public function __construct(\Octris\Process\Messaging $messaging)
    {
        $this->messaging = $messaging;

        parent::__construct();
    }

{'fraction_non_alphanumeric': 0.12389867841409692, 'fraction_numerical': 0.004955947136563877, 'mean_word_length': 2.3339449541284405, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '2605508', 'n_tokens_mistral': 574, 'n_tokens_neox': 544, 'n_words': 151}