<commit_before>require 'rbconfig'
require 'open3'

if RbConfig::CONFIG['host_os'] =~ /mswin/
  require 'Win32API'
  require 'tempfile'
end

class Clippy
  private_class_method :new
  @@encode = true

  [:UnsupportedOS, :UnknownClipboard, :InvalidEncoding].each do |status|
    const_set(status, Class.new(StandardError))
  end
<commit_msg>Don't require open3 on Windows, not needed at all. Signed-off-by: <NAME> <<EMAIL>><commit_after>require 'rbconfig'

unless RbConfig::CONFIG['host_os'] =~ /mswin/
  require 'open3'
else
  require 'Win32API'
  require 'tempfile'
end

class Clippy
  private_class_method :new
  @@encode = true

  [:UnsupportedOS, :UnknownClipboard, :InvalidEncoding].each do |status|
    const_set(status, Class.new(StandardError))
  end

{'fraction_non_alphanumeric': 0.12401055408970976, 'fraction_numerical': 0.009234828496042216, 'mean_word_length': 5.325, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '709444', 'n_tokens_mistral': 272, 'n_tokens_neox': 261, 'n_words': 64}