<commit_before># Color Bars
Color Bars takes the movie posters of [IMDb's top movies](http://www.imdb.com/chart/top) and performs k-means clustering to produce a color quantized version of each poster. Then, these color quantized posters are used to produce a color bar representing the proportion of each color in the poster.

<section>
    <img width="70" src="color_bars_8/4_the_dark_knight_bar.png" alt="The Dark Knight" hspace="20">
    <img width="70" src="color_bars_8/7_pulp_fiction_bar.png" alt="Pulp Fiction" hspace="20">
    <img width="70" src="color_bars_8/48_apocalypse_now_bar.png" alt="Apocalypse Now" hspace="20">
    <img width="70" src="color_bars_8/61_walle_bar.png" alt="Wall·E" hspace="20">
    <img width="70" src="color_bars_8/75_amelie_bar.png" alt="Amélie" hspace="20">
    <img width="70" src="color_bars_8/198_the_wizard_of_oz_bar.png" alt="The Wizard of Oz" hspace="20">
</section>

# Usage:
	$python color_clustering.py --help
	usage: color_clustering.py [-h] -i IMG -k CLUSTERS
	
	optional arguments:
		-h, --help			show this help message and exit
		-i IMG, --img IMG	Image path
		-k CLUSETERS, --clusters CLUSTERS
							Number of clusters<commit_msg>Minor header formatting<commit_after># Color Bars
Color Bars takes the movie posters of [IMDb's top movies](http://www.imdb.com/chart/top) and performs k-means clustering to produce a color quantized version of each poster. Then, these color quantized posters are used to produce a color bar representing the proportion of each color in the poster.

<section>
    <img width="70" src="color_bars_8/4_the_dark_knight_bar.png" alt="The Dark Knight" hspace="20">
    <img width="70" src="color_bars_8/7_pulp_fiction_bar.png" alt="Pulp Fiction" hspace="20">
    <img width="70" src="color_bars_8/48_apocalypse_now_bar.png" alt="Apocalypse Now" hspace="20">
    <img width="70" src="color_bars_8/61_walle_bar.png" alt="Wall·E" hspace="20">
    <img width="70" src="color_bars_8/75_amelie_bar.png" alt="Amélie" hspace="20">
    <img width="70" src="color_bars_8/198_the_wizard_of_oz_bar.png" alt="The Wizard of Oz" hspace="20">
</section>

# Usage
	$python color_clustering.py --help
	usage: color_clustering.py [-h] -i IMG -k CLUSTERS
	
	optional arguments:
		-h, --help			show this help message and exit
		-i IMG, --img IMG	Image path
		-k CLUSETERS, --clusters CLUSTERS
							Number of clusters
{'fraction_non_alphanumeric': 0.12421052631578948, 'fraction_numerical': 0.03452631578947368, 'mean_word_length': 4.781021897810219, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, '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': '1807103', 'n_tokens_mistral': 926, 'n_tokens_neox': 828, 'n_words': 241}