<commit_before><?php

namespace Edge\Markdown;

use Michelf\MarkdownExtra;

class GithubFlavouredMarkdown implements MarkdownInterface
{
    /**
     * Apply Github flavoured markdown to plain text, then passes through Markdown
     *
     * @param string $text
     * @return string
     */
    public function transform($text)
    {
        $markdown = new MarkdownExtra();
        return $markdown->transform($this->applyFlavour($text));
    }<commit_msg>Don't htmlspecialchars in code blocks, provide to parser as such<commit_after><?php

namespace Edge\Markdown;

use Michelf\MarkdownExtra;

class GithubFlavouredMarkdown implements MarkdownInterface
{
    /**
     * Apply Github flavoured markdown to plain text, then passes through Markdown
     *
     * @param string $text
     * @return string
     */
    public function transform($text)
    {
        $markdown = new MarkdownExtra();
        $markdown->code_block_content_func = function($input) {
            return $input;
        };

        return $markdown->transform($this->applyFlavour($text));
    }
{'fraction_non_alphanumeric': 0.09719626168224299, 'fraction_numerical': 0.0, 'mean_word_length': 3.0722433460076046, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '7580457', 'n_tokens_mistral': 300, 'n_tokens_neox': 291, 'n_words': 79}