<commit_before>#include <ModuleFramework/Module.h>
#include "ModuleFramework/ModuleManager.h"
#include "Tools/StrategyTools.h"
#include <gtest/gtest.h>

using namespace std;

class StrategyToolsTest : public ::testing::Test
{
public:
	StrategyTools* strategyTools;

protected:
  StrategyToolsTest(){}
  virtual void SetUp()
  {
  }


};

TEST_F(StrategyToolsTest, arrangeRobots)
{
  std::vector<Vector2d> setPiecePoints;
  //input of positions
  setPiecePoints.push_back(Vector2d(-1700.0, -1700.0));
  setPiecePoints.push_back(Vector2d(-2400.0,     0.0));
  setPiecePoints.push_back(Vector2d(-1700.0,  1700.0));


  std::vector<int> placesToRobots(3);

  // init
  for(unsigned int i = 0; i < placesToRobots.size(); i++)
  {
    placesToRobots[i] = i;
  }//end for

  std::vector<Vector2d > playersPoints;
  playersPoints.push_back(Vector2d(2400.0,      0.0));
  playersPoints.push_back(Vector2d(3400.0,    500.0));
  playersPoints.push_back(Vector2d(2800.0,   -700.0));
  playersPoints.push_back(Vector2d(-2500.0,     0.0));
  playersPoints.push_back(Vector2d(-1600.0,  1600.0));
  playersPoints.push_back(Vector2d(-1600.0, -1700.0));
  

  strategyTools->arrangeRobots(playersPoints, setPiecePoints, placesToRobots);

  std::vector<int> expectedPlacesToRobots;
  expectedPlacesToRobots.push_back(0);
  expectedPlacesToRobots.push_back(1);
  expectedPlacesToRobots.push_back(2);

  for(unsigned int i = 0; i < placesToRobots.size(); i++)
  {
    if(placesToRobots[i] != expectedPlacesToRobots[1])
    {
      cout << "Assignement Wrong" << endl;
    }
  }//end for
}//end testArrangeRobots<commit_msg>repaired Test<commit_after>#include <ModuleFramework/Module.h>
#include "ModuleFramework/ModuleManager.h"
#include "Tools/StrategyTools.h"
#include <gtest/gtest.h>

using namespace std;

class StrategyToolsTest : public ::testing::Test
{
public:
	StrategyTools* strategyTools;

protected:
  StrategyToolsTest(){}
  virtual void SetUp()
  {
  }


};

TEST_F(StrategyToolsTest, arrangeRobots)
{
  std::vector<Vector2d> setPiecePoints;
  //input of positions
  setPiecePoints.push_back(Vector2d(-1700.0, -1700.0));
  setPiecePoints.push_back(Vector2d(-2400.0,     0.0));
  setPiecePoints.push_back(Vector2d(-1700.0,  1700.0));

  std::vector<int> placesToRobots(3);

  // init
  for(unsigned int i = 0; i < placesToRobots.size(); i++)
  {
    placesToRobots[i] = i;
  }//end for

  std::vector<Vector2d > playersPoints;
  playersPoints.push_back(Vector2d(2400.0,      0.0));
  playersPoints.push_back(Vector2d(3400.0,    500.0));
  playersPoints.push_back(Vector2d(2800.0,   -700.0));
  playersPoints.push_back(Vector2d(-2500.0,     0.0));
  playersPoints.push_back(Vector2d(-1600.0,  1600.0));
  playersPoints.push_back(Vector2d(-1600.0, -1700.0));

  strategyTools->arrangeRobots(playersPoints, setPiecePoints, placesToRobots);

  std::vector<int> expectedPlacesToRobots;
  expectedPlacesToRobots.push_back(5);
  expectedPlacesToRobots.push_back(3);
  expectedPlacesToRobots.push_back(4);

  ASSERT_EQ(expectedPlacesToRobots[0], placesToRobots[0]);
  ASSERT_EQ(expectedPlacesToRobots[1], placesToRobots[1]);
  ASSERT_EQ(expectedPlacesToRobots[2], placesToRobots[2]);
}//end testArrangeRobots
{'fraction_non_alphanumeric': 0.14598997493734336, 'fraction_numerical': 0.06203007518796992, 'mean_word_length': 5.024528301886792, 'pattern_counts': {'":': 0, '<': 22, '<?xml version=': 0, '>': 17, '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': '533459', 'n_tokens_mistral': 1291, 'n_tokens_neox': 1209, 'n_words': 169}