<commit_before>#include "SparkTime/SparkTime.h"
#include "SunSet/SunSet.h"

/* I'm in the midwest, so this is what I use for my home */
#define LATITUDE        41.12345
#define LONGITUDE       87.98765
#define CST_OFFSET      -6
#define DST_OFFSET      -5

SunSet sun;
UDP UDPClient;
SparkTime rtc;

void setup()
{
	Serial.begin(9600);
	/* Get our time sync started */
	rtc.begin(&UDPClient, "pool.ntp.org");
	rtc.setTimeZone(CST_OFFSET);
	/* Set our position and a default timezone value */
	sun.setPosition(LATITUDE, LONGITUDE, DST_OFFSET);
}

void loop()
{
	double sunrise;
	double sunset;

	/* Check to see if we have a valid time sync yet, if not, just wait a bit and loop */
	if (!rtc.hasSynced()) {
		Particle.publish("No time sync yet");
		delay(5000);
		return;
	}
	else {
		/* Get the current time, and set the Sunrise code to use the current date */
		currentTime = rtc.now();
		sun.setCurrentDate(rtc.year(currentTime), rtc.month(currentTime), rtc.day(currentTime));
		/* Check to see if we need to update our timezone value */
		if (rtc.isUSDST(currentTime))
			sun.setTZOffset(DST_OFFSET);
		else
			sun.setTZOffset(CST_OFFSET);
	}

	sunrise = sun.calcSunrise();
	sunset = sun.calcSunset();

	Serial.print("Sunrise is ");
	Serial.print(sunrise);
	Serial.println(" minutes past midnight.");
	Serial.print("Sunset is ");
	Serial.print(sunset);
	Serial.print(" minutes past midnight.");
	delay(1000);
}

<commit_msg>Adding new calls to example ino<commit_after>#include "SparkTime/SparkTime.h"
#include "SunSet/SunSet.h"

/* I'm in the midwest, so this is what I use for my home */
#define LATITUDE        41.12345
#define LONGITUDE       87.98765
#define CST_OFFSET      -6
#define DST_OFFSET      -5

SunSet sun;
UDP UDPClient;
SparkTime rtc;

void setup()
{
	Serial.begin(9600);
	/* Get our time sync started */
	rtc.begin(&UDPClient, "pool.ntp.org");
	rtc.setTimeZone(CST_OFFSET);
	/* Set our position and a default timezone value */
	sun.setPosition(LATITUDE, LONGITUDE, DST_OFFSET);
}

void loop()
{
	double sunrise;
	double sunset;
    double civilsunrise;
    double civilsunset;
    double astrosunrise;
    double astrosunset;
    double nauticalsunrise;
    double nauticalsunset;

	/* Check to see if we have a valid time sync yet, if not, just wait a bit and loop */
	if (!rtc.hasSynced()) {
		Particle.publish("No time sync yet");
		delay(5000);
		return;
	}
	else {
		/* Get the current time, and set the Sunrise code to use the current date */
		currentTime = rtc.now();
		sun.setCurrentDate(rtc.year(currentTime), rtc.month(currentTime), rtc.day(currentTime));
		/* Check to see if we need to update our timezone value */
		if (rtc.isUSDST(currentTime))
			sun.setTZOffset(DST_OFFSET);
		else
			sun.setTZOffset(CST_OFFSET);
	}

	sunrise = sun.calcSunriseLocal();
	sunset = sun.calcSunsetLocal();
	civilsunrise = sun.calcCivlSunriseLocal();
	civilsunset = sun.calcCivilSunsetLocal();
	nauticalsunrise = sun.calcNauticalSunriseLocal();
	nauticalsunset = sun.calcNauticalSunsetLocal();
	astrosunrise = sun.calcAstronomicalSunriseLocal();
	astrosunset = sun.calcAstronomicalSunsetLocal();

	Serial.print("Sunrise is ");
	Serial.print(sunrise);
	Serial.println(" minutes past midnight.");
	Serial.print("Sunset is ");
	Serial.print(sunset);
	Serial.print(" minutes past midnight.");
	delay(1000);
}


{'fraction_non_alphanumeric': 0.1233453670276775, 'fraction_numerical': 0.01684717208182912, 'mean_word_length': 4.053191489361702, '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': '311469', 'n_tokens_mistral': 1261, 'n_tokens_neox': 1170, 'n_words': 319}