<commit_before>var profiles = require('../collections/profiles')
    uuid     = require('../helpers/uuid'),
		wrap	   = require('../helpers/wrapper'),
		time     = require('microtime')

function profile(fn) {
  var modul = arguments[arguments.length - 1]
  
  function __profile__ () {
    
  	/* START Retrieve file & line info */
  	var err  = new Error,
  	    data = [ ]

    Error.captureStackTrace(err, me.callee)
    var lines = err.stack.split("\n")

    for (var i = 0; i < lines.length; i++) {
      if (lines[i].search(/.*Error|wrap|decorate|__profile__|Object\.\.js|Module|Function|require.*/) === -1) {
        var file = lines[i].split('('),
            data = file[1].substring(0, file[1].length - 2).split(':')
        break;
      }
    }

  	modul.file = data[0]
  	modul.line = data[1]<commit_msg>Changed the lookup callee. Added a check for stack lines with no '('.<commit_after>var profiles = require('../collections/profiles')
    uuid     = require('../helpers/uuid'),
		wrap	   = require('../helpers/wrapper'),
		time     = require('microtime')

function profile(fn) {
  var modul = arguments[arguments.length - 1]
  
  function __profile__ () {
    
  	/* START Retrieve file & line info */
  	var err  = new Error,
  	    data = [ ]

    Error.captureStackTrace(err, fn.callee)
    var lines = err.stack.split("\n")

    for (var i = 0; i < lines.length; i++) {
      if (lines[i].search(/.*Error|wrap|decorate|__profile__|Object\.\.js|Module|Function|require.*/) === -1) {
        var file = lines[i].split('(')
        
        if (file.length > 1) {
          data = file[1].substring(0, file[1].length - 2).split(':')
        } else {
          file = lines[i].split('/')
          var index = file.length - 1
          data = file[index].substring(0, file[index].length - 2).split(':')
        }
        
        break;
      }
    }
    
    // console.error("\data ", data)

  	modul.file = data[0]
  	modul.line = data[1]
{'fraction_non_alphanumeric': 0.17698209718670077, 'fraction_numerical': 0.011253196930946292, 'mean_word_length': 2.2654424040066776, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '6784259', 'n_tokens_mistral': 672, 'n_tokens_neox': 647, 'n_words': 135}