<commit_before>-- Copyright (c) 2006 Portland State University.
-- This is an example program for the Omega programming language;
-- for more information, see:
--   http://www.cs.pdx.edu/~sheard/Omega/index.html
-- Research and development on Omega is supported by a grant
-- from the National Science Foundation.

-- Existential hiding and operators on anonymous sums

data Covert :: (Nat ~> *0) ~> *0 where
  Hide :: t x -> Covert t

toNat :: Int -> Covert Nat'
toNat 0 = Hide Z
toNat n = case toNat (n-1) of Hide b -> Hide(S b)
<commit_msg>generalize a bit<commit_after>-- Copyright (c) 2006 Portland State University.
-- This is an example program for the Omega programming language;
-- for more information, see:
--   http://www.cs.pdx.edu/~sheard/Omega/index.html
-- Research and development on Omega is supported by a grant
-- from the National Science Foundation.

-- Existential hiding and operators on anonymous sums

data Covert :: (a ~> *0) ~> *0 where
  Hide :: t x -> Covert t

toNat :: Int -> Covert Nat'
toNat 0 = Hide Z
toNat n = case toNat (n-1) of Hide b -> Hide(S b)

{'fraction_non_alphanumeric': 0.11591536338546458, 'fraction_numerical': 0.014719411223551058, 'mean_word_length': 3.300395256916996, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3576103', 'n_tokens_mistral': 363, 'n_tokens_neox': 327, 'n_words': 148}