<commit_before>#include <SFML-Book/Helpers.hpp>
#include <SFML-Book/Configuration.hpp>

#include <SFML-Book/Component.hpp>
#include <SFML-Book/Team.hpp>
#include <SFML-Book/random.hpp>
#include <SFML-Book/Level.hpp>

namespace book
{
    
    void makeAsMain(Entity& entity,Team* team,Level& level)
    {
        //add animation
        setAnimation(entity,Configuration::AnimMainStand,CompSkin::Spawn,0.5,0.7,0.25,0.25);
        setAnimation(entity,Configuration::AnimMainStand,CompSkin::Stand,0.5,0.7,0.25,0.25);

        //add team
        setTeam(entity,team);
        team->addQgId(entity.id());

        //add AI
        entity.add<CompAIMain>(100,sf::seconds(10));
        entity.add<CompAISpawner>(makeAsEye,1,sf::seconds(5),
                                  [](Level& lvl,const sf::Vector2i& pos){
                                    makeAsVoltageEffect(lvl.createEntity(pos));
                                    lvl.createSound(Configuration::SoundSpawnEye,pos);
                                  });
        entity.add<CompHp>(5000);
        entity.add<CompBuildArea>(4);

        entity.onHitted = [](Entity& self,const sf::Vector2i& myCoord,Entity& enemi,const sf::Vector2i& enemyCoord,Level& lvl){
            lvl.createSound(Configuration::SoundHittedMain,myCoord);
            makeAsVoltageEffect(lvl.createEntity(myCoord));
        };



        entity.name = "QG";
    }

    void makeAsEye(Entity& entity,Team* team,Level& level)
    {
        //add animation
        setAnimation(entity,Configuration::AnimEyeLeft,CompSkin::MoveLeft,0.5,0.8,0.5,0.5);
        setAnimation(entity,Configuration::AnimEyeRight,CompSkin::MoveRight,0.5,0.8,0.5,0.5);

        //add team
        setTeam(entity,team);

        //add AI
        entity.add<CompAIWarrior>(50,sf::seconds(0.5),1);
        entity.add<CompHp>(500);
        entity.add<CompAIFlyer>(200);

        entity.onHitted = [](Entity& self,const sf::Vector2i& myCoord,Entity& enemi,const sf::Vector2i& enemyCoord,Level& lvl){
            lvl.createSound(Configuration::SoundHittedEye,myCoord);
            makeAsBloodEffect(lvl.createEntity(myCoord));
        };

        entity.name = "<NAME>";
    }

    void makeAsWormEgg(Entity& entity,Team* team,Level& level)
    {
        setAnimation(entity,Configuration::AnimWormEggBirth,CompSkin::Spawn,0.5,0.9,0.3,0.3);
        setAnimation(entity,Configuration::AnimWormEggStand,CompSkin::Stand,0.5,0.9,0.3,0.3);

        setTeam(entity,team);
        entity.add<CompAISpawner>(makeAsWorm,1,sf::seconds(15),
                                  [](Level& lvl,const sf::Vector2i& pos){
                                    makeAsFlashEffect(lvl.createEntity(pos));
                                    lvl.createSound(Configuration::SoundSpawnWormEgg,pos);
                                  });
        entity.add<CompHp>(200);
        entity.add<CompBuildArea>(20);

        entity.name = "<NAME>";
    }

    void makeAsWorm(Entity& entity,Team* team, Level& level)
    {
        setAnimation(entity,Configuration::AnimWormLeft,CompSkin::MoveLeft,0.5,0.8,0.4,0.4);
        setAnimation(entity,Configuration::AnimWormRight,CompSkin::MoveRight,0.5,0.8,0.4,0.4);

        setTeam(entity,team);

        entity.add<CompAIWarrior>(10,sf::seconds(0.2),0);
        entity.add<CompHp>(250);
        entity.add<CompAIWalker>(70);<commit_msg>build only on te map<commit_after>#include <SFML-Book/Helpers.hpp>
#include <SFML-Book/Configuration.hpp>

#include <SFML-Book/Component.hpp>
#include <SFML-Book/Team.hpp>
#include <SFML-Book/random.hpp>
#include <SFML-Book/Level.hpp>

namespace book
{
    
    void makeAsMain(Entity& entity,Team* team,Level& level)
    {
        //add animation
        setAnimation(entity,Configuration::AnimMainStand,CompSkin::Spawn,0.5,0.7,0.25,0.25);
        setAnimation(entity,Configuration::AnimMainStand,CompSkin::Stand,0.5,0.7,0.25,0.25);

        //add team
        setTeam(entity,team);
        team->addQgId(entity.id());

        //add AI
        entity.add<CompAIMain>(100,sf::seconds(10));
        entity.add<CompAISpawner>(makeAsEye,1,sf::seconds(5),
                                  [](Level& lvl,const sf::Vector2i& pos){
                                    makeAsVoltageEffect(lvl.createEntity(pos));
                                    lvl.createSound(Configuration::SoundSpawnEye,pos);
                                  });
        entity.add<CompHp>(5000);
        entity.add<CompBuildArea>(4);

        entity.onHitted = [](Entity& self,const sf::Vector2i& myCoord,Entity& enemi,const sf::Vector2i& enemyCoord,Level& lvl){
            lvl.createSound(Configuration::SoundHittedMain,myCoord);
            makeAsVoltageEffect(lvl.createEntity(myCoord));
        };



        entity.name = "QG";
    }

    void makeAsEye(Entity& entity,Team* team,Level& level)
    {
        //add animation
        setAnimation(entity,Configuration::AnimEyeLeft,CompSkin::MoveLeft,0.5,0.8,0.5,0.5);
        setAnimation(entity,Configuration::AnimEyeRight,CompSkin::MoveRight,0.5,0.8,0.5,0.5);

        //add team
        setTeam(entity,team);

        //add AI
        entity.add<CompAIWarrior>(50,sf::seconds(0.5),1);
        entity.add<CompHp>(500);
        entity.add<CompAIFlyer>(200);

        entity.onHitted = [](Entity& self,const sf::Vector2i& myCoord,Entity& enemi,const sf::Vector2i& enemyCoord,Level& lvl){
            lvl.createSound(Configuration::SoundHittedEye,myCoord);
            makeAsBloodEffect(lvl.createEntity(myCoord));
        };

        entity.name = "<NAME>";
    }

    void makeAsWormEgg(Entity& entity,Team* team,Level& level)
    {
        setAnimation(entity,Configuration::AnimWormEggBirth,CompSkin::Spawn,0.5,0.9,0.3,0.3);
        setAnimation(entity,Configuration::AnimWormEggStand,CompSkin::Stand,0.5,0.9,0.3,0.3);

        setTeam(entity,team);
        entity.add<CompAISpawner>(makeAsWorm,1,sf::seconds(15),
                                  [](Level& lvl,const sf::Vector2i& pos){
                                    makeAsFlashEffect(lvl.createEntity(pos));
                                    lvl.createSound(Configuration::SoundSpawnWormEgg,pos);
                                  });
        entity.add<CompHp>(200);
        entity.add<CompBuildArea>(2);

        entity.name = "<NAME>";
    }

    void makeAsWorm(Entity& entity,Team* team, Level& level)
    {
        setAnimation(entity,Configuration::AnimWormLeft,CompSkin::MoveLeft,0.5,0.8,0.4,0.4);
        setAnimation(entity,Configuration::AnimWormRight,CompSkin::MoveRight,0.5,0.8,0.4,0.4);

        setTeam(entity,team);

        entity.add<CompAIWarrior>(10,sf::seconds(0.2),0);
        entity.add<CompHp>(250);
        entity.add<CompAIWalker>(70);
{'fraction_non_alphanumeric': 0.14798206278026907, 'fraction_numerical': 0.03423019431988042, 'mean_word_length': 2.591519055287171, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 47, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '398304', 'n_tokens_mistral': 2302, 'n_tokens_neox': 2202, 'n_words': 229}