<commit_before>class Score
{
  int currentScore;
  int animation;
  IntList scoreAnimation; //i=score, i+1=x, i+2=y, i+3=timer
  
  Score()
  {
    currentScore = 0;
    animation = 0;
    scoreAnimation = new IntList();
  }
  void printScore()
  {
    text("Score: "+currentScore, 10, 10);
    animScore();
  }
  void addScore(int addScore, int x, int y)
  {
    currentScore += addScore;
    scoreAnimation.append(addScore);
    scoreAnimation.append(x);
    scoreAnimation.append(y);
    scoreAnimation.append(10);//time during which the animation will last
  }
  void animScore()
  {
    int i;
    //int currentAnim = 1;
    for(i=0;i<scoreAnimation.size();i=i+4)
    {
      text("+"+scoreAnimation.get(i)+"!",scoreAnimation.get(i+1),scoreAnimation.get(i+2));
      scoreAnimation.set(i+2,scoreAnimation.get(i+2)-1); //the score slowly goes up
      scoreAnimation.set(i+3,scoreAnimation.get(i+3)-1); //the timer goes down
      if(scoreAnimation.get(i+3) == 0)
      {
        scoreAnimation.remove(i);
        scoreAnimation.remove(i+1);
        scoreAnimation.remove(i+2);
        scoreAnimation.remove(i+3);<commit_msg>quick fix with the score animation<commit_after>class Score
{
  int currentScore;
  int animation;
  IntList scoreAnimation; //i=score, i+1=x, i+2=y, i+3=timer
  
  Score()
  {
    currentScore = 0;
    animation = 0;
    scoreAnimation = new IntList();
  }
  void printScore()
  {
    text("Score: "+currentScore, 10, 10);
    animScore();
  }
  void addScore(int addScore, int x, int y)
  {
    currentScore += addScore;
    scoreAnimation.append(addScore);
    scoreAnimation.append(x);
    scoreAnimation.append(y);
    scoreAnimation.append(10);//time during which the animation will last
  }
  void animScore()
  {
    int i;
    //int currentAnim = 1;
    for(i=0;i<scoreAnimation.size();i=i+4)
    {
      text("+"+scoreAnimation.get(i)+"!",scoreAnimation.get(i+1),scoreAnimation.get(i+2));
      scoreAnimation.set(i+2,scoreAnimation.get(i+2)-1); //the score slowly goes up
      scoreAnimation.set(i+3,scoreAnimation.get(i+3)-1); //the timer goes down
      if(scoreAnimation.get(i+3) == 0)
      {
        scoreAnimation.remove(i);
        scoreAnimation.remove(i);
        scoreAnimation.remove(i);
        scoreAnimation.remove(i);
        i-=4;
{'fraction_non_alphanumeric': 0.15041539134236992, 'fraction_numerical': 0.022737210319195452, 'mean_word_length': 3.1904761904761907, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '2311324', 'n_tokens_mistral': 803, 'n_tokens_neox': 784, 'n_words': 149}