<commit_before>module GoodData::Command
  class Scaffold
    class << self

      def project(name)
        require 'erubis'
        require 'fileutils'

        templates_path = Pathname(__FILE__) + "../../../templates"

        FileUtils.mkdir(name)
        FileUtils.cd(name) do

          FileUtils.mkdir("model")
          FileUtils.cd("model") do
            input = File.read(templates_path + 'project/model/model.rb.erb')
            eruby = Erubis::Eruby.new(input)
            File.open("model.rb", 'w') do |f|
              f.write(eruby.result(:name => name))
            end
          end

          FileUtils.mkdir("data")
<commit_msg>Added copying dat from template on project<commit_after>module GoodData::Command
  class Scaffold
    class << self

      def project(name)
        require 'erubis'
        require 'fileutils'

        templates_path = Pathname(__FILE__) + "../../../templates"

        FileUtils.mkdir(name)
        FileUtils.cd(name) do

          FileUtils.mkdir("model")
          FileUtils.cd("model") do
            input = File.read(templates_path + 'project/model/model.rb.erb')
            eruby = Erubis::Eruby.new(input)
            File.open("model.rb", 'w') do |f|
              f.write(eruby.result(:name => name))
            end
          end

          FileUtils.mkdir("data")
          FileUtils.cd("data") do
            FileUtils.cp(Dir.glob(templates_path + 'project/data/*.csv'), ".")
          end

{'fraction_non_alphanumeric': 0.13342503438789546, 'fraction_numerical': 0.0, 'mean_word_length': 1.8926441351888668, 'pattern_counts': {'":': 0, '<': 7, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4802909', 'n_tokens_mistral': 444, 'n_tokens_neox': 426, 'n_words': 81}