<commit_before>#![feature(phase)]
#![crate_type="staticlib"]
#![no_std]

extern crate core;
extern crate zinc;

#[no_mangle]
#[allow(unused_variables)]
#[allow(dead_code)]
pub unsafe fn main() {
  use zinc::hal::timer::Timer;
  use zinc::hal::stm32f4::{pin, timer};
  zinc::hal::mem_init::init_stack();
  zinc::hal::mem_init::init_data();

  let led1 = pin::PinConf{
    port: pin::PortG,
    pin: 13u8,
    function: pin::GPIOOut
  };
  let led2 = pin::PinConf{
    port: pin::PortG,
    pin: 14u8,
    function: pin::GPIOOut
  };
  led1.setup();
  led2.setup();

  let timer = timer::Timer::new(timer::Timer2, 25u32);

  loop {
    led1.set_high();
    led2.set_low();
    timer.wait_ms(300);
    led1.set_low();
    led2.set_high();
    timer.wait_ms(300);
  }
}<commit_msg>Changed portg to portd to light leds on the stm32f4<commit_after>#![feature(phase)]
#![crate_type="staticlib"]
#![no_std]

extern crate core;
extern crate zinc;

#[no_mangle]
#[allow(unused_variables)]
#[allow(dead_code)]
pub unsafe fn main() {
  use zinc::hal::timer::Timer;
  use zinc::hal::stm32f4::{pin, timer};
  zinc::hal::mem_init::init_stack();
  zinc::hal::mem_init::init_data();

  let led1 = pin::PinConf{
    port: pin::PortD,
    pin: 13u8,
    function: pin::GPIOOut
  };
  let led2 = pin::PinConf{
    port: pin::PortD,
    pin: 14u8,
    function: pin::GPIOOut
  };
  led1.setup();
  led2.setup();

  let timer = timer::Timer::new(timer::Timer2, 25u32);

  loop {
    led1.set_high();
    led2.set_low();
    timer.wait_ms(300);
    led1.set_low();
    led2.set_high();
    timer.wait_ms(300);
  }
}
{'fraction_non_alphanumeric': 0.1871859296482412, 'fraction_numerical': 0.03706030150753769, 'mean_word_length': 4.172077922077922, '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': '3187276', 'n_tokens_mistral': 674, 'n_tokens_neox': 651, 'n_words': 117}