<commit_before>#calc

  calc is a simple command-line based calculator that supports most of the functions that one can find in a scientific calculator.

##Usage

  Compile with,
  
    gcc -std=c99 -o calc calc.c helpers.c -lm

  Run with,
  
    ./calc [OPTIONS] <EXPRESSION>...

  Obviously, the expressions are expected to be quoted within single quotes to prevent bash/shell from parsing them.

##Options

  The following flags can be used,

  1. -d, consider all angles to be degrees. Results are also in degrees.
  2. -n, print results of each epressions in a new line instead of separating them by ';'.
  3. -h (or) --help, print help and exit.

##Expressions
  calc supports multiple expressions in a single call. For example,
  
    ./calc '3.4' 'atan(1/0) - 3.14159265358979323846 * sqrt 3'
  
  The result of each expression is printed either in the same line separated by space or in separate lines if the -n flag is used.
  
  For example, the output of the above is
  
    3.4;-3.870601766<commit_msg>Fixed error in README.<commit_after>#calc

  calc is a simple command-line based calculator that supports most of the functions that one can find in a scientific calculator.

##Usage

  Compile with,
  
    gcc -std=c99 -o calc calc.c helpers.c -lm

  Run with,
  
    ./calc [OPTIONS] <EXPRESSION>...

  Obviously, the expressions are expected to be quoted within single quotes to prevent bash/shell from parsing them.

##Options

  The following flags can be used,

  1. -d, consider all angles to be degrees. Results are also in degrees.
  2. -n, print results of each epressions in a new line instead of separating them by ';'.
  3. -h (or) --help, print help and exit.

##Expressions
  calc supports multiple expressions in a single call. For example,
  
    ./calc '3.4' 'atan(1/0) - 3.14159265358979323846 * sqrt 3'
  
  The result of each expression is printed either in the same line separated by semi-colons or in separate lines if the -n flag is used.
  
  For example, the output of the above is
  
    3.4;-3.870601766
{'fraction_non_alphanumeric': 0.07425500732779677, 'fraction_numerical': 0.04201270151441133, 'mean_word_length': 2.9844357976653697, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3446507', 'n_tokens_mistral': 672, 'n_tokens_neox': 603, 'n_words': 300}