<commit_before>var log = require('./log'),
    path = require('path'),
    pack = require('./pack'),
    fs = require('fs');

log.info('looking for ant files');


var hasRollups;

var json = {
    name: path.basename(process.cwd()),
    builds: {}
};

var parse = function(files, callback) {
    if (!files.length) {
        return callback(json);
    }
    var file = files.pop();
    log.info('parsing ' + file);
    fs.readFile(path.join(process.cwd(), file), 'utf8',function(err, content) {
        if (err) {
            log.err(err);
        }
        
        content = content.replace(/\\\n/g, '');
        content = content.split('\n').sort().reverse();
        var data = {};
        content.forEach(function(line) {
            if (line.indexOf('#') !== 0 && line.length) {
                var values = line.split('=');
                var key = values.shift().replace('component.', '');
                switch (key) {
                    case 'component':
                        data.name = values[0];
                        break;
                    case 'jsfiles':
                    case 'cssfiles':
                        data[key] = values[0].replace(/ /g, '').trim().split(',')
                        break;
                    case 'rollup.modules.buildfiles':
                        hasRollups = true;
                        json[pack.bad] = true;
                        data.rollup = values[0].replace(/ /g, '').trim().split(',')
                        break;
                    case 'prependfiles':
                    case 'basefilename':
                        data[key] = values[0];
                        break;
                    // get from ./meta/*.json
                    case 'skinnable':
                    case 'requires':
                    case 'optional':
                    case 'supersedes':
                    case 'use':
                    case 'lang':<commit_msg>Adding more options pulled from .properties files<commit_after>var log = require('./log'),
    path = require('path'),
    pack = require('./pack'),
    fs = require('fs');

log.info('looking for ant files');


var hasRollups;

var json = {
    name: path.basename(process.cwd()),
    builds: {}
};

var parse = function(files, callback) {
    if (!files.length) {
        return callback(json);
    }
    var file = files.pop();
    log.info('parsing ' + file);
    fs.readFile(path.join(process.cwd(), file), 'utf8',function(err, content) {
        if (err) {
            log.err(err);
        }
        
        content = content.replace(/\\\n/g, '');
        content = content.split('\n').sort().reverse();
        var data = {};
        content.forEach(function(line) {
            if (line.indexOf('#') !== 0 && line.length) {
                var values = line.split('=');
                var key = values.shift().replace('component.', '');
                switch (key) {
                    case 'component':
                        data.name = values[0];
                        break;
                    case 'appendfiles':
                    case 'prependfiles':
                    case 'jsfiles':
                    case 'cssfiles':
                        data[key] = values[0].replace(/ /g, '').trim().split(',')
                        break;
                    case 'rollup.modules.buildfiles':
                        hasRollups = true;
                        json[pack.bad] = true;
                        data.rollup = values[0].replace(/ /g, '').trim().split(',')
                        break;
                    case 'basefilename':
                        data[key] = values[0];
                        break;
                    case 'logger.regex':
                        data.regex = values[0];
                        break;
                    // get from ./meta/*.json
                    case 'skinnable':
                    case 'requires':
                    case 'optional':
                    case 'supersedes':
                    case 'use':
                    case 'lang':
{'fraction_non_alphanumeric': 0.14688427299703263, 'fraction_numerical': 0.003214638971315529, 'mean_word_length': 1.174731182795699, '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': '1937267', 'n_tokens_mistral': 1066, 'n_tokens_neox': 1004, 'n_words': 224}