<commit_before>var exports = {};

var db = require('./db');
var customers = db.use('customers');

exports.add = function (params, callback) {
    customers.insert(params, function (err, body) {
        if (err) {
            return callback(err);
        }

        callback(null, body);
    });
};

exports.getByPhoneNumber = function(phnNumber, callback) {
	exports.getAll(function(err, result) {
		console.log(result);
	});
};

exports.getAll = function (callback) {
    customers.list({include_docs: true}, function (err, result) {
        if (err) {
            callback(err);
        }

        callback(null, result);
    });
};
<commit_msg>Fixed bug<commit_after>var exports = {};

var db = require('./db');
var customers = db.use('customers');

exports.add = function (params, callback) {
    customers.insert(params, function (err, body) {
        if (err) {
            return callback(err);
        }

        callback(null, body);
    });
};

exports.getByPhoneNumber = function(phnNumber, callback) {
	exports.getAll(function(err, result) {
		console.log(result);
		callback(null, result);
	});
};

exports.getAll = function (callback) {
    customers.list({include_docs: true}, function (err, result) {
        if (err) {
            callback(err);
        }

        callback(null, result);
    });
};

{'fraction_non_alphanumeric': 0.15933232169954475, 'fraction_numerical': 0.0, 'mean_word_length': 2.7685714285714287, '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': '3352904', 'n_tokens_mistral': 409, 'n_tokens_neox': 405, 'n_words': 85}