<commit_before>// Copyright (c) 2014 The Sprouts authors. All rights reserved.
// Use of this source file is governed by a MIT license that can be found in the
// LICENSE file.
// Author: <NAME> <<EMAIL>>

#ifndef MATRIX_FIELD_H
#define MATRIX_FIELD_H

#include <QVector>

namespace sprouts {

class MatrixField {
public:
	MatrixField(int width, int height);

	int at(int x, int y);
	void set(int value, int x, int y);

protected:
	bool isCorrectPoint(int x, int y) const;

private:
	int mWidth;
	int mHeight;

	QVector<int> mField;
};
<commit_msg>consts values for point types added<commit_after>// Copyright (c) 2014 The Sprouts authors. All rights reserved.
// Use of this source file is governed by a MIT license that can be found in the
// LICENSE file.
// Author: <NAME> <<EMAIL>>

#ifndef MATRIX_FIELD_H
#define MATRIX_FIELD_H

#include <QVector>

namespace sprouts {

const int vertexPoint = -2;
const int borderPoint = -3;

class MatrixField {
public:
	MatrixField(int width, int height);

	int at(int x, int y);
	void set(int value, int x, int y);

protected:
	bool isCorrectPoint(int x, int y) const;

private:
	int mWidth;
	int mHeight;

	QVector<int> mField;
};

{'fraction_non_alphanumeric': 0.10212765957446808, 'fraction_numerical': 0.00851063829787234, 'mean_word_length': 4.135371179039302, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '575916', 'n_tokens_mistral': 416, 'n_tokens_neox': 397, 'n_words': 159}