<commit_before>'use babel';

/** @jsx elementCreator */
import {domElement as elementCreator} from './elementCreator';
import EventEmitter from 'events';

const path = require('path'),
      fs = require('fs');

export default class OptionsView {
    constructor (currentOptions = {}) {
        this.isChecked = true;
        this.currentOptions = currentOptions;
        this.emitter = new EventEmitter();
        this.cartridges = {
            all: [],
            checked: []
        };
        this.el =
        <div class="b-bart-options">
            <div class="bart-options-main">
                <div class='block'>
                    <label>Credentials for sandbox</label>
                </div>
                <div class='block'>
                    <div class="controls">
                        <label class="control-label">
                            HostName
                        </label>
                        <div class="controls">
                            <div class="editor-container">
                                <atom-text-editor mini="" class="mini editor bart-hostname"
                                    tabindex="1" id="bart-hostname"
                                    placeholder-text="some.demandware.net"
                                />
                            </div>
                        </div>
                    </div>
                </div>
                <div class='block'>
                    <div class="controls">
                        <label class="control-label">
                            UserName
                        </label>
                        <div class="controls">
                            <div class="editor-container">
                                <atom-text-editor mini="" class="mini editor bart-username"
                                    tabindex="2" id="bart-username"
                                    placeholder-text="Your username on sandbox"
                                />
                            </div>
                        </div>
                    </div>
                </div>
                <div class='block'>
                    <div class="controls">
                        <label class="control-label">
                            Password
                        </label>
                        <div class="controls">
                            <div class="editor-container">
                                <input type="password" class="mini editor bart-password"
                                    tabindex="3" id="bart-password"
                                    placeholder-text="password"
                                    onKeyDown={this.handleKeyPress.bind(this)}
                                />
                            </div>
                        </div>
                    </div>
                </div>
                <div class='block'>
                    <div class="controls">
                        <label class="control-label">
                            Code version
                        </label>
                        <div class="controls">
                            <div class="editor-container">
                                <atom-text-editor mini="" class="mini editor bart-version"
                                    tabindex="4" id="bart-codeversion"
                                    placeholder-text="Current code version"
                                />
                            </div>
                        </div>
                    </div>
                </div>
                <div class='block'>
                    <div class='bart-list-container'>
                        <label>Cartridges found in project</label>
                        <div class="control-group">
                            <button class="btn bart-btn-all" onClick={this.setAll.bind(this)}>Deselect All</button>
                        </div>
                        <div class="cartridgelist-div-list">
                            <ul class="cartridgelist-ul">
                            </ul>
                        </div>
                    </div>
                </div>
                <div class='block'>
                    <div class="controls">
                        <label class="control-label">
                            List of files that should be wathched (separated by new line)
                        </label>
                        <div class="controls">
                            <div class="editor-container">
                                <atom-text-editor class="mini editor bart-watchlist"
                                    tabindex="4" id="bart-watchlist"
                                    placeholder-text="File list (absolute path)"
                                />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class='block'>
                <div class="control-group">
                    <div class="controls">
                        <div class="checkbox">
                            <label for="bart-uploadaftersave">
                                <input id="bart-uploadaftersave"
                                    type="checkbox"
                                    checked="checked"
                                    class="bart-uploadaftersave" />
                                <div class="setting-title">Upload all after save</div>
                            </label>
                        </div>
                    </div>
                </div>
            </div>
            <div class='block'>
                <div class="control-group">
                    <div class="controls">
                        <div class="checkbox">
                            <label for="bart-saveconfigtofile">
                                <input id="bart-saveconfigtofile"
                                    type="checkbox"
                                    checked="checked"
                                    class="bart-saveconfigtofile" /><commit_msg>fix tab order of controls in options view<commit_after>'use babel';

/** @jsx elementCreator */
import {domElement as elementCreator} from './elementCreator';
import EventEmitter from 'events';

const path = require('path'),
      fs = require('fs');

export default class OptionsView {
    constructor (currentOptions = {}) {
        this.isChecked = true;
        this.currentOptions = currentOptions;
        this.emitter = new EventEmitter();
        this.cartridges = {
            all: [],
            checked: []
        };
        this.el =
        <div class="b-bart-options">
            <div class="bart-options-main">
                <div class='block'>
                    <label>Credentials for sandbox</label>
                </div>
                <div class='block'>
                    <div class="controls">
                        <label class="control-label">
                            HostName
                        </label>
                        <div class="controls">
                            <div class="editor-container">
                                <atom-text-editor mini="" class="mini editor bart-hostname"
                                    tabindex="1" id="bart-hostname"
                                    placeholder-text="some.demandware.net"
                                />
                            </div>
                        </div>
                    </div>
                </div>
                <div class='block'>
                    <div class="controls">
                        <label class="control-label">
                            UserName
                        </label>
                        <div class="controls">
                            <div class="editor-container">
                                <atom-text-editor mini="" class="mini editor bart-username"
                                    tabindex="2" id="bart-username"
                                    placeholder-text="Your username on sandbox"
                                />
                            </div>
                        </div>
                    </div>
                </div>
                <div class='block'>
                    <div class="controls">
                        <label class="control-label">
                            Password
                        </label>
                        <div class="controls">
                            <div class="editor-container">
                                <input type="password" class="mini editor bart-password"
                                    tabindex="3" id="bart-password"
                                    placeholder-text="password"
                                    onKeyDown={this.handleKeyPress.bind(this)}
                                />
                            </div>
                        </div>
                    </div>
                </div>
                <div class='block'>
                    <div class="controls">
                        <label class="control-label">
                            Code version
                        </label>
                        <div class="controls">
                            <div class="editor-container">
                                <atom-text-editor mini="" class="mini editor bart-version"
                                    tabindex="4" id="bart-codeversion"
                                    placeholder-text="Current code version"
                                />
                            </div>
                        </div>
                    </div>
                </div>
                <div class='block'>
                    <div class='bart-list-container'>
                        <label>Cartridges found in project</label>
                        <div class="control-group">
                            <button tabindex="5" class="btn bart-btn-all" onClick={this.setAll.bind(this)}>Deselect All</button>
                        </div>
                        <div class="cartridgelist-div-list">
                            <ul tabindex="6" class="cartridgelist-ul">
                            </ul>
                        </div>
                    </div>
                </div>
                <div class='block'>
                    <div class="controls">
                        <label class="control-label">
                            List of files that should be wathched (separated by new line)
                        </label>
                        <div class="controls">
                            <div class="editor-container">
                                <atom-text-editor class="mini editor bart-watchlist"
                                    tabindex="7" id="bart-watchlist"
                                    placeholder-text="File list (absolute path)"
                                />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class='block'>
                <div class="control-group">
                    <div class="controls">
                        <div class="checkbox">
                            <label for="bart-uploadaftersave">
                                <input id="bart-uploadaftersave"
                                    tabindex="8"
                                    type="checkbox"
                                    checked="checked"
                                    class="bart-uploadaftersave" />
                                <div class="setting-title">Upload all after save</div>
                            </label>
                        </div>
                    </div>
                </div>
            </div>
            <div class='block'>
                <div class="control-group">
                    <div class="controls">
                        <div class="checkbox">
                            <label for="bart-saveconfigtofile">
                                <input id="bart-saveconfigtofile"
                                    tabindex="9"
                                    type="checkbox"
                                    checked="checked"
                                    class="bart-saveconfigtofile" />
{'fraction_non_alphanumeric': 0.09964355152300713, 'fraction_numerical': 0.001134154244977317, 'mean_word_length': 0.7813852813852814, 'pattern_counts': {'":': 0, '<': 193, '<?xml version=': 0, '>': 193, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 36, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6393029', 'n_tokens_mistral': 2680, 'n_tokens_neox': 2430, 'n_words': 511}