<commit_before>var Async = require('async');

Polymer(EditorUI.mixin({
    elementBG: null,
    elementSel: null,
    customBG: false,
    atlasBG: null,
    showCheckerboard: true,

    zoom: 1.0,
    highlighted: false,

    url: "",
    uuid: "",
    asset: null,
    meta: null,

    publish: {
        droppable: 'asset',
    },

    created: function () {
        this.elementBG = new Fire.Color( 0.1, 0.38, 1, 0.5 );
        this.elementSel = new Fire.Color(0,0,0,1);
        this.atlasBG = new Fire.Color(1,0,1,1);
    },

    domReady: function () {
        // init asset library
        Fire.AssetLibrary.init("library://");

        //
        this._initDroppable(this.$.view);
    },

    'panel:open': function ( event ) {
        var uuid = event.detail.uuid;
        this.load(uuid);
    },

    'asset:changed': function ( event ) {
        var uuid = event.detail.uuid;

        if ( this.uuid !== uuid ) {
            return;
        }
<commit_msg>fix atlas initialize error<commit_after>var Async = require('async');

Polymer(EditorUI.mixin({
    elementBG: null,
    elementSel: null,
    customBG: false,
    atlasBG: null,
    showCheckerboard: true,

    zoom: 1.0,
    highlighted: false,

    url: "",
    uuid: "",
    asset: null,
    meta: null,

    publish: {
        droppable: 'asset',
    },

    created: function () {
        this.elementBG = new Fire.Color( 0.1, 0.38, 1, 0.5 );
        this.elementSel = new Fire.Color(0,0,0,1);
        this.atlasBG = new Fire.Color(1,0,1,1);

        // init asset library
        Fire.AssetLibrary.init("library://");
    },

    domReady: function () {
        //
        this._initDroppable(this.$.view);
    },

    'panel:open': function ( event ) {
        var uuid = event.detail.uuid;
        this.load(uuid);
    },

    'asset:changed': function ( event ) {
        var uuid = event.detail.uuid;

        if ( this.uuid !== uuid ) {
            return;
        }

{'fraction_non_alphanumeric': 0.15218508997429306, 'fraction_numerical': 0.018508997429305913, 'mean_word_length': 1.921921921921922, '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': '3726548', 'n_tokens_mistral': 671, 'n_tokens_neox': 646, 'n_words': 135}