<commit_before>
#include "chip.h"

const uint32_t OscRateIn = 12000000;

#define LED0 2, 5
#define LED1 0, 6
#define LED2 0, 7
#define LED3 2, 9

volatile uint32_t msTicks;

void SysTick_Handler(void) {
	msTicks++;
}

static void Delay(uint32_t dlyTicks) {
	uint32_t curTicks = msTicks;
	while ((msTicks - curTicks) < dlyTicks);
}

static void GPIO_Config(void) {
	Chip_GPIO_Init(LPC_GPIO);

}

static void LED_Init(uint8_t port, uint8_t pin) {
	Chip_GPIO_WriteDirBit(LPC_GPIO, port, pin, true);
	Chip_GPIO_SetPinState(LPC_GPIO, port, pin, false);

}

static void LED_Write(uint8_t port, uint8_t pin, uint8_t val) {
	Chip_GPIO_SetPinState(LPC_GPIO, port, pin, val);
}

int main (void) {

	SystemCoreClockUpdate();


	if (SysTick_Config (SystemCoreClock / 1000)) {
		//Error
		while(1);
	}

	

	LED_Init(LED0);
	LED_Init(LED1);
	LED_Init(LED2);
	LED_Init(LED3);

	GPIO_Config();

	while(1) {
		LED_Write(LED3, false);
		LED_Write(LED0, true);
		Delay(1000);
		LED_Write(LED0, false);
		LED_Write(LED1, true);
		Delay(1000);
		LED_Write(LED1, false);
		LED_Write(LED2, true);
		Delay(1000);
		LED_Write(LED2, false);
		LED_Write(LED3, true);
		Delay(1000);
	}
}<commit_msg>Increased complexity of blink<commit_after>
#include "chip.h"

const uint32_t OscRateIn = 12000000;

#define LED0 2, 5
#define LED1 0, 6
#define LED2 0, 7
#define LED3 2, 9

volatile uint32_t msTicks;

void SysTick_Handler(void) {
	msTicks++;
}

static void Delay(uint32_t dlyTicks) {
	uint32_t curTicks = msTicks;
	while ((msTicks - curTicks) < dlyTicks);
}

static void GPIO_Config(void) {
	Chip_GPIO_Init(LPC_GPIO);

}

static void LED_Init(uint8_t port, uint8_t pin) {
	Chip_GPIO_WriteDirBit(LPC_GPIO, port, pin, true);
	Chip_GPIO_SetPinState(LPC_GPIO, port, pin, false);

}

static void LED_Write(uint8_t port, uint8_t pin, uint8_t val) {
	Chip_GPIO_SetPinState(LPC_GPIO, port, pin, val);
}

int main (void) {

	SystemCoreClockUpdate();


	if (SysTick_Config (SystemCoreClock / 1000)) {
		//Error
		while(1);
	}

	

	LED_Init(LED0);
	LED_Init(LED1);
	LED_Init(LED2);
	LED_Init(LED3);

	GPIO_Config();

	uint8_t i = 1;
	uint16_t delay = 500;

	while(1) {
		i = 1 - i;
		delay = (i) ? 500 : 250;

		LED_Write(LED3, false);
		LED_Write(LED0, true);
		Delay(delay);
		LED_Write(LED0, false);
		LED_Write(LED1, true);
		Delay(delay);
		LED_Write(LED1, false);
		LED_Write(LED2, true);
		Delay(delay);
		LED_Write(LED2, false);
		LED_Write(LED3, true);
		Delay(delay);
	}
}
{'fraction_non_alphanumeric': 0.13303315595579207, 'fraction_numerical': 0.05403192795742939, 'mean_word_length': 4.750588235294118, 'pattern_counts': {'":': 0, '<': 5, '<?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': '486399', 'n_tokens_mistral': 1174, 'n_tokens_neox': 1041, 'n_words': 228}