<commit_before>import {Assertion} from './Assertion';

export interface Utils {
  addChainableMethod(ctx: any, name: string, chainingBehavior: (value: any) => void);
  addMethod(ctx: any, name: string, method: (value: any) => void);
  addProperty(ctx: any, name: string, getter: () => void);
  expectTypes(obj: Object, types: string[]);
  flag(obj: Object, key: string, value?: any);
  getActual(obj: Object, actual?: any);
  getEnumerableProperties(obj: Object);
  getMessage(obj: Object, params: any[]);
  getMessage(obj: Object, message: string, negateMessage: string);
  getName(func: Function);
  getPathInfo(path: string, obj: Object);
  getPathValue(path: string, obj: Object);
  getProperties(obj: Object);
  hasProperty(obj: Object, name: string);
  transferFlags(assertion: Assertion | any, obj: Object, includeAll?: boolean);
  inspect(obj: any);
}<commit_msg>Add return values for Utils<commit_after>import {Assertion} from './Assertion';

export interface PathInfo {
  parent: any;
  name: number|string;
  value: any;
  exists: boolean;
}

export interface Utils {
  addChainableMethod(ctx: any, name: string, chainingBehavior: (value: any) => void): void;
  addMethod(ctx: any, name: string, method: (value: any) => void): void;
  addProperty(ctx: any, name: string, getter: () => void): void;
  expectTypes(obj: Object, types: string[]): void;
  flag(obj: Object, key: string, value?: any): any;
  getActual(obj: Object, actual?: any): any;
  getEnumerableProperties(obj: Object): string[];
  getMessage(obj: Object, params: any[]): string;
  getMessage(obj: Object, message: string, negateMessage: string): string;
  getName(func: Function): string;
  getPathInfo(path: string, obj: Object): PathInfo;
  getPathValue(path: string, obj: Object): any;
  getProperties(obj: Object): string[];
  hasProperty(obj: Object, name: string): boolean;
  transferFlags(assertion: Assertion | any, obj: Object, includeAll?: boolean): void;
  inspect(obj: any): any;
}
{'fraction_non_alphanumeric': 0.15169964485032977, 'fraction_numerical': 0.0, 'mean_word_length': 5.919298245614035, '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': '2431244', 'n_tokens_mistral': 620, 'n_tokens_neox': 620, 'n_words': 191}