<commit_before>/*
 * Copyright (C) 2017 TypeFox and others.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
 */

/**
 * On POSIX:
 * ┌─────────────────────┬────────────┐
 * │          dir        │    base    │
 * ├──────┬              ├──────┬─────┤
 * │ root │              │ name │ ext │
 * "  /    home/user/dir / file  .txt "
 * └──────┴──────────────┴──────┴─────┘
 *
 * On Windows:
 * ┌─────────────────────┬────────────┐
 * │          dir        │    base    │
 * ├──────┬              ├──────┬─────┤
 * │ root │              │ name │ ext │
 * "  /c:  /home/user/dir / file  .txt "
 * └──────┴──────────────┴──────┴─────┘
 */
export class Path {
    public static separator: '/' = '/';

    public static isDrive(segment: string): boolean {
        return segment.endsWith(':');
    }

    readonly isAbsolute: boolean;
    readonly isRoot: boolean;<commit_msg>[path] updated the docstring<commit_after>/*
 * Copyright (C) 2017 TypeFox and others.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
 */

/**
 * On POSIX:
 * ┌──────────────────────┬────────────┐
 * │          dir         │    base    │
 * ├──────┬               ├──────┬─────┤
 * │ root │               │ name │ ext │
 * "  /     home/user/dir / file  .txt "
 * └──────┴───────────────┴──────┴─────┘
 *
 * On Windows:
 * ┌──────────────────────┬────────────┐
 * │           dir        │    base    │
 * ├──────┬               ├──────┬─────┤
 * │ root │               │ name │ ext │
 * "  /c: / home/user/dir / file  .txt "
 * └──────┴───────────────┴──────┴─────┘
 */
export class Path {
    public static separator: '/' = '/';

    public static isDrive(segment: string): boolean {
        return segment.endsWith(':');
    }

    readonly isAbsolute: boolean;
    readonly isRoot: boolean;
{'fraction_non_alphanumeric': 0.2874762808349146, 'fraction_numerical': 0.007590132827324478, 'mean_word_length': 2.229709035222052, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5501152', 'n_tokens_mistral': 798, 'n_tokens_neox': 709, 'n_words': 206}