<commit_before>package blueeyes.core.service

/**
 * An http service - the fundamental concept in Blue Eyes.
 */
trait HttpService[S] extends RestHierarchy[S] {
  /** The short name of the service, e.g. "email"
   */
  def name: String
  
  /** The version of the service, e.g. "32" 
   */
  def version: Int
  
  /** The root path of the service, which defaults to "/"
   */
  def rootPath: String = "/"
}

/**
 * An http service, which responds to http requests with http responses. 
 * Services are typed in whatever type is required by the server implementation.
 * For example, some server implementations might only deal with strings.
 */
trait HttpService2[T] {
  def name: String
  
  def version: String
  
  def majorVersion: Int = version.split(".").drop(0).headOption.map(_.toInt).getOrElse(0)
  
  def minorVersion: Int = version.split(".").drop(1).headOption.map(_.toInt).getOrElse(0)
  
  def descriptorFactory: HttpServiceContext => HttpServiceDescriptor[T, _]
  
  def ioClass: Class[T]
  
  override def toString = name + "." + majorVersion
}<commit_msg>code cleanup<commit_after>package blueeyes.core.service

/**
 * An http service - the fundamental concept in Blue Eyes.
 */
trait HttpService[S] extends RestHierarchy[S] {
  /** The short name of the service, e.g. "email"
   */
  def name: String
  
  /** The version of the service, e.g. "32" 
   */
  def version: Int
  
  /** The root path of the service, which defaults to "/"
   */
  def rootPath: String = "/"
}

/**
 * An http service, which responds to http requests with http responses. 
 * Services are typed in whatever type is required by the server engine.
 * For example, some server engines might only deal with strings.
 */
trait HttpService2[T] {
  def name: String
  
  def version: String
  
  def majorVersion: Int = version.split(".").drop(0).headOption.map(_.toInt).getOrElse(0)
  
  def minorVersion: Int = version.split(".").drop(1).headOption.map(_.toInt).getOrElse(0)
  
  def descriptorFactory: HttpServiceContext => HttpServiceDescriptor[T, _]
  
  def ioClass: Class[T]
  
  override def toString = name + "." + majorVersion
}
{'fraction_non_alphanumeric': 0.11941701927597555, 'fraction_numerical': 0.006582040432534086, 'mean_word_length': 3.3252032520325203, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6716267', 'n_tokens_mistral': 669, 'n_tokens_neox': 652, 'n_words': 219}