<commit_before><commit_msg>Added readme file<commit_after>------------------------------------
PROGRAM: Range Summation and Prime Searching
Author : <NAME>
ID     : 10652564
Email  : <EMAIL>
-----------------------------------

Description
-----------
This package includes 3 programs which are multithreading exercises:
  - A C program which implements a multithreading mechanism to search the primes;
  - A C program which implements a multithreading mechanism to do range summation.
  - A java program which is the equivalent of the range summation program in C.


Files and Directories
---------------------
hw3
 |- Accumulator.java
 |- primes.c
 |- sum.c
 |- Summation.java
 |- README.txt                                             // This file


To Compile
-----------
1. Unizp the package and save the directories under a certain directory, i.e.: ~\source.
2. Launch a command line environment, change current directory to ~\source.
3. Presume JDK bin directory exists in PATH and JAVA_HOME are correctly set,
   Run the below command:
     javac -cp . *.java

   Note: This program is developed on top of JDK1.7.
         Compilation error would happen if a javac with a lower version is applied.
4. Run the below commands for the C programs:
    $ gcc -Wall -std=c99 -O3 -pthread -o primes primes.c
    $ gcc -Wall -std=c99 -O3 -pthread -o sum sum.c

To Run
------
The command is as below:
  $ java -Xmx512 -cp . Summation <lower_bound> <upper_bound>
  $ ./sum <lower_bound> <upper_bound>
  $ ./primes <N>


[EOF]

{'fraction_non_alphanumeric': 0.1463254593175853, 'fraction_numerical': 0.016404199475065617, 'mean_word_length': 2.131416837782341, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1918370', 'n_tokens_mistral': 460, 'n_tokens_neox': 421, 'n_words': 187}