<commit_before>%% Copyright (c) 2013 <NAME>
%% See MIT-LICENSE for licensing information.

%%% -------------------------------------------------------------------
%%% Author  : <NAME> <EMAIL>
%%% Description :
%%%
%%% Created : 

-module(date).
-compile(export_all).

-define(WOCHENTAG(Int), lists:nth(Int, ["Montag","Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag", "Sonntag"])).

get_date_seconds() ->
    calendar:datetime_to_gregorian_seconds(calendar:local_time()).

get_date_seconds(Date_time) ->
    calendar:datetime_to_gregorian_seconds(Date_time).

get_start_datetime() ->
	get_date_seconds({erlang:date(), {00,00,00}}).

get_end_datetime() ->
	get_date_seconds({erlang:date(), {23,59,59}}).

is_date_in_range(Akt_date, Date) ->	
	calendar:datetime_to_gregorian_seconds(Akt_date) - calendar:datetime_to_gregorian_seconds(Date) < 0.

is_date_in_range(Date) ->
	is_date_in_range(calendar:universal_time(), Date).
		<commit_msg>added string date to seconds<commit_after>%% Copyright (c) 2013 <NAME>
%% See MIT-LICENSE for licensing information.

%%% -------------------------------------------------------------------
%%% Author  : <NAME> <EMAIL>
%%% Description :
%%%
%%% Created : 

-module(date).
-compile(export_all).

-define(WOCHENTAG(Int), lists:nth(Int, ["Montag","Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag", "Sonntag"])).

get_date_seconds() ->
    calendar:datetime_to_gregorian_seconds(calendar:local_time()).

get_date_seconds(Date_time) ->
    calendar:datetime_to_gregorian_seconds(Date_time).

get_start_datetime() ->
	get_formated_date({erlang:date(), {00,00,00}}).

get_end_datetime() ->
	get_formated_date({erlang:date(), {23,59,59}}).

is_date_in_range(Akt_date, Date) ->	
	calendar:datetime_to_gregorian_seconds(Akt_date) - calendar:datetime_to_gregorian_seconds(Date) < 0.

is_date_in_range(Date) ->
	is_date_in_range(calendar:universal_time(), Date).
		
{'fraction_non_alphanumeric': 0.23177766124803356, 'fraction_numerical': 0.01782905086523335, 'mean_word_length': 4.374647887323944, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 21, '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': '2792016', 'n_tokens_mistral': 715, 'n_tokens_neox': 669, 'n_words': 90}