<commit_before>package com.andela.motustracker.manager;

import android.database.Cursor;

import com.andela.motustracker.dbParser.DbHandler;
import com.andela.motustracker.model.LocationData;

import java.util.ArrayList;

/**
 * Created by Spykins on 06/04/16.
 */
public class DbManager {
    private static DbHandler dbHandler;

    public DbManager() {
        dbHandler = new DbHandler();

    }

    public void insertIntoDb(LocationData locationData) {
        dbHandler.insertLocationInDb(locationData);
    }

    public Cursor readDataFromDb() {
       return dbHandler.readLocationFromDb();
    }
}<commit_msg>[Starts #116531037] Creates a method in the DbManager to fetch location data<commit_after>package com.andela.motustracker.manager;

import android.database.Cursor;

import com.andela.motustracker.dbParser.DbHandler;
import com.andela.motustracker.model.LocationData;

import java.lang.reflect.Array;
import java.util.ArrayList;

/**
 * Created by Spykins on 06/04/16.
 */
public class DbManager {
    private static DbHandler dbHandler;

    public DbManager() {
        dbHandler = new DbHandler();

    }

    public void insertIntoDb(LocationData locationData) {
        dbHandler.insertLocationInDb(locationData);
    }

    public ArrayList<LocationData> readDataFromDb() {
       return dbHandler.readLocationFromDb();
    }

    public ArrayList<LocationData> readListBaseOnLocation() {
        return dbHandler.readListBaseOnLocation();
    }
}
{'fraction_non_alphanumeric': 0.09307065217391304, 'fraction_numerical': 0.014266304347826086, 'mean_word_length': 3.8453947368421053, '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': '6078837', 'n_tokens_mistral': 458, 'n_tokens_neox': 422, 'n_words': 92}