<commit_before>%%%-------------------------------------------------------------------
%% @copyright <NAME>
%% @author <NAME> <<EMAIL>>
%% @version {@vsn}, {@date} {@time}
%% @doc ENet ICMP codec
%% @end
%%%-------------------------------------------------------------------
-module(enet_icmp).

%% API
-export([decode/2
         ,encode/1
         ,encode/2
         ,expand/1
        ]).

-include("enet_types.hrl").


%%====================================================================
%% API
%%====================================================================
%%--------------------------------------------------------------------
%% @spec () ->
%% @doc 
%% @end 


%% <<8,0,119,214,168,9,0,0,74,236,139,70,0,0,22,234,
%%   8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,
%%   24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,
%%   39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,
%%   54,55>> -- ICMP data.

decode(Pkt = <<Type, Code, Checksum:16/big,
              ID:16/big, Sequence:16/big,
              Data/binary>>, _DecodeOpts) ->
    IcmpType = decode_type({Type, Code}),<commit_msg>Delete bogus comment skeleton.<commit_after>%%%-------------------------------------------------------------------
%% @copyright <NAME>
%% @author <NAME> <<EMAIL>>
%% @version {@vsn}, {@date} {@time}
%% @doc ENet ICMP codec
%% @end
%%%-------------------------------------------------------------------
-module(enet_icmp).

%% API
-export([decode/2
         ,encode/1
         ,encode/2
         ,expand/1
        ]).

-include("enet_types.hrl").


%%====================================================================
%% API
%%====================================================================

%% <<8,0,119,214,168,9,0,0,74,236,139,70,0,0,22,234,
%%   8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,
%%   24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,
%%   39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,
%%   54,55>> -- ICMP data.

decode(Pkt = <<Type, Code, Checksum:16/big,
              ID:16/big, Sequence:16/big,
              Data/binary>>, _DecodeOpts) ->
    IcmpType = decode_type({Type, Code}),
{'fraction_non_alphanumeric': 0.4714285714285714, 'fraction_numerical': 0.12857142857142856, 'mean_word_length': 2.1172106824925816, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 22, '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': '761295', 'n_tokens_mistral': 844, 'n_tokens_neox': 692, 'n_words': 87}