<commit_before>/**
 * Config
 *
 * Loads config for `rnpm` to use by projects.
 *
 * In order to override default settings, simply mirror them under `rnpm` key in your
 * package.json.
 *
 * In order to make `rnpm` ignore certain targets, simply set them to `false`. Otherwise,
 * there will be warnings.
 *
 * It optionally accepts packageName - when it's present, config will be loaded from node_modules/packageName
 */

const log = require('npmlog');
const fs = require('fs');
const transform = require('lodash.transform');
const path = require('path');

const androidConfig = require('./android/config');
const iosConfig = require('./ios/config');

/**
 * Gets rnpm config from reading it from JSON (for now)
 */
const getRNPMConfig = function getRNPMConfig(folder) {
  const pjsonPath = path.join(folder, './package.json');

  if (!fs.existsSync(pjsonPath)) {
    return null;
  }

  const pjson = require(pjsonPath);

  return pjson.rnpm || {};
};

/**<commit_msg>Remove unusued deps<commit_after>/**
 * Config
 *
 * Loads config for `rnpm` to use by projects.
 *
 * In order to override default settings, simply mirror them under `rnpm` key in your
 * package.json.
 *
 * In order to make `rnpm` ignore certain targets, simply set them to `false`. Otherwise,
 * there will be warnings.
 *
 * It optionally accepts packageName - when it's present, config will be loaded from node_modules/packageName
 */

const fs = require('fs');
const path = require('path');

const androidConfig = require('./android/config');
const iosConfig = require('./ios/config');

/**
 * Gets rnpm config from reading it from JSON (for now)
 */
const getRNPMConfig = function getRNPMConfig(folder) {
  const pjsonPath = path.join(folder, './package.json');

  if (!fs.existsSync(pjsonPath)) {
    return null;
  }

  const pjson = require(pjsonPath);

  return pjson.rnpm || {};
};

/**
{'fraction_non_alphanumeric': 0.1311563169164882, 'fraction_numerical': 0.0, 'mean_word_length': 3.9444444444444446, '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': '1944937', 'n_tokens_mistral': 565, 'n_tokens_neox': 547, 'n_words': 198}