<commit_before># Code_for_the_People
code that might be helpful for someone

## Contents
- threading.cpp: threading using c++ <thread> with a safe queue locked with mutex.
  this simple example demonstrates concurent access to a safe queue as seen by the print statements.

- video_pixel_threaded.cpp: openCV videocapture for live video pixelisation using threads.

- disparity.cpp: openCV StereoBM for find the disparity map from two stereo images.

- corner_detect.cpp: FAST (Features from Accelerated Segment Test) implementation from scratch with openCV.

     ![Alt text](https://github.com/OakLake/Code_for_the_People/blob/master/imgs/detected.png "Detected Corners")

- track.cpp: corner detection using goodFeaturesToTrack and tracking with calcOpticalFlowPyrLK in openCV. Tried with KITTI dataset (http://www.cvlibs.net/datasets/kitti/raw_data.php?type=city)

     ![](https://github.com/OakLake/Code_for_the_People/blob/master/imgs/QvO1J4.gif)

- file_IO.cpp: reading and writing to file in c++ using <fstream>

- prime_divisor.cpp: finding the prime divisors or prime factorials of a number (int)

- string_switch.cpp: switches "char"s of a string only once, run it !

- morse.cpp: converting text to morse,using C++ &lt;map&gt;,&lt;ifstream&gt; and &lt;string&gt;.

- genetic.cpp: simple genetic algorithm, crossover and mutation. fitness = number of 1's

<<<<<<< HEAD
- cell.cpp: cellular automata in terminal (animated).

- string_gen.cpp: generate random string of defined length range, save to file, load from file, and sort.
=======
- cell.cpp: animated cellular automata in terminal (squint your eyes for maximum efficiency).
>>>>>>> 2173c5a6b55a3dd4d0c502b3048669b19a344a27<commit_msg>added str_gen_sort<commit_after># Code_for_the_People
code that might be helpful for someone

## Contents
- threading.cpp: threading using c++ <thread> with a safe queue locked with mutex.
  this simple example demonstrates concurent access to a safe queue as seen by the print statements.

- video_pixel_threaded.cpp: openCV videocapture for live video pixelisation using threads.

- disparity.cpp: openCV StereoBM for find the disparity map from two stereo images.

- corner_detect.cpp: FAST (Features from Accelerated Segment Test) implementation from scratch with openCV.

     ![Alt text](https://github.com/OakLake/Code_for_the_People/blob/master/imgs/detected.png "Detected Corners")

- track.cpp: corner detection using goodFeaturesToTrack and tracking with calcOpticalFlowPyrLK in openCV. Tried with KITTI dataset (http://www.cvlibs.net/datasets/kitti/raw_data.php?type=city)

     ![](https://github.com/OakLake/Code_for_the_People/blob/master/imgs/QvO1J4.gif)

- file_IO.cpp: reading and writing to file in c++ using <fstream>

- prime_divisor.cpp: finding the prime divisors or prime factorials of a number (int)

- string_switch.cpp: switches "char"s of a string only once, run it !

- morse.cpp: converting text to morse,using C++ &lt;map&gt;,&lt;ifstream&gt; and &lt;string&gt;.

- genetic.cpp: simple genetic algorithm, crossover and mutation. fitness = number of 1's

- cell.cpp: cellular automata in terminal (animated).

- string_gen.cpp: generate random string of defined length range, save to file, load from file, and sort.
=======
- cell.cpp: animated cellular automata in terminal (squint your eyes for maximum efficiency).

- str_gen_sort.cpp: generate random string of predefined length range, save to file,load and sort.
{'fraction_non_alphanumeric': 0.09388583019414662, 'fraction_numerical': 0.009852216748768473, 'mean_word_length': 4.811447811447811, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '994895', 'n_tokens_mistral': 1114, 'n_tokens_neox': 1047, 'n_words': 371}