<commit_before>package io.github.data4all.model;

import io.github.data4all.model.drawing.Point;

import java.util.Calendar;

import android.location.Location;

/**
 * A model for the postion of the device. It includes the location and the
 * rotation of the device.
 * 
 * @author sbollen
 *
 */

public class DevicePosition {

    // Location of the device (GPS)
    Location location;

    // ACCELEROMETER Sensor Values
    private float[] accelValues = new float[3];
    // MAGNETIC_FIELD Sensor Values
    private float[] magValues = new float[3];

    // Actual time when the data was recorded
    private long timestamp;
    
    public DevicePosition() {
        
    }

    public DevicePosition(Location location, float[] accelValues,
            float[] magValues, long timestamp) {
        this.location = location;
        this.accelValues = accelValues;
        this.magValues = magValues;
        this.timestamp = timestamp;

    }
    
    public DevicePosition(long timestamp,float xAccel,float yAccel,float zAccel,
    		float azimuth,float pitch,float roll){
    	this.timestamp = timestamp;
    	xAccel= accelValues[0];
    	yAccel= accelValues[1];
    	zAccel = accelValues[2];
    	azimuth = magValues[0];
    	pitch = magValues[1];
    	roll = magValues[2];
    }

    public Location getLocation() {
        return location;
    }

    public void setLocation(Location location) {
        this.location = location;
    }

    public float[] getAccelValues() {
        return accelValues;
    }

    public void setAccelValues(float[] accelValues) {
        this.accelValues = accelValues;
    }

    public float[] getMagValues() {
        return magValues;
    }

    public void setMagValues(float[] magValues) {
        this.magValues = magValues;
    }

    public boolean equals(Object o) {
        return this == o
                || ((o instanceof DevicePosition)
                        && location == ((DevicePosition) o).getLocation()
                        && accelValues == ((DevicePosition) o).getAccelValues()
                        && magValues == ((DevicePosition) o).getMagValues());
    }
}
<commit_msg>added a model for saving Geomagnetic data(azimuth,pitch,roll)<commit_after>package io.github.data4all.model;

/**
 * A model for the postion of the device. It includes the location and the
 * rotation of the device.
 * 
 * @author sbollen, Steeve
 * 
 */

public class DevicePosition {
 
	
	//rotation around the Z axis
	private float azimuth;
   // rotation around the X axis	
	private float pitch;
	// rotation around Y axis
	private float roll;
	
	private long timestamp;

	public DevicePosition(long timestamp, float azimuth, float pitch, float roll) {
		this.timestamp = timestamp;
		this.azimuth = azimuth;
		this.pitch = pitch;
		this.roll = roll;

	}
    
	//getter and setter Methoden
	
	public float getAzimuth() {
		return azimuth;
	}

	public void setAzimuth(float azimuth) {
		this.azimuth = azimuth;
	}

	public float getPitch() {
		return pitch;
	}

	public void setPitch(float pitch) {
		this.pitch = pitch;
	}

	public float getRoll() {
		return roll;
	}

	public void setRoll(float roll) {
		this.roll = roll;
	}

	public long getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}

}

{'fraction_non_alphanumeric': 0.09595654797827399, 'fraction_numerical': 0.0033192516596258297, 'mean_word_length': 2.6751662971175167, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '135091', 'n_tokens_mistral': 1040, 'n_tokens_neox': 953, 'n_words': 282}