<commit_before>import { IsNotEmpty, IsOptional, IsString } from 'class-validator';

export type EntityMap = Record<string, Entity>;

export class Entity {
  [key: string]: unknown;

  @IsString()
  @IsNotEmpty()
  value: string;

  @IsOptional()
  @IsString()
  @IsNotEmpty()
  id?: string;

  @IsOptional()
  @IsString()
  @IsNotEmpty()
  key?: string;
}<commit_msg>:label: :boom: Adjust structure of Entity to be the same new structure as Entity in the framework<commit_after>import { IsNotEmpty, IsOptional, IsString } from 'class-validator';

export type EntityMap = Record<string, Entity>;

export class Entity {
  [key: string]: unknown;

  @IsOptional()
  @IsString()
  @IsNotEmpty()
  id?: string;

  @IsOptional()
  @IsString()
  @IsNotEmpty()
  resolved?: string;

  @IsOptional()
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
  value?: any;

  @IsOptional()
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
  native?: any;
}
{'fraction_non_alphanumeric': 0.1422680412371134, 'fraction_numerical': 0.0, 'mean_word_length': 4.394444444444445, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6930852', 'n_tokens_mistral': 332, 'n_tokens_neox': 324, 'n_words': 84}