<commit_before>'use strict';

function FakeDatabaseService() {

}

module.exports = FakeDatabaseService;

FakeDatabaseService.prototype = {
    run: function(query, callback) {
        return callback(null, {});
    },

    createTable: function(targetTableName, query, callback) {
        return callback(null, {});
    },

    createTableIfNotExists: function(targetTableName, outputQuery, callback) {
        return callback(null, true);
    },

    setUpdatedAtForSources: function(analysis, callback) {
        return callback(null);
    },

    registerAnalysisInCatalog: function(analysis, callback) {
        return callback(null);
    },

    queueAnalysisOperations: function(analysis, callback) {
        return callback(null);
    },

    trackAnalysis: function(analysis, callback) {
        return callback(null);
    },

    getColumnNames: function(query, callback) {
        return callback(null, []);
    },

    getColumns: function(query, callback) {
        return callback(null, []);
    },

    enqueue: function(query, callback) {
        return callback(null, {status: 'ok'});
    },

    registerNodesInCatalog: function(nodes, callback) {
        return callback(null);
    },

    trackNode: function(node, callback) {
        return callback(null);
    }
};<commit_msg>Match Database service interface<commit_after>'use strict';

function FakeDatabaseService() {

}

module.exports = FakeDatabaseService;

FakeDatabaseService.prototype = {
    run: function(query, callback) {
        return callback(null, {});
    },

    createTable: function(targetTableName, query, callback) {
        return callback(null, {});
    },

    createTableIfNotExists: function(targetTableName, outputQuery, callback) {
        return callback(null, true);
    },

    registerAnalysisInCatalog: function(analysis, callback) {
        return callback(null);
    },

    getLastUpdatedTimeFromAffectedTables: function(node, skip, callback) {
        return callback(null, 0);
    },

    queueAnalysisOperations: function(analysis, callback) {
        return callback(null);
    },

    trackAnalysis: function(analysis, callback) {
        return callback(null);
    },

    getColumnNames: function(query, callback) {
        return callback(null, []);
    },

    getColumns: function(query, callback) {
        return callback(null, []);
    },

    enqueue: function(query, callback) {
        return callback(null, {status: 'ok'});
    }
};
{'fraction_non_alphanumeric': 0.12123677786818551, 'fraction_numerical': 0.0004068348250610252, 'mean_word_length': 3.196245733788396, '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': '3286024', 'n_tokens_mistral': 679, 'n_tokens_neox': 661, 'n_words': 139}