<commit_before>/*
 *	TwoLAME: an optimized MPEG Audio Layer Two encoder
 *
 *	Copyright (C) 2001-2004 <NAME>
 *	Copyright (C) 2004-2006 The TwoLAME Project
 *
 *	This library is free software; you can redistribute it and/or
 *	modify it under the terms of the GNU Lesser General Public
 *	License as published by the Free Software Foundation; either
 *	version 2.1 of the License, or (at your option) any later version.
 *
 *	This library is distributed in the hope that it will be useful,
 *	but WITHOUT ANY WARRANTY; without even the implied warranty of
 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *	Lesser General Public License for more details.
 *
 *	You should have received a copy of the GNU Lesser General Public
 *	License along with this library; if not, write to the Free Software
 *	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 *  $Id$
 *
 */

#ifndef TWOLAME_H
#define TWOLAME_H

#ifdef __cplusplus
extern "C" {
#endif

/** \file twolame.h */

/*
 * ATTENTION WIN32 USERS!
 *
 * By default, when you use this header file, it is configured to use
 * symbols from the "twolame.dll" file. If you use the static version of
 * the library, define LIBTWOLAME_STATIC prior to including this header.
 */

#ifdef _WIN32
#ifdef LIBTWOLAME_STATIC
#define DLL_EXPORT
#else
#ifdef LIBTWOLAME_DLL_EXPORTS
#define DLL_EXPORT __declspec(dllexport)
#else
#define DLL_EXPORT __declspec(dllimport)
#endif
#endif
#else
#define DLL_EXPORT
#endif


#ifndef TRUE
#define TRUE	(1)
#endif

#ifndef FALSE
#define FALSE	(0)
#endif


/** MPEG modes */
    typedef enum {
        TWOLAME_AUTO_MODE = -1,
                            /**< Choose Mode Automatically */
        TWOLAME_STEREO = 0, /**< Stereo */
        TWOLAME_JOINT_STEREO,
                            /**< Joint Stereo */
        TWOLAME_DUAL_CHANNEL,
                            /**< Dual Channel */
        TWOLAME_MONO,       /**< Mono */
        TWOLAME_NOT_SET
    } TWOLAME_MPEG_mode;


/** MPEG Version.
 *
 *	MPEG2 is for Lower Sampling Frequencies - LSF < 32000.
 */
    typedef enum {
        TWOLAME_MPEG2 = 0,
                        /**< MPEG-2	 - for sample rates less than 32k */
        TWOLAME_MPEG1   /**< MPEG-1 */
    } TWOLAME_MPEG_version;


/** Padding types. */
    typedef enum {
        TWOLAME_PAD_NO = 0, /**< No Padding */
        TWOLAME_PAD_ALL     /**< Pad all frames */
//  TWOLAME_PAD_ADJUST      // unsupported by twolame
    } TWOLAME_Padding;

/** Emphasis types. */
    typedef enum {
        TWOLAME_EMPHASIS_N = 0,
                            /**< No Emphasis */
        TWOLAME_EMPHASIS_5 = 1,
                            /**< 50/15 ms */
        // reserved
        TWOLAME_EMPHASIS_C = 3
                            /**< CCIT J.17 */
    } TWOLAME_Emphasis;


/** Number of samples per frame of Layer 2 MPEG Audio */
#define TWOLAME_SAMPLES_PER_FRAME		(1152)
<commit_msg>Fix for glopts->version being negative when not set<commit_after>/*
 *	TwoLAME: an optimized MPEG Audio Layer Two encoder
 *
 *	Copyright (C) 2001-2004 <NAME>
 *	Copyright (C) 2004-2006 The TwoLAME Project
 *
 *	This library is free software; you can redistribute it and/or
 *	modify it under the terms of the GNU Lesser General Public
 *	License as published by the Free Software Foundation; either
 *	version 2.1 of the License, or (at your option) any later version.
 *
 *	This library is distributed in the hope that it will be useful,
 *	but WITHOUT ANY WARRANTY; without even the implied warranty of
 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *	Lesser General Public License for more details.
 *
 *	You should have received a copy of the GNU Lesser General Public
 *	License along with this library; if not, write to the Free Software
 *	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 *  $Id$
 *
 */

#ifndef TWOLAME_H
#define TWOLAME_H

#ifdef __cplusplus
extern "C" {
#endif

/** \file twolame.h */

/*
 * ATTENTION WIN32 USERS!
 *
 * By default, when you use this header file, it is configured to use
 * symbols from the "twolame.dll" file. If you use the static version of
 * the library, define LIBTWOLAME_STATIC prior to including this header.
 */

#ifdef _WIN32
#ifdef LIBTWOLAME_STATIC
#define DLL_EXPORT
#else
#ifdef LIBTWOLAME_DLL_EXPORTS
#define DLL_EXPORT __declspec(dllexport)
#else
#define DLL_EXPORT __declspec(dllimport)
#endif
#endif
#else
#define DLL_EXPORT
#endif


#ifndef TRUE
#define TRUE	(1)
#endif

#ifndef FALSE
#define FALSE	(0)
#endif


/** MPEG modes */
    typedef enum {
        TWOLAME_AUTO_MODE = -1,
                            /**< Choose Mode Automatically */
        TWOLAME_STEREO = 0, /**< Stereo */
        TWOLAME_JOINT_STEREO,
                            /**< Joint Stereo */
        TWOLAME_DUAL_CHANNEL,
                            /**< Dual Channel */
        TWOLAME_MONO,       /**< Mono */
        TWOLAME_NOT_SET
    } TWOLAME_MPEG_mode;


/** MPEG Version.
 *
 *	MPEG2 is for Lower Sampling Frequencies - LSF < 32000.
 */
    typedef enum {
        TWOLAME_MPEG_UNKNOWN = -1,
        TWOLAME_MPEG2 = 0, /**< MPEG-2 - for sample rates less than 32k */
        TWOLAME_MPEG1 = 1  /**< MPEG-1 */
    } TWOLAME_MPEG_version;


/** Padding types. */
    typedef enum {
        TWOLAME_PAD_NO = 0, /**< No Padding */
        TWOLAME_PAD_ALL     /**< Pad all frames */
//  TWOLAME_PAD_ADJUST      // unsupported by twolame
    } TWOLAME_Padding;

/** Emphasis types. */
    typedef enum {
        TWOLAME_EMPHASIS_N = 0,
                            /**< No Emphasis */
        TWOLAME_EMPHASIS_5 = 1,
                            /**< 50/15 ms */
        // reserved
        TWOLAME_EMPHASIS_C = 3
                            /**< CCIT J.17 */
    } TWOLAME_Emphasis;


/** Number of samples per frame of Layer 2 MPEG Audio */
#define TWOLAME_SAMPLES_PER_FRAME		(1152)

{'fraction_non_alphanumeric': 0.09157198575546888, 'fraction_numerical': 0.023740885195862302, 'mean_word_length': 2.35685828116107, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 6, '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': '2444583', 'n_tokens_mistral': 2079, 'n_tokens_neox': 1865, 'n_words': 634}