<commit_before>package io.goodway.navitia_android;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by antoine on 19/12/15.
 */
public class UserLocation extends Address implements Parcelable{

    private boolean shared;

    public UserLocation(String name, double lat, double lon, boolean shared){
        this.name = name;
        this.lat = lat;
        this.lon = lon;
        this.shared = shared;
    }

    public UserLocation(Parcel in){
        super(in);
        shared = in.readByte() != 0;
    }

    public boolean shared(){return shared;}
    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeByte((byte) (shared ? 1 : 0));
    }

    public static final Creator CREATOR =
            new Creator() {

                @Override
                public Object createFromParcel(Parcel in) {
                    return new UserLocation(in);
                }<commit_msg>fixed user location physical and user given name adress<commit_after>package io.goodway.navitia_android;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by antoine on 19/12/15.
 */
public class UserLocation extends Address implements Parcelable{

    private boolean shared;
    private String a_name;
    // a_name is the name given by the user to the address
    // name is the name of the address itself
    public UserLocation(String name, String a_name, double lat, double lon, boolean shared){
        this.name = name;
        this.a_name = a_name;
        this.lat = lat;
        this.lon = lon;
        this.shared = shared;
    }

    public UserLocation(Address address, String name, boolean shared){
        this.a_name = address.name;
        this.name = name;
        this.lat = address.lat;
        this.lon = address.lon;
        this.shared = shared;
    }

    public String getA_name(){return a_name;}

    public UserLocation(Parcel in){
        super(in);
        shared = in.readByte() != 0;
    }

    public boolean shared(){return shared;}
    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeByte((byte) (shared ? 1 : 0));
    }

    public static final Creator CREATOR =
            new Creator() {

                @Override
                public Object createFromParcel(Parcel in) {
                    return new UserLocation(in);
                }
{'fraction_non_alphanumeric': 0.09175801867641088, 'fraction_numerical': 0.007308160779537149, 'mean_word_length': 2.2209150326797387, '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': '6024095', 'n_tokens_mistral': 719, 'n_tokens_neox': 676, 'n_words': 209}