<commit_before><!doctype html>

<html>	

	<head>
	
		<title> Week 4 - Technical </title>
		<link href="../stylesheets/font-awesome-4.1.0/css/font-awesome.min.css" rel="stylesheet">
		<link href="../stylesheets/main.css" rel="stylesheet">
	
	</head>
	
	<body>
		
		<div class="wrapper">

			<section id="header">
				
				<h1> <a href="../index.html">Za<span class="light">Ta</span></a> </h1>

				<section class="links"> 
					<ul>
						<li> 
							<a href="https://github.com/taylorzr" target="_blank"><i class="fa fa-git"></i></a>
						</li>
						<li>
							<a href="https://plus.google.com/118446549346334044728" target="_blank"><i class="fa fa-google-plus-square"></i>
						</li>
						<li>
							<a href="mailto:<EMAIL>" target="_blank"><i class="fa fa-envelope"></i></a>
						</li>
					</ul>
				</section>

			</section>
			
			<section id="content">

				<article>

					<header>
						<p><em>Posted by Zach <time pubdate datetime="2014-6-29">June 29th of 2014</time></em></p>
						<h1>Ruby Array#map</h1>
					</header>

					<section>
                        <p>The ruby method <strong>map</strong> is a very useful builtin tool. It's the same as the method <strong>collect</strong>, and can be used interchangeably. Depeding on context, collect can be clearer than map, because the method runs a block of code over an enumerable object and <em>"collects"</em> the results. At first, I thought the method actually <em>"mapped"</em> the blocks result onto the object that called it, but that's not the case.</p>
                        
                        <p>For example, you can call map on a hash, but it won't return a hash! It will return an array. </p>
					</section>

				</article>

			</section>


			<section id="about">
				<h2>Hi I'm Zach!</h2>
				<p><em>A weird kid living in chicago. In addition to coding, I'm also into politics, philosophy, guns, cars, bicycles and strange films. I like feeling awkward, and I'm pretty good at saying the wrong thing so please don't take me too seriously.</em></p>

			</section>


			<div class="push"> </div>

		</div>

	<footer>
		<p>&copy; 2014 <NAME></p>
	</footer>

</body>

</html>
<commit_msg>Completes week 4 technical article<commit_after><!doctype html>

<html>	

	<head>
	
		<title> Week 4 - Technical </title>
		<link href="../stylesheets/font-awesome-4.1.0/css/font-awesome.min.css" rel="stylesheet">
		<link href="../stylesheets/main.css" rel="stylesheet">
	
	</head>
	
	<body>
		
		<div class="wrapper">

			<section id="header">
				
				<h1> <a href="../index.html">Za<span class="light">Ta</span></a> </h1>

				<section class="links"> 
					<ul>
						<li> 
							<a href="https://github.com/taylorzr" target="_blank"><i class="fa fa-git"></i></a>
						</li>
						<li>
							<a href="https://plus.google.com/118446549346334044728" target="_blank"><i class="fa fa-google-plus-square"></i>
						</li>
						<li>
							<a href="mailto:<EMAIL>" target="_blank"><i class="fa fa-envelope"></i></a>
						</li>
					</ul>
				</section>

			</section>
			
			<section id="content">

				<article>

					<header>
						<p><em>Posted by Zach <time pubdate datetime="2014-6-29">June 19th of 2014</time></em></p>
						<h1>Ruby Array#map</h1>
					</header>

					<section>
                        
                        <p>The ruby method <strong>map</strong> is a very useful builtin tool. It's the same as the method <strong>collect</strong>, and can be used interchangeably. Depeding on context, collect can be clearer than map. Each method runs a block of code over an enumerable object and <em>"collects"</em> the results.</p>
                        
                        <p>We had a challenge this week, that required we use the same method to modify items in both an array and a hash. I initially started by using the method map. Map was a great choice for changing elements in an array and returning a new array: <br> <code>array.map{ |element| element += 1 }</code>. This is the same as: <code>new_array = []</code> and then <code>array.each{ |element| new_array.push( element += 1 }.</code></p>
                        
                        <p>At first, I thought the map method actually <em>"mapped"</em> the blocks result onto the object that called it, but that's not the case. For example, you can call map on a hash, but it won't return a hash, it will return an array! You can actually call map on any enumerable object.</p>
                        
					</section>

				</article>

			</section>


			<section id="about">
				<h2>Hi I'm Zach!</h2>
				<p><em>A weird kid living in chicago. In addition to coding, I'm also into politics, philosophy, guns, cars, bicycles and strange films. I like feeling awkward, and I'm pretty good at saying the wrong thing so please don't take me too seriously.</em></p>

			</section>


			<div class="push"> </div>

		</div>

	<footer>
		<p>&copy; 2014 <NAME></p>
	</footer>

</body>

</html>

{'fraction_non_alphanumeric': 0.15582053354890865, 'fraction_numerical': 0.020008084074373485, 'mean_word_length': 2.6150474799123447, 'pattern_counts': {'":': 0, '<': 184, '<?xml version=': 0, '>': 184, 'https://': 4, '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': '2738949', 'n_tokens_mistral': 1960, 'n_tokens_neox': 1542, 'n_words': 522}