<commit_before>package oncue.svc.funnel
package agent
package statsd

import java.net.InetSocketAddress
import java.util.concurrent.Executors
import io.netty.bootstrap.Bootstrap
import io.netty.channel.{ChannelOption,EventLoopGroup}
import io.netty.channel.nio.NioEventLoopGroup
import io.netty.channel.socket.nio.NioDatagramChannel

object Server {
  def apply(host: String, port: Int, prefix: String)(I: Instruments){
    val group = new NioEventLoopGroup
    try {
      val b = new Bootstrap
      b.group(group)
        .channel(classOf[NioDatagramChannel])
        .option[java.lang.Boolean](ChannelOption.SO_BROADCAST, true)
        .handler(new Handler(prefix,I))

      b.bind(new InetSocketAddress(port))
       .sync()
       .channel()
       .closeFuture()
       .await()
    } finally group.shutdownGracefully()
  }
}
<commit_msg>actually use the host for the statsd server<commit_after>package oncue.svc.funnel
package agent
package statsd

import java.net.InetSocketAddress
import java.util.concurrent.Executors
import io.netty.bootstrap.Bootstrap
import io.netty.channel.{ChannelOption,EventLoopGroup}
import io.netty.channel.nio.NioEventLoopGroup
import io.netty.channel.socket.nio.NioDatagramChannel

object Server {
  def apply(host: String, port: Int, prefix: String)(I: Instruments){
    val group = new NioEventLoopGroup
    try {
      val b = new Bootstrap
      b.group(group)
        .channel(classOf[NioDatagramChannel])
        .option[java.lang.Boolean](ChannelOption.SO_BROADCAST, true)
        .handler(new Handler(prefix,I))

      b.bind(new InetSocketAddress(host,port))
       .sync()
       .channel()
       .closeFuture()
       .await()
    } finally group.shutdownGracefully()
  }
}

{'fraction_non_alphanumeric': 0.10376811594202899, 'fraction_numerical': 0.0, 'mean_word_length': 3.639784946236559, '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': '962635', 'n_tokens_mistral': 554, 'n_tokens_neox': 542, 'n_words': 109}