<commit_before>/*
 * staticx
 * https://github.com/badsyntax/staticx
 *
 * Copyright (c) 2013 <NAME>
 * Licensed under the MIT license.
 */

'use strict';

var fs = require('fs');

/**
 * Our main library.
 * @name staticx
 * @namespace
 */

var compilers = exports.compilers = require('./staticx/compilers');
var parsers = exports.parsers = require('./staticx/parsers');
var scaffold = exports.scaffold = require('./staticx/scaffold');

exports.create = function(destination, done) {

  if (!destination) {
    return done('Destination path is required.');
  }

  var source = '../spec/fixtures/site_skeleton';

  scaffold.copy(source, destination, function(err) {
    if (err) {
      return done(err);
    }
    done(null);
  });
};<commit_msg>Moved create logic out into scaffold<commit_after>/*
 * staticx
 * https://github.com/badsyntax/staticx
 *
 * Copyright (c) 2013 <NAME>
 * Licensed under the MIT license.
 */

'use strict';

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

/**
 * Our main library.
 * @name staticx
 * @namespace
 */

var compilers = exports.compilers = require('./staticx/compilers');
var parsers = exports.parsers = require('./staticx/parsers');
var scaffold = exports.scaffold = require('./staticx/scaffold');

exports.create = function(options, done) {
  scaffold.create(options, function(err) {
    if (err) return done(err);
    done();
  });
};
{'fraction_non_alphanumeric': 0.16678700361010831, 'fraction_numerical': 0.005776173285198556, 'mean_word_length': 3.7303754266211606, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '2703969', 'n_tokens_mistral': 458, 'n_tokens_neox': 442, 'n_words': 109}