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

# Simple script to generate a timeseries graph from a data file.
# Depencies: gnuplot

# arg 1: path to file with the raw data
# arg 2: path to file to save the graph in (.png will be appended)
# arg 3: optional title to show on the graph

gnuplot << EOF
set datafile separator ","
set xdata time
set timefmt "%s" #time format of input data

set terminal png size 800,200 transparent truecolor
set output "$2.png"
set format x "%d/%m" # format of output time
set grid
set title "$3" # If a second arg was supplied we show it as a title too
unset key

plot "$1" every 4 using 1:2 with lines linewidth 2
EOF<commit_msg>Updated plotter.<commit_after>#!/usr/bin/env bash

# Simple script to generate a timeseries graph from a data file.
# Depencies: gnuplot

# arg 1: path to file with the raw data
# arg 2: path to file to save the graph in (.png will be appended)
# arg 3: optional title to show on the graph

gnuplot << EOF
set datafile separator ","
set xdata time
set timefmt "%s" #time format of input data
set format x "%d/%m" # format of output time

set style data lines
set style line 1 linewidth 2
set grid
unset key
set title "$3" # If a second arg was supplied we show it as a title too
set terminal png size 800,200 transparent truecolor
set output "$2.png"

plot "$1" every 4 using 1:2 ls 1
EOF
{'fraction_non_alphanumeric': 0.0738255033557047, 'fraction_numerical': 0.02535421327367636, 'mean_word_length': 3.88, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3164741', 'n_tokens_mistral': 440, 'n_tokens_neox': 402, 'n_words': 232}