<commit_before>/*
 *******************************************************************************
 * Copyright (c) 2013 Whizzo Software, LLC.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *******************************************************************************
*/
package com.whizzosoftware.wzwave.channel;

import com.whizzosoftware.wzwave.channel.event.TransactionTimeoutEvent;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Handles the situation where a data frame transaction times out. It will alert its handler so follow-on
 * action can be taken.
 *
 * @author <NAME>
 */
class TransactionTimeoutHandler implements Runnable {
    private static final Logger logger = LoggerFactory.getLogger(TransactionTimeoutHandler.class);

    private String id;
    private ChannelHandlerContext context;
    private ChannelInboundHandler handler;

    TransactionTimeoutHandler(String id, ChannelHandlerContext context, ChannelInboundHandler handler) {
        this.id = id;
        this.context = context;
        this.handler = handler;
    }

    public String getId() {
        return id;
    }<commit_msg>Re-added public class and constructor.<commit_after>/*
 *******************************************************************************
 * Copyright (c) 2013 Whizzo Software, LLC.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *******************************************************************************
*/
package com.whizzosoftware.wzwave.channel;

import com.whizzosoftware.wzwave.channel.event.TransactionTimeoutEvent;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Handles the situation where a data frame transaction times out. It will alert its handler so follow-on
 * action can be taken.
 *
 * @author <NAME>
 */
public class TransactionTimeoutHandler implements Runnable {
    private static final Logger logger = LoggerFactory.getLogger(TransactionTimeoutHandler.class);

    private String id;
    private ChannelHandlerContext context;
    private ChannelInboundHandler handler;

    public TransactionTimeoutHandler(String id, ChannelHandlerContext context, ChannelInboundHandler handler) {
        this.id = id;
        this.context = context;
        this.handler = handler;
    }

    public String getId() {
        return id;
    }
{'fraction_non_alphanumeric': 0.17710134901418195, 'fraction_numerical': 0.0069180214458664825, 'mean_word_length': 4.637426900584796, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '682319', 'n_tokens_mistral': 729, 'n_tokens_neox': 685, 'n_words': 222}