<commit_before>#include <stdio.h>
#include "wiringPi.h"
#include "wiringPiSPI.h"

#define CMDSETPAGEADR 0xB0

#define DISPLAYFILE "display.log"
#define COMMANDFILE "command.log"

unsigned char display[128][64];
int modus = 0;
int page = 0;

int di = 0;
int led = 1;
int reset = 2;
FILE *displayfd;
FILE *commandfd;

FILE *checkAndOpenFile(FILE *fd, char* file)
{<commit_msg>fix writing the display.log file.<commit_after>#include <stdio.h>
#include "wiringPi.h"
#include "wiringPiSPI.h"

#define CMDSETPAGEADR 0xB0

#define DISPLAYFILE "display.log"
#define COMMANDFILE "command.log"

unsigned char display[128][64];
int modus = 0;
int page = 0;

int di = 6;
int led = 1;
int reset = 2;
FILE *displayfd;
FILE *commandfd;

FILE *checkAndOpenFile(FILE *fd, char* file)
{
{'fraction_non_alphanumeric': 0.1328125, 'fraction_numerical': 0.03125, 'mean_word_length': 5.355371900826446, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3054487', 'n_tokens_mistral': 319, 'n_tokens_neox': 294, 'n_words': 88}