<commit_before>#!/usr/bin/env bash

# TODO: consider using an actual array for $BACK_MIDDLEWARE
back::use() {
  export BACK_MIDDLEWARE="${BACK_MIDDLEWARE}$@\n"
}

back::next() {
  if [[ -z "$BACK_MIDDLEWARE" ]]; then
    ( $BACK_APP )
  else
    {
      local top_middleware="$(read)"
      BACK_MIDDLWARE="$(cat -)" $top_middleware
    } <<<"$BACK_MIDDLEWARE"
  fi
}

back::run() {
  export BACK_APP="$@"
  back::next
}

back::header() {
  echo -n "$*\r\n"
}

back::start_response() {
  echo -n "\r\n"
}
<commit_msg>style<commit_after>#!/usr/bin/env bash

# TODO: consider using an actual array for $BACK_MIDDLEWARE
back::use() {
  export BACK_MIDDLEWARE="${BACK_MIDDLEWARE}$@\n"
}

back::next() {
  if [[ -z "$BACK_MIDDLEWARE" ]]; then
    ( $BACK_APP )
  else
    {
      local top_middleware="$(read)"
      BACK_MIDDLWARE="$(cat -)" $top_middleware
    } <<<"$BACK_MIDDLEWARE"
  fi
}

back::run() {
  export BACK_APP="$@"
  back::next
}

back::header() { echo -n "$*\r\n" ;}

back::start_response() { back::header ;}
{'fraction_non_alphanumeric': 0.2007835455435847, 'fraction_numerical': 0.0, 'mean_word_length': 3.7096774193548385, 'pattern_counts': {'":': 0, '<': 9, '<?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': '4838218', 'n_tokens_mistral': 439, 'n_tokens_neox': 422, 'n_words': 74}