<commit_before>#pragma once

#include <cstdint>
#include <memory>
#include <string>

#include <absl/types/optional.h>

#include "chainerx/axes.h"
#include "chainerx/backend.h"
#include "chainerx/constant.h"
#include "chainerx/dtype.h"
#include "chainerx/error.h"
#include "chainerx/macro.h"
#include "chainerx/scalar.h"
#include "chainerx/shape.h"

namespace chainerx {

class Array;
enum class AveragePoolPadMode;

class MaxPoolForwardBackward {
public:
    MaxPoolForwardBackward() = default;

    virtual ~MaxPoolForwardBackward() = default;

    MaxPoolForwardBackward(const MaxPoolForwardBackward&) = default;
    MaxPoolForwardBackward(MaxPoolForwardBackward&&) = default;
    MaxPoolForwardBackward& operator=(const MaxPoolForwardBackward&) = default;
    MaxPoolForwardBackward& operator=(MaxPoolForwardBackward&&) = default;

    virtual Array Forward(const Array& x) = 0;
    virtual Array Backward(const Array& gout) = 0;
    virtual Array DoubleBackward(const Array& ggx) = 0;
};

class AveragePoolForwardBackward {
public:
    AveragePoolForwardBackward() = default;

    virtual ~AveragePoolForwardBackward() = default;

    AveragePoolForwardBackward(const AveragePoolForwardBackward&) = default;
    AveragePoolForwardBackward(AveragePoolForwardBackward&&) = default;
    AveragePoolForwardBackward& operator=(const AveragePoolForwardBackward&) = default;
    AveragePoolForwardBackward& operator=(AveragePoolForwardBackward&&) = default;

    virtual Array Forward(const Array& x) = 0;
    virtual Array Backward(const Array& gout) = 0;
};

// Device base class.
// Note that these member functions may be called from the framework or user code.
class Device {
public:
    virtual ~Device() = default;
<commit_msg>Remove unused classes MaxPoolForwardBackward and AveragePoolForwardBackward<commit_after>#pragma once

#include <cstdint>
#include <memory>
#include <string>

#include <absl/types/optional.h>

#include "chainerx/axes.h"
#include "chainerx/backend.h"
#include "chainerx/constant.h"
#include "chainerx/dtype.h"
#include "chainerx/error.h"
#include "chainerx/macro.h"
#include "chainerx/scalar.h"
#include "chainerx/shape.h"

namespace chainerx {

class Array;
enum class AveragePoolPadMode;

// Device base class.
// Note that these member functions may be called from the framework or user code.
class Device {
public:
    virtual ~Device() = default;

{'fraction_non_alphanumeric': 0.10621326616288833, 'fraction_numerical': 0.0020990764063811922, 'mean_word_length': 5.528767123287671, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '7222216', 'n_tokens_mistral': 752, 'n_tokens_neox': 733, 'n_words': 187}