<commit_before>let _ = require('lodash')
let missingSupport = require('./missing-support')
let Detector = require('./detect-feature-use')

function doiuse (options) {
  let browserQuery = options.browsers
  let onFeatureUsage = options.onFeatureUsage
  let ignore = options.ignore

  if (!browserQuery) {
    browserQuery = doiuse['default'].slice()
  }
  let {browsers, features} = missingSupport(browserQuery)
  let detector = new Detector(_.keys(features))

  return {
    info () {
      return {
        browsers: browsers,
        features: features
      }
    },

    postcss (css, result) {
      return detector.process(css, function ({feature, usage}) {
        if (ignore && ignore.indexOf(feature) !== -1) {
          return
        }

        let message = features[feature].title + ' not supported by: ' +
          features[feature].missing + ' (' + feature + ')'
<commit_msg>Use ES6 destructuring to pick up variables from options.<commit_after>let _ = require('lodash')
let missingSupport = require('./missing-support')
let Detector = require('./detect-feature-use')

function doiuse (options) {
  let {browsers: browserQuery, onFeatureUsage, ignore} = options

  if (!browserQuery) {
    browserQuery = doiuse['default'].slice()
  }
  let {browsers, features} = missingSupport(browserQuery)
  let detector = new Detector(_.keys(features))

  return {
    info () {
      return {
        browsers: browsers,
        features: features
      }
    },

    postcss (css, result) {
      return detector.process(css, function ({feature, usage}) {
        if (ignore && ignore.indexOf(feature) !== -1) {
          return
        }

        let message = features[feature].title + ' not supported by: ' +
          features[feature].missing + ' (' + feature + ')'

{'fraction_non_alphanumeric': 0.13217097862767155, 'fraction_numerical': 0.001687289088863892, 'mean_word_length': 2.9185022026431717, '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': '6291672', 'n_tokens_mistral': 511, 'n_tokens_neox': 496, 'n_words': 125}