<commit_before>/* Licensed under the MIT license:
 * http://www.opensource.org/licenses/mit-license.php
 * Copyright (c) 2010 Mr.doob, rhyolight, bebraw
 */
function canvas() {
    this.init();
}
canvas.prototype = {
    init: function () {},
    destroy: function () {},
    initUI: function () {
        setUpPod("Canvas");

        $('#canvasPod').click(function() {
            $(this).css("visibility", "hidden");
            $('#canvasCheckbox').attr('checked', false);
            $('#canvasPanel').dialog('open');
        });

        // set up background panel
        $("body").append('<div class="panel" id="canvasPanel" title="Canvas"> \
                <div id="canvasOptions"> \
                    <input type="radio" id="solidCanvas" name="canvasOptions" checked="checked" value="solid" /><label for="solidCanvas">Solid</label> \
                    <input type="radio" id="gradientCanvas" name="canvasOptions" value="gradient" /><label for="gradientCanvas">Gradient</label> \
                    <input type="radio" id="textureCanvas" name="canvasOptions" value="texture" /><label for="textureCanvas">Texture</label> \
                </div> \
            </div>');

        var backgroundColor = '00ff00';
        $('#canvasPanel').append('<div id="solidColorSelector"> \
                <input style="width: 1em; height: 1em;" class="color {valueElement:' +<commit_msg>Set background color to proper initial value.<commit_after>/* Licensed under the MIT license:
 * http://www.opensource.org/licenses/mit-license.php
 * Copyright (c) 2010 Mr.doob, rhyolight, bebraw
 */
function canvas() {
    this.init();
}
canvas.prototype = {
    init: function () {},
    destroy: function () {},
    initUI: function () {
        setUpPod("Canvas");

        $('#canvasPod').click(function() {
            $(this).css("visibility", "hidden");
            $('#canvasCheckbox').attr('checked', false);
            $('#canvasPanel').dialog('open');
        });

        // set up background panel
        $("body").append('<div class="panel" id="canvasPanel" title="Canvas"> \
                <div id="canvasOptions"> \
                    <input type="radio" id="solidCanvas" name="canvasOptions" checked="checked" value="solid" /><label for="solidCanvas">Solid</label> \
                    <input type="radio" id="gradientCanvas" name="canvasOptions" value="gradient" /><label for="gradientCanvas">Gradient</label> \
                    <input type="radio" id="textureCanvas" name="canvasOptions" value="texture" /><label for="textureCanvas">Texture</label> \
                </div> \
            </div>');

        var backgroundColor = RGBtoHex(BACKGROUNDCOLOR);
        $('#canvasPanel').append('<div id="solidColorSelector"> \
                <input style="width: 1em; height: 1em;" class="color {valueElement:' +
{'fraction_non_alphanumeric': 0.17946902654867256, 'fraction_numerical': 0.005663716814159292, 'mean_word_length': 2.77807486631016, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '82946', 'n_tokens_mistral': 786, 'n_tokens_neox': 741, 'n_words': 158}