<commit_before>import { h, app } from 'hyperapp';
import browser from 'webextension-polyfill';

const actions = {};

function view(recipe) {
    return (
        <div id="wrapper">
            { viewHeader(recipe) }

            <main>
                <div className="grid">
                    { viewIngredients(recipe) }
                    { viewInstructions(recipe) }
                </div>
            </main>
        </div>
    );
}

function viewHeader(recipe) {
    const image = recipe.image ? <img src={recipe.image} /> : null;
    const hostname = (new URL(recipe.url)).hostname;

    const bylineParts = [
        recipe.author && (<span> By { recipe.author } </span>),
        recipe.yield && (<span> Yields { recipe.yield } </span>),
        recipe.time && (<span> { recipe.time } </span>),
        <span>Via <a href={ recipe.url }>{ hostname }</a></span>
    ].filter(e => e);

    let byline = [];<commit_msg>Embed original JSON LD as script tag<commit_after>import { h, app } from 'hyperapp';
import browser from 'webextension-polyfill';

const actions = {};

function view(recipe) {
    return (
        <div id="wrapper">
            { viewHeader(recipe) }

            <main>
                <div className="grid">
                    { viewIngredients(recipe) }
                    { viewInstructions(recipe) }
                </div>
            </main>

            <script type="application/ld+json">
                { JSON.stringify(recipe.original) }
            </script>
        </div>
    );
}

function viewHeader(recipe) {
    const image = recipe.image ? <img src={recipe.image} /> : null;
    const hostname = (new URL(recipe.url)).hostname;

    const bylineParts = [
        recipe.author && (<span> By { recipe.author } </span>),
        recipe.yield && (<span> Yields { recipe.yield } </span>),
        recipe.time && (<span> { recipe.time } </span>),
        <span>Via <a href={ recipe.url }>{ hostname }</a></span>
    ].filter(e => e);

    let byline = [];
{'fraction_non_alphanumeric': 0.1593186372745491, 'fraction_numerical': 0.0, 'mean_word_length': 1.9541420118343196, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 41, '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': '7647478', 'n_tokens_mistral': 627, 'n_tokens_neox': 604, 'n_words': 136}