<commit_before>#include <pebble.h>

#include "pge/pge.h"
#include "pge/modules/pge_ws.h"

// UI
static Window *s_game_window;
static TextLayer *s_output_layer;

/******************************** WS Callbacks ********************************/

static void ws_connection_handler(bool successful) {
  APP_LOG(APP_LOG_LEVEL_INFO, "ws_connection_handler");
}

static void ws_received_handler() {
  int player_count = pge_ws_get_value(PGE_WS_KEY_0);
  if(player_count != PGE_WS_NOT_FOUND) {
    static char s_buff[64];
    snprintf(s_buff, sizeof(s_buff), "ID: %d\nPlayers: %d\n\nPress Select to buzz other players!", 
      pge_ws_get_client_id(), player_count
    );
    text_layer_set_text(s_output_layer, s_buff);
  }

  int will_buzz = pge_ws_get_value(PGE_WS_KEY_1);
  if(will_buzz != PGE_WS_NOT_FOUND) {
    vibes_short_pulse();
  }
}

/******************************** Engine callbacks ****************************/

static void logic() {

}

static void draw(GContext *ctx) {

}

static void click(int button_id, bool long_click) {
  APP_LOG(APP_LOG_LEVEL_INFO, "CLICK");
  switch(button_id) {
    case BUTTON_ID_SELECT:
      if(pge_ws_is_connected()) {
        // Send buzz
        if(pge_ws_packet_begin()) {
          pge_ws_add_int(PGE_WS_KEY_1, 1);
          pge_ws_packet_send();
        }
      }
      break;
  }
}
<commit_msg>Remove a line of logging<commit_after>#include <pebble.h>

#include "pge/pge.h"
#include "pge/modules/pge_ws.h"

// UI
static Window *s_game_window;
static TextLayer *s_output_layer;

/******************************** WS Callbacks ********************************/

static void ws_connection_handler(bool successful) {
  APP_LOG(APP_LOG_LEVEL_INFO, "ws_connection_handler");
}

static void ws_received_handler() {
  int player_count = pge_ws_get_value(PGE_WS_KEY_0);
  if(player_count != PGE_WS_NOT_FOUND) {
    static char s_buff[64];
    snprintf(s_buff, sizeof(s_buff), "ID: %d\nPlayers: %d\n\nPress Select to buzz other players!", 
      pge_ws_get_client_id(), player_count
    );
    text_layer_set_text(s_output_layer, s_buff);
  }

  int will_buzz = pge_ws_get_value(PGE_WS_KEY_1);
  if(will_buzz != PGE_WS_NOT_FOUND) {
    vibes_short_pulse();
  }
}

/******************************** Engine callbacks ****************************/

static void logic() {

}

static void draw(GContext *ctx) {

}

static void click(int button_id, bool long_click) {
  switch(button_id) {
    case BUTTON_ID_SELECT:
      if(pge_ws_is_connected()) {
        // Send buzz
        if(pge_ws_packet_begin()) {
          pge_ws_add_int(PGE_WS_KEY_1, 1);
          pge_ws_packet_send();
        }
      }
      break;
  }
}

{'fraction_non_alphanumeric': 0.1970554926387316, 'fraction_numerical': 0.004530011325028313, 'mean_word_length': 4.226824457593688, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '442068', 'n_tokens_mistral': 1008, 'n_tokens_neox': 974, 'n_words': 162}