<commit_before>﻿function PersonController($scope, $http) {
    $scope.currentName;
    $scope.currentMinDateOfBirth;
    $scope.name;
    $scope.minDateOfBirth;
    $scope.sortExpression = 'Name';
    $scope.startRowIndex = 0;
    $scope.maximumRows = 10;
    $scope.totalRowCount;
    $scope.people;
    $scope.dateError = false;
    $scope.listing = true;
    $scope.person = {};
    $scope.getList = function () {
        var url = '/WebApiList/' + $scope.startRowIndex + '/'
            + $scope.maximumRows + '/' + encodeURI($scope.sortExpression);
        var prefix = '?';
        if ($scope.currentName) {
            url += prefix + 'name=' + encodeURI($scope.currentName);
            prefix = '&'
        }
        if ($scope.currentMinDateOfBirth)
            url += prefix + 'minDateOfBirth=' + encodeURI($scope.currentMinDateOfBirth);
        $http.get(url)<commit_msg>Changed to encodeURIComponent because encoding URL parameters<commit_after>﻿function PersonController($scope, $http) {
    $scope.currentName;
    $scope.currentMinDateOfBirth;
    $scope.name;
    $scope.minDateOfBirth;
    $scope.sortExpression = 'Name';
    $scope.startRowIndex = 0;
    $scope.maximumRows = 10;
    $scope.totalRowCount;
    $scope.people;
    $scope.dateError = false;
    $scope.listing = true;
    $scope.person = {};
    $scope.getList = function () {
        var url = '/WebApiList/' + $scope.startRowIndex + '/'
            + $scope.maximumRows + '/' + encodeURIComponent($scope.sortExpression);
        var prefix = '?';
        if ($scope.currentName) {
            url += prefix + 'name=' + encodeURIComponent($scope.currentName);
            prefix = '&'
        }
        if ($scope.currentMinDateOfBirth)
            url += prefix + 'minDateOfBirth=' + sIComponent($scope.currentMinDateOfBirth);
        $http.get(url)
{'fraction_non_alphanumeric': 0.14612868047982552, 'fraction_numerical': 0.003271537622682661, 'mean_word_length': 2.662674650698603, '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': '5375733', 'n_tokens_mistral': 578, 'n_tokens_neox': 571, 'n_words': 93}