<commit_before>// $Id$

import scala.xml.Node;
import dtd._;

object Test {

  // 3 ways to construct your data
  def main(args:Array[String]) = {
    // construct data using original Element name
    //val b: Node = dtd._factory.get("link").match { case Some(x) => x(Nil,null)}; // safe
    // !!! System.out.println(b.toXML);

    // construct data using constructor
    val c = Link(Name(scala.xml.Text("hello-link")));
    //c.getAttribs.update("target", "http://www.scala.org");
    System.out.println( c );

    val c2 = c % ('target <= "http://www.scala.org");
    System.out.println( c2 );

    // construct data using loading from a file
    val lnkDB = load(args(0));
    System.out.println( lnkDB );
  }

}<commit_msg>*** empty log message ***<commit_after>// $Id$

import scala.xml.Node;
import dtd._;

object Test {

  // 3 ways to construct your data
  def main(args:Array[String]) = {
    // construct data using original Element name
    //val b: Node = dtd._factory.get("link").match { case Some(x) => x(Nil,null)}; // safe
    // !!! System.out.println(b.toXML);

    // construct data using constructor
    val c = Link(Name(scala.xml.Text("hello-link")));
    //c.getAttribs.update("target", "http://www.scala.org");
    System.out.println( c );

    val c2 = c % Pair("target", "http://www.scala.org");
    System.out.println( c2 );

    // construct data using loading from a file
    val lnkDB = load(args(0));
    System.out.println( lnkDB );
  }

}
{'fraction_non_alphanumeric': 0.18058384249830278, 'fraction_numerical': 0.005431093007467753, 'mean_word_length': 2.8385416666666665, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 4}, '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': '3678150', 'n_tokens_mistral': 515, 'n_tokens_neox': 496, 'n_words': 126}