<commit_before>structure Temp :> TEMP =
struct
  type temp = int
  val compare = Int.compare
  val labelCount = ref 0
  val temps = ref 100
  fun reset () =
    let 
      val () = temps := 100
      val () = labelCount := 0
    in
      ()
    end
  fun newtemp() =
    let 
      val t  = !temps
      val () = temps := t+1
    in
      t
    end
  fun makestring t = "t" ^ Int.toString t
  type label = Symbol.symbol
  structure TempOrd =
  struct
    type ord_key = temp
    val compare = compare
  end
  structure Set = SplaySetFn(TempOrd)
  structure Map = SplayMapFn(TempOrd)
  fun newlabel() =
    let 
      val x  = !labelCount
      val () = labelCount := x +1
    in
      Symbol.symbol (Int.toString(x))
    end
  val namedlabel = Symbol.symbol
  fun labelToString l = Symbol.name l
end<commit_msg>changed newlabel<commit_after>structure Temp :> TEMP =
struct
  type temp = int
  val compare = Int.compare
  val labelCount = ref 0
  val temps = ref 100
  fun reset () =
    let 
      val () = temps := 100
      val () = labelCount := 0
    in
      ()
    end
  fun newtemp() =
    let 
      val t  = !temps
      val () = temps := t+1
    in
      t
    end
  fun makestring t = "t" ^ Int.toString t
  type label = Symbol.symbol
  structure TempOrd =
  struct
    type ord_key = temp
    val compare = compare
  end
  structure Set = SplaySetFn(TempOrd)
  structure Map = SplayMapFn(TempOrd)
  fun newlabel() =
    let 
      val x  = !labelCount
      val () = labelCount := x +1
    in
      Symbol.symbol ("L" ^ Int.toString(x))
    end
  val namedlabel = Symbol.symbol
  fun labelToString l = Symbol.name l
end
{'fraction_non_alphanumeric': 0.09258123850398528, 'fraction_numerical': 0.012262415695892091, 'mean_word_length': 2.056179775280899, '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': '2587213', 'n_tokens_mistral': 560, 'n_tokens_neox': 535, 'n_words': 179}