<commit_before>import {inject} from 'aurelia-framework';
import {EventAggregator} from 'aurelia-event-aggregator';

//local imports
import {EsTracer} from './estracer';

@inject(EventAggregator)
export class TraceService {

    constructor(eventAggregator) {
      // inject code in the service. Dependencies failure happens here
      this.eventAggregator = eventAggregator;

      this.events = {
        onTraceServiceStart: {  event :'onTraceServiceStart', description : 'Building Tracer...' },
        onTraceServiceRunning: {  event :'onTraceServiceRunning', description : 'Tracing...' },
        onTraceServiceEnd :{  event :'onTraceServiceEnd', description : 'Trace built successfully.' },
        onTraceServiceBusy : {  event :'onTraceServiceBusy', description : 'A previous trace is running.' },
        onTraceServiceException: {  event :'onTraceServiceException', description : 'Trace ended due to an exception.' }
      };
      
      this.timeLimit = 3000; //default timeout
      

      this.estracer = new EsTracer(this.events);

    }
// exec-viz suscribe to the onTraceChanged event
//   onTraceChanged(result){
//         let traceHelper = new TraceHelper(result); 
//         traceHelper.getLine();
//   }
  
//paste-bin
// onDocumentChanged(){
//   let code =  ace.getText();
//   let traceresults = new TraceService().getTrace(code);
//   // do your magic
//   this.publish('onTraceChanged', traceresults);
// }
    getTimeLimit(){<commit_msg>added code to Ace utils<commit_after>import {inject} from 'aurelia-framework';
import {EventAggregator} from 'aurelia-event-aggregator';

//local imports
import {EsTracer} from './estracer';

@inject(EventAggregator)
export class TraceService {

    constructor(eventAggregator) {
      // inject code in the service. Dependencies failure happens here
      this.eventAggregator = eventAggregator;

      this.events = {
        onTraceServiceStart: {  event :'onTraceServiceStart', description : 'Building Tracer...' },
        onTraceServiceRunning: {  event :'onTraceServiceRunning', description : 'Tracing...' },
        onTraceServiceEnd :{  event :'onTraceServiceEnd', description : 'Trace built successfully.' },
        onTraceServiceBusy : {  event :'onTraceServiceBusy', description : 'A previous trace is running.' },
        onTraceServiceException: {  event :'onTraceServiceException', description : 'Trace ended due to an exception.' }
      };
      
      this.timeLimit = 3000; //default timeout
      

      this.estracer = new EsTracer(this.events);

    }

  

    getTimeLimit(){
{'fraction_non_alphanumeric': 0.11872323861424679, 'fraction_numerical': 0.003114052160373686, 'mean_word_length': 3.297658862876254, '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': '2865406', 'n_tokens_mistral': 728, 'n_tokens_neox': 709, 'n_words': 181}