<commit_before># FractalMaker
#### An Java project I created by accident that happens to be really cool, so I'm making it open source.

*** Author:   *** <NAME>  
*** Language: *** Java  

-------------------------------------------------------------------------------------
![Alt text](fractal.png)
##Description
Do cool things with fractals!  Play with pixel data with a single Java source file.  It's really easy: the pixel data is stored as a 1-dimensional integer array.  So, most of the pixel data is edited like this:

    public void drawBlueSquareFractal() {
		for (int x = 0; x < image.getWidth(); x++) {
			for (int y = 0; y < image.getHeight(); y++) {
				pixels[x + y * getWidth()] = (x ^ y) / 2;
			}
		}
	}


***for (int x = 0; x < image.getWidth(); x++) {
	for (int y = 0; y < image.getHeight(); y++) {
		pixels[x + y * getWidth()] = (x ^ y) / 2;
	}
}***

This this double for-loop walks through each pixel, and draws the image above.  I have written a number of methods which make cool images like this, that can be called in the method `render(Graphics2D g)`.  Try commenting different methods out to get fun results! (only the last called method will run):

	public void render(Graphics2D g) {
		// ***********************************
		// First, edit the image's pixel data. (try any methods below)
		// ***********************************
		
		// drawRandomNoise();
		// drawHorizontalNoiseBands();
		// drawStripes();
		// drawSquareFractal(2);
		// drawBitShiftedSquareFractal(722);
		drawBlueSquareFractal();	       // comment this out and try something else!
		// drawGreenSquareFractal();
		// drawRedSquareFractal();
		// drawQuadraticFractal();
		// drawTriangleFractal();
		// drawFadingTriangleFractal();
		
		// ***************************************************
		// Second, draw the edited image on the FractalMaker.
		// ***************************************************
		g.drawImage(image, null, null);
		
		// alternatively, use other methods like this to draw content
		// g.setColor(Color.BLACK);
		// g.fillRect(0, 0, getWidth(), getHeight());
	}

Have fun with my code.  Feel free to share with me what you know, or can do with this.<commit_msg>Modified the README to have a Quick Start section, explaining how to compile and run.<commit_after># FractalMaker
#### An Java project I created by accident that happens to be really cool, so I'm making it open source.

*** Author:   *** <NAME>  
*** Language: *** Java  

## Quick Start  
From the command line, just download the code, compile and run:
	javac FractalMaker.java
	java FractalMaker

to make this:

![Alt text](fractal.png) 

##Description
Do cool things with fractals!  Play with pixel data with a single Java source file.  It's really easy: the pixel data is stored as a 1-dimensional integer array.  So, most of the pixel data is edited like this:

    public void drawBlueSquareFractal() {
		for (int x = 0; x < image.getWidth(); x++) {
			for (int y = 0; y < image.getHeight(); y++) {
				pixels[x + y * getWidth()] = (x ^ y) / 2;
			}
		}
	}


***for (int x = 0; x < image.getWidth(); x++) {
	for (int y = 0; y < image.getHeight(); y++) {
		pixels[x + y * getWidth()] = (x ^ y) / 2;
	}
}***

This this double for-loop walks through each pixel, and draws the image above.  I have written a number of methods which make cool images like this, that can be called in the method `render(Graphics2D g)`.  Try modifying the code by commenting different methods out to get fun results! (only the last called method will run):

	public void render(Graphics2D g) {
		// ***********************************
		// First, edit the image's pixel data. (try any methods below)
		// ***********************************
		
		// drawRandomNoise();
		// drawHorizontalNoiseBands();
		// drawStripes();
		// drawSquareFractal(2);
		// drawBitShiftedSquareFractal(722);
		drawBlueSquareFractal();	       // comment this out and try something else!
		// drawGreenSquareFractal();
		// drawRedSquareFractal();
		// drawQuadraticFractal();
		// drawTriangleFractal();
		// drawFadingTriangleFractal();
		
		// ***************************************************
		// Second, draw the edited image on the FractalMaker.
		// ***************************************************
		g.drawImage(image, null, null);
		
		// alternatively, use other methods like this to draw content
		// g.setColor(Color.BLACK);
		// g.fillRect(0, 0, getWidth(), getHeight());
	}

Have fun with my code.  Feel free to share with me what you know, or can do with this.
{'fraction_non_alphanumeric': 0.20843453300949438, 'fraction_numerical': 0.00662397880326783, 'mean_word_length': 3.2979127134724857, 'pattern_counts': {'":': 0, '<': 13, '<?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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6008305', 'n_tokens_mistral': 1449, 'n_tokens_neox': 1328, 'n_words': 509}