<commit_before>#include <simple_ble.h>
#include <stdbool.h>
#include <stdio.h>
#include <tock.h>

// Sizes in bytes
#define DEVICE_NAME_SIZE 6
#define UUIDS_SIZE 4
#define MANUFACTURER_DATA_SIZE 2
#define FAKE_TEMPERATURE_DATA_SIZE 2

/*******************************************************************************
 * MAIN
 ******************************************************************************/

int main(void) {
  int err;
  printf("[Tutorial] BLE Advertising\n");

  // declarations of variables to be used in this BLE example application
  uint16_t advertising_interval_ms = 300;
  uint8_t device_name[]            = "TockOS";
  uint16_t uuids[]                 = {0x1800, 0x1809};
  uint8_t manufacturer_data[]      = {0x13, 0x37};
  uint8_t fake_temperature_data[]  = {0x00, 0x00};

  // configure advertisement interval to 300ms<commit_msg>Implemented Alarm to detect the "current app"<commit_after>#include <simple_ble.h>
#include <stdbool.h>
#include <stdio.h>
#include <tock.h>

// Sizes in bytes
#define DEVICE_NAME_SIZE 6
#define UUIDS_SIZE 4
#define MANUFACTURER_DATA_SIZE 2
#define FAKE_TEMPERATURE_DATA_SIZE 2

/*******************************************************************************
 * MAIN
 ******************************************************************************/

int main(void) {
  int err;
  printf("[Tutorial] BLE Advertising\n");

  // declarations of variables to be used in this BLE example application
  uint16_t advertising_interval_ms = 500;
  uint8_t device_name[]            = "TockOS";
  uint16_t uuids[]                 = {0x1800, 0x1809};
  uint8_t manufacturer_data[]      = {0x13, 0x37};
  uint8_t fake_temperature_data[]  = {0x00, 0x00};

  // configure advertisement interval to 300ms
{'fraction_non_alphanumeric': 0.26490825688073394, 'fraction_numerical': 0.04472477064220184, 'mean_word_length': 4.79734219269103, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '4488850', 'n_tokens_mistral': 611, 'n_tokens_neox': 532, 'n_words': 135}