<commit_before>##########################################################################################
#
#  ***************************************************************************
#  *                                                                         *
#  *   This program is free software; you can redistribute it and/or modify  *
#  *   it under the terms of the GNU General Public License as published by  *
#  *   the Free Software Foundation; either version 2 of the License, or     *
#  *   (at your option) any later version.                                   *
#  *                                                                         *
#  ***************************************************************************
#
##########################################################################################
#
# Purpose of this program is to test konsolekalendar in future this will be more smarter
#
# testkalendar.sh 							0.1
#
##########################################################################################

#!/bin/sh

function do_test(){

DATE=10
MONTH=10
YEAR=2003

MINUTE=1
HOUR=20

while [  $DATE -lt 29 ];  do


COMMAND="$KONSOLEKALENDAR $1 --time $HOUR:$MINUTE --description $3 --summary $3 --date $YEAR-$MONTH-$DATE --create --file=$2"
echo using command $COMMAND
$COMMAND

let DATE=$DATE+1
let MINUTE=$MINUTE+1

done
}


KONSOLEKALENDAR=./konsolekalendar
ADDING="--add"
REMOVE="--delete"
CHANGE="--change"
VIEW="--view"

COMMAND="";

FILE="./testcaledar.ics"

do_test $ADDING $FILE "ADD"
do_test $CHANGE $FILE "CHANGE"
do_test $REMOVE $FILE "REMOVE"

<commit_msg>Script gets some new stuff in exporting<commit_after>##########################################################################################
#
#  ***************************************************************************
#  *                                                                         *
#  *   This program is free software; you can redistribute it and/or modify  *
#  *   it under the terms of the GNU General Public License as published by  *
#  *   the Free Software Foundation; either version 2 of the License, or     *
#  *   (at your option) any later version.                                   *
#  *                                                                         *
#  ***************************************************************************
#
##########################################################################################
#
# Purpose of this program is to test konsolekalendar in future this will be more smarter
#
# testkalendar.sh 							0.1
#
##########################################################################################

#!/bin/sh

function do_test(){

DATE=10
MONTH=10
YEAR=2003

MINUTE=1
HOUR=20

while [  $DATE -lt 29 ];  do


COMMAND="$KONSOLEKALENDAR $1 --time $HOUR:$MINUTE --description $3 --summary $3 --date $YEAR-$MONTH-$DATE --create --file=$2"
echo using command $COMMAND
$COMMAND

echo "################################ TEXT ##################################"
COMMAND="$KONSOLEKALENDAR --view --time $HOUR:$MINUTE --date $YEAR-$MONTH-$DATE --export-type Text --file=$2"
$COMMAND

echo "################################ HTML ##################################"
COMMAND="$KONSOLEKALENDAR --view --time $HOUR:$MINUTE --date $YEAR-$MONTH-$DATE --export-type HTML --file=$2"
$COMMAND


echo "################################ CSV ##################################"
COMMAND="$KONSOLEKALENDAR --view --time $HOUR:$MINUTE --date $YEAR-$MONTH-$DATE --export-type CSV --file=$2"
$COMMAND

echo "################################ ORG ##################################"
COMMAND="$KONSOLEKALENDAR --view --time $HOUR:$MINUTE --date $YEAR-$MONTH-$DATE --export-type Text-organizer --file=$2"
$COMMAND

let DATE=$DATE+1
let MINUTE=$MINUTE+1

done
}


KONSOLEKALENDAR=./konsolekalendar
ADDING="--add"
REMOVE="--delete"
CHANGE="--change"
VIEW="--view"

COMMAND="";

FILE="./testcaledar.ics"

do_test $ADDING $FILE "ADD"
do_test $CHANGE $FILE "CHANGE"
do_test $REMOVE $FILE "REMOVE"


{'fraction_non_alphanumeric': 0.36840808279940856, 'fraction_numerical': 0.011828486939379004, 'mean_word_length': 3.359828141783029, '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': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5876740', 'n_tokens_mistral': 1109, 'n_tokens_neox': 1044, 'n_words': 280}