<commit_before>---
layout: home
title: Feature - Coupons
sidebar: development
subnav: development_types
---

#Types

Types allows you to ensure a string has the expected format.

Types must implement [Thelia\Type\TypeInterface]().

Here are the Thelia 2 default available types :

 * [Thelia\Type\AlphaNumStringListType]() - A comma separated list of alpha-numeric strings.
 * [Thelia\Type\AlphaNumStringType]() - A single alpha-numeric strings.
 * [Thelia\Type\AnyType]() - Anything.
 * [Thelia\Type\BooleanOrBothType]() - A boolean or "both" string.
 * [Thelia\Type\BooleanType]() - A boolean.
 * [Thelia\Type\EnumListType](array $enumChoice) - A list of value from $enumChoice array.
 * [Thelia\Type\EnumType](array $enumChoice) - A single value from $enumChoice array.
 * [Thelia\Type\FloatType]() - A float value.
 * [Thelia\Type\IntListType]() - A list of integers.
 * [Thelia\Type\IntToCombinedIntsListType]() - A list of int related to combined - with | or & - ints.

    ie : "1 : 4 & 5 & 6, 2 : (9 | 10) & 7"
 * [Thelia\Type\IntToCombinedStringsListType]() - A list of int related to combined - with | or & - strings.<commit_msg>types<commit_after>---
layout: home
title: Developement - Types
sidebar: development
subnav: development_types
---

#Types

Types allows you to ensure a string has the expected format.

Types must implement [Thelia\Type\TypeInterface]().

Here are the Thelia 2 default available types :

 * [Thelia\Type\AlphaNumStringListType]() - A comma separated list of alpha-numeric strings.
 * [Thelia\Type\AlphaNumStringType]() - A single alpha-numeric strings.
 * [Thelia\Type\AnyType]() - Anything.
 * [Thelia\Type\BooleanOrBothType]() - A boolean or "both" string.
 * [Thelia\Type\BooleanType]() - A boolean.
 * [Thelia\Type\EnumListType](array $enumChoice) - A list of value from $enumChoice array.
 * [Thelia\Type\EnumType](array $enumChoice) - A single value from $enumChoice array.
 * [Thelia\Type\FloatType]() - A float value.
 * [Thelia\Type\IntListType]() - A list of integers.
 * [Thelia\Type\IntToCombinedIntsListType]() - A list of int related to combined - with | or & - ints.

    ie : "1 : 4 & 5 & 6, 2 : (9 | 10) & 7"
 * [Thelia\Type\IntToCombinedStringsListType]() - A list of int related to combined - with | or & - strings.
{'fraction_non_alphanumeric': 0.1328640563132424, 'fraction_numerical': 0.008798944126704795, 'mean_word_length': 3.807610993657505, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '118442', 'n_tokens_mistral': 748, 'n_tokens_neox': 726, 'n_words': 229}