<commit_before><?php

namespace SamIT\AutoUpdater\Generator;
/**
 * A pre-update package contains information need to support the following operations on the client:
 * - Show the changelog
 * - Run custom, build specific, pre-check code.
 * - Check for local file modifications.
 * - Perform a simulated upgrade.
 */
class PreUpdate extends Base {
    protected $precheck;
    
    public function getData() {
        $result = [
            'removedFiles' => $this->diff->getRemoved(),
            'changedFiles' => $this->diff->getChanged(),
            'createdFiles' => $this->diff->getCreated(),
            'sourceHashes' => $this->diff->getSourceHashes(),
            'targetHashes' => $this->diff->getTargetHashes(),
            'changeLog' => $this->diff->getChangeLog(),
            'from' => $this->diff->getFrom(),
            'from' => $this->diff->getTo(),
            'precheck' => base64_encode($this->precheck)
        ];<commit_msg>Fixed incorrect key for storing "to" version.<commit_after><?php

namespace SamIT\AutoUpdater\Generator;
/**
 * A pre-update package contains information need to support the following operations on the client:
 * - Show the changelog
 * - Run custom, build specific, pre-check code.
 * - Check for local file modifications.
 * - Perform a simulated upgrade.
 */
class PreUpdate extends Base {
    protected $precheck;
    
    public function getData() {
        $result = [
            'removedFiles' => $this->diff->getRemoved(),
            'changedFiles' => $this->diff->getChanged(),
            'createdFiles' => $this->diff->getCreated(),
            'sourceHashes' => $this->diff->getSourceHashes(),
            'targetHashes' => $this->diff->getTargetHashes(),
            'changeLog' => $this->diff->getChangeLog(),
            'from' => $this->diff->getFrom(),
            'to' => $this->diff->getTo(),
            'precheck' => base64_encode($this->precheck)
        ];
{'fraction_non_alphanumeric': 0.15269151138716355, 'fraction_numerical': 0.002070393374741201, 'mean_word_length': 2.647169811320755, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 55, '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': '787067', 'n_tokens_mistral': 534, 'n_tokens_neox': 534, 'n_words': 132}