<commit_before>var fs = require('fs');

module.exports = function(hostPath, appName) {
  var selfPath = hostPath + '/node_modules/create-react-app-scripts';

  var hostPackage = require(hostPath + '/package.json');
  var selfPackage = require(selfPath + '/package.json');

  // Copy over devDependencies
  for (var key in selfPackage.devDependencies) {
    hostPackage.dependencies[key] = selfPackage.devDependencies[key];
  }
<commit_msg>Ensure dependencies exist in package.json<commit_after>var fs = require('fs');

module.exports = function(hostPath, appName) {
  var selfPath = hostPath + '/node_modules/create-react-app-scripts';

  var hostPackage = require(hostPath + '/package.json');
  var selfPackage = require(selfPath + '/package.json');

  // Copy over devDependencies
  hostPackage.dependencies = hostPackage.dependencies || {};
  for (var key in selfPackage.devDependencies) {
    hostPackage.dependencies[key] = selfPackage.devDependencies[key];
  }

{'fraction_non_alphanumeric': 0.12926577042399173, 'fraction_numerical': 0.0, 'mean_word_length': 4.866666666666666, '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': '5852017', 'n_tokens_mistral': 289, 'n_tokens_neox': 275, 'n_words': 62}