<commit_before>"use strict";

var CROP_CONTROLS = `<div id='crop-controls'>
<div id="active"></div>
T: <input name="top" value="">
L: <input name="left" value="">
B: <input name="bottom" value="">
R: <input name="right" value="">
Crop: <input id="crop-output"></div>
</div>`;

$(document).ready(function (){
    console.log("Loaded debug crop tool.");

    $(".zzt-img").click(crop);
    $("body").append(CROP_CONTROLS);

    $("#crop-controls input").click(function (){$(this).select()});
    $("#crop-controls input").keyup(function (e){ adjust(e) });
    $("#crop-controls input").keyup(preview);
});


var crop = function (){
    $(".zzt-img").removeClass("editing");
    $(this).addClass("editing");
    $("#active").html($(this).children().attr("alt"));
    $("input[name=top]").val(1);
    $("input[name=left]").val(1);<commit_msg>Fix labels being backwards.<commit_after>"use strict";

var CROP_CONTROLS = `<div id='crop-controls'>
<div id="active"></div>
L: <input name="top" value="">
T: <input name="left" value="">
R: <input name="bottom" value="">
B: <input name="right" value="">
Crop: <input id="crop-output"></div>
</div>`;

$(document).ready(function (){
    console.log("Loaded debug crop tool.");

    $(".zzt-img").click(crop);
    $("body").append(CROP_CONTROLS);

    $("#crop-controls input").click(function (){$(this).select()});
    $("#crop-controls input").keyup(function (e){ adjust(e) });
    $("#crop-controls input").keyup(preview);
});


var crop = function (){
    $(".zzt-img").removeClass("editing");
    $(this).addClass("editing");
    $("#active").html($(this).children().attr("alt"));
    $("input[name=top]").val(1);
    $("input[name=left]").val(1);
{'fraction_non_alphanumeric': 0.2739644970414201, 'fraction_numerical': 0.002366863905325444, 'mean_word_length': 5.149090909090909, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '3380449', 'n_tokens_mistral': 598, 'n_tokens_neox': 587, 'n_words': 106}