<commit_before><?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">

<properties>

    <!-- Global confiduration -->
    <entry key="database.driver">org.h2.Driver</entry>
    <entry key="database.url">jdbc:h2:/home/user/Documents/database</entry>
    <entry key="database.user">sa</entry>
    <entry key="database.password"></entry>

    <!-- Database refresh delay in seconds -->
    <entry key="database.refreshDelay">300</entry>

    <!-- Create database schema -->
    <entry key="database.initialize">
        CREATE TABLE IF NOT EXISTS devices (id INT IDENTITY, imei VARCHAR(16));
        CREATE TABLE IF NOT EXISTS positions (device_id INT, time TIMESTAMP, valid BOOLEAN, latitude DOUBLE, longitude DOUBLE, speed DOUBLE, course DOUBLE, power DOUBLE);
    </entry>

    <!-->
        id - Integer
        imei - String
    <-->
    <entry key="database.selectDevice">
        SELECT id, imei
        FROM devices;
    </entry>

    <!-->
        imei - String
    <-->
    <entry key="database.insertDevice">
        INSERT INTO devices (imei)
        VALUES (:imei);
    </entry>

    <!-->
        id - Integer
        imei - String
    <-->
    <entry key="database.updateDevice">
        UPDATE devices
        SET imei = :imei
        WHERE id = :id;
    </entry>

    <!-->
        id - Integer
    <-->
    <entry key="database.deleteDevice">
        DELETE FROM devices
        WHERE id = :id;
    </entry>

    <!-->
        device_id - Integer
    <-->
    <entry key="database.selectPosition">
        SELECT *
        FROM positions
        WHERE device_id = :device_id;
    </entry>

    <!-->
        device_id - Integer
        time - Date
        valid - Boolean
        latitude - Double
        longitude - Double
        speed - Double
        course - Double
        power - Double (NULL for some protocols)
        extended_info - String (XML)
    <-->
    <entry key="database.insertPosition">
        INSERT INTO positions (device_id, time, valid, latitude, longitude, speed, course, power)
	VALUES (:device_id, :time, :valid, :latitude, :longitude, :speed, :course, :power);
    </entry>

    <!-- Web interface port -->
    <entry key="http.enable">true</entry>
    <!--<entry key="http.address"></entry>-->
    <entry key="http.port">8082</entry>

    <!-- Geocoder options -->
    <entry key="geocoder.enable">false</entry>

    <!-- Logging options -->
    <entry key="logger.enable">true</entry>
    <entry key="logger.file">/home/user/Documents/tracker-server.log</entry>

    <!-- Xexun server configuration -->
    <entry key="xexun.enable">true</entry>
    <entry key="xexun.port">5000</entry>
<commit_msg>Change debug file locations<commit_after><?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">

<properties>

    <!-- Global confiduration -->
    <entry key="database.driver">org.h2.Driver</entry>
    <entry key="database.url">jdbc:h2:/home/user/Documents/traccar/target/database</entry>
    <entry key="database.user">sa</entry>
    <entry key="database.password"></entry>

    <!-- Database refresh delay in seconds -->
    <entry key="database.refreshDelay">300</entry>

    <!-- Create database schema -->
    <entry key="database.initialize">
        CREATE TABLE IF NOT EXISTS devices (id INT IDENTITY, imei VARCHAR(16));
        CREATE TABLE IF NOT EXISTS positions (device_id INT, time TIMESTAMP, valid BOOLEAN, latitude DOUBLE, longitude DOUBLE, speed DOUBLE, course DOUBLE, power DOUBLE);
    </entry>

    <!-->
        id - Integer
        imei - String
    <-->
    <entry key="database.selectDevice">
        SELECT id, imei
        FROM devices;
    </entry>

    <!-->
        imei - String
    <-->
    <entry key="database.insertDevice">
        INSERT INTO devices (imei)
        VALUES (:imei);
    </entry>

    <!-->
        id - Integer
        imei - String
    <-->
    <entry key="database.updateDevice">
        UPDATE devices
        SET imei = :imei
        WHERE id = :id;
    </entry>

    <!-->
        id - Integer
    <-->
    <entry key="database.deleteDevice">
        DELETE FROM devices
        WHERE id = :id;
    </entry>

    <!-->
        device_id - Integer
    <-->
    <entry key="database.selectPosition">
        SELECT *
        FROM positions
        WHERE device_id = :device_id;
    </entry>

    <!-->
        device_id - Integer
        time - Date
        valid - Boolean
        latitude - Double
        longitude - Double
        speed - Double
        course - Double
        power - Double (NULL for some protocols)
        extended_info - String (XML)
    <-->
    <entry key="database.insertPosition">
        INSERT INTO positions (device_id, time, valid, latitude, longitude, speed, course, power)
	VALUES (:device_id, :time, :valid, :latitude, :longitude, :speed, :course, :power);
    </entry>

    <!-- Web interface port -->
    <entry key="http.enable">true</entry>
    <!--<entry key="http.address"></entry>-->
    <entry key="http.port">8082</entry>

    <!-- Geocoder options -->
    <entry key="geocoder.enable">false</entry>

    <!-- Logging options -->
    <entry key="logger.enable">true</entry>
    <entry key="logger.file">/home/user/Documents/traccar/target/tracker-server.log</entry>

    <!-- Xexun server configuration -->
    <entry key="xexun.enable">true</entry>
    <entry key="xexun.port">5000</entry>

{'fraction_non_alphanumeric': 0.15376146788990824, 'fraction_numerical': 0.0066055045871559635, 'mean_word_length': 2.2916666666666665, 'pattern_counts': {'":': 0, '<': 129, '<?xml version=': 2, '>': 129, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '6381354', 'n_tokens_mistral': 1698, 'n_tokens_neox': 1587, 'n_words': 395}