<commit_before>/**
 * Created by nightpaws on 10/02/2016.
 */
//Interface Factory Method
angular.module('interface')
    .factory('interface.request.factory', ['$http', 'config', function($http, config){

        var requestHelper = {};

        requestHelper.getInterfaceInfo = function(){

            var url =config.API_URL +  '/interface';

            //should maybe be using https
            return $http({
                method: 'GET',
                url: url
            })

        };

        return requestHelper;

    }]);<commit_msg>creating basic factory method for interface<commit_after>/**
 * Created by nightpaws on 10/02/2016.
 */
//Interface Factory Method
angular.module('interface')
    .factory('interface.request.factory', ['$http', 'config', function ($http, config) {

        var requestHelper = {};

        requestHelper.getInterfaceInfo = function () {

            var url = config.API_URL + '/interface';

            //should maybe be using https
            return $http({
                method: 'GET',
                url: url
            })
        };

        requestHelper.sendMessage = function (subject, message, years) {
            var url = config.API_URL + '/interface/post/';

            return $http({
                method: 'POST',
                url: url,
                sub: subject,
                msg: message,
                1: 1,
                2: 2,
                3: 3,
                4: 4,
                5: 5,
                6: 6
            })
        };

        return requestHelper;

    }]);
{'fraction_non_alphanumeric': 0.12237093690248566, 'fraction_numerical': 0.017845761631612493, 'mean_word_length': 1.434108527131783, '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': '6718350', 'n_tokens_mistral': 427, 'n_tokens_neox': 385, 'n_words': 109}