<commit_before>'use strict';
module.exports = function(theme, file, plugins) { // eslint-disable-line func-names
  function findDependencies(file, dependencyTree) {
    if (plugins.fs.existsSync(file)) {
      const content = plugins.fs.readFileSync(file, 'utf8'),
            path    = file.replace(/(.*)\/.*/g, '$1'),
            regex   = /(?:\n@import )(?:'|")(.*)(?:'|")/g;

      let result  = regex.exec(content),
          imports = [];

      while (result) {
        let fullPath = '';
        if (result[1].includes('../')) {
          let parentPath = path,
              filePath   = result[1];

          while (filePath.includes('../')) {
            parentPath = parentPath.replace(/\/[^\/]+$/g, '');
            filePath = filePath.replace(/\.\.\//, '');
            const filePathParts = /(.*)\/(.*)/g.exec(filePath);
            fullPath = parentPath + '/' + filePathParts[1] + '/_' + filePathParts[filePathParts.length - 1] + '.' + theme.lang;
          }
        }
        else {
          if (result[1].includes('/')) {
            const filePath = /(.*)\/(.*)/g.exec(result[1]);
            fullPath = path + '/' + filePath[1] + '/_' + filePath[filePath.length - 1] + '.' + theme.lang;
          }
          else {
            fullPath = path + '/_' + result[1] + '.' + theme.lang;
          }
        }
        imports.push(fullPath);
        result = regex.exec(content);
      }

      imports.forEach(el => {<commit_msg>Removed `lang` param - part 3<commit_after>'use strict';
module.exports = function(theme, file, plugins) { // eslint-disable-line func-names
  function findDependencies(file, dependencyTree) {
    if (plugins.fs.existsSync(file)) {
      const content = plugins.fs.readFileSync(file, 'utf8'),
            path    = file.replace(/(.*)\/.*/g, '$1'),
            regex   = /(?:\n@import )(?:'|")(.*)(?:'|")/g;

      let result  = regex.exec(content),
          imports = [];

      while (result) {
        let fullPath = '';
        if (result[1].includes('../')) {
          let parentPath = path,
              filePath   = result[1];

          while (filePath.includes('../')) {
            parentPath = parentPath.replace(/\/[^\/]+$/g, '');
            filePath = filePath.replace(/\.\.\//, '');
            const filePathParts = /(.*)\/(.*)/g.exec(filePath);
            fullPath = parentPath + '/' + filePathParts[1] + '/_' + filePathParts[filePathParts.length - 1] + '.scss';
          }
        }
        else {
          if (result[1].includes('/')) {
            const filePath = /(.*)\/(.*)/g.exec(result[1]);
            fullPath = path + '/' + filePath[1] + '/_' + filePath[filePath.length - 1] + '.scss';
          }
          else {
            fullPath = path + '/_' + result[1] + '.scss';
          }
        }
        imports.push(fullPath);
        result = regex.exec(content);
      }

      imports.forEach(el => {
{'fraction_non_alphanumeric': 0.20568851890391954, 'fraction_numerical': 0.007977800901838363, 'mean_word_length': 1.75717017208413, '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': '2994004', 'n_tokens_mistral': 923, 'n_tokens_neox': 901, 'n_words': 152}