<commit_before>package grid.engine

import sys.process._
import util._
import xml._

object qjutil extends App with Signal {

  exit on SIGPIPE

  // -----------------------------------------------------------------------------------------------
  // configuration defaults
  // -----------------------------------------------------------------------------------------------

  object Default {
    val lower = 0.8
    val upper = 1.01
    val tolerance = 0
    val user = {
      var user = sys props "user.name"
      if (user == "root")
        user = "*"
      user
    }
  }

  // -----------------------------------------------------------------------------------------------
  // help / usage<commit_msg>uses functional programming in qjutil<commit_after>package grid.engine

import sys.process._
import util._
import xml._

object qjutil extends App with Signal {

  exit on SIGPIPE

  // -----------------------------------------------------------------------------------------------
  // configuration defaults
  // -----------------------------------------------------------------------------------------------

  object Default {
    val lower = 0.8
    val upper = 1.01
    val tolerance = 0
    val user = sys.props get "user.name" filter { _ != "root" } getOrElse "*"
  }

  // -----------------------------------------------------------------------------------------------
  // help / usage
{'fraction_non_alphanumeric': 0.46586059743954483, 'fraction_numerical': 0.008534850640113799, 'mean_word_length': 0.6650887573964497, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7458349', 'n_tokens_mistral': 288, 'n_tokens_neox': 268, 'n_words': 87}