<commit_before>package renesca.graph

import renesca.json
import renesca.parameter.{PropertyMap, PropertyValue}

import scala.collection.mutable

object Id {
  import renesca.parameter.implicits._

  implicit def IdToPropertyValue(id: Id):PropertyValue = id.value
  implicit def IdToLong(id: Id):Long = id.value
  implicit def LongToId(id: Long):Id = Id(id)
  implicit def IntToId(id: Int):Id = Id(id)

  private var currentLocalId:Long = -1

  private[graph] def nextId() = {
    val newId = currentLocalId
    currentLocalId -= 1
    Id(newId)
  }
}

case class Id(private var _id: Long) {
  def value = _id
  def value_=(id: Long) {
    _id = id
  }

  override def equals(other: Any): Boolean = other match {
    case that: Id => _id == that._id
    case that: Long => _id == that
    case that: Int => _id == that
    case _ => false
  }<commit_msg>Make Id setter package private<commit_after>package renesca.graph

import renesca.json
import renesca.parameter.{PropertyMap, PropertyValue}

import scala.collection.mutable

object Id {
  import renesca.parameter.implicits._

  implicit def IdToPropertyValue(id: Id):PropertyValue = id.value
  implicit def IdToLong(id: Id):Long = id.value
  implicit def LongToId(id: Long):Id = Id(id)
  implicit def IntToId(id: Int):Id = Id(id)

  private var currentLocalId:Long = -1

  private[graph] def nextId() = {
    val newId = currentLocalId
    currentLocalId -= 1
    Id(newId)
  }
}

case class Id(private var _id: Long) {
  def value = _id
  private[renesca] def value_=(id: Long) {
    _id = id
  }

  override def equals(other: Any): Boolean = other match {
    case that: Id => _id == that._id
    case that: Long => _id == that
    case that: Int => _id == that
    case _ => false
  }
{'fraction_non_alphanumeric': 0.11021814006888633, 'fraction_numerical': 0.002296211251435132, 'mean_word_length': 3.4922680412371134, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '919637', 'n_tokens_mistral': 598, 'n_tokens_neox': 596, 'n_words': 173}