<commit_before>package hep.lcio.implementation.event;

import hep.lcio.event.LCCollection;
import hep.lcio.event.LCObject;

import java.util.ArrayList;
import java.util.List;


/**
 * A default implementation of LCCollection
 * @author <NAME>
 * @version $Id: ILCCollection.java,v 1.2 2003-05-06 06:22:11 tonyj Exp $
 */
public class ILCCollection extends ArrayList implements LCCollection
{
   private String type;
   private int flag;

   public ILCCollection(String type)
   {
      this.type = type;
   }

   public ILCCollection(String type, int flag, int size)
   {
      super(size);
      this.flag = flag;
      this.type = type;
   }

   public LCObject getElementAt(int index)
   {
      return (LCObject) get(index);
   }

   public int getFlag()
   {
      return flag;
   }

   public int getNumberOfElements()
   {
      return size();
   }

   public String getTypeName()
   {
      return type;
   }

   public void add(LCObject object)
   {
      super.add(object);
   }
}
<commit_msg>Added setFlag method.<commit_after>package hep.lcio.implementation.event;

import hep.lcio.event.LCCollection;
import hep.lcio.event.LCObject;

import java.util.ArrayList;
import java.util.List;


/**
 * A default implementation of LCCollection
 * @author <NAME>
 * @version $Id: ILCCollection.java,v 1.3 2003-05-09 15:25:50 gaede Exp $
 */
public class ILCCollection extends ArrayList implements LCCollection
{
   private String type;
   private int flag;

   public ILCCollection(String type)
   {
      this.type = type;
   }

   public ILCCollection(String type, int flag, int size)
   {
      super(size);
      this.flag = flag;
      this.type = type;
   }

   public LCObject getElementAt(int index)
   {
      return (LCObject) get(index);
   }

   public int getFlag()
   {
      return flag;
   }

   public int getNumberOfElements()
   {
      return size();
   }

   public String getTypeName()
   {
      return type;
   }

   public void add(LCObject object)
   {
      super.add(object);
   }


   public void setFlag(int flag ){
       this.flag = flag ;
   }
}

{'fraction_non_alphanumeric': 0.10278578290105668, 'fraction_numerical': 0.01536983669548511, 'mean_word_length': 2.6802120141342756, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1561139', 'n_tokens_mistral': 714, 'n_tokens_neox': 679, 'n_words': 172}