<commit_before><commit_msg>Skeleton for problem 917<commit_after>package leetcode;

/**
 * https://leetcode.com/problems/reverse-only-letters/
 */
public class Problem917 {
    public String reverseOnlyLetters(String S) {
        // TODO
        return null;
    }

    public static void main(String[] args) {
        Problem917 prob = new Problem917();
        System.out.println(prob.reverseOnlyLetters("ab-cd")); // "dc-ba"
        System.out.println(prob.reverseOnlyLetters("a-bC-dEf-ghIj")); // "j-Ih-gfE-dCba"
        System.out.println(prob.reverseOnlyLetters("Test1ng-Leet=code-Q!")); // "Qedo1ct-eeLg=ntse-T!"
    }
}
{'fraction_non_alphanumeric': 0.15789473684210525, 'fraction_numerical': 0.022328548644338118, 'mean_word_length': 3.1315789473684212, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '1772727', 'n_tokens_mistral': 231, 'n_tokens_neox': 220, 'n_words': 31}