<commit_before><?php 
//the chat is written as data container. But not the firewall
class FireWall{
   private static $ip = [];//contains all ip there is temporary banned.

   public static function init(){
     self::garbage();
     self::load();
   }

   public static function isBan(){
      if(self::garbage() != 0){
         self::load();
      }

      return in_array(ip(), self::$ip);
   }

   public static function getBlacklist(){
      if(file_exists("include/firewall/blacklist.txt")){
         return explode("\r\n", file_get_contents("include/firewall/blacklist.txt"));
      }<commit_msg>Update firewall.php<commit_after><?php 
//the chat is written as data container. But not the firewall
class FireWall{
   private static $ip = [];//contains all ip there is temporary banned.

   public static function init(){
     self::garbage();
     self::load();
   }

   public static function getBans(){
      if(self::garbage() != 0){
        self::load();
      }

      return self::$ip;
   }

   public static function isBan(){
      if(self::garbage() != 0){
         self::load();
      }

      return in_array(ip(), self::$ip);
   }

   public static function getBlacklist(){
      if(file_exists("include/firewall/blacklist.txt")){
         return explode("\r\n", file_get_contents("include/firewall/blacklist.txt"));
      }
{'fraction_non_alphanumeric': 0.14903129657228018, 'fraction_numerical': 0.0022354694485842027, 'mean_word_length': 2.8927536231884057, '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': '6095942', 'n_tokens_mistral': 402, 'n_tokens_neox': 387, 'n_words': 106}