<commit_before>package com.porrux.threat;

import android.location.Address;
import android.location.Geocoder;
import android.location.Location;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.AppBarLayout;
import android.support.design.widget.CollapsingToolbarLayout;
import android.support.design.widget.CoordinatorLayout;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.View;
import android.widget.TextView;

import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.location.LocationRequest;
import com.google.android.gms.maps.GoogleMap;
import com.porrux.threat.models.Event;

import java.io.IOException;
import java.io.Serializable;
import java.util.List;
import java.util.Locale;

public class ThreatDetailsActivity extends AppCompatActivity {

    public TextView textViewAddress;
    public Geocoder geocoder;
    public List<Address> addresses;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.threat_details);

        Event event = (Event) getIntent().getSerializableExtra("Event");

        textViewAddress = (TextView) findViewById(R.id.details_adress);

        geocoder = new Geocoder(this, Locale.getDefault());

        try {
            addresses = geocoder.getFromLocation(event.getLocation().getX(), event.getLocation().getY(), 1);
        } catch (IOException e) {
            e.printStackTrace();
        }

    }

}<commit_msg>details activity<commit_after>package com.porrux.threat;

import android.location.Address;
import android.location.Geocoder;
import android.location.Location;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.AppBarLayout;
import android.support.design.widget.CollapsingToolbarLayout;
import android.support.design.widget.CoordinatorLayout;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.View;
import android.widget.TextView;

import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.location.LocationRequest;
import com.google.android.gms.maps.GoogleMap;
import com.porrux.threat.models.Event;

import java.io.IOException;
import java.io.Serializable;
import java.util.List;
import java.util.Locale;

public class ThreatDetailsActivity extends AppCompatActivity {

    public TextView textViewAddress;
    public TextView textViewDate;
    public TextView textViewDescription;
    public Geocoder geocoder;
    public List<Address> addresses;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.threat_details);

        Event event = (Event) getIntent().getSerializableExtra("Event");

        textViewAddress = (TextView) findViewById(R.id.details_adress);

        geocoder = new Geocoder(this, Locale.getDefault());

        try {
            addresses = geocoder.getFromLocation(event.getLocation().getX(), event.getLocation().getY(), 1);

            textViewAddress.setText("Address : " + addresses.get(0).getAddressLine(0) + " " + addresses.get(0).getAddressLine(1));
        } catch (IOException e) {
            e.printStackTrace();
        }


        textViewDate = (TextView) findViewById(R.id.date_details);
        textViewDate.setText("Date : " + event.getTimestamp());

        textViewDescription = (TextView) findViewById(R.id.detailsdescription);
        textViewDescription.setText(event.getDescription());



    }

}
{'fraction_non_alphanumeric': 0.10584958217270195, 'fraction_numerical': 0.0025322866548493288, 'mean_word_length': 4.433287482806052, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4440240', 'n_tokens_mistral': 1127, 'n_tokens_neox': 1095, 'n_words': 197}