<commit_before>%%%----------------------------------------------------------------------
%%% File    : mod_onlineusers.erl
%%% Author  : <NAME> <<EMAIL>>
%%% Purpose : Display number of online users
%%% Created : 2011-08-16
%%%----------------------------------------------------------------------

-module(mod_onlineusers).
-author('<EMAIL>').
-vsn('').
%%-define(ejabberd_debug, true).

-behaviour(gen_mod).

-export([
    start/2,
    stop/1,
    process/2
    ]).

-include("ejabberd.hrl").
-include("jlib.hrl").
-include("web/ejabberd_http.hrl").

%%%----------------------------------------------------------------------
%%% REQUEST HANDLERS
%%%----------------------------------------------------------------------

process(LocalPath, _Request) ->
    {200, [], integer_to_list(mnesia:table_info(session, size))}.

%%%----------------------------------------------------------------------
%%% BEHAVIOUR CALLBACKS<commit_msg>fix mod_onlineusers compiler warning about unused variable: thanks to my erlang book I know now how to prevent that :)<commit_after>%%%----------------------------------------------------------------------
%%% File    : mod_onlineusers.erl
%%% Author  : <NAME> <<EMAIL>>
%%% Purpose : Display number of online users
%%% Created : 2011-08-16
%%%----------------------------------------------------------------------

-module(mod_onlineusers).
-author('<EMAIL>').
-vsn('').
%%-define(ejabberd_debug, true).

-behaviour(gen_mod).

-export([
    start/2,
    stop/1,
    process/2
    ]).

-include("ejabberd.hrl").
-include("jlib.hrl").
-include("web/ejabberd_http.hrl").

%%%----------------------------------------------------------------------
%%% REQUEST HANDLERS
%%%----------------------------------------------------------------------

process(_LocalPath, _Request) ->
    {200, [], integer_to_list(mnesia:table_info(session, size))}.

%%%----------------------------------------------------------------------
%%% BEHAVIOUR CALLBACKS
{'fraction_non_alphanumeric': 0.4883130081300813, 'fraction_numerical': 0.014227642276422764, 'mean_word_length': 1.0813953488372092, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '3708077', 'n_tokens_mistral': 537, 'n_tokens_neox': 496, 'n_words': 90}