<commit_before>
/*
    ##################################################################
    ##################################################################
    ##                                                              ##
    ##      This is the arduino code of our 2015 school project:    ##
    ##                                                              ##
    ##                (AUTOMATED) HYDROPONIC SYSTEM                 ##
    ##                                                              ##
    ##                                                              ##
    ##      It has been written by:                                 ##
    ##                                  <NAME>,            ##
    ##                                  <NAME>,             ##
    ##                                  <NAME>,              ##
    ##                                  <NAME>,            ##
    ##                          and     <NAME>               ##
    ##                                                              ##
    ##################################################################
    ##################################################################
*/


// Arduino libraries
#include <Ethernet.h>
#include <SD.h>
#include <SPI.h>
#include <LiquidCrystal.h>
#include <DHT.h>
#include <Time.h>

// Our code in other files
#include "webserver.h"
#include "sensors.h"
#include "lcd.h"
#include "buttons.h"
#include "heating.h"
#include "time.h"

// LCD

// http://arduino.cc/en/Tutorial/LiquidCrystal
LiquidCrystal lcd(23, 25, 27, 29, 31, 33); // RS - ENABLE - D4 - D5 - D6 - D7
enum lcd_mode { INFO, MENU };
lcd_mode LCD_MODE = INFO;


// Motors for pH automation
//*/

// Ethernet

Webserver webserver = Webserver();




// Timers
long int sensor_time = 0;
long int lcd_time = 0;
long int heating_time = 0;






/*
    ##
    ##      Setup
    ########################
*/


void setup() {

    Serial.begin(9600);


    // Initialize LCD screen
    lcd.begin(16, 2); // Rows and columns


    // Print on the lcd
    lcd.setCursor(0,0);
    lcd.print("Initializing...");



    init_sensors();
    init_buttons();
    init_heating();


    // Analog pins do not have to be intitialized...

    // Init webserver
    webserver.begin(&lcd);

    if( !init_time() ){ // If time didn't sync from the internet, set it manually

        set_time_manually(&lcd, button_1, button_6, button_3);

    }


}




<commit_msg>Tweaking the info displayed by the lcd<commit_after>
/*
    ##################################################################
    ##################################################################
    ##                                                              ##
    ##      This is the arduino code of our 2015 school project:    ##
    ##                                                              ##
    ##                (AUTOMATED) HYDROPONIC SYSTEM                 ##
    ##                                                              ##
    ##                                                              ##
    ##      It has been written by:                                 ##
    ##                                  <NAME>,            ##
    ##                                  <NAME>,             ##
    ##                                  <NAME>,              ##
    ##                                  <NAME>,            ##
    ##                          and     <NAME>               ##
    ##                                                              ##
    ##################################################################
    ##################################################################
*/


// Arduino libraries
#include <Ethernet.h>
#include <SD.h>
#include <SPI.h>
#include <LiquidCrystal.h>
#include <DHT.h>
#include <Time.h>

// Our code in other files
#include "webserver.h"
#include "sensors.h"
#include "lcd.h"
#include "buttons.h"
#include "heating.h"
#include "time.h"

// LCD

// http://arduino.cc/en/Tutorial/LiquidCrystal
LiquidCrystal lcd(23, 25, 27, 29, 31, 33); // RS - ENABLE - D4 - D5 - D6 - D7
enum lcd_mode { INFO, MENU };
lcd_mode LCD_MODE = INFO;


// Motors for pH automation
//*/

// Ethernet

Webserver webserver = Webserver();




// Timers
long int sensor_time = 0;
long int lcd_time = 0;
long int heating_time = 0;






/*
    ##
    ##      Setup
    ########################
*/


void setup() {

    Serial.begin(9600);


    // Initialize LCD screen
    lcd.begin(16, 2); // Rows and columns


    // Print on the lcd
    lcd.setCursor(0,0);
    lcd.print("Initializing...");



    init_sensors();
    init_buttons();
    init_heating();


    // Analog pins do not have to be intitialized...

    // Init webserver
    webserver.begin(&lcd);

    // Sync time with Internet

    lcd.clear();
    lcd.setCursor(0,0);
    lcd.print("Syncing time...");
    if( !init_time() ){ // If time didn't sync from the internet, set it manually
        lcd.clear();
        lcd.setCursor(0,0);
        lcd.print("Unable to sync");
        delay(500);
        set_time_manually(&lcd, button_1, button_6, button_3);
    }


}





{'fraction_non_alphanumeric': 0.22126996493961823, 'fraction_numerical': 0.014998052201012855, 'mean_word_length': 1.2985675917636526, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 34, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1421134', 'n_tokens_mistral': 1488, 'n_tokens_neox': 1311, 'n_words': 314}