<commit_before>within iPSL.NonElectrical.Eurostag.Nonlinear;
block ImMonostable "Monostable. 2014/03/10"

  extends Modelica.Blocks.Interfaces.SISO;
  parameter Real S "Start";
  parameter Modelica.SIunits.Time T "Pulse period";
  Boolean mode;
  Boolean cond1;
  Boolean cond2;
protected
  discrete Modelica.SIunits.Time tau(start = -T);
equation
  cond1 = u > S and pre(mode) == false;
  cond2 = u <= S and time - pre(tau) >= T;
  when {cond1, cond2} then
    mode = not pre(mode);
    tau = time;
  end when;
  if mode then
    y = 1;
  else<commit_msg>Update ImMonostable.mo<commit_after>within iPSL.NonElectrical.Eurostag.Nonlinear;
block ImMonostable "Monostable. 2014/03/10"

  extends Modelica.Blocks.Interfaces.SISO;
  parameter Real S "Start";
  parameter Modelica.SIunits.Time T "Pulse period";
  discrete Real tau(start = -T);
  Boolean mode(start = false);
  Boolean cond1;
  Boolean cond2;
equation
  cond1 = u > S and pre(mode) == false;
  cond2 = u <= S and time - pre(tau) >= T;
  when {cond1, cond2} then
    mode = not pre(mode);
    tau = time;
  end when;
  if mode then
    y = 1;
  else
{'fraction_non_alphanumeric': 0.11361587015329125, 'fraction_numerical': 0.027051397655545536, 'mean_word_length': 3.475806451612903, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4887749', 'n_tokens_mistral': 421, 'n_tokens_neox': 398, 'n_words': 118}