<commit_before><commit_msg>Add util status bar layer<commit_after>#pragma once

#include <pebble.h>

#ifndef PBL_PLATFORM_BASALT

typedef struct StatusBarLayer StatusBarLayer;
struct StatusBarLayer;

static inline StatusBarLayer *status_bar_layer_create(void) {
  return NULL;
}

static inline void status_bar_layer_destroy(StatusBarLayer *status_bar_layer) {
}

static inline Layer *status_bar_layer_get_layer(StatusBarLayer *status_bar_layer) {
  return (Layer *)status_bar_layer;
}

static inline void status_bar_layer_add_to_window(Window *window, StatusBarLayer *status_bar_layer) {
  window_set_fullscreen(window, false);
}

static inline void status_bar_layer_remove_from_window(Window *window, StatusBarLayer *status_bar_layer) {
  window_set_fullscreen(window, true);
}

#else

static inline void status_bar_layer_add_to_window(Window *window, StatusBarLayer *status_bar_layer) {
  layer_add_child(window_get_root_layer(window), status_bar_layer_get_layer(status_bar_layer));
}

static inline void status_bar_layer_remove_from_window(Window *window, StatusBarLayer *status_bar_layer) {
  layer_remove_from_parent(status_bar_layer_get_layer(status_bar_layer));
}

#endif
{'fraction_non_alphanumeric': 0.0730050933786078, 'fraction_numerical': 0.0, 'mean_word_length': 9.621621621621621, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '2332745', 'n_tokens_mistral': 392, 'n_tokens_neox': 386, 'n_words': 72}