<commit_before>// Copyright (c) The University of Cincinnati.
// All rights reserved.

// UC MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
// THE SOFTWARE, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED
// TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
// PARTICULAR PURPOSE, OR NON-INFRINGEMENT.  UC SHALL NOT BE LIABLE
// FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING,
// RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
// DERIVATIVES.
									  
// By using or copying this Software, Licensee agrees to abide by the
// intellectual property laws, and all other applicable laws of the
// U.S., and the terms of this license.
								
//Authors: <NAME>                   <EMAIL>
//         <NAME>            <EMAIL>

#include "Iscas85Application.h"
#include "LogicEvent.h"
#include "FileReaderWriter.h"
#include "NInputAndGate.h"
#include "NInputXorGate.h"
#include "NInputOrGate.h"
#include "NInputNandGate.h"
#include "NInputNorGate.h"
#include "NotGate.h"
#include <warped/PartitionInfo.h>
#include <warped/RoundRobinPartitioner.h>
#include <warped/DeserializerManager.h>
#include <utils/ArgumentParser.h>
#include "vector"
#include "iostream"
#include "fstream"
#include "stdlib.h"

using namespace std;

Iscas85Application::Iscas85Application()
  :inputFileName( "" ),
   testCaseFileName(""),
   numObjects( 0 ){}

int
Iscas85Application::initialize( vector<string> &arguments ){
  string path="circuitsimulationmodels/iscas85/iscas85Sim/";

  getArgumentParser().checkArgs( arguments );

  if( inputFileName.empty() ){
    std::cerr << "A smmpSim configuration file must be specified using -simulate"<<std::endl;
    abort();
  }
  return 0;
}

int 
Iscas85Application::finalize(){
  return 0;
}

int
Iscas85Application::getNumberOfSimulationObjects(int mgrId) const {<commit_msg>change the Iscas85 models configuration file input manner<commit_after>// Copyright (c) The University of Cincinnati.
// All rights reserved.

// UC MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
// THE SOFTWARE, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED
// TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
// PARTICULAR PURPOSE, OR NON-INFRINGEMENT.  UC SHALL NOT BE LIABLE
// FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING,
// RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
// DERIVATIVES.
									  
// By using or copying this Software, Licensee agrees to abide by the
// intellectual property laws, and all other applicable laws of the
// U.S., and the terms of this license.
								
//Authors: <NAME>                   <EMAIL>
//         <NAME>            <EMAIL>

#include "Iscas85Application.h"
#include "LogicEvent.h"
#include "FileReaderWriter.h"
#include "NInputAndGate.h"
#include "NInputXorGate.h"
#include "NInputOrGate.h"
#include "NInputNandGate.h"
#include "NInputNorGate.h"
#include "NotGate.h"
#include <warped/PartitionInfo.h>
#include <warped/RoundRobinPartitioner.h>
#include <warped/DeserializerManager.h>
#include <utils/ArgumentParser.h>
#include "vector"
#include "iostream"
#include "fstream"
#include "stdlib.h"

using namespace std;

Iscas85Application::Iscas85Application()
  :inputFileName( "" ),
   testCaseFileName(""),
   numObjects( 0 ){}

int
Iscas85Application::initialize( vector<string> &arguments ){
  string path="circuitsimulationmodels/iscas85/iscas85Sim/";
  arguments[2] = path+arguments[2]+"/"+arguments[2]+"config";

  getArgumentParser().checkArgs( arguments );

  if( inputFileName.empty() ){
    std::cerr << "A smmpSim configuration file must be specified using -simulate"<<std::endl;
    abort();
  }
  return 0;
}

int 
Iscas85Application::finalize(){
  return 0;
}

int
Iscas85Application::getNumberOfSimulationObjects(int mgrId) const {
{'fraction_non_alphanumeric': 0.11183865898376114, 'fraction_numerical': 0.011262441068622316, 'mean_word_length': 4.260330578512397, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 21, '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': '3114555', 'n_tokens_mistral': 1291, 'n_tokens_neox': 1193, 'n_words': 363}