<commit_before>package Logical "Library of components with Boolean input and output signals" 
  block Not "Logical 'not': y = not u" 
    extends Interfaces.BooleanSISO;
    annotation (
      defaultComponentName="not1",
      Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100},{100,
              100}}), graphics={Text(
            extent={{-90,40},{90,-40}},
            lineColor={0,0,0},
            textString="not")}),
      Documentation(info="<html>
<p>
The output is <b>true</b> if the input is <b>false</b>, otherwise
the output is <b>false</b>.
</p>
</html>"));
  equation 
    y = not u;
  end Not;
end Logical;<commit_msg>Add Less block in Control.Logical<commit_after>package Logical "Library of components with Boolean input and output signals" 
  block Not "Logical 'not': y = not u" 
    extends Interfaces.BooleanSISO;
    annotation (
      defaultComponentName="not1",
      Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100},{100,
              100}}), graphics={Text(
            extent={{-90,40},{90,-40}},
            lineColor={0,0,0},
            textString="not")}),
      Documentation(info="<html>
<p>
The output is <b>true</b> if the input is <b>false</b>, otherwise
the output is <b>false</b>.
</p>
</html>"));
  equation 
    y = not u;
  end Not;

  block Less "Output y is true, if input u1 is less than input u2" 
    extends Interfaces.MI2BooleanMOs;
  protected 
    Real u1=inPort1.signal[1];
    Real u2=inPort2.signal[1];
  equation 
    outPort.signal[1] = u1 < u2;
  end Less;
end Logical;
{'fraction_non_alphanumeric': 0.14613911933631143, 'fraction_numerical': 0.03828972559029994, 'mean_word_length': 3.115485564304462, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 0, '>': 23, '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': '7614357', 'n_tokens_mistral': 538, 'n_tokens_neox': 505, 'n_words': 140}