<commit_before>#!/bin/sh
# Based on patch from <NAME> sent to X.Org
#    http://lists.x.org/archives/xorg-devel/2010-April/007415.html
#
# Get the git version if possible and store it in $GITFILE if it differs to
# the one contained already.

SCM_VER_FILE="mxf_scm_version.h"

GIT_VER=""
if command -v git \&>/dev/null; then
    GIT_VER=`git describe --dirty 2>/dev/null`
fi<commit_msg>build: manually check for dirty repo<commit_after>#!/bin/sh
# Based on patch from <NAME> sent to X.Org
#    http://lists.x.org/archives/xorg-devel/2010-April/007415.html
#
# Get the git version if possible and store it in $GITFILE if it differs to
# the one contained already.

SCM_VER_FILE="mxf_scm_version.h"

GIT_VER=""
if command -v git \&>/dev/null; then
  git update-index --refresh --unmerged -q &>/dev/null
  GIT_VER=`git describe 2>/dev/null`
  if test -n "$GIT_VER" && ! git diff-index --quiet HEAD --; then
    GIT_VER="$GIT_VER"-dirty
  fi
fi
{'fraction_non_alphanumeric': 0.1372340425531915, 'fraction_numerical': 0.023404255319148935, 'mean_word_length': 3.6127450980392157, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '1156619', 'n_tokens_mistral': 379, 'n_tokens_neox': 348, 'n_words': 104}