<commit_before>/***********************************************************************
 * This Source Code Form is subject to the terms of the Mozilla Public *
 * License, v. 2.0. If a copy of the MPL was not distributed with this *
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.            *
 ***********************************************************************/

#ifndef DUCK_HPP_INCLUDED
#define DUCK_HPP_INCLUDED

/**
 * @file Duck.hpp
 * @author <NAME>
 * @version 0.0
 * @license Mozilla Public License, v. .2.0
 * @brief Defines the Duck Class
 */

#include <Ducky>

#define DUCKIES_INITIAL_NUMBER 2
#define MOVES_INVULNERABLE 3

/**
 * @class Duck Duck.hpp
 * @brief Defines the Duck Class
 */
class Duck : public Ducky{

	public:

		/**
		 * @brief Duck constructor with path to sprites and starting_coordinates
		 * @param game_window          Window of the game
		 * @param duck_textures        Textures of the duck. Order : Up, Down, Left, Right
		 * @param duckies_textures     Textures of the duckies. Order : Up, Down, Left, Right
		 * @param starting_coordinates Coordinates of the ducky spawn
		 */
		Duck(sf::Window& game_window, sf::Texture duck_textures[4], sf::Texture duckies_textures[4], Coord starting_coordinates);

		/**
		 * @brief Default constructor
		 */
		Duck();

		/**
		 * @brief Default destructor
		 */
		~Duck();

		/**
		 * @brief Apply damages to the duck and respawn it
		 */
		void damaged();

		/**
		 * @brief Add a ducky to the duck familly
		 * @return [description]
		 */
		bool power_up();

		/**
		 * @brief Moves the duck and the duckies
		 * @param new_dir New direction
		 */
		void move();

		/**
		 * @brief Return the number of duckies
		 * @return The number of duckies
		 */
		unsigned char size();

	private:

		std::vector<Ducky> Duckies;
		char invulnerability;
};

#endif /*DUCK_HPP_INCLUDED*/<commit_msg>Correction<commit_after>/***********************************************************************
 * This Source Code Form is subject to the terms of the Mozilla Public *
 * License, v. 2.0. If a copy of the MPL was not distributed with this *
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.            *
 ***********************************************************************/

#ifndef DUCK_HPP_INCLUDED
#define DUCK_HPP_INCLUDED

/**
 * @file Duck.hpp
 * @author <NAME>
 * @version 0.0
 * @license Mozilla Public License, v. .2.0
 * @brief Defines the Duck Class
 */

#include <Ducky>

#define DUCKIES_INITIAL_NUMBER 2
#define MOVES_INVULNERABLE 3

/**
 * @class Duck Duck.hpp
 * @brief Defines the Duck Class
 */
class Duck : public Ducky{

	public:

		/**
		 * @brief Duck constructor with path to sprites and starting_coordinates
		 * @param game_window          Window of the game
		 * @param duck_textures        Textures of the duck. Order : Up, Down, Left, Right
		 * @param duckies_textures     Textures of the duckies. Order : Up, Down, Left, Right
		 * @param starting_coordinates Coordinates of the ducky spawn
		 */
		Duck(sf::Window& game_window, sf::Texture duck_textures[4], sf::Texture duckies_textures[4], Coord starting_coordinates);

		/**
		 * @brief Default constructor
		 */
		Duck();

		/**
		 * @brief Default destructor
		 */
		~Duck();

		/**
		 * @brief Apply damages to the duck and respawn it
		 */
		void damaged();

		/**
		 * @brief Add a ducky to the duck family
		 * @return [description]
		 */
		bool power_up();

		/**
		 * @brief Moves the duck and the duckies
		 * @param new_dir New direction
		 */
		void move();

		/**
		 * @brief Return the number of duckies
		 * @return The number of duckies
		 */
		unsigned char size();

	private:

		std::vector<Ducky> Duckies;
		char invulnerability;
};

#endif /*DUCK_HPP_INCLUDED*/
{'fraction_non_alphanumeric': 0.17819148936170212, 'fraction_numerical': 0.006382978723404255, 'mean_word_length': 3.2593431483578708, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2591514', 'n_tokens_mistral': 1287, 'n_tokens_neox': 1092, 'n_words': 387}