<commit_before>#!/bin/sh

case "$1" in
    setenv1)
        if [ "$FOO" = "foo" -a "$BAR" = "bar" -a "$BAZ" = "baz" ]; then
            echo 1 >> ./env-record
        fi
        ;;
    setenv2)
        if [ "$FOO" = "foo" ]; then
            echo 2 >> ./env-record
            export BAR=bar
            dinitctl -p socket setenv BAR BAZ=baz
        fi
        ;;
    setenv3)
        dinitctl -p socket setenv FOO=foo
        echo 3 >> ./env-record
        ;;
    *) ;;
esac<commit_msg>Fix integration tests without dinit installed<commit_after>#!/bin/sh

case "$1" in
    setenv1)
        if [ "$FOO" = "foo" -a "$BAR" = "bar" -a "$BAZ" = "baz" ]; then
            echo 1 >> ./env-record
        fi
        ;;
    setenv2)
        if [ "$FOO" = "foo" ]; then
            echo 2 >> ./env-record
            export BAR=bar
            ../../dinitctl -p socket setenv BAR BAZ=baz
        fi
        ;;
    setenv3)
        ../../dinitctl -p socket setenv FOO=foo
        echo 3 >> ./env-record
        ;;
    *) ;;
esac
{'fraction_non_alphanumeric': 0.15913555992141454, 'fraction_numerical': 0.0137524557956778, 'mean_word_length': 1.295045045045045, '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': '2991322', 'n_tokens_mistral': 373, 'n_tokens_neox': 346, 'n_words': 96}