<commit_before><?php
// [$QueryPHP] A PHP Framework Since 2010.10.03. <Query Yet Simple>
// ©2010-2017 http://queryphp.com All rights reserved.
<<<queryphp
##########################################################
#   ____                          ______  _   _ ______   #
#  /     \       ___  _ __  _   _ | ___ \| | | || ___ \  #
# |   (  ||(_)| / _ \| '__|| | | || |_/ /| |_| || |_/ /  #
#  \____/ |___||  __/| |   | |_| ||  __/ |  _  ||  __/   #
#       \__   | \___ |_|    \__  || |    | | | || |      #
#     Query Yet Simple      __/  |\_|    |_| |_|\_|      #
#                          |___ /  Since 2010.10.03      #
##########################################################
queryphp;

/**
 * cookie.register 服务提供者
 *
 * @author <NAME><<EMAIL>>
 * @package $$
 * @since 2017.05.12
 * @version 1.0
 */
return [ 
        'singleton@cookie' => [ 
                'queryyetsimple\cookie\cookie',
                function ($oProject) {
                    $arrOption = [ ];
                    foreach ( [ 
                            'prefix',
                            'expire',
                            'domain',
                            'path',
                            'httponly' 
                    ] as $strOption ) {
                        $arrOption [$strOption] = $oProject ['option']->get ( 'cookie\\' . $strOption );
                    }
                    
                    return new queryyetsimple\cookie\cookie ( $arrOption );
                } 
        ] 
];<commit_msg>cookie 服务提供者优化<commit_after><?php
// [$QueryPHP] A PHP Framework Since 2010.10.03. <Query Yet Simple>
// ©2010-2017 http://queryphp.com All rights reserved.
<<<queryphp
##########################################################
#   ____                          ______  _   _ ______   #
#  /     \       ___  _ __  _   _ | ___ \| | | || ___ \  #
# |   (  ||(_)| / _ \| '__|| | | || |_/ /| |_| || |_/ /  #
#  \____/ |___||  __/| |   | |_| ||  __/ |  _  ||  __/   #
#       \__   | \___ |_|    \__  || |    | | | || |      #
#     Query Yet Simple      __/  |\_|    |_| |_|\_|      #
#                          |___ /  Since 2010.10.03      #
##########################################################
queryphp;

/**
 * cookie.register 服务提供者
 *
 * @author <NAME><<EMAIL>>
 * @package $$
 * @since 2017.05.12
 * @version 1.0
 */
return [ 
        'singleton@cookie' => [ 
                'queryyetsimple\cookie\cookie',
                function ($oProject) {
                    return new queryyetsimple\cookie\cookie ( $oProject ['option']->get ( 'cookie\\' ) );
                } 
        ] 
];
{'fraction_non_alphanumeric': 0.24980813507290867, 'fraction_numerical': 0.026093630084420567, 'mean_word_length': 1.294894366197183, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 15, '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': '3863204', 'n_tokens_mistral': 893, 'n_tokens_neox': 802, 'n_words': 98}