<commit_before>part of log;

abstract class Dev {
  static var enabled = false;
  static var prefix = '';

  static enable() => enabled = true;
  static disable() => enabled = false;

  static message(text) => enabled ? Log.message('$prefix$text') : null;
  static error(text) => enabled ? Log.error('$prefix$text') : null;
  static warning(text) => enabled ? Log.warning('$prefix$text') : null;
  static success(text) => enabled ? Log.success('$prefix$text') : null;
}<commit_msg>Updated better usage instead of ternary operators.<commit_after>part of log;

abstract class Dev {
  static var enabled = false;
  static var prefix = '';

  static enable() => enabled = true;
  static disable() => enabled = false;
  // Only log if enabled is true.
  static message(text) => enabled && Log.message('$prefix$text');
  static error(text) => enabled && Log.error('$prefix$text');
  static warning(text) => enabled && Log.warning('$prefix$text');
  static success(text) => enabled && Log.success('$prefix$text');
}
{'fraction_non_alphanumeric': 0.1626984126984127, 'fraction_numerical': 0.0, 'mean_word_length': 4.636871508379889, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '7343692', 'n_tokens_mistral': 296, 'n_tokens_neox': 290, 'n_words': 90}