<commit_before>#pragma once
// exceptions.hpp: exceptions for problems in posit calculations
//
// Copyright (C) 2017 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.

#include <exception>
#include <string>

struct divide_by_zero 
  : std::runtime_error
{
	divide_by_zero(const std::string& error = "Divide by zero.") : std::runtime_error(error) {}
};

struct integer_divide_by_zero 
  : std::runtime_error
{
	integer_divide_by_zero(const std::string& error = "Integer divide by zero.") : std::runtime_error(error) {}
};

struct shift_too_large
  : std::runtime_error
{
    shift_too_large(const std::string& error = "Shift value too large for given bitset.") : std::runtime_error(error) {}
};

struct hpos_too_large<commit_msg>Standard header for exceptions is 'stdexcept' instead of 'exception'<commit_after>#pragma once
// exceptions.hpp: exceptions for problems in posit calculations
//
// Copyright (C) 2017 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.

#include <stdexcept>
#include <string>

struct divide_by_zero 
  : std::runtime_error
{
	divide_by_zero(const std::string& error = "Divide by zero.") : std::runtime_error(error) {}
};

struct integer_divide_by_zero 
  : std::runtime_error
{
	integer_divide_by_zero(const std::string& error = "Integer divide by zero.") : std::runtime_error(error) {}
};

struct shift_too_large
  : std::runtime_error
{
    shift_too_large(const std::string& error = "Shift value too large for given bitset.") : std::runtime_error(error) {}
};

struct hpos_too_large
{'fraction_non_alphanumeric': 0.11314083677077195, 'fraction_numerical': 0.004714201532115498, 'mean_word_length': 5.265682656826568, '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': '1960698', 'n_tokens_mistral': 529, 'n_tokens_neox': 514, 'n_words': 155}