<commit_before>var Bookmark = require('../models/index.js').Bookmark;

var create = function(props, callback) {
  Bookmark.build(props)
  .save()
  .then(function(bookmark) {
    callback(bookmark);
  }).catch(function(err) {
    console.log(err);
  });
};

var findAll = function(callback) {
  Bookmark.findAll().then(function(bookmarks) {
    callback(bookmarks);
  }).catch(function(err) {
    console.log(err);
  });
};

var findOne = function(query, callback) {
  Bookmark.findOne(query).done(function(bookmark) {
    console.log(bookmark, 'BOOOKMARK');
      callback(bookmark);
  });
};

exports.create = create;
exports.findAll = findAll;
exports.findOne = findOne;<commit_msg>Improve conciseness of console.log messages<commit_after>var Bookmark = require('../models/index.js').Bookmark;

var create = function(props, callback) {
  Bookmark.build(props)
  .save()
  .then(function(bookmark) {
    callback(bookmark);
  }).catch(function(err) {
    console.log(err);
  });
};

var findAll = function(callback) {
  Bookmark.findAll().then(function(bookmarks) {
    callback(bookmarks);
  }).catch(function(err) {
    console.log(err);
  });
};

var findOne = function(query, callback) {
  Bookmark.findOne(query).done(function(bookmark) {
    console.log('🍊  Found one bookmark in db:', query);
    callback(bookmark);
  });
};

exports.create = create;
exports.findAll = findAll;
exports.findOne = findOne;
{'fraction_non_alphanumeric': 0.16902404526166903, 'fraction_numerical': 0.0, 'mean_word_length': 4.4423076923076925, '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': '6482279', 'n_tokens_mistral': 481, 'n_tokens_neox': 477, 'n_words': 76}