<commit_before>'use strict';

/**
 * @ngdoc service
 * @name oncokb.DatabaseConnector
 * @description
 * # DatabaseConnector
 * Factory in the oncokb.
 */
angular.module('oncokbApp')
    .factory('DatabaseConnector', [
        '$timeout',
        '$q',
        'config',
        'Gene',
        'Alteration',
        'TumorType',
        'Evidence',
        'SearchVariant',
        'GenerateDoc',
        'DriveOncokbInfo',
        'DriveAnnotation',
        'SendEmail',
        'DataSummary',
        'GeneStatus',
        'ServerUtils',
        'Cache',
        'OncoTree',
        'InternalAccess',
        'ApiUtils',
        function($timeout,
                 $q,
                 config,
                 Gene,
                 Alteration,
                 TumorType,
                 Evidence,
                 SearchVariant,
                 GenerateDoc,
                 DriveOncokbInfo,
                 DriveAnnotation,
                 SendEmail,
                 DataSummary,
                 GeneStatus,
                 ServerUtils,
                 Cache,
                 OncoTree,
                 InternalAccess,
                 ApiUtils
        ) {

            var numOfLocks = {},
                data = {};

            //When running locally, set this to true, all servlet will read data from relative files.
            var dataFromFile = config.testing || false;

            function getAllGene(callback, timestamp) {
                if (dataFromFile) {
                    Gene.getFromFile()
                        .success(function(data) {
                            if (timestamp) {
                                numOfLocks[timestamp]--;
                            }
                            callback(data);
                        })<commit_msg>Remove unavailable module<commit_after>'use strict';

/**
 * @ngdoc service
 * @name oncokb.DatabaseConnector
 * @description
 * # DatabaseConnector
 * Factory in the oncokb.
 */
angular.module('oncokbApp')
    .factory('DatabaseConnector', [
        '$timeout',
        '$q',
        'config',
        'Gene',
        'Alteration',
        'TumorType',
        'Evidence',
        'SearchVariant',
        'GenerateDoc',
        'DriveOncokbInfo',
        'DriveAnnotation',
        'SendEmail',
        'DataSummary',
        'ServerUtils',
        'Cache',
        'OncoTree',
        'InternalAccess',
        'ApiUtils',
        function($timeout,
                 $q,
                 config,
                 Gene,
                 Alteration,
                 TumorType,
                 Evidence,
                 SearchVariant,
                 GenerateDoc,
                 DriveOncokbInfo,
                 DriveAnnotation,
                 SendEmail,
                 DataSummary,
                 ServerUtils,
                 Cache,
                 OncoTree,
                 InternalAccess,
                 ApiUtils
        ) {

            var numOfLocks = {},
                data = {};

            //When running locally, set this to true, all servlet will read data from relative files.
            var dataFromFile = config.testing || false;

            function getAllGene(callback, timestamp) {
                if (dataFromFile) {
                    Gene.getFromFile()
                        .success(function(data) {
                            if (timestamp) {
                                numOfLocks[timestamp]--;
                            }
                            callback(data);
                        })
{'fraction_non_alphanumeric': 0.09047215154085383, 'fraction_numerical': 0.0, 'mean_word_length': 1.0545876887340302, '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': '4816678', 'n_tokens_mistral': 848, 'n_tokens_neox': 813, 'n_words': 170}