<commit_before>import Ember from 'ember';
// import layout from '../templates/components/addon-jsignature';

const defaultConfig = {
    // plugins
    UndoButton: true,
    CompressorSVG: true,

    // data formats: default(bitmap), native, base30, svg, svgbase64, image
    dataFormat: 'svg',

    // settings
    width: 'ratio',
    height: 'ratio',
    sizeRatio: 4, // only used when height = 'ratio'
    color: '#000',
    'background-color': '#fff',
    'decor-color': '#eee',
    lineWidth: 0,
    minFatFingerCompensation: -10,
    showUndoButton: false,
    readOnly: false,
    data: [],

};

export default Ember.Component.extend(
{
    classNames: ['addon-jsignature'],
    // layout,



    /**
     *   Addon Attributes
     */

    changeListener: null,


    /**
     *   Addon Lifecycle
     */

    init()
    {
        this._super();
        this._setConfig();
    },

    loadComponent: Ember.on('didInsertElement', function()
    {
        return this.jSignature(this.get('_config'))
            .on('change', () => this.onChange());
    }),

    destroyComponent: Ember.on('willDestroyElement', function()
    {
        Ember.run.cancel(this.scheduledUpdate);
    }),

    onEnd: function(){},<commit_msg>don't need init()<commit_after>import Ember from 'ember';
// import layout from '../templates/components/addon-jsignature';

const defaultConfig = {
    // plugins
    UndoButton: true,
    CompressorSVG: true,

    // data formats: default(bitmap), native, base30, svg, svgbase64, image
    dataFormat: 'svg',

    // settings
    width: 'ratio',
    height: 'ratio',
    sizeRatio: 4, // only used when height = 'ratio'
    color: '#000',
    'background-color': '#fff',
    'decor-color': '#eee',
    lineWidth: 0,
    minFatFingerCompensation: -10,
    showUndoButton: false,
    readOnly: false,
    data: [],

};

export default Ember.Component.extend(
{
    classNames: ['addon-jsignature'],
    // layout,



    /**
     *   Addon Attributes
     */

    changeListener: null,


    /**
     *   Addon Lifecycle
     */

    loadComponent: Ember.on('didInsertElement', function()
    {
        this._setConfig();
        return this.jSignature(this.get('_config'))
            .on('change', () => this.onChange());
    }),

    destroyComponent: Ember.on('willDestroyElement', function()
    {
        Ember.run.cancel(this.scheduledUpdate);
    }),

    onEnd: function(){},
{'fraction_non_alphanumeric': 0.1558872305140962, 'fraction_numerical': 0.00912106135986733, 'mean_word_length': 2.512372634643377, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3206186', 'n_tokens_mistral': 797, 'n_tokens_neox': 756, 'n_words': 159}