<commit_before>package com.opera.core.systems.scope.handlers;

import com.opera.core.systems.scope.stp.StpConnection;

public interface IConnectionHandler {
    
        /**
         * @param connection The connection that has just been connected or accepted.
         * @return false if the connection should be closed immediately, or true to continue.
         */
        boolean onConnected(StpConnection connection);<commit_msg>Added onHandshake event handler, so that we can use that to enable Stp1.<commit_after>package com.opera.core.systems.scope.handlers;

import com.opera.core.systems.scope.stp.StpConnection;

public interface IConnectionHandler {
    
        /**
         * @param connection The connection that has just been connected or accepted.
         * @return false if the connection should be closed immediately, or true to continue.
         */
        boolean onConnected(StpConnection connection);

        /**
         * This event is triggered when a handshake has been received successfully.
         */
        void onHandshake();
{'fraction_non_alphanumeric': 0.07169811320754717, 'fraction_numerical': 0.0009433962264150943, 'mean_word_length': 2.872262773722628, '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': '2014804', 'n_tokens_mistral': 266, 'n_tokens_neox': 260, 'n_words': 92}