<commit_before>'use babel';
import {Disposable, CompositeDisposable} from 'atom';

export var config = {
  fixTreeView: {
    description: 'Make single clicks in the tree view open a file.',
    type: 'boolean',
    default: true,
  },
  fixSearchResultsView: {
    description: 'Make single click in the project search results view open a file.',
    type: 'boolean',
    default: true,
  },
  focusEditorOnOpen: {
    description: 'Focus the editor immediately when a file is opened.',
    type: 'boolean',
    default: true,
  }
};

var disposables;

export function activate() {
  disposables = new CompositeDisposable();

  if (atom.config.get('single-click-open.fixTreeView'))
    disposables.add(disablePendingItems());

  if (atom.config.get('single-click-open.fixSearchResultsView'))
    disposables.add(disableSearchResultDoubleClick());
}

export function deactivate() {
  disposable.dispose();
  disposable = null;
}

// No more pending pane items!
function disablePendingItems() {
  // Fix doesn't work without this setting enabled.<commit_msg>Simply call the functions<commit_after>'use babel';
import {Disposable, CompositeDisposable} from 'atom';

export var config = {
  fixTreeView: {
    description: 'Make single clicks in the tree view open a file.',
    type: 'boolean',
    default: true,
  },
  fixSearchResultsView: {
    description: 'Make single click in the project search results view open a file.',
    type: 'boolean',
    default: true,
  },
  focusEditorOnOpen: {
    description: 'Focus the editor immediately when a file is opened.',
    type: 'boolean',
    default: true,
  }
};

var disposables;

export function activate() {
  disposables = new CompositeDisposable();

  if (atom.config.get('single-click-open.fixTreeView'))
    disablePendingItems();

  if (atom.config.get('single-click-open.fixSearchResultsView'))
    disableSearchResultDoubleClick();
}

export function deactivate() {
  disposable.dispose();
  disposable = null;
}

// No more pending pane items!
function disablePendingItems() {
  // Fix doesn't work without this setting enabled.
{'fraction_non_alphanumeric': 0.1147227533460803, 'fraction_numerical': 0.0, 'mean_word_length': 4.055555555555555, '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': '7453053', 'n_tokens_mistral': 610, 'n_tokens_neox': 601, 'n_words': 188}