<commit_before>#!/usr/bin/env ruby

def exec(cmd)
  puts cmd
  system cmd
end

unless `git status --short`.chomp.empty?
  puts 'working directory does not clean!'
  exit 1
end


puts 'start deploy'
puts


files = %w[
  bower_components/bootstrap/dist/css/bootstrap.min.css
  bower_components/bootstrap/dist/js/bootstrap.min.js
  bower_components/jquery/dist/jquery.min.js
  bower_components/octicons/octicons/octicons.css
  bower_components/octicons/octicons/octicons.eot
  bower_components/octicons/octicons/octicons.ttf
  bower_components/octicons/octicons/octicons.woff
]

puts "start git add"
puts

files.each do |f|
  cmd =  "git add --force #{f}"
  unless exec(cmd)
    puts "`#{cmd}` failed."
    exit 1
  end<commit_msg>update deploy script<commit_after>#!/usr/bin/env ruby

def exec(cmd)
  puts cmd
  system cmd
end

unless `git status --short`.chomp.empty?
  puts 'working directory does not clean!'
  exit 1
end


puts 'start deploy'
puts


files = %w[
  bower_components/bootstrap/dist/css/bootstrap.min.css
  bower_components/bootstrap/dist/js/bootstrap.min.js
  bower_components/jquery/dist/jquery.min.js
  bower_components/octicons/octicons/octicons.css
  bower_components/octicons/octicons/octicons.eot
  bower_components/octicons/octicons/octicons.ttf
  bower_components/octicons/octicons/octicons.woff
  bower_components/vue/dist/vue.min.js
]

puts "start git add"
puts

files.each do |f|
  cmd =  "git add --force #{f}"
  unless exec(cmd)
    puts "`#{cmd}` failed."
    exit 1
  end
{'fraction_non_alphanumeric': 0.11251664447403462, 'fraction_numerical': 0.002663115845539281, 'mean_word_length': 3.9278688524590164, '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': '6215051', 'n_tokens_mistral': 585, 'n_tokens_neox': 578, 'n_words': 114}