<commit_before>package com.jasonette.seed.Action;

import android.content.Context;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.util.Log;

import com.jasonette.seed.Helper.JasonHelper;

import org.json.JSONObject;

public class JasonGeoAction {
    public void get(final JSONObject action, JSONObject data, final JSONObject event, final Context context) {
        try {
            LocationManager locationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);
            LocationListener locationListener = new LocationListener() {
                public void onLocationChanged(Location location) {
                    try {
                        JSONObject ret = new JSONObject();
                        String val = String.format("%f,%f", location.getLatitude(), location.getLongitude());
                        ret.put("coord", val);
                        ret.put("value", val);
                        JasonHelper.next("success", action, ret, event, context);
                    } catch (Exception e) {
                        Log.d("Error", e.toString());
                    }
                }

                public void onStatusChanged(String provider, int status, Bundle extras) {
                }

                public void onProviderEnabled(String provider) {
                }

                public void onProviderDisabled(String provider) {
                }
            };
            locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener);
        } catch (Exception e) {

        }
    }
}<commit_msg>finish $geo.get<commit_after>package com.jasonette.seed.Action;

import android.content.Context;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.os.Looper;
import android.util.Log;

import com.jasonette.seed.Helper.JasonHelper;

import org.json.JSONObject;

public class JasonGeoAction {
    public void get(final JSONObject action, JSONObject data, final JSONObject event, final Context context) {
        try {
            LocationManager locationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);
            LocationListener locationListener = new LocationListener() {
                public void onLocationChanged(Location location) {
                    try {
                        JSONObject ret = new JSONObject();
                        String val = String.format("%f,%f", location.getLatitude(), location.getLongitude());
                        ret.put("coord", val);
                        ret.put("value", val);
                        JasonHelper.next("success", action, ret, event, context);
                    } catch (Exception e) {
                        Log.d("Error", e.toString());
                    }
                }

                public void onStatusChanged(String provider, int status, Bundle extras) {
                }

                public void onProviderEnabled(String provider) {
                }

                public void onProviderDisabled(String provider) {
                }
            };
            locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener, Looper.getMainLooper());
        } catch (Exception e) {
            Log.d("Error", e.toString());
        }
    }
}
{'fraction_non_alphanumeric': 0.09065075305484513, 'fraction_numerical': 0.0011366865586814436, 'mean_word_length': 2.0136986301369864, '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': '3435094', 'n_tokens_mistral': 853, 'n_tokens_neox': 800, 'n_words': 194}