<commit_before>var config = {
    apiKey: "<KEY>",
    authDomain: "opendatabase-cd4b1.firebaseapp.com",
    databaseURL: "https://opendatabase-cd4b1.firebaseio.com",
    projectId: "opendatabase-cd4b1",
    storageBucket: "opendatabase-cd4b1.appspot.com",
    messagingSenderId: "155917647800"
};
firebase.initializeApp(config);

angular.module('datasourcesApp', ["firebase"])

    .controller('mainController', function($scope, $firebaseArray) {
        const rootRef = firebase.database().ref().child("datasources");

        $scope.datasources = $firebaseArray(rootRef);

        $scope.sortType = 'name'; // set the default sort type
        $scope.sortReverse = false; // set the default sort order
        $scope.searchTerm = ''; // set the default search/filter term
        // maybe use own small database that includes all the categories here instead?
        $scope.categoryFilter = new Set(["Government", "Health", "Education", "Facts"]);

        $scope.showData = function(datasource) {
            return $scope.categoryFilter.has(datasource.category) &&
                (datasource.name.includes($scope.searchTerm) ||
                    datasource.description.includes($scope.searchTerm) ||
                    datasource.link.includes($scope.searchTerm));
        };

        $scope.toggleCategory = function($event, category) {<commit_msg>Add "Research Output" as category<commit_after>var config = {
    apiKey: "<KEY>",
    authDomain: "opendatabase-cd4b1.firebaseapp.com",
    databaseURL: "https://opendatabase-cd4b1.firebaseio.com",
    projectId: "opendatabase-cd4b1",
    storageBucket: "opendatabase-cd4b1.appspot.com",
    messagingSenderId: "155917647800"
};
firebase.initializeApp(config);

angular.module('datasourcesApp', ["firebase"])

    .controller('mainController', function($scope, $firebaseArray) {
        const rootRef = firebase.database().ref().child("datasources");

        $scope.datasources = $firebaseArray(rootRef);

        $scope.sortType = 'name'; // set the default sort type
        $scope.sortReverse = false; // set the default sort order
        $scope.searchTerm = ''; // set the default search/filter term
        // maybe use own small database that includes all the categories here instead?
        $scope.categoryFilter = new Set(["Government", "Research Output", "Health", "Education", "Facts"]);

        $scope.showData = function(datasource) {
            return $scope.categoryFilter.has(datasource.category) &&
                (datasource.name.includes($scope.searchTerm) ||
                    datasource.description.includes($scope.searchTerm) ||
                    datasource.link.includes($scope.searchTerm));
        };

        $scope.toggleCategory = function($event, category) {
{'fraction_non_alphanumeric': 0.1353901996370236, 'fraction_numerical': 0.014519056261343012, 'mean_word_length': 3.22052067381317, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '3155655', 'n_tokens_mistral': 829, 'n_tokens_neox': 772, 'n_words': 152}