<commit_before>let requireLocal = ( localModule ) =>{
    let path = require("path");
    return require(path.resolve( __dirname, './js',localModule))
};

// let requireLocal = ( localModule ) =>{
//     let path = require("path");
//     return require(path.resolve( __dirname,localModule))
// };

let dataLocation = require('path').resolve(__dirname, '..','..', 'data', 'data.json');
let mockData = require('path').resolve(__dirname, '..', 'data', 'mockTutorData2.json');
let mockCourses= require('path').resolve(__dirname, '..', 'data', 'mockCourseData.json');
let ReactDOM = require('react-dom');
let React = require('react');
let ViewToolBar = requireLocal('./viewtoolbar');
let TutorTable = requireLocal('./tutortable');
let CourseTable = requireLocal('./coursetable');
let fs = require('fs');
//let loadTutors = JSON.parse(fs.readFileSync(dataLocation));
let loadCourses = JSON.parse(fs.readFileSync(mockCourses));
let mock = JSON.parse(fs.readFileSync(mockData));
let electron = require('electron');
let ipc = electron.ipcRenderer;
let Parser = requireLocal("./parser");
let ViewSchedulePage = requireLocal("./viewschedules");

let Reactstrap = require("reactstrap");
let Modal = Reactstrap.Modal;
let ModalHeader = Reactstrap.ModalHeader;
let ModalBody= Reactstrap.ModalBody;
let ModalFooter = Reactstrap.ModalFooter;
let Button = Reactstrap.Button;


class ViewInfo extends React.Component {
  constructor(props){
    super(props);
      this.state = {
       // tutors: loadTutors,
        tutorData: null,
        // courseData: null,
        courseData: null,

          tutors: (new Parser()).getTutors(mock),
      courses: (new Parser()).getCourses(loadCourses),
      view: "tutor", // view will only be tutor or course
      proceeding: false,
          showNotAuthorized: false,
          loading: true
    };

    this.clickViewButton = this.clickViewButton.bind(this);
    this.prepareView = this.prepareView.bind(this);
    this.proceedToGenerate = this.proceedToGenerate.bind(this);<commit_msg>Not use the test data<commit_after>let requireLocal = ( localModule ) =>{
    let path = require("path");
    return require(path.resolve( __dirname, './js',localModule))
};

// let requireLocal = ( localModule ) =>{
//     let path = require("path");
//     return require(path.resolve( __dirname,localModule))
// };

let dataLocation = require('path').resolve(__dirname, '..','..', 'data', 'data.json');
let mockData = require('path').resolve(__dirname, '..', 'data', 'mockTutorData2.json');
let mockCourses= require('path').resolve(__dirname, '..', 'data', 'mockCourseData.json');
let ReactDOM = require('react-dom');
let React = require('react');
let ViewToolBar = requireLocal('./viewtoolbar');
let TutorTable = requireLocal('./tutortable');
let CourseTable = requireLocal('./coursetable');
let fs = require('fs');
//let loadTutors = JSON.parse(fs.readFileSync(dataLocation));
let loadCourses = JSON.parse(fs.readFileSync(mockCourses));
let mock = JSON.parse(fs.readFileSync(mockData));
let electron = require('electron');
let ipc = electron.ipcRenderer;
let Parser = requireLocal("./parser");
let ViewSchedulePage = requireLocal("./viewschedules");

let Reactstrap = require("reactstrap");
let Modal = Reactstrap.Modal;
let ModalHeader = Reactstrap.ModalHeader;
let ModalBody= Reactstrap.ModalBody;
let ModalFooter = Reactstrap.ModalFooter;
let Button = Reactstrap.Button;


class ViewInfo extends React.Component {
  constructor(props){
    super(props);
      this.state = {
       // tutors: loadTutors,
        tutorData: null,
        // courseData: null,
        courseData: null,

      //     tutors: (new Parser()).getTutors(mock),
      // courses: (new Parser()).getCourses(loadCourses),
        tutors: [],
        courses:[],
      view: "tutor", // view will only be tutor or course
      proceeding: false,
          showNotAuthorized: false,
          loading: true
    };

    this.clickViewButton = this.clickViewButton.bind(this);
    this.prepareView = this.prepareView.bind(this);
    this.proceedToGenerate = this.proceedToGenerate.bind(this);
{'fraction_non_alphanumeric': 0.15655577299412915, 'fraction_numerical': 0.0004892367906066536, 'mean_word_length': 4.162878787878788, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4212510', 'n_tokens_mistral': 1229, 'n_tokens_neox': 1210, 'n_words': 271}