<commit_before>require 'prawn'
require 'sequel'
require 'csv'
require 'fileutils'
require "sunnyside/version"
require 'sunnyside/cash_receipts/cash_receipt'
require 'sunnyside/cash_receipts/ics'
require 'sunnyside/ledger/ledger'
require 'sunnyside/ledger/edi'
require 'sunnyside/ledger/auth_report'
require 'sunnyside/ledger/private'
require 'sunnyside/reports/pdf_report'
require 'sunnyside/reports/private'
require 'sunnyside/reports/report'
require 'sunnyside/ftp'
require 'sunnyside/menu'
require 'sunnyside/expiring_auth'

module Sunnyside
  folders     = ["835", "837", "summary", "db", "new-ledger", "cash_receipts", "private"]
  LOCAL_FILES = ENV["HOME"] + "/sunnyside-files"
  puts "checking local folders for appropriate files..."
  if !Dir.exist?(LOCAL_FILES)
    puts "Creating folders..."
    Dir.mkdir(LOCAL_FILES)
    folders.each { |folder| Dir.mkdir("#{LOCAL_FILES}/#{folder}") }
  end
  require 'sunnyside/models/sequel_classes'
end<commit_msg>set absolute path for DB file<commit_after>require 'prawn'
require 'sequel'
require 'csv'
require 'fileutils'
require "sunnyside/version"
require 'sunnyside/cash_receipts/cash_receipt'
require 'sunnyside/cash_receipts/ics'
require 'sunnyside/ledger/ledger'
require 'sunnyside/ledger/edi'
require 'sunnyside/ledger/auth_report'
require 'sunnyside/ledger/private'
require 'sunnyside/reports/pdf_report'
require 'sunnyside/reports/private'
require 'sunnyside/reports/report'
require 'sunnyside/ftp'
require 'sunnyside/menu'
require 'sunnyside/expiring_auth'

module Sunnyside
  folders     = ["835", "837", "summary", "db", "new-ledger", "cash_receipts", "private"]
  LOCAL_FILES = ENV["HOME"] + "/sunnyside-files"
  puts "checking local folders for appropriate files..."
  if !Dir.exist?(LOCAL_FILES)
    puts "Creating folders..."
    Dir.mkdir(LOCAL_FILES)
    folders.each { |folder| Dir.mkdir("#{LOCAL_FILES}/#{folder}") }
  end
  DB = Sequel.connect("sqlite:/#{LOCAL_FILES}/db/sunnyside.db")
  require 'sunnyside/models/sequel_classes'
end
{'fraction_non_alphanumeric': 0.13872255489021956, 'fraction_numerical': 0.005988023952095809, 'mean_word_length': 5.866438356164384, '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': '7082519', 'n_tokens_mistral': 747, 'n_tokens_neox': 740, 'n_words': 140}