<commit_before># FarmBot Controller
require 'pry'

require_relative 'settings.rb'

system('clear')
puts ''

puts '   /\    '
puts '---------'
puts ' FarmBot '
puts '---------'
puts '   \/    '
puts '========='

$status = Status.new

$shutdown = 0
$db_write_sync = Mutex.new

print 'database        '
require 'active_record'
require_relative 'lib/database/dbaccess'
$bot_dbaccess = DbAccess.new('development')
puts 'OK'

print 'synchronization '
require_relative 'lib/messaging'
puts 'OK'

if $hardware_type != nil
  puts  "hardware        #{$hardware_type}"
  print 'hardware        '
  require_relative 'lib/controller'
  require_relative $hardware_type
  $bot_hardware = HardwareInterface.new(false)
else
  $hardware_sim = 1
end
puts 'OK'

puts "uuid            #{$info_uuid}"
puts "token           #{$info_token}"
if $controller_disable == 0
  print 'controller      '<commit_msg>Add status require statemnt back<commit_after># FarmBot Controller
require 'pry'
require_relative 'settings.rb'

system('clear')
puts ''

puts '   /\    '
puts '---------'
puts ' FarmBot '
puts '---------'
puts '   \/    '
puts '========='

require_relative 'lib/status'
$status = Status.new

$shutdown = 0
$db_write_sync = Mutex.new

print 'database        '
require 'active_record'
require_relative 'lib/database/dbaccess'
$bot_dbaccess = DbAccess.new('development')
puts 'OK'

print 'synchronization '
require_relative 'lib/messaging'
puts 'OK'

if $hardware_type != nil
  puts  "hardware        #{$hardware_type}"
  print 'hardware        '
  require_relative 'lib/controller'
  require_relative $hardware_type
  $bot_hardware = HardwareInterface.new(false)
else
  $hardware_sim = 1
end
puts 'OK'

puts "uuid            #{$info_uuid}"
puts "token           #{$info_token}"
if $controller_disable == 0
  print 'controller      '
{'fraction_non_alphanumeric': 0.14608599779492834, 'fraction_numerical': 0.0033076074972436605, 'mean_word_length': 3.3734939759036147, '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': '5118913', 'n_tokens_mistral': 640, 'n_tokens_neox': 620, 'n_words': 144}