<commit_before>package io.github.ihongs.action;

import io.github.ihongs.Cnst;
import io.github.ihongs.Core;
import io.github.ihongs.HongsException;
import io.github.ihongs.HongsExemption;
import io.github.ihongs.dh.IReflux;

/**
 * 事务提交包装
 *
 * 包裹一段需要事务的子过程
 * 亦可用于 Java 8 的函数式
 *
 * @author Kevin
 */
public final class CommitHolder {

    static public interface Run {
           public void run( ) throws Throwable;
    }

    static public void run( Run run)
    throws HongsException {
        run(run, Core.getInstance());
    }

    static public void run( Run run, Core core)
    throws HongsException {
        // 全局中标识为事务模式<commit_msg>拆分事务包装<commit_after>package io.github.ihongs.action;

import io.github.ihongs.Cnst;
import io.github.ihongs.Core;
import io.github.ihongs.HongsException;
import io.github.ihongs.HongsExemption;
import io.github.ihongs.dh.IReflux;

/**
 * 事务提交包装
 *
 * 包裹一段需要事务的子过程
 * 亦可用于 Java 8 的函数式
 *
 * @author Kevin
 */
public final class CommitHolder {

    static public interface Run {
           public void run( )
           throws Throwable ;
    }

    static public void run( Run run)
    throws HongsException {
        run(run, Core.getInstance());
    }

    static public void run( Run run, Core core)
    throws HongsException {
        // 全局中标识为事务模式
{'fraction_non_alphanumeric': 0.09714726291441789, 'fraction_numerical': 0.0015420200462606013, 'mean_word_length': 2.8978978978978978, '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': '4153991', 'n_tokens_mistral': 488, 'n_tokens_neox': 484, 'n_words': 107}