<commit_before><?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
  xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
                      http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd">

  <changeSet author="author" id="changelog-3.1">

    <preConditions onFail="MARK_RAN">
      <not>
        <columnExists tableName="traccar" columnName="version" />
      </not>
    </preConditions>

    <dropNotNullConstraint tableName="user" columnName="name" columnDataType="VARCHAR(1024)" />
    <modifyDataType tableName="user" columnName="name" newDataType="VARCHAR(128)" />
    <addNotNullConstraint tableName="user" columnName="name" columnDataType="VARCHAR(128)" />
    <dropNotNullConstraint tableName="user" columnName="email" columnDataType="VARCHAR(256)" />
    <modifyDataType tableName="user" columnName="email" newDataType="VARCHAR(128)" />
    <addNotNullConstraint tableName="user" columnName="email" columnDataType="VARCHAR(128)" />
    <dropNotNullConstraint tableName="user" columnName="hashedPassword" columnDataType="VARCHAR(1024)" />
    <modifyDataType tableName="user" columnName="hashedPassword" newDataType="VARCHAR(128)" />
    <addNotNullConstraint tableName="user" columnName="hashedPassword" columnDataType="VARCHAR(128)" />
    <dropNotNullConstraint tableName="user" columnName="salt" columnDataType="VARCHAR(1024)" />
    <dropDefaultValue tableName="user" columnName="salt" />
    <modifyDataType tableName="user" columnName="salt" newDataType="VARCHAR(128)" />
    <addNotNullConstraint tableName="user" columnName="salt" columnDataType="VARCHAR(128)" />
    <addDefaultValue tableName="user" columnName="salt" defaultValue="" />
    <dropDefaultValue tableName="user" columnName="map" />
    <dropNotNullConstraint tableName="user" columnName="map" columnDataType="VARCHAR(128)" />
    <modifyDataType tableName="user" columnName="map" newDataType="VARCHAR(128)" />
    <dropDefaultValue tableName="user" columnName="language" />
    <dropNotNullConstraint tableName="user" columnName="language" columnDataType="VARCHAR(128)" />
    <modifyDataType tableName="user" columnName="language" newDataType="VARCHAR(128)" />
    <dropDefaultValue tableName="user" columnName="distanceUnit" />
    <dropNotNullConstraint tableName="user" columnName="distanceUnit" columnDataType="VARCHAR(128)" />
    <modifyDataType tableName="user" columnName="distanceUnit" newDataType="VARCHAR(128)" />
    <dropDefaultValue tableName="user" columnName="speedUnit" />
    <dropNotNullConstraint tableName="user" columnName="speedUnit" columnDataType="VARCHAR(128)" />
    <modifyDataType tableName="user" columnName="speedUnit" newDataType="VARCHAR(128)" />
    <dropNotNullConstraint tableName="user" columnName="latitude" columnDataType="DOUBLE" />
    <dropDefaultValue tableName="user" columnName="latitude" />
    <modifyDataType tableName="user" columnName="latitude" newDataType="FLOAT" />
    <addNotNullConstraint tableName="user" columnName="latitude" columnDataType="FLOAT" />
    <addDefaultValue tableName="user" columnName="latitude" defaultValueNumeric="0" />
    <dropNotNullConstraint tableName="user" columnName="longitude" columnDataType="DOUBLE" />
    <dropDefaultValue tableName="user" columnName="longitude" />
    <modifyDataType tableName="user" columnName="longitude" newDataType="FLOAT" />
    <addNotNullConstraint tableName="user" columnName="longitude" columnDataType="FLOAT" />
    <addDefaultValue tableName="user" columnName="longitude" defaultValueNumeric="0" />

    <dropNotNullConstraint tableName="device" columnName="name" columnDataType="VARCHAR(1024)" />
    <modifyDataType tableName="device" columnName="name" newDataType="VARCHAR(128)" />
    <addNotNullConstraint tableName="device" columnName="name" columnDataType="VARCHAR(128)" />
    <dropNotNullConstraint tableName="device" columnName="uniqueId" columnDataType="VARCHAR(256)" />
    <modifyDataType tableName="device" columnName="uniqueId" newDataType="VARCHAR(128)" />
    <addNotNullConstraint tableName="device" columnName="uniqueId" columnDataType="VARCHAR(128)" />
    <modifyDataType tableName="device" columnName="status" newDataType="VARCHAR(128)" />

    <modifyDataType tableName="position" columnName="protocol" newDataType="VARCHAR(128)" />
    <dropNotNullConstraint tableName="position" columnName="latitude" columnDataType="DOUBLE" />
    <modifyDataType tableName="position" columnName="latitude" newDataType="FLOAT" />
    <addNotNullConstraint tableName="position" columnName="latitude" columnDataType="FLOAT" />
    <dropNotNullConstraint tableName="position" columnName="longitude" columnDataType="DOUBLE" />
    <modifyDataType tableName="position" columnName="longitude" newDataType="FLOAT" />
    <addNotNullConstraint tableName="position" columnName="longitude" columnDataType="FLOAT" />
    <dropNotNullConstraint tableName="position" columnName="altitude" columnDataType="DOUBLE" />
    <modifyDataType tableName="position" columnName="altitude" newDataType="FLOAT" />
    <addNotNullConstraint tableName="position" columnName="altitude" columnDataType="FLOAT" />
    <dropNotNullConstraint tableName="position" columnName="speed" columnDataType="DOUBLE" />
    <modifyDataType tableName="position" columnName="speed" newDataType="FLOAT" />
    <addNotNullConstraint tableName="position" columnName="speed" columnDataType="FLOAT" />
    <dropNotNullConstraint tableName="position" columnName="course" columnDataType="DOUBLE" />
    <modifyDataType tableName="position" columnName="course" newDataType="FLOAT" />
    <addNotNullConstraint tableName="position" columnName="course" columnDataType="FLOAT" />
    <modifyDataType tableName="position" columnName="address" newDataType="VARCHAR(512)" />
    <dropNotNullConstraint tableName="position" columnName="other" columnDataType="VARCHAR(8192)" />
    <modifyDataType tableName="position" columnName="other" newDataType="VARCHAR(4096)" />
    <addNotNullConstraint tableName="position" columnName="other" columnDataType="VARCHAR(4096)" />

    <createIndex tableName="position" indexName="position_deviceId_fixTime">
      <column name="deviceId" />
      <column name="fixTime" />
    </createIndex>

    <modifyDataType tableName="data" columnName="protocol" newDataType="VARCHAR(128)" />
    <dropNotNullConstraint tableName="data" columnName="other" columnDataType="VARCHAR(8192)" />
    <modifyDataType tableName="data" columnName="other" newDataType="VARCHAR(4096)" />
    <addNotNullConstraint tableName="data" columnName="other" columnDataType="VARCHAR(4096)" />

    <addColumn tableName="server">
      <column name="map" type="VARCHAR(128)" />
    </addColumn>
    <addColumn tableName="server">
      <column name="language" type="VARCHAR(128)" />
    </addColumn>
    <addColumn tableName="server">
      <column name="distanceUnit" type="VARCHAR(128)" />
    </addColumn>
    <addColumn tableName="server">
      <column name="speedUnit" type="VARCHAR(128)" />
    </addColumn>
    <dropNotNullConstraint tableName="server" columnName="latitude" columnDataType="DOUBLE" />
    <modifyDataType tableName="server" columnName="latitude" newDataType="FLOAT" />
    <addNotNullConstraint tableName="server" columnName="latitude" columnDataType="FLOAT" />
    <addDefaultValue tableName="server" columnName="latitude" defaultValueNumeric="0" />
    <dropNotNullConstraint tableName="server" columnName="longitude" columnDataType="DOUBLE" />
    <modifyDataType tableName="server" columnName="longitude" newDataType="FLOAT" />
    <addNotNullConstraint tableName="server" columnName="longitude" columnDataType="FLOAT" />
    <addDefaultValue tableName="server" columnName="longitude" defaultValueNumeric="0" />

    <dropTable tableName="traccar" />

    <createTable tableName="traccar">
      <column name="version" type="INT" defaultValueNumeric="0">
        <constraints nullable="false" />
      </column>
    </createTable>

    <insert tableName="traccar">
      <column name="version" valueNumeric="301" />
    </insert>

  </changeSet>
</databaseChangeLog>
<commit_msg>Set default value for zoom column<commit_after><?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
  xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
                      http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd">

  <changeSet author="author" id="changelog-3.1">

    <preConditions onFail="MARK_RAN">
      <not>
        <columnExists tableName="traccar" columnName="version" />
      </not>
    </preConditions>

    <dropNotNullConstraint tableName="user" columnName="name" columnDataType="VARCHAR(1024)" />
    <modifyDataType tableName="user" columnName="name" newDataType="VARCHAR(128)" />
    <addNotNullConstraint tableName="user" columnName="name" columnDataType="VARCHAR(128)" />
    <dropNotNullConstraint tableName="user" columnName="email" columnDataType="VARCHAR(256)" />
    <modifyDataType tableName="user" columnName="email" newDataType="VARCHAR(128)" />
    <addNotNullConstraint tableName="user" columnName="email" columnDataType="VARCHAR(128)" />
    <dropNotNullConstraint tableName="user" columnName="hashedPassword" columnDataType="VARCHAR(1024)" />
    <modifyDataType tableName="user" columnName="hashedPassword" newDataType="VARCHAR(128)" />
    <addNotNullConstraint tableName="user" columnName="hashedPassword" columnDataType="VARCHAR(128)" />
    <dropNotNullConstraint tableName="user" columnName="salt" columnDataType="VARCHAR(1024)" />
    <dropDefaultValue tableName="user" columnName="salt" />
    <modifyDataType tableName="user" columnName="salt" newDataType="VARCHAR(128)" />
    <addNotNullConstraint tableName="user" columnName="salt" columnDataType="VARCHAR(128)" />
    <addDefaultValue tableName="user" columnName="salt" defaultValue="" />
    <dropDefaultValue tableName="user" columnName="map" />
    <dropNotNullConstraint tableName="user" columnName="map" columnDataType="VARCHAR(128)" />
    <modifyDataType tableName="user" columnName="map" newDataType="VARCHAR(128)" />
    <dropDefaultValue tableName="user" columnName="language" />
    <dropNotNullConstraint tableName="user" columnName="language" columnDataType="VARCHAR(128)" />
    <modifyDataType tableName="user" columnName="language" newDataType="VARCHAR(128)" />
    <dropDefaultValue tableName="user" columnName="distanceUnit" />
    <dropNotNullConstraint tableName="user" columnName="distanceUnit" columnDataType="VARCHAR(128)" />
    <modifyDataType tableName="user" columnName="distanceUnit" newDataType="VARCHAR(128)" />
    <dropDefaultValue tableName="user" columnName="speedUnit" />
    <dropNotNullConstraint tableName="user" columnName="speedUnit" columnDataType="VARCHAR(128)" />
    <modifyDataType tableName="user" columnName="speedUnit" newDataType="VARCHAR(128)" />
    <dropNotNullConstraint tableName="user" columnName="latitude" columnDataType="DOUBLE" />
    <dropDefaultValue tableName="user" columnName="latitude" />
    <modifyDataType tableName="user" columnName="latitude" newDataType="FLOAT" />
    <addNotNullConstraint tableName="user" columnName="latitude" columnDataType="FLOAT" />
    <addDefaultValue tableName="user" columnName="latitude" defaultValueNumeric="0" />
    <dropNotNullConstraint tableName="user" columnName="longitude" columnDataType="DOUBLE" />
    <dropDefaultValue tableName="user" columnName="longitude" />
    <modifyDataType tableName="user" columnName="longitude" newDataType="FLOAT" />
    <addNotNullConstraint tableName="user" columnName="longitude" columnDataType="FLOAT" />
    <addDefaultValue tableName="user" columnName="longitude" defaultValueNumeric="0" />

    <dropNotNullConstraint tableName="device" columnName="name" columnDataType="VARCHAR(1024)" />
    <modifyDataType tableName="device" columnName="name" newDataType="VARCHAR(128)" />
    <addNotNullConstraint tableName="device" columnName="name" columnDataType="VARCHAR(128)" />
    <dropNotNullConstraint tableName="device" columnName="uniqueId" columnDataType="VARCHAR(256)" />
    <modifyDataType tableName="device" columnName="uniqueId" newDataType="VARCHAR(128)" />
    <addNotNullConstraint tableName="device" columnName="uniqueId" columnDataType="VARCHAR(128)" />
    <modifyDataType tableName="device" columnName="status" newDataType="VARCHAR(128)" />

    <modifyDataType tableName="position" columnName="protocol" newDataType="VARCHAR(128)" />
    <dropNotNullConstraint tableName="position" columnName="latitude" columnDataType="DOUBLE" />
    <modifyDataType tableName="position" columnName="latitude" newDataType="FLOAT" />
    <addNotNullConstraint tableName="position" columnName="latitude" columnDataType="FLOAT" />
    <dropNotNullConstraint tableName="position" columnName="longitude" columnDataType="DOUBLE" />
    <modifyDataType tableName="position" columnName="longitude" newDataType="FLOAT" />
    <addNotNullConstraint tableName="position" columnName="longitude" columnDataType="FLOAT" />
    <dropNotNullConstraint tableName="position" columnName="altitude" columnDataType="DOUBLE" />
    <modifyDataType tableName="position" columnName="altitude" newDataType="FLOAT" />
    <addNotNullConstraint tableName="position" columnName="altitude" columnDataType="FLOAT" />
    <dropNotNullConstraint tableName="position" columnName="speed" columnDataType="DOUBLE" />
    <modifyDataType tableName="position" columnName="speed" newDataType="FLOAT" />
    <addNotNullConstraint tableName="position" columnName="speed" columnDataType="FLOAT" />
    <dropNotNullConstraint tableName="position" columnName="course" columnDataType="DOUBLE" />
    <modifyDataType tableName="position" columnName="course" newDataType="FLOAT" />
    <addNotNullConstraint tableName="position" columnName="course" columnDataType="FLOAT" />
    <modifyDataType tableName="position" columnName="address" newDataType="VARCHAR(512)" />
    <dropNotNullConstraint tableName="position" columnName="other" columnDataType="VARCHAR(8192)" />
    <modifyDataType tableName="position" columnName="other" newDataType="VARCHAR(4096)" />
    <addNotNullConstraint tableName="position" columnName="other" columnDataType="VARCHAR(4096)" />

    <createIndex tableName="position" indexName="position_deviceId_fixTime">
      <column name="deviceId" />
      <column name="fixTime" />
    </createIndex>

    <modifyDataType tableName="data" columnName="protocol" newDataType="VARCHAR(128)" />
    <dropNotNullConstraint tableName="data" columnName="other" columnDataType="VARCHAR(8192)" />
    <modifyDataType tableName="data" columnName="other" newDataType="VARCHAR(4096)" />
    <addNotNullConstraint tableName="data" columnName="other" columnDataType="VARCHAR(4096)" />

    <addColumn tableName="server">
      <column name="map" type="VARCHAR(128)" />
    </addColumn>
    <addColumn tableName="server">
      <column name="language" type="VARCHAR(128)" />
    </addColumn>
    <addColumn tableName="server">
      <column name="distanceUnit" type="VARCHAR(128)" />
    </addColumn>
    <addColumn tableName="server">
      <column name="speedUnit" type="VARCHAR(128)" />
    </addColumn>
    <dropNotNullConstraint tableName="server" columnName="latitude" columnDataType="DOUBLE" />
    <modifyDataType tableName="server" columnName="latitude" newDataType="FLOAT" />
    <addNotNullConstraint tableName="server" columnName="latitude" columnDataType="FLOAT" />
    <addDefaultValue tableName="server" columnName="latitude" defaultValueNumeric="0" />
    <dropNotNullConstraint tableName="server" columnName="longitude" columnDataType="DOUBLE" />
    <modifyDataType tableName="server" columnName="longitude" newDataType="FLOAT" />
    <addNotNullConstraint tableName="server" columnName="longitude" columnDataType="FLOAT" />
    <addDefaultValue tableName="server" columnName="longitude" defaultValueNumeric="0" />
    <addDefaultValue tableName="server" columnName="zoom" defaultValueNumeric="0" />

    <dropTable tableName="traccar" />

    <createTable tableName="traccar">
      <column name="version" type="INT" defaultValueNumeric="0">
        <constraints nullable="false" />
      </column>
    </createTable>

    <insert tableName="traccar">
      <column name="version" valueNumeric="301" />
    </insert>

  </changeSet>
</databaseChangeLog>

{'fraction_non_alphanumeric': 0.14618221389275135, 'fraction_numerical': 0.01819720694033009, 'mean_word_length': 6.630073800738008, 'pattern_counts': {'":': 0, '<': 224, '<?xml version=': 2, '>': 224, 'https://': 0, 'lorem ipsum': 0, 'www.': 8, 'xml': 12}, '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': '2619437', 'n_tokens_mistral': 4780, 'n_tokens_neox': 4747, 'n_words': 737}