<commit_before>'use strict';

angular.module('hornbyApp')
  .controller('HornbyAdminCtrl', function ($scope, $http, socket, $log) {

    var refreshMeasurements = function () {
      $http.get('/api/measurements').success(function(measurements) {
        $scope.measurements = measurements;
        $log.log("measurements: ", measurements);
        socket.syncUpdates('measurement', $scope.measurements);
      })
    };

    $http.get('/api/measurements').success(function(measurements) {
      $scope.measurements = measurements;
      $log.log("measurements: ", measurements);
      socket.syncUpdates('measurement', $scope.measurements);
    });

    $scope.saveMeasurement = function (measurement) {
      $http.put('/api/measurements/' + measurement.uid, measurement);
      refreshMeasurements();
    };

    $scope.sendMeasurement = function (measurement) {
      var copyMeasurement = angular.copy(measurement);<commit_msg>Disable admin page auto refresh<commit_after>'use strict';

angular.module('hornbyApp')
  .controller('HornbyAdminCtrl', function ($scope, $http, socket, $log) {

    var refreshMeasurements = function () {
      $http.get('/api/measurements').success(function(measurements) {
        $scope.measurements = measurements;
        $log.log("measurements: ", measurements);
        //socket.syncUpdates('measurement', $scope.measurements);
      })
    };

    $http.get('/api/measurements').success(function(measurements) {
      $scope.measurements = measurements;
      $log.log("measurements: ", measurements);
      socket.syncUpdates('measurement', $scope.measurements);
    });

    $scope.saveMeasurement = function (measurement) {
      $http.put('/api/measurements/' + measurement.uid, measurement);
      refreshMeasurements();
    };

    $scope.sendMeasurement = function (measurement) {
      var copyMeasurement = angular.copy(measurement);
{'fraction_non_alphanumeric': 0.15074309978768577, 'fraction_numerical': 0.0, 'mean_word_length': 3.845758354755784, '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': '1882308', 'n_tokens_mistral': 526, 'n_tokens_neox': 517, 'n_words': 81}