<commit_before>#!/bin/env bash

# A script to expand #PRINTSTR macro in C0 program.
# This script expand #PRINTSTR to calls to `put1()`s and
# print the processed source code to STDOUT

# example.c
# #include "stdio.h"
#
# void main()
# {
#     PRINTLN("hello world!")
#     commit;
# }

# after processing by ./strsplitter.bash example.c:
# #include "stdio.h"
#
# void main()
# {
# put1('h');put1('e');put1('l');put1('l');put1('o');put1(' ');put1('w');put1('o');put1('r');put1('l');put1('d');put1('!');wrln();
#     commit;
# }


if [ $# -lt 1 ]; then
    echo "Usage: $0 file"
    exit 1<commit_msg>fix permission problem of strsplitter.bash<commit_after>#!/bin/env bash

# A script to expand #PRINTSTR macro in C0 program.
# This script expand #PRINTSTR to calls to `put1()`s and
# print the processed source code to STDOUT

# example.c
# #include "stdio.h"
#
# void main()
# {
#     PRINTLN("hello world!")
#     commit;
# }

# after processing by ./strsplitter.bash example.c:
# #include "stdio.h"
#
# void main()
# {
# put1('h');put1('e');put1('l');put1('l');put1('o');put1(' ');put1('w');put1('o');put1('r');put1('l');put1('d');put1('!');wrln();
#     commit;
# }


if [ $# -lt 1 ]; then
    echo "Usage: $0 file"
    exit 1
{'fraction_non_alphanumeric': 0.22177091795288384, 'fraction_numerical': 0.02761982128350934, 'mean_word_length': 4.090909090909091, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7354122', 'n_tokens_mistral': 502, 'n_tokens_neox': 476, 'n_words': 117}