<commit_before>'use strict';

var child_process = require('child_process');
var fs = require('fs');
var path = require('path');
var _ = require('lodash');

var SaveConfirmView = require('./save-confirm-view');
var BuildView = require('./build-view');

module.exports = {
  config: {
    autoBuildOnSave: {
      type: 'boolean',
      default: false
    },
    monocleHeight: {
      type: 'number',
      default: 0.75
    },
    minimizedHeight: {
      type: 'number',
      default: 0.15
    },
    keepVisible: {
      type: 'boolean',
      default: false
    },
    saveOnBuild: {
      type: 'boolean',
      default: false
    }
  },

  activate: function(state) {
    // Manually append /usr/local/bin as it may not be set on some systems,
    // and it's common to have node installed here. Keep it at end so it won't
    // accidentially override any other node installation
    process.env.PATH += ':/usr/local/bin';

    var self = this;
    this.buildView = new BuildView();
    atom.commands.add('atom-workspace', 'build:trigger', this.build.bind(this));
    atom.commands.add('atom-workspace', 'build:stop', this.stop.bind(this));
    atom.commands.add('atom-workspace', 'build:confirm', function() {
      document.activeElement.click();<commit_msg>Title and description of configuration<commit_after>'use strict';

var child_process = require('child_process');
var fs = require('fs');
var path = require('path');
var _ = require('lodash');

var SaveConfirmView = require('./save-confirm-view');
var BuildView = require('./build-view');

module.exports = {
  config: {
    keepVisible: {
      title: 'Keep Visisble',
      description: 'If the build panel should be kept visible at all times.',
      type: 'boolean',
      default: false
    },
    buildOnSave: {
      title: 'Automatically build on save',
      description: 'Autmatically build your project each time an editor is saved.',
      type: 'boolean',
      default: false
    },
    saveOnBuild: {
      title: 'Automatically save on build',
      description: 'Automatically save all edited files when triggering a build.',
      type: 'boolean',
      default: false
    },
    monocleHeight: {
      title: 'Monocle Height',
      description: 'How much of the workspace to use for build panel when it is "maximized".',
      type: 'number',
      default: 0.75,
      minimum: 0.1,
      maximum: 0.9
    },
    minimizedHeight: {
      title: 'Minimized Height',
      description: 'How much of the workspace to use for build panel when it is "minimized".',
      type: 'number',
      default: 0.15,
      minimum: 0.1,
      maximum: 0.9
    }
  },

  activate: function(state) {
    // Manually append /usr/local/bin as it may not be set on some systems,
    // and it's common to have node installed here. Keep it at end so it won't
    // accidentially override any other node installation
    process.env.PATH += ':/usr/local/bin';

    var self = this;
    this.buildView = new BuildView();
    atom.commands.add('atom-workspace', 'build:trigger', this.build.bind(this));
    atom.commands.add('atom-workspace', 'build:stop', this.stop.bind(this));
    atom.commands.add('atom-workspace', 'build:confirm', function() {
      document.activeElement.click();
{'fraction_non_alphanumeric': 0.13560885608856088, 'fraction_numerical': 0.006150061500615006, 'mean_word_length': 2.919277108433735, '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': '1141481', 'n_tokens_mistral': 980, 'n_tokens_neox': 953, 'n_words': 291}