<commit_before>/**
 * Created by ryancornillie on 1/21/17.
 */


angular.module('myApp.officeService', ['ngWebSocket'])

    .factory("OfficeService", function ($http, $q, API, $websocket) {

        var service = {};

        service.dataLoaded = false;

        var dataStream = $websocket('ws://localhost:3000');

        service.getOffices = function () {
            var deferred = $q.defer();

            $http.get(API + '/offices').then(function success(response) {<commit_msg>updated web sockets<commit_after>/**
 * Created by ryancornillie on 1/21/17.
 */


angular.module('myApp.officeService', ['ngWebSocket'])

    .factory("OfficeService", function ($http, $q, API, $websocket) {

        var service = {};

        service.dataLoaded = false;

        var dataStream = $websocket('ws://localhost:3333/test');

        service.getOffices = function () {
            var deferred = $q.defer();

            $http.get(API + '/offices').then(function success(response) {
{'fraction_non_alphanumeric': 0.1620795107033639, 'fraction_numerical': 0.01834862385321101, 'mean_word_length': 2.806201550387597, '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': '2257946', 'n_tokens_mistral': 320, 'n_tokens_neox': 282, 'n_words': 60}