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

require 'fileutils'
require 'rubygems'
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'typedown2blog'

include Typedown2Blog


config = YAML::load(File.open("config/config.yaml"))

Typedown2Blog::Spec::setup do
  retriever_method :pop3, config["pop3"]
  delivery_method :smtp, config["smtp"]
end

post = BlogPost.new config("blog_post")

isFirst = true
ARGV.each do |filename|
  if isFirst
    post.typedown_body = File.read(filename)
    isFirst = false
  else
    post.add_attachment filename
  end
end
post.post!<commit_msg>Parenthesis should be bracket fixed<commit_after>#!/usr/bin/env ruby

require 'fileutils'
require 'rubygems'
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'typedown2blog'

include Typedown2Blog


config = YAML::load(File.open("config/config.yaml"))

Typedown2Blog::Spec::setup do
  retriever_method :pop3, config["pop3"]
  delivery_method :smtp, config["smtp"]
end

post = BlogPost.new config["blog_post"]

isFirst = true
ARGV.each do |filename|
  if isFirst
    post.typedown_body = File.read(filename)
    isFirst = false
  else
    post.add_attachment filename
  end
end
post.post!
{'fraction_non_alphanumeric': 0.13333333333333333, 'fraction_numerical': 0.007751937984496124, 'mean_word_length': 5.4874371859296485, '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': '7177997', 'n_tokens_mistral': 479, 'n_tokens_neox': 465, 'n_words': 91}