<commit_before><?php

use Mimic\Functional as F;

/**
 * Unit Test for sum Mimic library function.
 *
 * @since 0.1.0
 */
class SumFuncTest extends PHPUnit_Framework_TestCase {
	public function testDifferenceIsNegative15() {
		$this->assertEquals(15, F\sum(array(1, 2, 3, 4, 5)));
	}

	public function testDifferenceIs15() {
		$this->assertEquals(-15, F\sum(array(-1, -2, -3, -4, -5)));
	}

	public function testDifferenceWithFloatIsNegativeFloat() {
		$this->assertEquals(17.5, F\sum(array(1.5, 2.5, 3.5, 4.5, 5.5)));
	}

	public function testDifferenceWithFloatIsFloat() {
		$this->assertEquals(-17.5, F\sum(array(-1.5, -2.5, -3.5, -4.5, -5.5)));
	}

	public function testDifferenceWithStringIsZero() {
		$this->assertEquals(0, F\sum(array('', 'something5', 'else', 'what')));
	}

	public function testDifferenceIsNegative15_withInitial() {
		$this->assertEquals(20, F\sum(array(1, 2, 3, 4, 5), 5));
	}

	public function testDifferenceIs15_withInitial() {
		$this->assertEquals(-10, F\sum(array(-1, -2, -3, -4, -5), 5));
	}

	public function testDifferenceWithFloatIsNegativeFloat_withInitial() {
		$this->assertEquals(22.5, F\sum(array(1.5, 2.5, 3.5, 4.5, 5.5), 5));
	}

	public function testDifferenceWithFloatIsFloat_withInitial() {
		$this->assertEquals(-12.5, F\sum(array(-1.5, -2.5, -3.5, -4.5, -5.5), 5));
	}

	public function testDifferenceWithStringIsZero_withInitial() {
		$this->assertEquals(5, F\sum(array('', 'something5', 'else', 'what'), 5));
	}
}<commit_msg>Correct method names by renaming copy and pasted difference.<commit_after><?php

use Mimic\Functional as F;

/**
 * Unit Test for sum Mimic library function.
 *
 * @since 0.1.0
 */
class SumFuncTest extends PHPUnit_Framework_TestCase {
	public function testIs15() {
		$this->assertEquals(15, F\sum(array(1, 2, 3, 4, 5)));
	}

	public function testIsNegative15() {
		$this->assertEquals(-15, F\sum(array(-1, -2, -3, -4, -5)));
	}

	public function testWithFloatIsNegativeFloat() {
		$this->assertEquals(17.5, F\sum(array(1.5, 2.5, 3.5, 4.5, 5.5)));
	}

	public function testWithFloatIsFloat() {
		$this->assertEquals(-17.5, F\sum(array(-1.5, -2.5, -3.5, -4.5, -5.5)));
	}

	public function testWithStringIsZero() {
		$this->assertEquals(0, F\sum(array('', 'something5', 'else', 'what')));
	}

	public function testIsNegative15_withInitial() {
		$this->assertEquals(20, F\sum(array(1, 2, 3, 4, 5), 5));
	}

	public function testIs15_withInitial() {
		$this->assertEquals(-10, F\sum(array(-1, -2, -3, -4, -5), 5));
	}

	public function testWithFloatIsNegativeFloat_withInitial() {
		$this->assertEquals(22.5, F\sum(array(1.5, 2.5, 3.5, 4.5, 5.5), 5));
	}

	public function testWithFloatIsFloat_withInitial() {
		$this->assertEquals(-12.5, F\sum(array(-1.5, -2.5, -3.5, -4.5, -5.5), 5));
	}

	public function testWithStringIsZero_withInitial() {
		$this->assertEquals(5, F\sum(array('', 'something5', 'else', 'what'), 5));
	}
}
{'fraction_non_alphanumeric': 0.19903414970679545, 'fraction_numerical': 0.0689893066574681, 'mean_word_length': 4.350553505535055, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, 'https://': 0, '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': '77598', 'n_tokens_mistral': 1230, 'n_tokens_neox': 1111, 'n_words': 230}