<commit_before>#pragma once

#include <memory>
#include <mutex>
#include <string>
#include <unordered_map>
#include <vector>

#include <nonstd/optional.hpp>

#include "xchainer/backend.h"
#include "xchainer/device.h"
#include "xchainer/device_id.h"
#include "xchainer/graph.h"

namespace xchainer {
namespace native {

class NativeBackend;

}  // namespace native

class Context {
public:
    Context() = default;
    ~Context();

    Context(const Context&) = delete;
    Context(Context&&) = delete;
    Context& operator=(const Context&) = delete;
    Context& operator=(Context&&) = delete;

    // Gets the backend specified by the name.<commit_msg>Add TODO comments<commit_after>#pragma once

#include <memory>
#include <mutex>
#include <string>
#include <unordered_map>
#include <vector>

#include <nonstd/optional.hpp>

#include "xchainer/backend.h"
#include "xchainer/device.h"
#include "xchainer/device_id.h"
#include "xchainer/graph.h"

namespace xchainer {
namespace native {

class NativeBackend;

}  // namespace native

// TODO(sonots): Hide GraphId-related functions from users.
// TODO(sonots): Move implementations of GraphId-releated functions into another class.
class Context {
public:
    Context() = default;
    ~Context();

    Context(const Context&) = delete;
    Context(Context&&) = delete;
    Context& operator=(const Context&) = delete;
    Context& operator=(Context&&) = delete;

    // Gets the backend specified by the name.
{'fraction_non_alphanumeric': 0.13150684931506848, 'fraction_numerical': 0.0, 'mean_word_length': 4.534090909090909, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '5352182', 'n_tokens_mistral': 463, 'n_tokens_neox': 457, 'n_words': 126}