<commit_before>import { PagOpts, QueryOpts } from './links';
import { RelationTypeOpt, RelationOpts } from './relations';

//// GENERAL INTERFACES FOR MAPPERS

// Mapper
export interface Mapper {
  map(data: any, type: string, mapOpts?: MapOpts): any;
}

// Mapper Options
export interface MapOpts {
  // Attributes-related
  omitAttrs?: (RegExp | string)[] | null;
  keyForAttr?: (attr: string) => string;

  // Relations-related
  relations?: boolean | RelationOpts;
  typeForModel?: RelationTypeOpt;

  // Links-related
  enableLinks?: boolean;
  pagination?: PagOpts;
  query?: QueryOpts;
}
<commit_msg>Added meta key to MapOpts interface<commit_after>import { PagOpts, QueryOpts } from './links';
import { RelationTypeOpt, RelationOpts } from './relations';

//// GENERAL INTERFACES FOR MAPPERS

// Mapper
export interface Mapper {
  map(data: any, type: string, mapOpts?: MapOpts): any;
}

// Mapper Options
export interface MapOpts {
  // Attributes-related
  omitAttrs?: (RegExp | string)[] | null;
  keyForAttr?: (attr: string) => string;

  // Relations-related
  relations?: boolean | RelationOpts;
  typeForModel?: RelationTypeOpt;

  // Links-related
  enableLinks?: boolean;
  pagination?: PagOpts;
  query?: QueryOpts;

  // Meta-related
  meta?: { [key:string]: any };
}

{'fraction_non_alphanumeric': 0.1383061383061383, 'fraction_numerical': 0.0, 'mean_word_length': 4.011673151750973, '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': '468624', 'n_tokens_mistral': 426, 'n_tokens_neox': 421, 'n_words': 113}