<commit_before>var fs = require('fs'),
    path = require('path'),
    shell = require('shelljs'),
    adapters = require('../adapters'),
    colors = require('colors');

require('coffee-script');

module.exports = function(cb){

  if (!fs.existsSync(path.join(process.cwd() + '/app.coffee'))) {

    console.error("\nnot a roots project - run `roots help` if you are confused\n".yellow);

  } else {

    // pull the app config file
    var options = global.options = require(path.join(process.cwd() + '/app.coffee'));

    // convention over configuration
    options.folder_config = {
      views: 'views',
      assets: 'assets'
    };

    // make sure all layout files are ignored
    for (var key in options.layouts){
      options.ignore_files.push(new RegExp(options.layouts[key]));
    }

    // livereload function won't render anything unless in watch mode
    options.locals.livereload = "";

    // i'm honestly the only one that uses this, removed from app config default.
    options.debug = {
      status: false,
      log: function(data){ if (this.status) { console.log(data.grey); } }
    }

    // figure out which files need to be compiled
    var extensions = options.compiled_extensions = [];

    // look in core first
    for (var i = 0; i < adapters.length; i++) {
      extensions.push(compiler.settings.file_type);
    }

    // then look in plugins
    var plugin_path = path.join(process.cwd() + '/plugins'),
        plugins = fs.existsSync(plugin_path) && shell.ls(plugin_path);

    for (var i = 0; i < plugins.length; i++) {
      if (plugins[i].match(/.*\.[js|coffee]+$/)) {
        var compiler = require(path.join(plugin_path, plugins[i]));
        if (compiler.settings && compiler.settings.file_type) {
          extensions.push(compiler.settings.file_type);
        }
      }
    }

    cb();

  }
}<commit_msg>corrected compiled extensions pull from core<commit_after>var fs = require('fs'),
    path = require('path'),
    shell = require('shelljs'),
    adapters = require('../adapters'),
    colors = require('colors');

require('coffee-script');

module.exports = function(cb){

  if (!fs.existsSync(path.join(process.cwd() + '/app.coffee'))) {

    console.error("\nnot a roots project - run `roots help` if you are confused\n".yellow);

  } else {

    // pull the app config file
    var options = global.options = require(path.join(process.cwd() + '/app.coffee'));

    // convention over configuration
    options.folder_config = {
      views: 'views',
      assets: 'assets'
    };

    // make sure all layout files are ignored
    for (var key in options.layouts){
      options.ignore_files.push(new RegExp(options.layouts[key]));
    }

    // livereload function won't render anything unless in watch mode
    options.locals.livereload = "";

    // i'm honestly the only one that uses this, removed from app config default.
    options.debug = {
      status: false,
      log: function(data){ if (this.status) { console.log(data.grey); } }
    }

    // figure out which files need to be compiled
    var extensions = options.compiled_extensions = [];

    // look in core first
    for (var key in adapters) {
      extensions.push(adapters[key].settings.file_type);
    }

    // then look in plugins
    var plugin_path = path.join(process.cwd() + '/plugins'),
        plugins = fs.existsSync(plugin_path) && shell.ls(plugin_path);

    for (var i = 0; i < plugins.length; i++) {
      if (plugins[i].match(/.*\.[js|coffee]+$/)) {
        var compiler = require(path.join(plugin_path, plugins[i]));
        if (compiler.settings && compiler.settings.file_type) {
          extensions.push(compiler.settings.file_type);
        }
      }
    }

    console.log(extensions)

    cb();

  }
}
{'fraction_non_alphanumeric': 0.1466275659824047, 'fraction_numerical': 0.0007997867235403892, 'mean_word_length': 2.752, 'pattern_counts': {'":': 0, '<': 6, '<?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': '219973', 'n_tokens_mistral': 1172, 'n_tokens_neox': 1103, 'n_words': 292}