<commit_before>%%%-------------------------------------------------------------------
%%% This file is part of the CernVM File System.
%%%
%%% @doc cvmfs_be public API
%%%
%%% @end
%%%-------------------------------------------------------------------

-module(cvmfs_be).

-compile([{parse_transform, lager_transform}]).

-behaviour(gen_server).

%% API
-export([start_link/1
        ,new_lease/3, cancel_lease/2, commit_lease/4
        ,submit_payload/2]).

-export([get_repos/1
        ,check_hmac/4
        ,unique_id/0]).

%% gen_server callbacks
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
         terminate/2, code_change/3]).


%%%===================================================================
%%% Type specifications
%%%===================================================================
-type new_lease_result() :: {ok, LeaseToken :: binary()} |
                            {error, invalid_key} |
                            {error, invalid_path} |
                            {path_busy, TimeRemaining :: binary()}.

<commit_msg>Fix incorrect Dialyzer type specification<commit_after>%%%-------------------------------------------------------------------
%%% This file is part of the CernVM File System.
%%%
%%% @doc cvmfs_be public API
%%%
%%% @end
%%%-------------------------------------------------------------------

-module(cvmfs_be).

-compile([{parse_transform, lager_transform}]).

-behaviour(gen_server).

%% API
-export([start_link/1
        ,new_lease/3, cancel_lease/2, commit_lease/4
        ,submit_payload/2]).

-export([get_repos/1
        ,check_hmac/4
        ,unique_id/0]).

%% gen_server callbacks
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
         terminate/2, code_change/3]).


%%%===================================================================
%%% Type specifications
%%%===================================================================
-type new_lease_result() :: {ok, LeaseToken :: binary()} |
                            {error, invalid_key} |
                            {error, invalid_path} |
                            {path_busy, TimeRemaining :: integer()}.


{'fraction_non_alphanumeric': 0.368445475638051, 'fraction_numerical': 0.012993039443155453, 'mean_word_length': 1.941336971350614, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5089849', 'n_tokens_mistral': 595, 'n_tokens_neox': 570, 'n_words': 104}