<commit_before><?php
class Session {
    public static function init() {
        try {
          @session_start();
        } catch (Exception $err) {
          // session error handling
        }
    }

    public static function set($key, $value) {
      echo "setting " . $key;
      $_SESSION[$key] = $value;
    }

    public static function get($key) {
      if (isset($_SESSION[$key]))
        return $_SESSION[$key];
    }

    public static function close() {
      session_write_close();
    }

    public static function destroy() {
      echo "destroy";
      session_destroy();
    }
}<commit_msg>error debugging for sessions<commit_after><?php
class Session {
    public static function init() {
        try {
          session_start();
        } catch (Exception $err) {
          print_r($err);
          // session error handling
        }
    }

    public static function set($key, $value) {
      echo "setting " . $key;
      $_SESSION[$key] = $value;
    }

    public static function get($key) {
      if (isset($_SESSION[$key]))
        return $_SESSION[$key];
    }

    public static function close() {
      // session_write_close();
    }

    public static function destroy() {
      echo "destroy";
      session_destroy();
    }
}
{'fraction_non_alphanumeric': 0.12777777777777777, 'fraction_numerical': 0.0, 'mean_word_length': 2.03125, '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': '572323', 'n_tokens_mistral': 353, 'n_tokens_neox': 344, 'n_words': 94}