<commit_before><?php


class DeprecationComponent extends Component
{
    public $redis = false;

    /*
     *  Deprecated endpoints
     *  - simple controller->action structure
     *  - each endpoint can be set to to a deprecation warning message or false
     */
    public $deprecatedEndpoints = false;

    public function initialize(Controller $controller) {
        $this->deprecatedEndpoints = array(
            'attributes' => array(
                'bro' => __('Use /attributes/restSearch to export in zeek format.'),
                'rpz' => __('Use /attributes/restSearch to export RPZ rules.'),
                'text' => __('Use /attributes/restSearch to export flat indicator lists.')
            ),
            'events' => array(
                'addIOC' => __('Use MISP modules to import in OpenIOC format.'),
                'csv' => __('Use /events/restSearch to export in CSV format.'),
                'export' => __('Use the REST client to refine your search conditions and export in any of the given formats with much more control.'),
                'hids' => __('Use /events/restSearch to export hashes.'),
                'nids' => __('Use /events/restSearch to export in the various NIDS formats.'),
                'stix' => __('Use /events/restSearch to export in STIX format.'),
                'stix2' => __('Use /events/restSearch to export in STIX2 format.'),
                'xml' => __('Use /events/restSearch to export in XML format. It is highly recommended to use JSON whenever possible.')
            ),
            'posts' => array(<commit_msg>fix: [API] bro deprecation message was premature<commit_after><?php


class DeprecationComponent extends Component
{
    public $redis = false;

    /*
     *  Deprecated endpoints
     *  - simple controller->action structure
     *  - each endpoint can be set to to a deprecation warning message or false
     */
    public $deprecatedEndpoints = false;

    public function initialize(Controller $controller) {
        $this->deprecatedEndpoints = array(
            'attributes' => array(
                'rpz' => __('Use /attributes/restSearch to export RPZ rules.'),
                'text' => __('Use /attributes/restSearch to export flat indicator lists.')
            ),
            'events' => array(
                'addIOC' => __('Use MISP modules to import in OpenIOC format.'),
                'csv' => __('Use /events/restSearch to export in CSV format.'),
                'export' => __('Use the REST client to refine your search conditions and export in any of the given formats with much more control.'),
                'hids' => __('Use /events/restSearch to export hashes.'),
                'nids' => __('Use /events/restSearch to export in the various NIDS formats.'),
                'stix' => __('Use /events/restSearch to export in STIX format.'),
                'stix2' => __('Use /events/restSearch to export in STIX2 format.'),
                'xml' => __('Use /events/restSearch to export in XML format. It is highly recommended to use JSON whenever possible.')
            ),
            'posts' => array(
{'fraction_non_alphanumeric': 0.11114670083279948, 'fraction_numerical': 0.0012812299807815502, 'mean_word_length': 2.177009155645982, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 34, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '819186', 'n_tokens_mistral': 832, 'n_tokens_neox': 787, 'n_words': 301}