<commit_before>// Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

library path;

import 'dart:io';
import 'dart:math';

class Path {
  final String _path;
  final bool isWindowsShare;

  Path(String source)
      : _path = _clean(source), isWindowsShare = _isWindowsShare(source);

  Path.raw(String source) : _path = source, isWindowsShare = false;
<commit_msg>Rename legacy path library in tools/testing to avoid name collision.<commit_after>// Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

library legacy_path;

import 'dart:io';
import 'dart:math';

// TODO: Remove this class, and use the URI class for all path manipulation.
class Path {
  final String _path;
  final bool isWindowsShare;

  Path(String source)
      : _path = _clean(source), isWindowsShare = _isWindowsShare(source);

  Path.raw(String source) : _path = source, isWindowsShare = false;

{'fraction_non_alphanumeric': 0.08619246861924686, 'fraction_numerical': 0.0066945606694560665, 'mean_word_length': 4.046413502109704, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '96330', 'n_tokens_mistral': 354, 'n_tokens_neox': 338, 'n_words': 148}