<commit_before>define([
    './compiler.js',
    './sprite.js',
    './ui.js'
    ], function(compiler, sprite, ui) {

var spr_editor = $('#sprite-editor')[0];

var loader = new ui.SpriteLoader(spr_editor);

window.requestFileSystem  = window.MozRequestFileSystem || window.webkitRequestFileSystem || window.requestFileSystem;
BlobBuilder = window.MozBlobBuilder || window.WebKitBlobBuilder || window.MSBlobBuilder || window.BlobBuilder;

var ide = {
    files_opened: [],
    //TODO: sprite_canvas: $('#sprite-editor')[0],
    init: function(){
        compiler.set_open_file_handle(this.compiler_open_file);
        this.init_fs();
        $(function() {
            ide.codemirror = CodeMirror.fromTextArea($("#asm")[0], {
                lineNumbers: true,
                matchBrackets: true,
                useCPP: true,
                mode: "text/x-asm",
                onChange: scheduleUpdate
                });
        });
    },
    errorFileHandler: function (e) {
        var msg = '';
        switch (e.code) {
            case FileError.QUOTA_EXCEEDED_ERR:
              msg = 'QUOTA_EXCEEDED_ERR';
              break;
            case FileError.NOT_FOUND_ERR:
              msg = 'NOT_FOUND_ERR';
              break;
            case FileError.SECURITY_ERR:
              msg = 'SECURITY_ERR';<commit_msg>fixed change event on codemirror<commit_after>define([
    './compiler.js',
    './sprite.js',
    './ui.js'
    ], function(compiler, sprite, ui) {

var spr_editor = $('#sprite-editor')[0];

var loader = new ui.SpriteLoader(spr_editor);

window.requestFileSystem  = window.MozRequestFileSystem || window.webkitRequestFileSystem || window.requestFileSystem;
BlobBuilder = window.MozBlobBuilder || window.WebKitBlobBuilder || window.MSBlobBuilder || window.BlobBuilder;

var ide = {
    files_opened: [],
    //TODO: sprite_canvas: $('#sprite-editor')[0],
    init: function(){
        compiler.set_open_file_handle(this.compiler_open_file);
        this.init_fs();
        $(function() {
            ide.codemirror = CodeMirror.fromTextArea($("#asm")[0], {
                lineNumbers: true,
                matchBrackets: true,
                useCPP: true,
                mode: "text/x-asm"
                });
            ide.codemirror.on("change", scheduleUpdate);
        });
    },
    errorFileHandler: function (e) {
        var msg = '';
        switch (e.code) {
            case FileError.QUOTA_EXCEEDED_ERR:
              msg = 'QUOTA_EXCEEDED_ERR';
              break;
            case FileError.NOT_FOUND_ERR:
              msg = 'NOT_FOUND_ERR';
              break;
            case FileError.SECURITY_ERR:
              msg = 'SECURITY_ERR';
{'fraction_non_alphanumeric': 0.13020833333333334, 'fraction_numerical': 0.002232142857142857, 'mean_word_length': 2.1231126596980254, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '285489', 'n_tokens_mistral': 827, 'n_tokens_neox': 806, 'n_words': 137}