<commit_before>package omnibus.api

import akka.io.IO
import spray.can.Http

import omnibus.configuration._
import omnibus.api.endpoint.HttpEndpointActor
import omnibus.core.{CoreActors, Core}

trait Rest {
  this: CoreActors with Core =>

  val rootService = system.actorOf(HttpEndpointActor.props(this), "omnibus-http")  
}

trait Web {
  this: Rest with CoreActors with Core =>

  val httpPort = Settings(system).Http.Port

  IO(Http)(system) ! Http.Bind(rootService, "localhost", port = 8080)
}<commit_msg>Use configured http port instead of hard-coded value<commit_after>package omnibus.api

import akka.io.IO
import spray.can.Http

import omnibus.configuration._
import omnibus.api.endpoint.HttpEndpointActor
import omnibus.core.{CoreActors, Core}

trait Rest {
  this: CoreActors with Core =>

  val rootService = system.actorOf(HttpEndpointActor.props(this), "omnibus-http")  
}

trait Web {
  this: Rest with CoreActors with Core =>

  val httpPort = Settings(system).Http.Port

  IO(Http)(system) ! Http.Bind(rootService, "localhost", port = httpPort)
}
{'fraction_non_alphanumeric': 0.10818438381937912, 'fraction_numerical': 0.0037629350893697085, 'mean_word_length': 4.944134078212291, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6524519', 'n_tokens_mistral': 364, 'n_tokens_neox': 338, 'n_words': 85}