<commit_before>const nested = require('./nested');
const lasso = require('lasso-string');

function sassMixin(buffer) {
  let c = nested(buffer);
  let args = lasso.between(c.arguments, '(', ')');
  let m = c.arguments.match(/(@mixin)[ ]+([^\(]+)/);

  buffer.string = buffer.string.substr(c.length);

  return {
    arguments : args ? args[1].split(',').map(a => a.trim()) : '',
    content : c.content,
    name : m[1],
    value : m[2].trim()
  };
}

module.exports = sassMixin;<commit_msg>mixin arguments returns 'false' when there are none<commit_after>const nested = require('./nested');
const lasso = require('lasso-string');

function sassMixin(buffer) {
  let c = nested(buffer);
  let args = lasso.between(c.arguments, '(', ')');
  let m = c.arguments.match(/(@mixin)[ ]+([^\(]+)/);

  buffer.string = buffer.string.substr(c.length);

  return {
    arguments : args
      ? args[1].split(',').map(a => a.trim())
      : false,
    content : c.content,
    name : m[1],
    value : m[2].trim()
  };
}

module.exports = sassMixin;
{'fraction_non_alphanumeric': 0.2136669874879692, 'fraction_numerical': 0.005774783445620789, 'mean_word_length': 3.5217391304347827, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '406199', 'n_tokens_mistral': 370, 'n_tokens_neox': 366, 'n_words': 71}