<commit_before>'use strict';
/**
 * modified by <NAME>
 * Copyright (c) 2015-present, Facebook, Inc.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree. An additional grant
 * of patent rights can be found in the PATENTS file in the same directory.
 */

var fs = require('fs-extra');
var path = require('path');
var spawn = require('cross-spawn');
var downloadGitRepo = require('download-git-repo');

module.exports = function(appPath, appName, verbose, originalDirectory) {
  var ownPath = path.join(appPath, 'node_modules', 'expressful-scripts');

  var appPackage = require(path.join(appPath, 'package.json'));
  var ownPackage = require(path.join(ownPath, 'package.json'));

  appPackage.main = "index.js";

  // Copy over some of the devDependencies to app dependencies
  appPackage.dependencies = appPackage.dependencies || {};
  ['expressful'].forEach(function (key) {
    appPackage.dependencies[key] = ownPackage.devDependencies[key];
  });

  // Setup the script rules
  appPackage.scripts = {
    'dev': 'concurrently "npm run server" "npm run dev-server" "npm run css-formatting"',
    'start': 'node ./index.js'
  };
  ['server', 'dev-server', 'build', 'css-formatting', 'eject'].forEach(function(command) {
    appPackage.scripts[command] = 'expressful-scripts ' + command;
  });

  // explicitly specify ESLint config path for editor plugins
  appPackage.eslintConfig = {
    extends: './node_modules/expressful-scripts/config/eslint.js',
  };

  fs.writeFileSync(
    path.join(appPath, 'package.json'),
    JSON.stringify(appPackage, null, 2)
  );

  // Copy the files for the user
  fs.copySync(path.join(ownPath, 'template'), appPath);

  downloadGitRepo('jeroenransijn/expressful-css/tree/master/css', 'src/css', function (err) {
    if (err) console.error(err);
  });
<commit_msg>copy css folder from expressful-css<commit_after>'use strict';
/**
 * modified by <NAME>
 * Copyright (c) 2015-present, Facebook, Inc.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree. An additional grant
 * of patent rights can be found in the PATENTS file in the same directory.
 */

var fs = require('fs-extra');
var path = require('path');
var spawn = require('cross-spawn');
var downloadGitRepo = require('download-git-repo');

module.exports = function(appPath, appName, verbose, originalDirectory) {
  var ownPath = path.join(appPath, 'node_modules', 'expressful-scripts');

  var appPackage = require(path.join(appPath, 'package.json'));
  var ownPackage = require(path.join(ownPath, 'package.json'));

  appPackage.main = "index.js";

  // Copy over some of the devDependencies to app dependencies
  appPackage.dependencies = appPackage.dependencies || {};
  ['expressful'].forEach(function (key) {
    appPackage.dependencies[key] = ownPackage.devDependencies[key];
  });

  // Setup the script rules
  appPackage.scripts = {
    'dev': 'concurrently "npm run server" "npm run dev-server" "npm run css-formatting"',
    'start': 'node ./index.js'
  };
  ['server', 'dev-server', 'build', 'css-formatting', 'eject'].forEach(function(command) {
    appPackage.scripts[command] = 'expressful-scripts ' + command;
  });

  // explicitly specify ESLint config path for editor plugins
  appPackage.eslintConfig = {
    extends: './node_modules/expressful-scripts/config/eslint.js',
  };

  fs.writeFileSync(
    path.join(appPath, 'package.json'),
    JSON.stringify(appPackage, null, 2)
  );

  // Copy the files for the user
  fs.copySync(path.join(ownPath, 'template'), appPath);

  // Download expressful-css in a temp and then copy over
  var tempCSSPath = path.join(appPath, 'src/expressful-css');

  fs.mkdirSync(tempCSSPath);

  downloadGitRepo('jeroenransijn/expressful-css', tempCSSPath, function (err) {
    if (err) return console.error(err);
    fs.copySync(path.join(tempCSSPath, 'css'), path.join(appPath, 'src/css'));
    fs.rmdirSync(tempCSSPath);
  });

{'fraction_non_alphanumeric': 0.14173998044965788, 'fraction_numerical': 0.0024437927663734115, 'mean_word_length': 4.274484536082475, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 9, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6837988', 'n_tokens_mistral': 1285, 'n_tokens_neox': 1235, 'n_words': 342}