<commit_before>import Path from 'path';
import Glob from 'glob';

export default class MultiConfigLoader {
  static getConfigByFullPath(fullPath, contextPath, absOutputPath, asObject = false) {
    let target = asObject ? {} : [];
    let paths = [];
    try {
      const pathPattern = Path.join(
        fullPath,
        '**/*.js'
      );
      paths = Glob.sync(pathPattern);
    } catch (error) {
      return target;
    }

    for (let i = 0; i < paths.length; i++) {<commit_msg>refactor: (src/Config/WebPack/Utils/MultiConfigLoader getConfigByFullPath) Update to load configuration functions with a .jsx extension instead of .js.<commit_after>import Path from 'path';
import Glob from 'glob';

export default class MultiConfigLoader {
  static getConfigByFullPath(fullPath, contextPath, absOutputPath, asObject = false) {
    let target = asObject ? {} : [];
    let paths = [];
    try {
      const pathPattern = Path.join(
        fullPath,
        '**/*.jsx'
      );
      paths = Glob.sync(pathPattern);
    } catch (error) {
      return target;
    }

    for (let i = 0; i < paths.length; i++) {
{'fraction_non_alphanumeric': 0.12398921832884097, 'fraction_numerical': 0.0017969451931716084, 'mean_word_length': 2.8413793103448275, 'pattern_counts': {'":': 0, '<': 5, '<?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': '245506', 'n_tokens_mistral': 340, 'n_tokens_neox': 335, 'n_words': 98}