<commit_before>'use strict';
/**
 * Created by tmkasun on 1/14/17.
 */

var request = require('superagent');
// var utils = require('./utils');

/**
 * This is an abstract parent class for all types of map services, This initialize the axios connection with base URI for
 * knnect APIs
 */
class MapService {
    /**
     * Create single instance of axios client to make connections with back end apis
     */
    constructor() {
        this.service_endpoint = "/apis/";
        this.baseURL = 'http://localhost:8000/apis';
        this.client = request;
        // this.client.domain = this.baseURL;
    }
}

/**
 * LK Stands for Last Known and LKState retrive the Last Know states of an object or get current states of all available
 * spatial objects
 */
class LKStates extends MapService {
    /**
     * Get all the spatial objects last know state from the persistent storage
     * @param callback {function} A function to call in the success call to the api
     * @returns {Promise} Always return an promise object which may chained the a callback method if given when invoking
     */
    getAll(callback = false) {
        var response = this.client.get(this.baseURL + '/lk_states');
        if (callback) {
            return response.then(callback);
        } else {<commit_msg>Change localhost url<commit_after>'use strict';
/**
 * Created by tmkasun on 1/14/17.
 */

var request = require('superagent');
// var utils = require('./utils');

/**
 * This is an abstract parent class for all types of map services, This initialize the axios connection with base URI for
 * knnect APIs
 */
class MapService {
    /**
     * Create single instance of axios client to make connections with back end apis
     */
    constructor() {
        this.service_endpoint = "/apis/";
        this.baseURL = 'http://geo.knnect.com/apis';
        this.client = request;
        // this.client.domain = this.baseURL;
    }
}

/**
 * LK Stands for Last Known and LKState retrive the Last Know states of an object or get current states of all available
 * spatial objects
 */
class LKStates extends MapService {
    /**
     * Get all the spatial objects last know state from the persistent storage
     * @param callback {function} A function to call in the success call to the api
     * @returns {Promise} Always return an promise object which may chained the a callback method if given when invoking
     */
    getAll(callback = false) {
        var response = this.client.get(this.baseURL + '/lk_states');
        if (callback) {
            return response.then(callback);
        } else {
{'fraction_non_alphanumeric': 0.09617612977983778, 'fraction_numerical': 0.005407493240633449, 'mean_word_length': 2.726618705035971, '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': '6033804', 'n_tokens_mistral': 703, 'n_tokens_neox': 686, 'n_words': 288}