<commit_before><?php
	class PowerTwist {
		
		private $twist;
		private $twistList;
		
		private function array_random_assoc($arr, $num = 1) {
    		$keys = array_keys($arr);
    		shuffle($keys);
    
    		$r = array();
    		for ($i = 0; $i < $num; $i++) {
        		$r[$i] = $arr[$keys[$i]];
    		}
    		return $r;
		}
		
		public function __construct ($target = ['Poker','RandomValue','RandomSuit']) {
			$myList = new DescriptorList;
			$this->twistList = $myList->Twist;
			
			if ($target[1] === 'RandomValue' && $target[2] === 'RandomSuit') {
				if ($target[0] === 'Poker') {
					$this->twist['Suit'] = $this->array_random_assoc($this->twistList['Suit']);
					$this->twist['Value'] = $this->array_random_assoc($this->twistList['Value']);
					$this->twist['Suit'] = $this->twist['Suit'][0];
					$this->twist['Value'] = $this->twist['Value'][0];
					
					if ($this->twist['Suit']['name'] === 'Spades' || $this->twist['Suit']['name'] === 'Clubs') {
						$this->twist['image'] = 'card/r-' . strtolower($this->twist['Value']['name']) . '.' . strtolower($this->twist['Suit']['name']);
						} else {
							$this->twist['image'] = 'card/b-' . strtolower($this->twist['Value']['name']) . '.' . strtolower($this->twist['Suit']['name']);
						}
				} else {
					$this->twist['Tarot'] = $this->array_random_assoc($this->twistList['Tarot']);
					$this->twist['Tarot'] = $this->twist['Tarot'][0];
				}
			} else {
				if ($target[0] === 'Poker') {
					$this->twist['Value'] = $this->twistList['Value'][$target[1]];
					$this->twist['Suit'] = $this->twistList['Suit'][$target[2]];
					
					
					if ($this->twist['Suit']['name'] === 'Spades' || $this->twist['Suit']['name'] === 'Clubs') {
						$this->twist['image'] = 'card/r-' . strtolower($this->twist['Value']['name']) . '.' . strtolower($this->twist['Suit']['name']);
						} else {
							$this->twist['image'] = 'card/b-' . strtolower($this->twist['Value']['name']) . '.' . strtolower($this->twist['Suit']['name']);
						}
				} else {
					$this->twist['Tarot'] = $this->array_random_assoc($this->twistList['Tarot']);
					$this->twist['Tarot'] = $this->twist['Tarot'][0];
				}
			}
			
		}
		
		public function getBigImageCell() {
			$output = "\t\t" . '<td>' . "\n";
			$output .= "\t\t\t" . '<img src="' . $this->twist['image'] . '"><br />' . "\n";
			$output .= "\t\t\t" . $this->twist['name'] . '<br />' . "\n";
			$output .= "\t\t" .  '</td>' . "\n";
			
			return $output;
		}
		
		public function getSmallImageCell() {
			$output = "\t\t" . '<td>' . "\n";
			$output .= "\t\t\t" . '<img class="smallImage" src="' . $this->twist['image'] . '"><br />' . "\n";<commit_msg>typo in bigImageTable<commit_after><?php
	class PowerTwist {
		
		private $twist;
		private $twistList;
		
		private function array_random_assoc($arr, $num = 1) {
    		$keys = array_keys($arr);
    		shuffle($keys);
    
    		$r = array();
    		for ($i = 0; $i < $num; $i++) {
        		$r[$i] = $arr[$keys[$i]];
    		}
    		return $r;
		}
		
		public function __construct ($target = ['Poker','RandomValue','RandomSuit']) {
			$myList = new DescriptorList;
			$this->twistList = $myList->Twist;
			
			if ($target[1] === 'RandomValue' && $target[2] === 'RandomSuit') {
				if ($target[0] === 'Poker') {
					$this->twist['Suit'] = $this->array_random_assoc($this->twistList['Suit']);
					$this->twist['Value'] = $this->array_random_assoc($this->twistList['Value']);
					$this->twist['Suit'] = $this->twist['Suit'][0];
					$this->twist['Value'] = $this->twist['Value'][0];
					
					if ($this->twist['Suit']['name'] === 'Spades' || $this->twist['Suit']['name'] === 'Clubs') {
						$this->twist['image'] = 'card/r-' . strtolower($this->twist['Value']['name']) . '.' . strtolower($this->twist['Suit']['name']);
						} else {
							$this->twist['image'] = 'card/b-' . strtolower($this->twist['Value']['name']) . '.' . strtolower($this->twist['Suit']['name']);
							
							$this->twist['name'] = $this->twist['Value']['name'] . ' of ' . $this->twist['Suit']['name'];
						}
				} else {
					$this->twist['Tarot'] = $this->array_random_assoc($this->twistList['Tarot']);
					$this->twist['Tarot'] = $this->twist['Tarot'][0];
				}
			} else {
				if ($target[0] === 'Poker') {
					$this->twist['Value'] = $this->twistList['Value'][$target[1]];
					$this->twist['Suit'] = $this->twistList['Suit'][$target[2]];
					
					
					if ($this->twist['Suit']['name'] === 'Spades' || $this->twist['Suit']['name'] === 'Clubs') {
						$this->twist['image'] = 'card/r-' . strtolower($this->twist['Value']['name']) . '.' . strtolower($this->twist['Suit']['name']);
						} else {
							$this->twist['image'] = 'card/b-' . strtolower($this->twist['Value']['name']) . '.' . strtolower($this->twist['Suit']['name']);
							
							$this->twist['name'] = $this->twist['Value']['name'] . ' of ' . $this->twist['Suit']['name'];
						}
				} else {
					$this->twist['Tarot'] = $this->array_random_assoc($this->twistList['Tarot']);
					$this->twist['Tarot'] = $this->twist['Tarot'][0];
				}
			}
			
		}
		
		public function getBigImageCell() {
			$output = "\t\t" . '<td>' . "\n";
			$output .= "\t\t\t" . '<img src="' . $this->twist['image'] . '"><br />' . "\n";
			$output .= "\t\t\t" . $this->twist['name'] . '<br />' . "\n";
			$output .= "\t\t" .  '</td>' . "\n";
			
			return $output;
		}
		
		public function getSmallImageCell() {
			$output = "\t\t" . '<td>' . "\n";
			$output .= "\t\t\t" . '<img class="smallImage" src="' . $this->twist['image'] . '"><br />' . "\n";
{'fraction_non_alphanumeric': 0.2869030390738061, 'fraction_numerical': 0.004341534008683068, 'mean_word_length': 3.0925240562546263, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 115, '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': '3488623', 'n_tokens_mistral': 2526, 'n_tokens_neox': 2125, 'n_words': 287}