<commit_before># run with:
# rails new my_app -m ./canvas_starter_app/template.rb
# rails new my_app -m https://raw.githubusercontent.com/atomicjolt/canvas_starter_app/master/template.rb

require "fileutils"
require "securerandom"


#repo = "<EMAIL>:atomicjolt/canvas_starter_app.git"
repo = "https://github.com/atomicjolt/canvas_starter_app.git"

# keep track if the initial directory
@working_dir = destination_root

###########################################################
# 
# Overrides
#
def source_paths
  paths = Array(super) + 
    [File.expand_path(File.dirname(__FILE__))]
  paths << @working_dir
  paths
end

###########################################################
# 
# Helper methods
# 
def git_repo_url
  @git_repo_url ||= ask_with_default("What is the Github or bitbucket remote URL for this project?", :blue, "skip")<commit_msg>Updates git url to bitbucket<commit_after># run with:
# rails new my_app -m ./canvas_starter_app/template.rb
# rails new my_app -m https://raw.githubusercontent.com/atomicjolt/canvas_starter_app/master/template.rb

require "fileutils"
require "securerandom"


#repo = "<EMAIL>:atomicjolt/canvas_starter_app.git"
#repo = "https://github.com/atomicjolt/canvas_starter_app.git"
repo = "<EMAIL>:atomicjolt/canvas_starter_app.git"

# keep track if the initial directory
@working_dir = destination_root

###########################################################
# 
# Overrides
#
def source_paths
  paths = Array(super) + 
    [File.expand_path(File.dirname(__FILE__))]
  paths << @working_dir
  paths
end

###########################################################
# 
# Helper methods
# 
def git_repo_url
  @git_repo_url ||= ask_with_default("What is the Github or bitbucket remote URL for this project?", :blue, "skip")
{'fraction_non_alphanumeric': 0.23372948500282967, 'fraction_numerical': 0.0, 'mean_word_length': 6.015873015873016, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 6, 'https://': 4, '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': '5120731', 'n_tokens_mistral': 570, 'n_tokens_neox': 546, 'n_words': 119}