<commit_before>%% 
%% %CopyrightBegin%
%% 
%% Copyright Ericsson AB 1996-2020. All Rights Reserved.
%% 
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%%     http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%% 
%% %CopyrightEnd%
%% 
-module(snmp).


%%----------------------------------------------------------------------
%% This module contains the user interface to the snmp toolkit.
%%----------------------------------------------------------------------

%% Application exports
-export([start/0, start/1, stop/0, 
	 start_agent/0,   start_agent/1, 
	 start_manager/0, start_manager/1, 
	 config/0,
	 
         versions1/0,      versions2/0,
	 print_versions/1, print_versions/2, 
	 print_version_info/0, print_version_info/1, 
 
	 date_and_time/0, 
	 universal_time_to_date_and_time/1,
	 local_time_to_date_and_time_dst/1, 
	 date_and_time_to_universal_time_dst/1,
	 validate_date_and_time/1, validate_date_and_time/2, 
	 date_and_time_to_string/1, date_and_time_to_string/2, 
	 date_and_time_to_string2/1, 

	 str_apply/1,

	 sys_up_time/1, system_start_time/1,

         passwd2localized_key/3, localize_key/3,

	 read_mib/1, 
 
	 log_to_txt/5, log_to_txt/6, log_to_txt/7, log_to_txt/8, 
	 log_to_io/4,  log_to_io/5,  log_to_io/6,  log_to_io/7, 
	 change_log_size/2,

	 octet_string_to_bits/1, bits_to_octet_string/1, 

	 enable_trace/0, disable_trace/0, 
	 set_trace/1, reset_trace/1, 
	 set_trace/2, set_trace/3]).

%% Compiler exports
-export([c/1, c/2, is_consistent/1, mib_to_hrl/1, 
	 compile/3]).

%% Agent exports (Dont use these, they will be removed in OTP 24)
-export([current_request_id/0, current_community/0, current_address/0,
	 current_context/0, current_net_if_data/0, 

	 get_symbolic_store_db/0,
	 name_to_oid/1, name_to_oid/2, 
	 oid_to_name/1, oid_to_name/2,
	 int_to_enum/2, int_to_enum/3, 
	 enum_to_int/2, enum_to_int/3,

	 get/2,
	 info/1, 
	 load_mibs/2, unload_mibs/2, dump_mibs/0, dump_mibs/1,

	 register_subagent/3, unregister_subagent/2, 

	 send_notification/3, send_notification/4, send_notification/5,
	 send_notification/6,
	 send_trap/3, send_trap/4,

	 add_agent_caps/2, del_agent_caps/1, get_agent_caps/0,

	 log_to_txt/2, log_to_txt/3, log_to_txt/4, 
	 change_log_size/1

	]).

-export_type([
	      dir/0, 
	      snmp_timer/0, 

              atl_type/0,
              verbosity/0,

	      engine_id/0, 
	      tdomain/0, 
	      community/0, 
	      mms/0, 
	      version/0, 
	      sec_model/0, 
	      sec_name/0, 
	      sec_level/0, 

	      oid/0,
	      varbind/0, 
	      ivarbind/0, 
	      asn1_type/0, 
	      table_info/0, 
	      variable_info/0, 
	      me/0, 
	      trap/0, 
	      notification/0, 
	      pdu/0, 
	      trappdu/0, 
	      mib/0, 
	      mib_name/0,

              error_status/0,
              error_index/0,
 
	      void/0
	     ]).


%% This is for XREF
-deprecated(
   [
    {c,                     1, "use snmpa:c/1 instead."},
    {c,                     2, "use snmpa:c/2 instead."},
    {compile,               3, "use snmpa:compile/3 instead."},
    {is_consistent,         1, "use snmpa:is_consistent/1 instead."},
    {mib_to_hrl,            1, "use snmpa:mib_to_hrl/1 instead."},

    {change_log_size,       1, "use snmpa:change_log_size/1 instead."},
    {log_to_txt,            2, "use snmpa:log_to_txt/2 instead."},
    {log_to_txt,            3, "use snmpa:log_to_txt/3 instead."},
    {log_to_txt,            4, "use snmpa:log_to_txt/4 instead."},

    {current_request_id,    0, "use snmpa:current_request_id/0 instead."},
    {current_community,     0, "use snmpa:current_community/0 instead."},
    {current_address,       0, "use snmpa:current_address/0 instead."},
    {current_context,       0, "use snmpa:current_context/0 instead."},
    {current_net_if_data,   0, "use snmpa:current_net_if_data/0 instead."},

    {get_symbolic_store_db, 0, "use snmpa:get_symbolic_store_db/0 instead."},
    {name_to_oid,           1, "use snmpa:name_to_oid/1 instead."},
    {name_to_oid,           2, "use snmpa:name_to_oid/2 instead."},
    {oid_to_name,           1, "use snmpa:oid_to_name/1 instead."},
    {oid_to_name,           2, "use snmpa:oid_to_name/2 instead."},
    {int_to_enum,           2, "use snmpa:int_to_enum/2 instead."},
    {int_to_enum,           3, "use snmpa:int_to_enum/3 instead."},
    {enum_to_int,           2, "use snmpa:enum_to_int/2 instead."},
    {enum_to_int,           3, "use snmpa:enum_to_int/3 instead."},

    {get,                   2, "use snmpa:get/2 instead."},
    {info,                  1, "use snmpa:info/1 instead."},
    {load_mibs,             2, "use snmpa:load_mibs/2 instead."},<commit_msg>[snmp] Corrected deprecation info strings<commit_after>%% 
%% %CopyrightBegin%
%% 
%% Copyright Ericsson AB 1996-2020. All Rights Reserved.
%% 
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%%     http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%% 
%% %CopyrightEnd%
%% 
-module(snmp).


%%----------------------------------------------------------------------
%% This module contains the user interface to the snmp toolkit.
%%----------------------------------------------------------------------

%% Application exports
-export([start/0, start/1, stop/0, 
	 start_agent/0,   start_agent/1, 
	 start_manager/0, start_manager/1, 
	 config/0,
	 
         versions1/0,      versions2/0,
	 print_versions/1, print_versions/2, 
	 print_version_info/0, print_version_info/1, 
 
	 date_and_time/0, 
	 universal_time_to_date_and_time/1,
	 local_time_to_date_and_time_dst/1, 
	 date_and_time_to_universal_time_dst/1,
	 validate_date_and_time/1, validate_date_and_time/2, 
	 date_and_time_to_string/1, date_and_time_to_string/2, 
	 date_and_time_to_string2/1, 

	 str_apply/1,

	 sys_up_time/1, system_start_time/1,

         passwd2localized_key/3, localize_key/3,

	 read_mib/1, 
 
	 log_to_txt/5, log_to_txt/6, log_to_txt/7, log_to_txt/8, 
	 log_to_io/4,  log_to_io/5,  log_to_io/6,  log_to_io/7, 
	 change_log_size/2,

	 octet_string_to_bits/1, bits_to_octet_string/1, 

	 enable_trace/0, disable_trace/0, 
	 set_trace/1, reset_trace/1, 
	 set_trace/2, set_trace/3]).

%% Compiler exports
-export([c/1, c/2, is_consistent/1, mib_to_hrl/1, 
	 compile/3]).

%% Agent exports (Dont use these, they will be removed in OTP 24)
-export([current_request_id/0, current_community/0, current_address/0,
	 current_context/0, current_net_if_data/0, 

	 get_symbolic_store_db/0,
	 name_to_oid/1, name_to_oid/2, 
	 oid_to_name/1, oid_to_name/2,
	 int_to_enum/2, int_to_enum/3, 
	 enum_to_int/2, enum_to_int/3,

	 get/2,
	 info/1, 
	 load_mibs/2, unload_mibs/2, dump_mibs/0, dump_mibs/1,

	 register_subagent/3, unregister_subagent/2, 

	 send_notification/3, send_notification/4, send_notification/5,
	 send_notification/6,
	 send_trap/3, send_trap/4,

	 add_agent_caps/2, del_agent_caps/1, get_agent_caps/0,

	 log_to_txt/2, log_to_txt/3, log_to_txt/4, 
	 change_log_size/1

	]).

-export_type([
	      dir/0, 
	      snmp_timer/0, 

              atl_type/0,
              verbosity/0,

	      engine_id/0, 
	      tdomain/0, 
	      community/0, 
	      mms/0, 
	      version/0, 
	      sec_model/0, 
	      sec_name/0, 
	      sec_level/0, 

	      oid/0,
	      varbind/0, 
	      ivarbind/0, 
	      asn1_type/0, 
	      table_info/0, 
	      variable_info/0, 
	      me/0, 
	      trap/0, 
	      notification/0, 
	      pdu/0, 
	      trappdu/0, 
	      mib/0, 
	      mib_name/0,

              error_status/0,
              error_index/0,
 
	      void/0
	     ]).


%% This is for XREF
-deprecated(
   [
    {c,                     1, "use snmpc:compile/1 instead."},
    {c,                     2, "use snmpc:compile/2 instead."},
    {compile,               3, "use snmpc:compile/3 instead."},
    {is_consistent,         1, "use snmpc:is_consistent/1 instead."},
    {mib_to_hrl,            1, "use snmpc:mib_to_hrl/1 instead."},

    {change_log_size,       1, "use snmpa:change_log_size/1 instead."},
    {log_to_txt,            2, "use snmpa:log_to_txt/2 instead."},
    {log_to_txt,            3, "use snmpa:log_to_txt/3 instead."},
    {log_to_txt,            4, "use snmpa:log_to_txt/4 instead."},

    {current_request_id,    0, "use snmpa:current_request_id/0 instead."},
    {current_community,     0, "use snmpa:current_community/0 instead."},
    {current_address,       0, "use snmpa:current_address/0 instead."},
    {current_context,       0, "use snmpa:current_context/0 instead."},
    {current_net_if_data,   0, "use snmpa:current_net_if_data/0 instead."},

    {get_symbolic_store_db, 0, "use snmpa:get_symbolic_store_db/0 instead."},
    {name_to_oid,           1, "use snmpa:name_to_oid/1 instead."},
    {name_to_oid,           2, "use snmpa:name_to_oid/2 instead."},
    {oid_to_name,           1, "use snmpa:oid_to_name/1 instead."},
    {oid_to_name,           2, "use snmpa:oid_to_name/2 instead."},
    {int_to_enum,           2, "use snmpa:int_to_enum/2 instead."},
    {int_to_enum,           3, "use snmpa:int_to_enum/3 instead."},
    {enum_to_int,           2, "use snmpa:enum_to_int/2 instead."},
    {enum_to_int,           3, "use snmpa:enum_to_int/3 instead."},

    {get,                   2, "use snmpa:get/2 instead."},
    {info,                  1, "use snmpa:info/1 instead."},
    {load_mibs,             2, "use snmpa:load_mibs/2 instead."},
{'fraction_non_alphanumeric': 0.14587407117716072, 'fraction_numerical': 0.03617520531873289, 'mean_word_length': 2.35927750410509, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '484266', 'n_tokens_mistral': 4084, 'n_tokens_neox': 3778, 'n_words': 733}