<commit_before>#[macro_use]
extern crate polydraw;

use std::ptr;

use polydraw::platform::x11::xlib::ffi::XOpenDisplay;

fn main() {
   let display = unsafe { XOpenDisplay(ptr::null()) };

   let screen = DefaultScreen!(display);

   println!("{:?}", screen)
}<commit_msg>Checking for null display in the window example<commit_after>#[macro_use]
extern crate polydraw;

use std::ptr;

use polydraw::platform::x11::xlib::ffi::XOpenDisplay;

fn main() {
   let display = unsafe { XOpenDisplay(ptr::null()) };
   if display.is_null() {
      println!("Can't open display");
      return;
   }

   let default_screen = DefaultScreen!(display);

   println!("{:?}", default_screen)
}
{'fraction_non_alphanumeric': 0.16642120765832105, 'fraction_numerical': 0.005891016200294551, 'mean_word_length': 5.126126126126126, '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': '6494437', 'n_tokens_mistral': 239, 'n_tokens_neox': 224, 'n_words': 51}