<commit_before>#ifndef SOCROCKET_SHELL_H
#define SOCROCKET_SHELL_H

#include <Python.h>
#include <systemc.h>
#include "shell.h"

using namespace sc_core;

static PyObject *sysc_start(PyObject *self, PyObject *args) {
  if(!PyArg_ParseTuple(args, ":start")) {
    return NULL;
  }
  sc_start();
  return Py_BuildValue("");
}

static PyObject *sysc_pause(PyObject *self, PyObject *args) {
  if(!PyArg_ParseTuple(args, ":pause")) {
    return NULL;
  }
  sc_pause();
  return Py_BuildValue("");
}

static PyObject *sysc_stop(PyObject *self, PyObject *args) {
  if(!PyArg_ParseTuple(args, ":exit")) {
    return NULL;
  }
  sc_stop();
  return Py_BuildValue("");
}

static PyMethodDef GSMethods[] = {
  {"list", &sysc_start, METH_VARARGS, "List all gs_params."},
  {"get_param", &sysc_stop, METH_VARARGS, "Get gs_param value."},
  {NULL, NULL, 0, NULL}
};

static PyMethodDef SysCMethods[] = {
  {"start", &sysc_start, METH_VARARGS, "Continue simulation."},
  {"pause", &sysc_pause, METH_VARARGS, "Pause simulation."},
  {"stop", &sysc_stop, METH_VARARGS, "Stop simulation."},
  {NULL, NULL, 0, NULL}
};

void start_shell(sc_status status) {<commit_msg>Comments for Timo<commit_after>#ifndef SOCROCKET_SHELL_H
#define SOCROCKET_SHELL_H

#include <Python.h>
#include <systemc.h>
#include "shell.h"

using namespace sc_core;

static PyObject *sysc_start(PyObject *self, PyObject *args) {
  if(!PyArg_ParseTuple(args, ":start")) {
    return NULL;
  }
  sc_start();
  return Py_BuildValue("");
}

static PyObject *sysc_pause(PyObject *self, PyObject *args) {
  if(!PyArg_ParseTuple(args, ":pause")) {
    return NULL;
  }
  sc_pause();
  return Py_BuildValue("");
}

static PyObject *sysc_stop(PyObject *self, PyObject *args) {
  if(!PyArg_ParseTuple(args, ":exit")) {
    return NULL;
  }
  sc_stop();
  return Py_BuildValue("");
}

static PyMethodDef GSMethods[] = {
  {"list", &sysc_start, METH_VARARGS, "List all gs_params."}, // Not Implemented
  {"get_param", &sysc_stop, METH_VARARGS, "Get gs_param value."}, // Not Implemented
  {NULL, NULL, 0, NULL}
};

static PyMethodDef SysCMethods[] = {
  {"start", &sysc_start, METH_VARARGS, "Continue simulation."},
  {"pause", &sysc_pause, METH_VARARGS, "Pause simulation."},
  {"stop", &sysc_stop, METH_VARARGS, "Stop simulation."},
  {NULL, NULL, 0, NULL}
};

void start_shell(sc_status status) {
{'fraction_non_alphanumeric': 0.16153846153846155, 'fraction_numerical': 0.0017094017094017094, 'mean_word_length': 5.2761394101876675, 'pattern_counts': {'":': 6, '<': 7, '<?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': '3048862', 'n_tokens_mistral': 879, 'n_tokens_neox': 891, 'n_words': 198}