<commit_before>import { IncomingMessage, ServerResponse } from 'http';

export type SourceListDirective = false | (string | ((req: IncomingMessage, res: ServerResponse) => string))[];
export type PluginTypesDirective = false | (string | ((req: IncomingMessage, res: ServerResponse) => string))[];
export type SandboxDirective = false | (string | ((req: IncomingMessage, res: ServerResponse) => string))[];
export type ReportUriDirective = false | (string | ((req: IncomingMessage, res: ServerResponse) => string));
export type RequireSriForDirective = false | (string | ((req: IncomingMessage, res: ServerResponse) => string))[];

export interface KebabCaseDirectives {
  'base-uri'?: SourceListDirective;
  'block-all-mixed-content'?: boolean;
  'child-src'?: SourceListDirective;
  'connect-src'?: SourceListDirective;
  'default-src'?: SourceListDirective;
  'font-src'?: SourceListDirective;
  'form-action'?: SourceListDirective;
  'frame-ancestors'?: SourceListDirective;
  'frame-src'?: SourceListDirective;<commit_msg>Simplify types<commit_after>import { IncomingMessage, ServerResponse } from 'http';

type DirectiveType = string | ((req: IncomingMessage, res: ServerResponse) => string);

export type SourceListDirective = false | DirectiveType[];
export type PluginTypesDirective = false | DirectiveType[];
export type SandboxDirective = false | DirectiveType[];
export type ReportUriDirective = false | DirectiveType;
export type RequireSriForDirective = false | DirectiveType[];

export interface KebabCaseDirectives {
  'base-uri'?: SourceListDirective;
  'block-all-mixed-content'?: boolean;
  'child-src'?: SourceListDirective;
  'connect-src'?: SourceListDirective;
  'default-src'?: SourceListDirective;
  'font-src'?: SourceListDirective;
  'form-action'?: SourceListDirective;
  'frame-ancestors'?: SourceListDirective;
  'frame-src'?: SourceListDirective;
{'fraction_non_alphanumeric': 0.13326226012793177, 'fraction_numerical': 0.0, 'mean_word_length': 6.919831223628692, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '6558023', 'n_tokens_mistral': 558, 'n_tokens_neox': 558, 'n_words': 135}