<commit_before>'use strict';

/* Controllers */
var recordControllers = angular.module('myApp.recordControllers', []);

recordControllers.controller('recordCtrl', ['$scope', '$http', '_',
  function($scope, $http, _) {
    // Initialize
    $scope.distance = '25m';
    $scope.style = '自由形';

    $scope.submit = function() {
      let config = {
        params: {}
      };
      if ($scope.name && $scope.name.length > 0) {
        config.params.name = $scope.name;
      }
      if ($scope.distance != '指定なし') {
        config.params.distance = $scope.distance;
      }
      if ($scope.style != '指定なし') {
        config.params.style = $scope.style;
      }
      if ($scope.name) {
        $http.get('http://localhost:3000/db', config)<commit_msg>Use relative path for db REST API access<commit_after>'use strict';

/* Controllers */
var recordControllers = angular.module('myApp.recordControllers', []);

recordControllers.controller('recordCtrl', ['$scope', '$http', '_',
  function($scope, $http, _) {
    // Initialize
    $scope.distance = '25m';
    $scope.style = '自由形';

    $scope.submit = function() {
      let config = {
        params: {}
      };
      if ($scope.name && $scope.name.length > 0) {
        config.params.name = $scope.name;
      }
      if ($scope.distance != '指定なし') {
        config.params.distance = $scope.distance;
      }
      if ($scope.style != '指定なし') {
        config.params.style = $scope.style;
      }
      if ($scope.name) {
        $http.get('/db', config)
{'fraction_non_alphanumeric': 0.1816976127320955, 'fraction_numerical': 0.006631299734748011, 'mean_word_length': 2.4769585253456223, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '463844', 'n_tokens_mistral': 494, 'n_tokens_neox': 492, 'n_words': 88}