<commit_before>/*
 *
 *  Copyright (C) 2015, <NAME>
 *  All rights reserved.  See COPYRIGHT file for details.
 *
 *  This software and supporting documentation were developed by
 *
 *
 *
 *  Module:  fmjpeg2k
 *
 *  Author:  <NAME>
 *
 *  Purpose: enumerations, error constants and helper functions for dcmjpls
 *
 */

#ifndef FMJPEG2K_DJLSUTILS_H
#define FMJPEG2K_DJLSUTILS_H

#include "dcmtk/config/osconfig.h"
#include "dcmtk/ofstd/ofcond.h"   /* for class OFCondition */
#include "dcmtk/oflog/oflog.h"
#include "dldefine.h"


#define FMJPEG2K_JPEG_VERSION_STRING "OpenJPEG (unmodified)"


// global definitions for logging mechanism provided by the oflog module

extern FMJPEG2K_EXPORT OFLogger DCM_fmjp2kLogger;

#define FMJPEG2K_TRACE(msg) OFLOG_TRACE(DCM_fmjp2kLogger, msg)
#define FMJPEG2K_DEBUG(msg) OFLOG_DEBUG(DCM_fmjp2kLogger, msg)
#define FMJPEG2K_INFO(msg)  OFLOG_INFO(DCM_fmjp2kLogger, msg)
#define FMJPEG2K_WARN(msg)  OFLOG_WARN(DCM_fmjp2kLogger, msg)
#define FMJPEG2K_ERROR(msg) OFLOG_ERROR(DCM_fmjp2kLogger, msg)
#define FMJPEG2K_FATAL(msg) OFLOG_FATAL(DCM_fmjp2kLogger, msg)


// include this file in doxygen documentation

/** @file djlsutil.h
 *  @brief enumerations, error constants and helper functions for the dcmjpls module
 */


/** describes the condition under which a compressed or decompressed image
 *  receives a new SOP instance UID.
 */
enum J2K_UIDCreation
{
  /** Upon compression, assign new SOP instance UID if compression is lossy.<commit_msg>updated version<commit_after>/*
 *
 *  Copyright (C) 2015, <NAME>
 *  All rights reserved.  See COPYRIGHT file for details.
 *
 *  This software and supporting documentation were developed by
 *
 *
 *
 *  Module:  fmjpeg2k
 *
 *  Author:  <NAME>
 *
 *  Purpose: enumerations, error constants and helper functions for dcmjpls
 *
 */

#ifndef FMJPEG2K_DJLSUTILS_H
#define FMJPEG2K_DJLSUTILS_H

#include "dcmtk/config/osconfig.h"
#include "dcmtk/ofstd/ofcond.h"   /* for class OFCondition */
#include "dcmtk/oflog/oflog.h"
#include "dldefine.h"


#define FMJPEG2K_JPEG_VERSION_STRING "fmjpeg2koj - OpenJPEG (unmodified)"


// global definitions for logging mechanism provided by the oflog module

extern FMJPEG2K_EXPORT OFLogger DCM_fmjp2kLogger;

#define FMJPEG2K_TRACE(msg) OFLOG_TRACE(DCM_fmjp2kLogger, msg)
#define FMJPEG2K_DEBUG(msg) OFLOG_DEBUG(DCM_fmjp2kLogger, msg)
#define FMJPEG2K_INFO(msg)  OFLOG_INFO(DCM_fmjp2kLogger, msg)
#define FMJPEG2K_WARN(msg)  OFLOG_WARN(DCM_fmjp2kLogger, msg)
#define FMJPEG2K_ERROR(msg) OFLOG_ERROR(DCM_fmjp2kLogger, msg)
#define FMJPEG2K_FATAL(msg) OFLOG_FATAL(DCM_fmjp2kLogger, msg)


// include this file in doxygen documentation

/** @file djlsutil.h
 *  @brief enumerations, error constants and helper functions for the dcmjpls module
 */


/** describes the condition under which a compressed or decompressed image
 *  receives a new SOP instance UID.
 */
enum J2K_UIDCreation
{
  /** Upon compression, assign new SOP instance UID if compression is lossy.
{'fraction_non_alphanumeric': 0.08828465928163813, 'fraction_numerical': 0.0157771064115475, 'mean_word_length': 5.0940695296523515, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4766457', 'n_tokens_mistral': 1138, 'n_tokens_neox': 1100, 'n_words': 279}