<commit_before><?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="http://jsbsim.sourceforge.net/JSBSimScript.xsl"?>
<runscript xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://jsbsim.sf.net/JSBSimScript.xsd"
    name="C172-01A takeoff run">
  <!--
    This run is for testing the C172 altitude hold autopilot
  -->

  <use aircraft="c172x" initialize="reset00"/>
  <run start="0.0" end="2000" dt="0.0083333">

    <property> simulation/notify-time-trigger </property>

    <event name="engine start">
      <description>Start the engine</description>
      <notify/>
      <condition>
        sim-time-sec >= 0.25
      </condition>
      <set name="fcs/throttle-cmd-norm" value="1.0" action="FG_RAMP" tc ="0.5"/>
      <set name="fcs/mixture-cmd-norm" value="0.87" action="FG_RAMP" tc ="0.5"/>
      <set name="propulsion/magneto_cmd" value="3"/>
      <set name="propulsion/starter_cmd" value="1"/>
    </event>

    <event name="Set heading hold">
      <description>Set Heading when 5 ft AGL is reached</description>
      <notify/>
      <condition>
        position/h-agl-ft >= 5
      </condition>
      <set name="ap/heading_setpoint" value="200"/>
      <set name="ap/attitude_hold" value="0"/>
      <set name="ap/heading_hold" value="1"/>
    </event>

    <event name="Set autopilot for 20 ft.">
      <description>Set Autopilot for 20 ft</description>
      <notify/>
      <condition>
        aero/qbar-psf >= 4
      </condition>
      <set name="ap/altitude_setpoint" value="100.0"/>
      <set name="ap/altitude_hold" value="1"/>
      <set name="fcs/flap-cmd-norm" value=".33"/>
    </event>

    <event name="Set autopilot for 6000 ft.">
      <description>Set Autopilot for 6000 ft</description>
      <notify/>
      <condition>
        aero/qbar-psf > 5
      </condition>
      <set name="ap/altitude_setpoint" value="6000.0"/>
    </event>

    <event name="Adjust throttle/flaps">
      <description>Remove flaps at 50 ft</description>
      <notify/>
      <condition>
        position/h-agl-ft >= 100
      </condition>
      <set name="fcs/mixture-cmd-norm" value="0.69" action="FG_EXP" tc ="400.0"/>
      <set name="fcs/flap-cmd-norm" value="0"/>
    </event>

    <event name="Time Notify" type="FG_DELTA" persistent="true">
      <description>Output message at 100 second intervals</description>
      <notify>
        <property>velocities/vc-kts</property>
        <property>position/h-agl-ft</property>
      </notify>
      <condition> sim-time-sec >= simulation/notify-time-trigger </condition>
      <set name="simulation/notify-time-trigger" value="100" type="FG_DELTA"/>
    </event>

    <event name="Set heading hold">
      <description>Set Heading when 6000 ft AGL is reached</description>
      <notify/>
      <condition>
        position/h-agl-ft >= 5999
      </condition>
      <set name="ap/heading_setpoint" value="20"/>
    </event>

  </run>
</runscript>
<commit_msg>Removed an extraneous (and improper) attribute in the c172 script<commit_after><?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="http://jsbsim.sourceforge.net/JSBSimScript.xsl"?>
<runscript xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://jsbsim.sf.net/JSBSimScript.xsd"
    name="C172-01A takeoff run">
  <!--
    This run is for testing the C172 altitude hold autopilot
  -->

  <use aircraft="c172x" initialize="reset00"/>
  <run start="0.0" end="2000" dt="0.0083333">

    <property> simulation/notify-time-trigger </property>

    <event name="engine start">
      <description>Start the engine</description>
      <notify/>
      <condition>
        sim-time-sec >= 0.25
      </condition>
      <set name="fcs/throttle-cmd-norm" value="1.0" action="FG_RAMP" tc ="0.5"/>
      <set name="fcs/mixture-cmd-norm" value="0.87" action="FG_RAMP" tc ="0.5"/>
      <set name="propulsion/magneto_cmd" value="3"/>
      <set name="propulsion/starter_cmd" value="1"/>
    </event>

    <event name="Set heading hold">
      <description>Set Heading when 5 ft AGL is reached</description>
      <notify/>
      <condition>
        position/h-agl-ft >= 5
      </condition>
      <set name="ap/heading_setpoint" value="200"/>
      <set name="ap/attitude_hold" value="0"/>
      <set name="ap/heading_hold" value="1"/>
    </event>

    <event name="Set autopilot for 20 ft.">
      <description>Set Autopilot for 20 ft</description>
      <notify/>
      <condition>
        aero/qbar-psf >= 4
      </condition>
      <set name="ap/altitude_setpoint" value="100.0"/>
      <set name="ap/altitude_hold" value="1"/>
      <set name="fcs/flap-cmd-norm" value=".33"/>
    </event>

    <event name="Set autopilot for 6000 ft.">
      <description>Set Autopilot for 6000 ft</description>
      <notify/>
      <condition>
        aero/qbar-psf > 5
      </condition>
      <set name="ap/altitude_setpoint" value="6000.0"/>
    </event>

    <event name="Adjust throttle/flaps">
      <description>Remove flaps at 50 ft</description>
      <notify/>
      <condition>
        position/h-agl-ft >= 100
      </condition>
      <set name="fcs/mixture-cmd-norm" value="0.69" action="FG_EXP" tc ="400.0"/>
      <set name="fcs/flap-cmd-norm" value="0"/>
    </event>

    <event name="Time Notify" persistent="true">
      <description>Output message at 100 second intervals</description>
      <notify>
        <property>velocities/vc-kts</property>
        <property>position/h-agl-ft</property>
      </notify>
      <condition> sim-time-sec >= simulation/notify-time-trigger </condition>
      <set name="simulation/notify-time-trigger" value="100" type="FG_DELTA"/>
    </event>

    <event name="Set heading hold">
      <description>Set Heading when 6000 ft AGL is reached</description>
      <notify/>
      <condition>
        position/h-agl-ft >= 5999
      </condition>
      <set name="ap/heading_setpoint" value="20"/>
    </event>

  </run>
</runscript>

{'fraction_non_alphanumeric': 0.16716766867067467, 'fraction_numerical': 0.037241148964595856, 'mean_word_length': 2.8514469453376208, 'pattern_counts': {'":': 0, '<': 161, '<?xml version=': 2, '>': 175, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 6}, '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': '1729864', 'n_tokens_mistral': 2181, 'n_tokens_neox': 1987, 'n_words': 416}