<commit_before>component {

    this.name = "Collection";
    this.author = "<NAME>";
    this.description = "An array wrapper for functional programming";
    this.version = "1.0.0";
    this.autoMapModels = false;

    function configure() {
        binder.map( "Collection" )
            .to( "#moduleMapping#.models.Collection" );
        binder.map( "Collection@CFCollection" )
            .to( "#moduleMapping#.models.Collection" );

        binder.map( "collect" )
            .toFactoryMethod( "#moduleMapping#.models.Collection", "getCollectFunction" );
        binder.map( "collect@CFCollection" )
            .toFactoryMethod( "#moduleMapping#.models.Collection", "getCollectFunction" );

        if ( structKeyExists( server, "lucee" ) && server.lucee.version >= 5 ) {
            binder.map( "Collection" ).to( "#moduleMapping#.models.MacroableCollection" );
        }
    }

}<commit_msg>Add cfmapping<commit_after>component {

    this.name = "Collection";
    this.author = "<NAME>";
    this.description = "An array wrapper for functional programming";
    this.version = "1.0.0";
    this.autoMapModels = false;
    this.cfmapping = "cfcollection";

    function configure() {
        binder.map( "Collection" )
            .to( "#moduleMapping#.models.Collection" );
        binder.map( "Collection@CFCollection" )
            .to( "#moduleMapping#.models.Collection" );

        binder.map( "collect" )
            .toFactoryMethod( "#moduleMapping#.models.Collection", "getCollectFunction" );
        binder.map( "collect@CFCollection" )
            .toFactoryMethod( "#moduleMapping#.models.Collection", "getCollectFunction" );

        if ( structKeyExists( server, "lucee" ) && server.lucee.version >= 5 ) {
            binder.map( "Collection" ).to( "#moduleMapping#.models.MacroableCollection" );
        }
    }

}
{'fraction_non_alphanumeric': 0.1482889733840304, 'fraction_numerical': 0.0043454644215100485, 'mean_word_length': 2.759183673469388, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '3343401', 'n_tokens_mistral': 540, 'n_tokens_neox': 518, 'n_words': 95}