<commit_before>%% ===================================================================
%% @author <NAME>
%% @copyright (C): 2013 ACK CYFRONET AGH
%% This software is released under the MIT license 
%% cited in 'LICENSE.txt'.
%% @end
%% ===================================================================
%% @doc: This module wraps storage helper's methods using NIF driver
%% @end
%% ===================================================================

-module(veilhelpers_nif).

-include("veil_modules/fslogic/fslogic.hrl").

-export([start/1, getattr/5, access/6, mknod/7, unlink/5, rename/6, chmod/6, chown/7, chown_name/7, truncate/6,
         open/6, read/8, write/8, read/7, write/7, statfs/5, release/6, fsync/7, mkdir/6, rmdir/5]).
%% TODO zaimplementować natsępujące funkcje (VFS-305)
-export([is_reg/5, is_dir/5, get_flag/5]).
%% ===================================================================
%% API
%% ===================================================================

%% TODO this 2 functions should be implemented
is_reg(_uname, _gname, _sh_name, _sh_args, _St_mode) ->
  true.

is_dir(_uname, _gname, _sh_name, _sh_args, _St_mode) ->
  true.
<commit_msg>VFS-174, include logging hrl where needed<commit_after>%% ===================================================================
%% @author <NAME>
%% @copyright (C): 2013 ACK CYFRONET AGH
%% This software is released under the MIT license 
%% cited in 'LICENSE.txt'.
%% @end
%% ===================================================================
%% @doc: This module wraps storage helper's methods using NIF driver
%% @end
%% ===================================================================

-module(veilhelpers_nif).

-include("veil_modules/fslogic/fslogic.hrl").
-include("logging.hrl").

-export([start/1, getattr/5, access/6, mknod/7, unlink/5, rename/6, chmod/6, chown/7, chown_name/7, truncate/6,
         open/6, read/8, write/8, read/7, write/7, statfs/5, release/6, fsync/7, mkdir/6, rmdir/5]).
%% TODO zaimplementować natsępujące funkcje (VFS-305)
-export([is_reg/5, is_dir/5, get_flag/5]).
%% ===================================================================
%% API
%% ===================================================================

%% TODO this 2 functions should be implemented
is_reg(_uname, _gname, _sh_name, _sh_args, _St_mode) ->
  true.

is_dir(_uname, _gname, _sh_name, _sh_args, _St_mode) ->
  true.

{'fraction_non_alphanumeric': 0.3985839233652645, 'fraction_numerical': 0.027072053311120368, 'mean_word_length': 6.12759643916914, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '1551827', 'n_tokens_mistral': 790, 'n_tokens_neox': 725, 'n_words': 170}