<commit_before><?php

namespace Gregwar\Slidey\Nodes;

use Gregwar\RST\Nodes\CodeNode as Base;

class CodeNode extends Base
{
    public function render()
    {
        $language = $this->language ?: 'php';
        $code = htmlspecialchars(trim($this->value));

        if ($language == 'text') {
            $language = 'no-highlight';
        }

        return '<pre><code class="' . $language . '">' . $code . '</code></pre>';<commit_msg>Handling raw values<commit_after><?php

namespace Gregwar\Slidey\Nodes;

use Gregwar\RST\Nodes\CodeNode as Base;

class CodeNode extends Base
{
    public function render()
    {
        if ($this->raw) {
            return $this->value;
        } else {
            $language = $this->language ?: 'php';
            $code = htmlspecialchars(trim($this->value));

            if ($language == 'text') {
                $language = 'no-highlight';
            }

            return '<pre><code class="' . $language . '">' . $code . '</code></pre>';
        }
{'fraction_non_alphanumeric': 0.16733466933867736, 'fraction_numerical': 0.0, 'mean_word_length': 2.141509433962264, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 17, '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': '7416317', 'n_tokens_mistral': 300, 'n_tokens_neox': 294, 'n_words': 66}