<commit_before>package linj;

import java.math.BigDecimal;

public class Util extends Object {

    // methods

    public static String stringCapitalize(String string, int start, int end) {
        StringBuffer newstring = new StringBuffer(string);
        int index = start;
        for (boolean newword = true; index != end; ++index) {
            char _char = string.charAt(index);
            if (! Character.isLetterOrDigit(_char)) {
                newword = true;
            } else if (newword) {
                _char = Character.toUpperCase(_char);<commit_msg>Patch from <NAME> to make the tutorial example work without any errors.<commit_after>package linj;

import java.math.BigDecimal;
import static java.lang.Math.PI;

public class Util extends Object {

    // methods

    public static String stringCapitalize(String string, int start, int end) {
        StringBuffer newstring = new StringBuffer(string);
        int index = start;
        for (boolean newword = true; index != end; ++index) {
            char _char = string.charAt(index);
            if (! Character.isLetterOrDigit(_char)) {
                newword = true;
            } else if (newword) {
                _char = Character.toUpperCase(_char);
{'fraction_non_alphanumeric': 0.09326845093268452, 'fraction_numerical': 0.0, 'mean_word_length': 2.437325905292479, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '3460727', 'n_tokens_mistral': 335, 'n_tokens_neox': 328, 'n_words': 103}