<commit_before>'use strict';
var findex = require('..');

function functionToFind() {
  console.log('as you can see I am on lines 4 - 6 in indexNFind.js');
}

functionToFind();

findex(function (err, index) {
  if (err) return console.error(err);
  console.log(index);
  console.log(index.find(functionToFind));
});<commit_msg>finished example<commit_after>'use strict';
var findex = require('..');

function functionToFind() {
  console.log('as you can see I am on lines 4 - 6 in indexNFind.js');
}

functionToFind();

findex(function (err, index) {
  if (err) return console.error(err);
  console.log(index.find(functionToFind));
});
{'fraction_non_alphanumeric': 0.16377952755905512, 'fraction_numerical': 0.006299212598425197, 'mean_word_length': 5.0, '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': '2809797', 'n_tokens_mistral': 216, 'n_tokens_neox': 211, 'n_words': 58}