<commit_before>// Type definitions for oblo-util 0.6.3
// Definitions by: <NAME> <https://github.com/Oblosys/>
/// <reference path="../jquery/jquery.d.ts" />


interface ObloUtilStatic {
  debug : boolean;
  
  log(...args: any[]) : void;
  error(...args: any[]) : void;
  clip(min : number, max : number, x : number) : number;
  square(x : number) : number;
  replicate<X>(n : number, x : X) : X[];
  pad(c : string, l : number, str : any) : string;
  padZero(l : number, n : number) : string;
  addslashes(str : string) : string;
  showJSON(json : any, indentStr? : string, maxDepth? : number) : string;
  showTime(date : Date) : string;
  showDate(date : Date) : string;
  readDate(dateStr : string) : Date;
  setAttr($elt : JQuery, attrName : string, isSet : boolean) : void;
}

declare var util: ObloUtilStatic;

declare module "oblo-util" {
	export = util;
}<commit_msg>Fix TypeScript typings, so they work from node_modules subdirectory<commit_after>// This file is a copy of oblo-util/oblo-util.d.ts on https://github.com/borisyankov/DefinitelyTyped,
// but has an extra ../typings in the jQuery reference path, so it can be used from the node_modules/oblo-util
// directory where it is installed by npm.
//
// The condition for this to work is that the jQuery typings are in a directory 'typings' that is at the same 
// level as node_modules (which is normally the case.)

// Type definitions for oblo-util v0.6.4
// Project: https://github.com/Oblosys/oblo-util
// Definitions by: <NAME> <https://github.com/Oblosys/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped


/// <reference path="../../typings/jquery/jquery.d.ts" />

interface ObloUtilStatic {
  debug : boolean;
  
  log(...args: any[]) : void;
  error(...args: any[]) : void;
  clip(min : number, max : number, x : number) : number;
  square(x : number) : number;
  replicate<X>(n : number, x : X) : X[];
  pad(c : string, l : number, str : any) : string;
  padZero(l : number, n : number) : string;
  addslashes(str : string) : string;
  showJSON(json : any, indentStr? : string, maxDepth? : number) : string;
  showTime(date : Date) : string;
  showDate(date : Date) : string;
  readDate(dateStr : string) : Date;
  setAttr($elt : JQuery, attrName : string, isSet : boolean) : void;
}

declare var util: ObloUtilStatic;

declare module "oblo-util" {
	export = util;
}
{'fraction_non_alphanumeric': 0.1535850657615613, 'fraction_numerical': 0.002545608824777259, 'mean_word_length': 3.5609284332688587, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 5, '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': '3165394', 'n_tokens_mistral': 807, 'n_tokens_neox': 802, 'n_words': 243}