<commit_before>var app = angular.module('smockinApp', ['ngRoute', 'ngAnimate', 'ngSanitize', 'ui.bootstrap']);

//
// Routes
app.config(function($routeProvider) {
    $routeProvider
        .when("/", {
            templateUrl : "dashboard.html",
            controller : "dashboardController"
        })
        .when("/dashboard", {
            templateUrl : "dashboard.html",
            controller : "dashboardController"
        })
        .when("/endpoint", {
            templateUrl : "endpoint_info.html",
            controller : "endpointInfoController"
        })
        .when("/help", {
            templateUrl : "help_section.html",
            controller : "helpSectionController"
        });
});


//
// Main Controller
app.controller('mainController', function($scope, $location, $http, $timeout, $uibModal, globalVars, restClient) {

    //
    // Labels
    $scope.toolsLabel = "Tools";
    $scope.helpLink = "Help"


    //
    // Buttons / Links
    $scope.httpClientLink = "Open HTTP Client";
    $scope.wsClientLink = "Open WebSocket Client";
    $scope.helpLink = "Help";


    //
    // Data Objects
    var httpClientState = null;

    //
    // Functions
    $scope.doOpenHttpClient = function() {

      var modalInstance = $uibModal.open({
          templateUrl: 'http_client.html',
          controller: 'httpClientController',
          resolve: {
            data: function () {
              return {<commit_msg>Changed WS client heading in drop down<commit_after>var app = angular.module('smockinApp', ['ngRoute', 'ngAnimate', 'ngSanitize', 'ui.bootstrap']);

//
// Routes
app.config(function($routeProvider) {
    $routeProvider
        .when("/", {
            templateUrl : "dashboard.html",
            controller : "dashboardController"
        })
        .when("/dashboard", {
            templateUrl : "dashboard.html",
            controller : "dashboardController"
        })
        .when("/endpoint", {
            templateUrl : "endpoint_info.html",
            controller : "endpointInfoController"
        })
        .when("/help", {
            templateUrl : "help_section.html",
            controller : "helpSectionController"
        });
});


//
// Main Controller
app.controller('mainController', function($scope, $location, $http, $timeout, $uibModal, globalVars, restClient) {

    //
    // Labels
    $scope.toolsLabel = "Tools";
    $scope.helpLink = "Help"


    //
    // Buttons / Links
    $scope.httpClientLink = "Open HTTP Client";
    $scope.wsClientLink = "Open WS Client";
    $scope.helpLink = "Help";


    //
    // Data Objects
    var httpClientState = null;

    //
    // Functions
    $scope.doOpenHttpClient = function() {

      var modalInstance = $uibModal.open({
          templateUrl: 'http_client.html',
          controller: 'httpClientController',
          resolve: {
            data: function () {
              return {
{'fraction_non_alphanumeric': 0.14167812929848694, 'fraction_numerical': 0.0, 'mean_word_length': 2.097976570820021, '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': '4222063', 'n_tokens_mistral': 814, 'n_tokens_neox': 803, 'n_words': 158}