<commit_before>var atHomeDir = require('../utils').atHomeDir;

var settings = {
  pattern: '-r -g {filename}:{line}:{column}'
};

var detect = require('../detect').lazy('Visual Studio Code', ['code'], '', {
  darwin: [
    '/Applications/Visual Studio Code.app/Contents/MacOS/Electron'
  ],
  win32: [
    'C:/Program Files/Microsoft VS Code/bin/code.cmd',
    'C:/Program Files (x86)/Microsoft VS Code/bin/code.cmd',
    atHomeDir('AppData/Local/Code/bin/code.cmd')
  ]
});
<commit_msg>add VS Code detection by `code` command<commit_after>var atHomeDir = require('../utils').atHomeDir;

var settings = {
  pattern: '-r -g {filename}:{line}:{column}'
};

var detect = require('../detect').lazy('Visual Studio Code', ['code'], '-h', {
  darwin: [
    '/Applications/Visual Studio Code.app/Contents/MacOS/Electron'
  ],
  win32: [
    'C:/Program Files/Microsoft VS Code/bin/code.cmd',
    'C:/Program Files (x86)/Microsoft VS Code/bin/code.cmd',
    atHomeDir('AppData/Local/Code/bin/code.cmd')
  ]
});

{'fraction_non_alphanumeric': 0.20059880239520958, 'fraction_numerical': 0.007984031936127744, 'mean_word_length': 3.776190476190476, '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': '5789076', 'n_tokens_mistral': 362, 'n_tokens_neox': 344, 'n_words': 67}