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

require File.join(File.dirname(__FILE__), '..', 'rmonitor')

rm = RMonitor::RMonitor.load

puts "profile #{($options[:name] || 'My profile').inspect} do"
  rm.devices.each do |device|
    if device[:enabled]
      puts '  device %s, :mode => %s, :rate => %s, :pos => %s' % [
          device[:name].inspect,
          device[:configuration][:mode].inspect,
          device[:configuration][:rate].inspect,
          device[:pos].inspect,
      ]
    end
  end
puts 'end'<commit_msg>--create now outputs an extra blank line.<commit_after>#!/usr/bin/env ruby

require File.join(File.dirname(__FILE__), '..', 'rmonitor')

rm = RMonitor::RMonitor.load

puts "profile #{($options[:name] || 'My profile').inspect} do"
  rm.devices.each do |device|
    if device[:enabled]
      puts '  device %s, :mode => %s, :rate => %s, :pos => %s' % [
          device[:name].inspect,
          device[:configuration][:mode].inspect,
          device[:configuration][:rate].inspect,
          device[:pos].inspect,
      ]
    end
  end
puts 'end'
puts ''
{'fraction_non_alphanumeric': 0.1875, 'fraction_numerical': 0.0, 'mean_word_length': 3.0338345864661656, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '5651948', 'n_tokens_mistral': 366, 'n_tokens_neox': 363, 'n_words': 76}