<commit_before>/*************************************************************************

   Program:    torsions
   File:       torsions.c
   
   Version:    V1.2aSTANDALONE
   Date:       13.01.97
   Function:   Generate a complete set of backbone torsion angles for a 
               protein.
   
   Copyright:  (c) <NAME> 1994-7
   Author:     Dr. <NAME>
   Address:    Biomolecular Structure and Modelling Unit,
               Department of Biochemistry and Molecular Biology,
               University College,
               Gower Street,
               London.
               WC1E 6BT.
   Phone:      (Home) +44(0)1372 275775
               (Work) +44(0)171 419 3284
   EMail:      <EMAIL>
               
**************************************************************************

   This code is protected by copyright.

   The routines: main(), ShowTorsions() and Usage() may be freely copied
   and distributed for no charge providing this header is included.  The
   code for these routines may be modified as required, but any
   modifications must be documented so that the person responsible can be
   identified. If someone else breaks this code, I don't want to be blamed
   for code that does not work!

   All other routines come from the library known as Bioplib and may not
   be used outside the context of this program, torsions.c. However, a
   licence for use in other programs may be obtained from the author,
   Dr. <NAME>.  Martin. More details of Bioplib and the licence
   agreement may be obtained from the WWW using the URL
   http://ww.biochem.ucl.ac.uk/~martin and reading the section on
   Libraries. 

**************************************************************************

   Description:
   ============

**************************************************************************

   Usage:
   ======

**************************************************************************

   Notes:
   ======
   
**************************************************************************

   Revision History:
   =================
   V1.0  10.06.94 Original
   V1.1  16.08.94 Added -m option for Martin's output format
   V1.1STANDALONE  02.06.95 Extracted support routines from library
   V1.2STANDALONE  12.06.95 Added -c option for pseudo-CA torsions     
   V1.2aSTANDALONE 13.01.97 New versions of doReadPDB() and fsscanf() 
                            which cope better with blank lines

*************************************************************************/
/* Includes
*/
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include <stdarg.h>

/************************************************************************/
/* Defines
*/
#define NUMAAKNOWN 24

/* From <bioplib/MathType.h>                                            */
typedef double REAL;
#ifndef PI
#define PI (4.0 * atan(1.0))
#endif

/* From <bioplib/SysDefs.h>                                             */
#ifndef SYS_TYPES_H     /* Unix: <sys/types.h>, MS-DOS: <sys\types.h>   */
#ifndef _TYPES_         /* Ditto                                        */
typedef short           BOOL;
#endif
#endif
#ifndef TRUE
#define TRUE 1
#define FALSE 0
#endif

/* From <bioplib/macros.h>                                              */<commit_msg>Add ctypes headers to remove compilation warnings.<commit_after>/*************************************************************************

   Program:    torsions
   File:       torsions.c
   
   Version:    V1.2aSTANDALONE
   Date:       13.01.97
   Function:   Generate a complete set of backbone torsion angles for a 
               protein.
   
   Copyright:  (c) <NAME> 1994-7
   Author:     Dr. <NAME>
   Address:    Biomolecular Structure and Modelling Unit,
               Department of Biochemistry and Molecular Biology,
               University College,
               Gower Street,
               London.
               WC1E 6BT.
   Phone:      (Home) +44(0)1372 275775
               (Work) +44(0)171 419 3284
   EMail:      <EMAIL>
               
**************************************************************************

   This code is protected by copyright.

   The routines: main(), ShowTorsions() and Usage() may be freely copied
   and distributed for no charge providing this header is included.  The
   code for these routines may be modified as required, but any
   modifications must be documented so that the person responsible can be
   identified. If someone else breaks this code, I don't want to be blamed
   for code that does not work!

   All other routines come from the library known as Bioplib and may not
   be used outside the context of this program, torsions.c. However, a
   licence for use in other programs may be obtained from the author,
   Dr. <NAME>.  Martin. More details of Bioplib and the licence
   agreement may be obtained from the WWW using the URL
   http://ww.biochem.ucl.ac.uk/~martin and reading the section on
   Libraries. 

**************************************************************************

   Description:
   ============

**************************************************************************

   Usage:
   ======

**************************************************************************

   Notes:
   ======
   
**************************************************************************

   Revision History:
   =================
   V1.0  10.06.94 Original
   V1.1  16.08.94 Added -m option for Martin's output format
   V1.1STANDALONE  02.06.95 Extracted support routines from library
   V1.2STANDALONE  12.06.95 Added -c option for pseudo-CA torsions     
   V1.2aSTANDALONE 13.01.97 New versions of doReadPDB() and fsscanf() 
                            which cope better with blank lines

*************************************************************************/
/* Includes
*/
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include <stdarg.h>
#include <ctype.h>

/************************************************************************/
/* Defines
*/
#define NUMAAKNOWN 24

/* From <bioplib/MathType.h>                                            */
typedef double REAL;
#ifndef PI
#define PI (4.0 * atan(1.0))
#endif

/* From <bioplib/SysDefs.h>                                             */
#ifndef SYS_TYPES_H     /* Unix: <sys/types.h>, MS-DOS: <sys\types.h>   */
#ifndef _TYPES_         /* Ditto                                        */
typedef short           BOOL;
#endif
#endif
#ifndef TRUE
#define TRUE 1
#define FALSE 0
#endif

/* From <bioplib/macros.h>                                              */
{'fraction_non_alphanumeric': 0.25241984271022383, 'fraction_numerical': 0.02692075015124017, 'mean_word_length': 2.545844504021448, 'pattern_counts': {'":': 0, '<': 32, '<?xml version=': 0, '>': 32, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5726102', 'n_tokens_mistral': 1863, 'n_tokens_neox': 1587, 'n_words': 584}