<commit_before>/*
 * Copyright © 2013 VillageReach.  All Rights Reserved.  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/.
 */

package org.openlmis.upload.model;

import lombok.Getter;
import org.openlmis.upload.Importable;
import org.openlmis.upload.RecordHandler;

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

public class DummyRecordHandler implements RecordHandler<DummyImportable> {

  @Getter
  private List<Importable> importedObjects = new ArrayList<Importable>();

  @Override
  public void execute(DummyImportable importable, int rowNumber, AuditFields auditFields) {
    this.importedObjects.add(importable);
  }

  @Override
  public void postProcess(AuditFields auditFields) {
    //To change body of implemented methods use File | Settings | File Templates.
  }
}<commit_msg>|#000| refactoring + test added for AbstractModelPersistenceHandler<commit_after>/*
 * Copyright © 2013 VillageReach.  All Rights Reserved.  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/.
 */

package org.openlmis.upload.model;

import lombok.Getter;
import org.openlmis.upload.Importable;
import org.openlmis.upload.RecordHandler;

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

public class DummyRecordHandler implements RecordHandler<DummyImportable> {

  @Getter
  private List<Importable> importedObjects = new ArrayList<>();

  @Override
  public void execute(DummyImportable importable, int rowNumber, AuditFields auditFields) {
    this.importedObjects.add(importable);
  }

  @Override
  public void postProcess(AuditFields auditFields) {
    //To change body of implemented methods use File | Settings | File Templates.
  }
}
{'fraction_non_alphanumeric': 0.0865979381443299, 'fraction_numerical': 0.00979381443298969, 'mean_word_length': 4.467605633802817, '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': '6888522', 'n_tokens_mistral': 579, 'n_tokens_neox': 557, 'n_words': 187}