<commit_before>library ansicolor_test;

import 'package:test/test.dart';
import "../lib/ansicolor.dart";

void main() {
  tearDown(() {
    color_disabled = false;
  });

  test('foreground', () {
    AnsiPen pen = new AnsiPen()..rgb(r: 1.0, g: 0.8, b: 0.2);
    expect(pen.write("Test Text"), "\x1B[38;5;221mTest Text\x1B[0m");<commit_msg>Use package import in ansicolor_test.dart<commit_after>library ansicolor_test;

import 'package:ansicolor/ansicolor.dart';
import 'package:test/test.dart';

void main() {
  tearDown(() {
    color_disabled = false;
  });

  test('foreground', () {
    AnsiPen pen = new AnsiPen()..rgb(r: 1.0, g: 0.8, b: 0.2);
    expect(pen.write("Test Text"), "\x1B[38;5;221mTest Text\x1B[0m");
{'fraction_non_alphanumeric': 0.1933240611961057, 'fraction_numerical': 0.04172461752433936, 'mean_word_length': 4.255474452554744, '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': '6013474', 'n_tokens_mistral': 304, 'n_tokens_neox': 285, 'n_words': 53}