<commit_before>angular
    .module('app.home')
    .controller('HomeController', HomeController);

// HomeController.$inject = ['pageTrials', 'allTrials', 'trialService', 'searchUrlService', '$timeout', 'isEmptyFilter'];
HomeController.$inject = ['pageTrials', 'trialService', 'searchUrlService','$timeout', 'isEmptyFilter', 'valReplaceFilter'];

// function HomeController(pageTrials, allTrials, trialService, searchUrlService, $timeout, isEmptyFilter) {
function HomeController(pageTrials, trialService, searchUrlService, $timeout, isEmptyFilter, valReplaceFilter) {
    var vm = this;
    vm.results = [];
    vm.searched = false;
    vm.filterData = 1;
    vm.selectOptions = false;
    vm.searching = false;
    vm.searchBtnClicked = false;
    vm.trialSelected = false;
    vm.disableInputField = true;
    vm.reverse = false;
    vm.searchingTable = false;
    vm.selected = {};
    vm.sortColumn = 'plot_id';
    vm.replaceFilterVal = {true: "Plus", false: "Minus"}
    vm.replaceValue = {Plus: true, Minus: false};
    vm.pagination = {
        offset: 0,
        maxSize: 5,
        pageSize: 5,
        totalResults: 0,
        currentPage: 1,
        totalPages: 0,
        pageOptions: {psize: [5, 10, 25, 50]}
    };
    vm.pageParams = {offset: vm.pagination.offset, limit: vm.pagination.pageSize};
    vm.baseURL = "trials/treatment/";
    vm.filterSelectOptions = ['trial_id', 'observation', 'year', 'season', 'tillage_practice', 'farm_yard_manure', 'farm_residue', 'nitrogen_treatment', 'phosphate_treatment'];
    vm.filterTableData = ['trial_id', 'plot_id', 'sub_plot_id', 'observation', 'year', 'tillage_practice', 'farm_yard_manure', 'farm_residue', 'crops_grown', 'nitrogen_treatment', 'phosphate_treatment', 'short_rains', 'long_rains'];
    vm.baseURLs = {
        trial_id: 'trials/',
        observation: 'trials/yield/',
        year: 'trials/yield/',
        season: 'trials/yield/',
        tillage_practice: 'trials/treatment/',
        farm_yard_manure: 'trials/treatment/',
        farm_residue: 'trials/treatment/',
        nitrogen_treatment: 'trials/treatment/',
        phosphate_treatment: 'trials/treatment/'
    };<commit_msg>Removed arguments<commit_after>angular
    .module('app.home')
    .controller('HomeController', HomeController);

// HomeController.$inject = ['pageTrials', 'allTrials', 'trialService', 'searchUrlService', '$timeout', 'isEmptyFilter'];
HomeController.$inject = ['pageTrials', 'trialService', 'searchUrlService','$timeout', 'isEmptyFilter'];

// function HomeController(pageTrials, allTrials, trialService, searchUrlService, $timeout, isEmptyFilter) {
function HomeController(pageTrials, trialService, searchUrlService, $timeout, isEmptyFilter) {
    var vm = this;
    vm.results = [];
    vm.searched = false;
    vm.filterData = 1;
    vm.selectOptions = false;
    vm.searching = false;
    vm.searchBtnClicked = false;
    vm.trialSelected = false;
    vm.disableInputField = true;
    vm.reverse = false;
    vm.searchingTable = false;
    vm.selected = {};
    vm.sortColumn = 'plot_id';
    vm.replaceFilterVal = {true: "Plus", false: "Minus"};
    vm.replaceValue = {Plus: true, Minus: false};
    vm.pagination = {
        offset: 0,
        maxSize: 5,
        pageSize: 5,
        totalResults: 0,
        currentPage: 1,
        totalPages: 0,
        pageOptions: {psize: [5, 10, 25, 50]}
    };
    vm.pageParams = {offset: vm.pagination.offset, limit: vm.pagination.pageSize};
    vm.baseURL = "trials/treatment/";
    vm.filterSelectOptions = ['trial_id', 'observation', 'year', 'season', 'tillage_practice', 'farm_yard_manure', 'farm_residue', 'nitrogen_treatment', 'phosphate_treatment'];
    vm.filterTableData = ['trial_id', 'plot_id', 'sub_plot_id', 'observation', 'year', 'tillage_practice', 'farm_yard_manure', 'farm_residue', 'crops_grown', 'nitrogen_treatment', 'phosphate_treatment', 'short_rains', 'long_rains'];
    vm.baseURLs = {
        trial_id: 'trials/',
        observation: 'trials/yield/',
        year: 'trials/yield/',
        season: 'trials/yield/',
        tillage_practice: 'trials/treatment/',
        farm_yard_manure: 'trials/treatment/',
        farm_residue: 'trials/treatment/',
        nitrogen_treatment: 'trials/treatment/',
        phosphate_treatment: 'trials/treatment/'
    };
{'fraction_non_alphanumeric': 0.1505001163061177, 'fraction_numerical': 0.0065131425913003025, 'mean_word_length': 3.7884187082405347, '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': '2554423', 'n_tokens_mistral': 1489, 'n_tokens_neox': 1369, 'n_words': 269}