<commit_before>#!/bin/bash

cwd="${0%/*}/"
cd $cwd

BACKUP_DIR="$(cat alloc_config.php  | grep ATTACHMENTS_DIR  | sed -e 's/define("ATTACHMENTS_DIR","//' | sed -e 's/");$//')";

if [ -d "${BACKUP_DIR}" ]; then
  file="${BACKUP_DIR}whatsnew/0/$(date +%Y-%m-%d)"
  #echo -e "\n" >> $file
  info=$(darcs changes --last ${1} | sed -e 's/^[^\*]*$//' | sed -e 's/ \* /<li>/')
  echo $info >> $file
fi
<commit_msg>20020 Modify whatsnew mechanism to use DARCS_PATCHES darcs environment variable<commit_after>#!/bin/bash

cwd="${0%/*}/"
cd $cwd

BACKUP_DIR="$(cat alloc_config.php  | grep ATTACHMENTS_DIR  | sed -e 's/define("ATTACHMENTS_DIR","//' | sed -e 's/");$//')";

if [ -d "${BACKUP_DIR}" ]; then
  file="${BACKUP_DIR}whatsnew/0/$(date +%Y-%m-%d)"
  info=$(echo "${1}" | sed -e 's/^[^\*]*$//' | sed -e 's/ \* /<li>/')
  echo $info >> $file
fi

{'fraction_non_alphanumeric': 0.28299643281807374, 'fraction_numerical': 0.013079667063020214, 'mean_word_length': 3.5513513513513515, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '2517916', 'n_tokens_mistral': 388, 'n_tokens_neox': 365, 'n_words': 81}