<commit_before>module.exports = function() {
  var parseVariables,
      gonzales = require('gonzales-pe'),
      gonzo = require('gonzales-ast');

  function astToSrc(ast) {
    return gonzales.astToSrc({
      ast: ast,
      syntax: 'scss'
    });
  }

  // Parse SASS variables to object
  parseVariables = function(string) {

    var out = {},
      ast = gonzales.srcToAST({
        src: string,
        syntax: 'scss'
      });

    gonzo.traverse(ast, [{
      test: function(name, nodes) {
        return name === 'declaration' && nodes[1][0] === 'variable';
      },
      process: function(nodes) {
        var varName = nodes[1][1][1].filter(function(element){
          return element != 'ident'
        })[0],
          varVal = astToSrc(nodes[4]);

        out[varName] = varVal;
      }
    }]);
<commit_msg>Code convention fixes<commit_after>module.exports = function() {
  var parseVariables,
      gonzales = require('gonzales-pe'),
      gonzo = require('gonzales-ast');

  function astToSrc(ast) {
    return gonzales.astToSrc({
      ast: ast,
      syntax: 'scss'
    });
  }

  // Parse SASS variables to object
  parseVariables = function(string) {

    var out = {},
      ast = gonzales.srcToAST({
        src: string,
        syntax: 'scss'
      });

    gonzo.traverse(ast, [{
      test: function(name, nodes) {
        return name === 'declaration' && nodes[1][0] === 'variable';
      },
      process: function(nodes) {
        var varName = nodes[1][1][1].filter(function(element) {
            return element != 'ident'
          })[0],
          varVal = astToSrc(nodes[4]);

        out[varName] = varVal;
      }
    }]);

{'fraction_non_alphanumeric': 0.15532811559301626, 'fraction_numerical': 0.008428657435279952, 'mean_word_length': 2.24609375, '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': '4897776', 'n_tokens_mistral': 551, 'n_tokens_neox': 529, 'n_words': 108}