<commit_before>module Jetty {
  export function JettyConsoleController($scope, $location:ng.ILocationService, jolokia) {

    // TODO: JMX urls same for different jetty versions?

    var theContexts = jolokia.getAttribute("org.mortbay.jetty.plugin:type=jettywebappcontext,*");
    $scope.theContexts = theContexts;

    var theServer = jolokia.getAttribute("org.eclipse.jetty.server:type=server,id=0");
    $scope.theServer = theServer;

    $scope.startupTime = new Date(theServer.startupTime);

    $scope.webAppOperation = function webAppOperation(name,operation) {
      jolokia.execute("org.mortbay.jetty.plugin:type=jettywebappcontext,name="+name+",id=0",operation);
    }

    $scope.webServerOperation = function webServerOperation(operation) {
      jolokia.execute("org.eclipse.jetty.server:type=server,id=0",operation);
    }

    $scope.isEmpty = function isEmpty(map) {
      return Object.keys(map).length == 0;
    }
  }
}<commit_msg>avoid compiler warning on OS X<commit_after>module Jetty {
  export function JettyConsoleController($scope, $location:ng.ILocationService, jolokia) {

    // TODO: JMX urls same for different jetty versions?

    $scope.theContexts = jolokia.getAttribute("org.mortbay.jetty.plugin:type=jettywebappcontext,*");

    var theServer = jolokia.getAttribute("org.eclipse.jetty.server:type=server,id=0");
    $scope.theServer = theServer;

    $scope.startupTime = new Date(theServer.startupTime);

    $scope.webAppOperation = function webAppOperation(name,operation) {
      jolokia.execute("org.mortbay.jetty.plugin:type=jettywebappcontext,name="+name+",id=0",operation);
    };

    $scope.webServerOperation = function webServerOperation(operation) {
      jolokia.execute("org.eclipse.jetty.server:type=server,id=0",operation);
    };

    $scope.isEmpty = function isEmpty(map) {
      return Object.keys(map).length === 0;
    }
  }
}
{'fraction_non_alphanumeric': 0.13315649867374005, 'fraction_numerical': 0.004244031830238726, 'mean_word_length': 4.715151515151515, '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': '1458335', 'n_tokens_mistral': 626, 'n_tokens_neox': 595, 'n_words': 86}