<commit_before>package org.statismo.stk.core.geometry

/** a marker trait only meant to distinguish the dimension */
sealed trait Dim

trait _1D extends Dim
trait _2D extends Dim
trait _3D extends Dim

trait DimOps[D] {
  def toInt: Int
}

object Dim {
  implicit object OneDOps extends DimOps[_1D] {
    override def toInt = 1
  }
  implicit object TwoDOps extends DimOps[_2D] {
    override def toInt = 2
  }
  implicit object ThreeDOps extends DimOps[_3D] {
    override def toInt = 3
  }
}<commit_msg>changed signature of DimOps to require Dim subtype parameter<commit_after>package org.statismo.stk.core.geometry

/** a marker trait only meant to distinguish the dimension */
sealed trait Dim

trait _1D extends Dim
trait _2D extends Dim
trait _3D extends Dim

trait DimOps[D <: Dim] {
  def toInt: Int
}

object Dim {
  implicit object OneDOps extends DimOps[_1D] {
    override def toInt = 1
  }
  implicit object TwoDOps extends DimOps[_2D] {
    override def toInt = 2
  }
  implicit object ThreeDOps extends DimOps[_3D] {
    override def toInt = 3
  }
}
{'fraction_non_alphanumeric': 0.06578947368421052, 'fraction_numerical': 0.016917293233082706, 'mean_word_length': 3.6103896103896105, 'pattern_counts': {'":': 0, '<': 4, '<?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': '4551663', 'n_tokens_mistral': 346, 'n_tokens_neox': 351, 'n_words': 129}