<commit_before>/**
 * Definition for a binary tree node.
 * struct TreeNode {
 *     int val;
 *     TreeNode *left;
 *     TreeNode *right;
 *     TreeNode(int x) : val(x), left(NULL), right(NULL) {}
 * };
 */
class Solution {
public:
    bool isValidBSTInternal(TreeNode* root, int minVal, int maxVal)
    {
        if (root == NULL) {
            return true;
        }

	return (root->val > minVal &&
		root->val < maxVal &&
		isValidBSTInternal(root->left, minVal, root->val) &&
		isValidBSTInternal(root->right, root->val, maxVal));
    }

    bool isValidBST(TreeNode* root) {
        int minVal, maxVal;
        return isValidBSTInternal(root, LONG_MIN, LONG_MAX);
    }
};<commit_msg>Clean up of the code.<commit_after>#include <cstddef>
#include <climits>
/**
 * Definition for a binary tree node.
 */
struct TreeNode {
    int val;
    TreeNode *left;
    TreeNode *right;
    TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};

class Solution {
public:
    bool isValidBSTInternal(TreeNode* root, int minVal, int maxVal)
    {
        if (root == NULL) {
            return true;
        }

	return (root->val > minVal &&
		root->val < maxVal &&
		isValidBSTInternal(root->left, minVal, root->val) &&
		isValidBSTInternal(root->right, root->val, maxVal));
    }

    bool isValidBST(TreeNode* root) {
        
        return isValidBSTInternal(root, INT_MIN, INT_MAX);
    }
};
{'fraction_non_alphanumeric': 0.1398852223816356, 'fraction_numerical': 0.0, 'mean_word_length': 2.7601078167115904, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 19, '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': '1150322', 'n_tokens_mistral': 481, 'n_tokens_neox': 471, 'n_words': 116}