<commit_before>"use strict";

(function () {
  var fact = angular.module('SocketIO', []);

  fact.factory('socket', function ($rootScope) {
    var socket = io.connect('http://localhost:8080');
    return {
      on: function (eventName, callback) {
        socket.on(eventName, function () {
          var args = arguments;
          $rootScope.$apply(function () {
            callback.apply(socket, args);
          });
        });
      },
      emit: function (eventName, data, callback) {
        socket.emit(eventName, data, function () {
          var args = arguments;
          $rootScope.$apply(function () {
            if (callback) {
              callback.apply(socket, args);
            }
          });
        });<commit_msg>allowing for secure html<commit_after>"use strict";

(function () {
  var fact = angular.module('SocketIO', []);

  fact.factory('socket', function ($rootScope) {
    var socket = io.connect('http://localhost:8080', {secure: true});
    return {
      on: function (eventName, callback) {
        socket.on(eventName, function () {
          var args = arguments;
          $rootScope.$apply(function () {
            callback.apply(socket, args);
          });
        });
      },
      emit: function (eventName, data, callback) {
        socket.emit(eventName, data, function () {
          var args = arguments;
          $rootScope.$apply(function () {
            if (callback) {
              callback.apply(socket, args);
            }
          });
        });
{'fraction_non_alphanumeric': 0.14937210839391937, 'fraction_numerical': 0.005287508261731659, 'mean_word_length': 1.9803149606299213, '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': '4469680', 'n_tokens_mistral': 412, 'n_tokens_neox': 403, 'n_words': 87}