<commit_before>module Pyrec.CPS where

import Data.Word
import Text.Parsec.Pos

data Name
  = Name String SourcePos
  | Gen Word
  deriving (Show, Eq, Ord)

data Val
  = Var Name
  | Num Double
  | Str String
  deriving (Show, Eq)

data Expr
  = App Val [Val] (Val, Val)
  | Fix [Fun] Expr
  deriving (Show, Eq)

data Fun
  = Fun Name [Name] (Name, Name) Expr
  deriving (Show, Eq)
<commit_msg>Change CPS to use Unique, add back Cont<commit_after>module Pyrec.CPS where

import Data.Word
import Pyrec.Misc

data Name
  = Name String Unique
  | Gen Word
  deriving (Show, Eq, Ord)

data Val
  = Var Name
  | Num Double
  | Str String
  deriving (Show, Eq)

data Expr
  = App Val [Val] (Val, Val)
  | Cont Val Val
  | Fix [Fun] Expr
  deriving (Show, Eq)

data Fun
  = Fun Name [Name] (Name, Name) Expr
  deriving (Show, Eq)

{'fraction_non_alphanumeric': 0.09842041312272175, 'fraction_numerical': 0.0, 'mean_word_length': 3.099502487562189, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6369963', 'n_tokens_mistral': 314, 'n_tokens_neox': 311, 'n_words': 116}