<commit_before>require "http/server"
require "./vitix"

config = Configuracion.new

regla = ReglaFactory.new.de("").vallaA(["localhost:4567", "localhost:7654"]).build
config.agregarRegla regla

tonel = Tonel.new config

server = HTTP::Server.new(8080) do |context|
  puts "atendiendo coneccion de #{context.request.path}"
  respuesta = tonel.transformar context.request.path<commit_msg>con query params y todo!<commit_after>require "http/server"
require "./vitix"

config = Configuracion.new

regla = ReglaFactory.new.de("").vallaA(["localhost:4567", "localhost:7654"]).build
config.agregarRegla regla

tonel = Tonel.new config

server = HTTP::Server.new(8080) do |context|
  puts "atendiendo coneccion de #{context.request.resource}"
  respuesta = tonel.transformar context.request.resource
{'fraction_non_alphanumeric': 0.13780025284450062, 'fraction_numerical': 0.03034134007585335, 'mean_word_length': 6.008849557522124, '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': '2678059', 'n_tokens_mistral': 284, 'n_tokens_neox': 267, 'n_words': 55}