<commit_before>module logging

  use constants, only: MAX_WORD_LEN, UNIT_LOG
  use global,    only: path_input

  implicit none

contains

!===============================================================================
! CREATE_LOG creates a new log file (or overwrites the existing log)
!===============================================================================

  subroutine create_log()

    character(MAX_WORD_LEN) :: path_log     ! path of log file
    logical                 :: file_exists  ! does log file already exist?
    integer                 :: ioError      ! error status for file access

    ! Create filename for log file
    path_log = trim(path_input) // ".log"

    ! Check if log file already exists
    inquire(FILE=path_log, EXIST=file_exists)
    if (file_exists) then
       ! Possibly copy old log file
    end if

    ! Open log file for writing
    open(FILE=path_log, UNIT=UNIT_LOG, STATUS='replace', &
         & ACTION='write', IOSTAT=ioError)

  end subroutine create_log

!===============================================================================
! LOG_TALLIES
!===============================================================================
<commit_msg>Temporarily disabled creation of log file.<commit_after>module logging

  use constants, only: MAX_WORD_LEN, UNIT_LOG
  use global,    only: path_input

  implicit none

contains

!===============================================================================
! CREATE_LOG creates a new log file (or overwrites the existing log)
!===============================================================================

  subroutine create_log()

    character(MAX_WORD_LEN) :: path_log     ! path of log file
    logical                 :: file_exists  ! does log file already exist?
    ! integer                 :: ioError      ! error status for file access

    ! Create filename for log file
    path_log = trim(path_input) // ".log"

    ! Check if log file already exists
    inquire(FILE=path_log, EXIST=file_exists)
    if (file_exists) then
       ! Possibly copy old log file
    end if

    ! Open log file for writing
    ! open(FILE=path_log, UNIT=UNIT_LOG, STATUS='replace', &
    !      & ACTION='write', IOSTAT=ioError)

  end subroutine create_log

!===============================================================================
! LOG_TALLIES
!===============================================================================

{'fraction_non_alphanumeric': 0.31514156750102584, 'fraction_numerical': 0.0, 'mean_word_length': 4.058091286307054, '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': '2920369', 'n_tokens_mistral': 616, 'n_tokens_neox': 567, 'n_words': 179}