<commit_before>// Type definitions for URI.js
// Project: https://github.com/medialize/URI.js
// Definitions by: RodneyJT <https://github.com/RodneyJT>
// Definitions: https://github.com/borisyankov/DefinitelyTyped

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

interface URIOptions {
    protocol?: string;
    username?: string;
    password?: string;
    hostname?: string;
    port?: string;
    path?: string;
    query?: string;
    fragment?: string;
}

declare class URI {
    constructor();
    constructor(uri: string);
    constructor(options: URIOptions);
    clone(): URI;
    href(): string;
    href(url: string): void;
    valueOf(): string;
    scheme(): string;
    protocol(): string;
    scheme(protocol: string): URI;
    protocol(protocol: string): URI;
    username(): string;
    username(uname: string): URI;
    password(): string;
    password(pw: string): URI;
    port(): string;
    port(port: string): URI;
    hostname(): string;
    hostname(hostname: string): URI;
    host(): string;
    host(host: string): URI;
    userinfo(): string;
    userinfo(userinfo: string): URI;
    authority(): string;
    authority(authority: string): URI;
    domain(): string;
    domain(domain: boolean): string;
    domain(domain: string): URI;
    subdomain(): string;
    subdomain(subdomain: string): URI;
    tld(): string;
    tld(tld: boolean): string;
    tld(tld: string): URI;
    path(): string;
    path(path: boolean): string;
    path(path: string): URI;
    pathname(): string;
    pathname(path: boolean): string;
    pathname(path: string): URI;
    directory(): string;
    directory(dir: boolean): string;
    directory(dir: string): URI;
    filename(): string;
    filename(file: boolean): string;
    filename(file: string): URI;
    suffix(): string;
    suffix(suffix: boolean): string;
    suffix(suffix: string): URI;
    segment(): string[];
    segment(segments: string[]): string;
    segment(position: number): string;
    segment(position: number, level: string): string;
    segment(level: string): string;
    search(): string;
    search(qry: string): URI;
    search(qry: boolean): any;
    search(qry: Object): URI;
    query(): string;
    query(qry: string): URI;
    query(qry: boolean): Object;
    query(qry: Object): URI;
    hash(): string;
    hash(hash: string): URI;
    fragment(): string;
    fragment(fragment: string): URI;
    resource(): string;
    resource(resource: string): URI;
    is(qry: string): boolean;
    addSearch(qry: string): URI;
    addSearch(qry: Object): URI;
    addQuery(qry: string): URI;
    addQuery(qry: Object): URI;
    removeSearch(qry: string): URI;
    removeSearch(qry: Object): URI;
    removeQuery(qry: string): URI;
    removeQuery(qry: Object): URI;
    addFragment(fragment: string): URI;
    //fragmentPrefix: string;
    fragmentPrefix(prefix: string);
    normalize(): URI;
    normalizeProtocol(): URI;
    normalizeHostname(): URI;
    normalizePort(): URI;
    normalizePathname(): URI;
    normalizePath(): URI;
    normalizeSearch(): URI;<commit_msg>fragmentPrefix(string) returns URI<commit_after>// Type definitions for URI.js
// Project: https://github.com/medialize/URI.js
// Definitions by: RodneyJT <https://github.com/RodneyJT>
// Definitions: https://github.com/borisyankov/DefinitelyTyped

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

interface URIOptions {
    protocol?: string;
    username?: string;
    password?: string;
    hostname?: string;
    port?: string;
    path?: string;
    query?: string;
    fragment?: string;
}

declare class URI {
    constructor();
    constructor(uri: string);
    constructor(options: URIOptions);
    clone(): URI;
    href(): string;
    href(url: string): void;
    valueOf(): string;
    scheme(): string;
    protocol(): string;
    scheme(protocol: string): URI;
    protocol(protocol: string): URI;
    username(): string;
    username(uname: string): URI;
    password(): string;
    password(pw: string): URI;
    port(): string;
    port(port: string): URI;
    hostname(): string;
    hostname(hostname: string): URI;
    host(): string;
    host(host: string): URI;
    userinfo(): string;
    userinfo(userinfo: string): URI;
    authority(): string;
    authority(authority: string): URI;
    domain(): string;
    domain(domain: boolean): string;
    domain(domain: string): URI;
    subdomain(): string;
    subdomain(subdomain: string): URI;
    tld(): string;
    tld(tld: boolean): string;
    tld(tld: string): URI;
    path(): string;
    path(path: boolean): string;
    path(path: string): URI;
    pathname(): string;
    pathname(path: boolean): string;
    pathname(path: string): URI;
    directory(): string;
    directory(dir: boolean): string;
    directory(dir: string): URI;
    filename(): string;
    filename(file: boolean): string;
    filename(file: string): URI;
    suffix(): string;
    suffix(suffix: boolean): string;
    suffix(suffix: string): URI;
    segment(): string[];
    segment(segments: string[]): string;
    segment(position: number): string;
    segment(position: number, level: string): string;
    segment(level: string): string;
    search(): string;
    search(qry: string): URI;
    search(qry: boolean): any;
    search(qry: Object): URI;
    query(): string;
    query(qry: string): URI;
    query(qry: boolean): Object;
    query(qry: Object): URI;
    hash(): string;
    hash(hash: string): URI;
    fragment(): string;
    fragment(fragment: string): URI;
    resource(): string;
    resource(resource: string): URI;
    is(qry: string): boolean;
    addSearch(qry: string): URI;
    addSearch(qry: Object): URI;
    addQuery(qry: string): URI;
    addQuery(qry: Object): URI;
    removeSearch(qry: string): URI;
    removeSearch(qry: Object): URI;
    removeQuery(qry: string): URI;
    removeQuery(qry: Object): URI;
    addFragment(fragment: string): URI;
    //fragmentPrefix: string;
    fragmentPrefix(prefix: string): URI;
    normalize(): URI;
    normalizeProtocol(): URI;
    normalizeHostname(): URI;
    normalizePort(): URI;
    normalizePathname(): URI;
    normalizePath(): URI;
    normalizeSearch(): URI;
{'fraction_non_alphanumeric': 0.15438311688311687, 'fraction_numerical': 0.0, 'mean_word_length': 3.523494860499266, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 6, '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': '7007904', 'n_tokens_mistral': 1879, 'n_tokens_neox': 1877, 'n_words': 516}