<commit_before># Spring Framework Utilities

This projects intends to collect frequently requested utilities for and extensions to the Spring Framework.

## Maven

com.trigonic : spring-utils : 0.1

## Usage

    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:util="http://www.springframework.org/schema/util"
        xmlns:xutils="http://trigonic.com/schema/spring/xutils"
        xsi:schemaLocation="
            http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd        
            http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd
            http://trigonic.com/schema/spring/xutils http://trigonic.com/schema/spring/xutils.xsd">

        ...
    
        <!-- importing an optional resource -->
        <xutils:import resource="foo.xml" optional="true" />    
    
        <!-- importing a resource with an alternate if it doesn't exist -->
        <xutils:import resource="foo.xml" alternate="bar.xml" />    
    
        <!-- the same where both are optional -->
        <xutils:import resource="foo.xml" alternate="bar.xml" optional="true" />    

        ...
        
    </beans><commit_msg>update documentatoin to include Gradle build instructions<commit_after># Spring Framework Utilities

This project intends to collect frequently requested utilities for and extensions to the Spring Framework.

## Gradle Usage

    buildscript {
        repositories {
            add(new org.apache.ivy.plugins.resolver.URLResolver()) {
                name = 'GitHub Spring Utils Repo'
                addArtifactPattern 'http://cloud.github.com/downloads/AlanKrueger/spring-utils/[module]-[revision].[ext]'
            }
            mavenCentral()
        }

        dependencies {
            classpath 'com.trigonic:spring-utils:0.1'
        }
    }


## Spring XML Usage

    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:util="http://www.springframework.org/schema/util"
        xmlns:xutils="http://trigonic.com/schema/spring/xutils"
        xsi:schemaLocation="
            http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd        
            http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd
            http://trigonic.com/schema/spring/xutils http://trigonic.com/schema/spring/xutils.xsd">

        ...
    
        <!-- importing an optional resource -->
        <xutils:import resource="foo.xml" optional="true" />    
    
        <!-- importing a resource with an alternate if it doesn't exist -->
        <xutils:import resource="foo.xml" alternate="bar.xml" />    
    
        <!-- the same where both are optional -->
        <xutils:import resource="foo.xml" alternate="bar.xml" optional="true" />    

        ...
        
    </beans>
{'fraction_non_alphanumeric': 0.13963821009203428, 'fraction_numerical': 0.008886067914947636, 'mean_word_length': 2.3711229946524064, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 2, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 14, 'xml': 20}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2664783', 'n_tokens_mistral': 935, 'n_tokens_neox': 871, 'n_words': 160}