<commit_before>package com.google.xml.combinators

case class Internal(tag:String,value:Int)
case class Contained(tag:String,value:Int)

object Internal{
import Picklers._
  def rawInternalPickler(implicit u:URI) = elem("internal", elem("tag",text)~elem("value",intVal))
  def internalPickler: Pickler[Internal] = wrapCaseClass(rawInternalPickler(URI("nested-uri"))) (Internal.apply) (Internal.unapply)
}

object Contained{
import Picklers._
  def rawPickler(implicit u:URI) =  elem("tag",text)~elem("value",intVal)
  def pickler = wrapCaseClass(rawPickler(URI("contained-uri"))) (Contained.apply) (Contained.unapply)
}

case class Nested[T](
    name:String,
    internal:T,
    list: List[T]
    ) {}

object Nested {
 
  import Picklers._
  
  final val TURI = URI("testing-uri")
   

  def rawPickler[T](ip:Pickler[T])  = 
    elem("rating", 
      elem("name",text)(TURI)  ~ ip ~ rep(ip)
	  )(URI("http://schemas.google.com/g/2005"))
  
   def fromNested[T](n:Nested[T]) = Some((new ~(n.name, n.internal)) ~ n.list)

  def pickler[T](ip:Pickler[T]): Pickler[Nested[T]] = wrapCaseClass(rawPickler[T](ip)) (Nested.apply[T]) (fromNested[T])
}<commit_msg>little more info to compiler allows usage of unapplu<commit_after>package com.google.xml.combinators

case class Internal(tag:String,value:Int)
case class Contained(tag:String,value:Int)

object Internal{
import Picklers._
  def rawInternalPickler(implicit u:URI) = elem("internal", elem("tag",text)~elem("value",intVal))
  def internalPickler: Pickler[Internal] = wrapCaseClass(rawInternalPickler(URI("nested-uri"))) (Internal.apply) (Internal.unapply)
}

object Contained{
import Picklers._
  def rawPickler(implicit u:URI) =  elem("tag",text)~elem("value",intVal)
  def pickler = wrapCaseClass(rawPickler(URI("contained-uri"))) (Contained.apply) (Contained.unapply)
}

case class Nested[T](
    name:String,
    internal:T,
    list: List[T]
    ) {}

object Nested {
 
  import Picklers._
  
  final val TURI = URI("testing-uri")
   

  def rawPickler[T](ip:Pickler[T])  = 
    elem("rating", 
      elem("name",text)(TURI)  ~ ip ~ rep(ip)
	  )(URI("http://schemas.google.com/g/2005"))
  
  private def fromNested[T](n:Nested[T]) = tuple3Unapply(Nested.unapply[T](n))

  def pickler[T](ip:Pickler[T]): Pickler[Nested[T]] = wrapCaseClass(rawPickler[T](ip)) (Nested.apply[T]) (fromNested[T])
}
{'fraction_non_alphanumeric': 0.16716290940025522, 'fraction_numerical': 0.0038281582305401958, 'mean_word_length': 5.443835616438356, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1367456', 'n_tokens_mistral': 895, 'n_tokens_neox': 839, 'n_words': 146}