<commit_before>import Content from './components/Content';
import Handles from './components/handles/index';
import Overlay from './components/Overlay';

import {hasValue} from './utils/Object';
import {cell, isElement} from './utils/Dom';
import {MODES, STATES} from './constants';

let scope = Object.seal({
    $$parent : null,
    $$state : STATES.OFFLINE,
    meta : {
        dimensions : {
            x : 0,
            x2 : 0,
            y : 0,
            y2 : 0,
            w : 0,
            h : 0,
        },
        ratio : {
            w : 1,
            h : 1,
        },
    },
    elements : {
        content : null,
        overlay : null,
        handles : null
    },
    options : {
        update_cb : () => {},
        create_cb : () => {},
        destroy_cb : () => {},
        min_crop_width : 32,
        min_crop_height : 32,
        max_width : 500,
        max_height : 500,
        fixed_size : false,
        mode : MODES.SQUARE,
    },
});

function render () {
    if (scope.$$state !== STATES.LOADING) return;

    const img = scope.elements.content.$$source;
<commit_msg>set default min_crop_width/height to 100px<commit_after>import Content from './components/Content';
import Handles from './components/handles/index';
import Overlay from './components/Overlay';

import {hasValue} from './utils/Object';
import {cell, isElement} from './utils/Dom';
import {MODES, STATES} from './constants';

let scope = Object.seal({
    $$parent : null,
    $$state : STATES.OFFLINE,
    meta : {
        dimensions : {
            x : 0,
            x2 : 0,
            y : 0,
            y2 : 0,
            w : 0,
            h : 0,
        },
        ratio : {
            w : 1,
            h : 1,
        },
    },
    elements : {
        content : null,
        overlay : null,
        handles : null
    },
    options : {
        update_cb : () => {},
        create_cb : () => {},
        destroy_cb : () => {},
        min_crop_width : 100,
        min_crop_height : 100,
        max_width : 500,
        max_height : 500,
        fixed_size : false,
        mode : MODES.SQUARE,
    },
});

function render () {
    if (scope.$$state !== STATES.LOADING) return;

    const img = scope.elements.content.$$source;

{'fraction_non_alphanumeric': 0.14323725055432374, 'fraction_numerical': 0.019955654101995565, 'mean_word_length': 1.6050808314087759, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '5283034', 'n_tokens_mistral': 736, 'n_tokens_neox': 686, 'n_words': 172}