original_string: protected function getArrayType(array $array) {
  		$indices = count(array_filter(array_keys($array), 'is_string'));
  
  		if ($indices == 0) {
  			$type = self::ARRAY_TYPE_LIST;
  		} elseif ($indices == count($array)) {
  			$type = self::ARRAY_TYPE_DICT;
  		} else {
  			$type = self::ARRAY_TYPE_MIXED;
  		}
  
  		return $type;
  	}
code: protected function getArrayType(array $array) {
  		$indices = count(array_filter(array_keys($array), 'is_string'));
  
  		if ($indices == 0) {
  			$type = self::ARRAY_TYPE_LIST;
  		} elseif ($indices == count($array)) {
  			$type = self::ARRAY_TYPE_DICT;
  		} else {
  			$type = self::ARRAY_TYPE_MIXED;
  		}
  
  		return $type;
  	}
code_tokens: protected function getArrayType ( array $ array ) { $ indices = count ( array_filter ( array_keys ( $ array ) , 'is_string' ) ) ; if ( $ indices == 0 ) { $ type = self :: ARRAY_TYPE_LIST ; } elseif ( $ indices == count ( $ array ) ) { $ type = self :: ARRAY_TYPE_DICT ; } else { $ type = self :: ARRAY_TYPE_MIXED ; } return $ type ; }
docstring: Determines wether an array is index or key based
  
  @param array $array
  
  @return int
docstring_tokens: Determines wether an array is index or key based