<commit_before>package vm

import (
	"fmt"
)

var (
	// UndefinedMethodErrorClass ...
	UndefinedMethodErrorClass *RClass
	// ArgumentErrorClass ...
	ArgumentErrorClass *RClass
	// TypeErrorClass ...
	TypeErrorClass *RClass
	// UnsupportedMethodClass
	UnsupportedMethodClass *RClass
	// NameErrorClass
	NameErrorClass     *RClass
	InternalErrorClass *RClass
)

const (
	// UndefinedMethodError describes the error type in string
	UndefinedMethodError = "UndefinedMethodError"
	// ArgumentError describes the error type in string
	ArgumentError = "ArgumentError"
	// TypeError describes the error type in string
	TypeError = "TypeError"
	// UnsupportedMethodError describes the error type in string
	UnsupportedMethodError = "UnsupportedMethodError"
	// NameError describes constant related errors
	NameError     = "NameError"
	InternalError = "InternalError"
)

func initErrorClasses() {
	bc := createBaseClass(UndefinedMethodError)
	UndefinedMethodErrorClass = &RClass{BaseClass: bc}
	bc = createBaseClass(ArgumentError)
	ArgumentErrorClass = &RClass{BaseClass: bc}
	bc = createBaseClass(TypeError)
	TypeErrorClass = &RClass{BaseClass: bc}
	bc = createBaseClass(UnsupportedMethodError)
	UnsupportedMethodClass = &RClass{BaseClass: bc}
	bc = createBaseClass(NameError)
	NameErrorClass = &RClass{BaseClass: bc}
	bc = createBaseClass(InternalError)
	InternalErrorClass = &RClass{BaseClass: bc}
}

// Error ...
type Error struct {
	Class   *RClass
	Message string
}
<commit_msg>Fix codeclimate's issues.<commit_after>package vm

import (
	"fmt"
)

// Nothing to describe here, just error classes
var (
	// UndefinedMethodErrorClass ...
	UndefinedMethodErrorClass *RClass
	// ArgumentErrorClass ...
	ArgumentErrorClass *RClass
	// TypeErrorClass ...
	TypeErrorClass *RClass
	// UnsupportedMethodClass ...
	UnsupportedMethodClass *RClass
	// NameErrorClass ...
	NameErrorClass *RClass
	// InternalErrorClass ...
	InternalErrorClass *RClass
)

const (
	// UndefinedMethodError describes the error type in string
	UndefinedMethodError = "UndefinedMethodError"
	// ArgumentError describes the error type in string
	ArgumentError = "ArgumentError"
	// TypeError describes the error type in string
	TypeError = "TypeError"
	// UnsupportedMethodError describes the error type in string
	UnsupportedMethodError = "UnsupportedMethodError"
	// NameError describes constant related errors
	NameError = "NameError"
	// InternalError is the default error type
	InternalError = "InternalError"
)

func initErrorClasses() {
	bc := createBaseClass(UndefinedMethodError)
	UndefinedMethodErrorClass = &RClass{BaseClass: bc}
	bc = createBaseClass(ArgumentError)
	ArgumentErrorClass = &RClass{BaseClass: bc}
	bc = createBaseClass(TypeError)
	TypeErrorClass = &RClass{BaseClass: bc}
	bc = createBaseClass(UnsupportedMethodError)
	UnsupportedMethodClass = &RClass{BaseClass: bc}
	bc = createBaseClass(NameError)
	NameErrorClass = &RClass{BaseClass: bc}
	bc = createBaseClass(InternalError)
	InternalErrorClass = &RClass{BaseClass: bc}
}

// Error ...
type Error struct {
	Class   *RClass
	Message string
}

{'fraction_non_alphanumeric': 0.08704124715816823, 'fraction_numerical': 0.0, 'mean_word_length': 5.074950690335306, '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': '1912408', 'n_tokens_mistral': 910, 'n_tokens_neox': 918, 'n_words': 232}