<commit_before>package com.aot.engine.api;

import com.aot.engine.Match;
import java.io.IOException;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.websocket.Session;

public abstract class WebsocketApi {

    protected static final Map<String, Session> players
            = Collections.synchronizedMap(new HashMap<String, Session>());

    protected Redis redis;
    protected Match match;
    protected String gameId;

    protected void sendResponseToAllPlayers(String response) throws IOException {<commit_msg>fix(WebsocketApi): cannot send null message on websocket.<commit_after>package com.aot.engine.api;

import com.aot.engine.Match;
import java.io.IOException;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.websocket.Session;

public abstract class WebsocketApi {

    protected static final Map<String, Session> players
            = Collections.synchronizedMap(new HashMap<String, Session>());

    protected Redis redis;
    protected Match match;
    protected String gameId;

    protected void sendResponseToAllPlayers(String response) throws IOException {
        if (response == null) {
            return;
        }

{'fraction_non_alphanumeric': 0.08782287822878229, 'fraction_numerical': 0.0, 'mean_word_length': 4.2153846153846155, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6809949', 'n_tokens_mistral': 376, 'n_tokens_neox': 368, 'n_words': 103}