<commit_before>'use strict'

var remix = require('ethereum-remix')

/**
 * Manage remix and source highlighting
 */
function Debugger (id, appAPI, executionContextEvent, editorEvent) {
  this.el = document.querySelector(id)
  this.debugger = new remix.ui.Debugger()
  this.sourceMappingDecoder = new remix.util.SourceMappingDecoder()
  this.el.appendChild(this.debugger.render())
  this.appAPI = appAPI
  this.markers = {}
  this.breakPointManager = new remix.code.BreakpointManager(this.debugger)
  this.debugger.setBreakpointManager(this.breakPointManager)
  this.breakPointManager.event.register('breakpointHit', (sourceLocation) => {
    this.editor.setBreakpoint(this.touchedBreakpoint, 'breakpointUntouched')
    var lineColumnPos = this.offsetToLineColumnConverter.offsetToLineColumn(sourceLocation, sourceLocation.file, this.editor, this.compiler.lastCompilationResult.data)
    this.editor.setBreakpoint(lineColumnPos.start.line, 'breakpointTouched')
    var self = this
    setTimeout(function () {
      self.editor.setBreakpoint(lineColumnPos.start.line, 'breakpointUntouched')
    }, 5000)
  })

  function convertSourceLocation (self, fileName, row) {
    var source = {}
    for (let file in self.compiler.lastCompilationResult.data.sourceList) {
      if (self.compiler.lastCompilationResult.data.sourceList[file] === fileName) {
        source.file = file
        break<commit_msg>make breakpoint manager use of lineconverter<commit_after>'use strict'

var remix = require('ethereum-remix')

/**
 * Manage remix and source highlighting
 */
function Debugger (id, appAPI, executionContextEvent, editorEvent) {
  this.el = document.querySelector(id)
  this.debugger = new remix.ui.Debugger()
  this.sourceMappingDecoder = new remix.util.SourceMappingDecoder()
  this.el.appendChild(this.debugger.render())
  this.appAPI = appAPI
  this.markers = {}
  this.breakPointManager = new remix.code.BreakpointManager(this.debugger, (sourceLocation) => {
    return this.offsetToLineColumnConverter.offsetToLineColumn(sourceLocation, sourceLocation.file, this.editor, this.compiler.lastCompilationResult.data)
  })

  this.debugger.setBreakpointManager(this.breakPointManager)
  this.breakPointManager.event.register('breakpointHit', (sourceLocation) => {
    this.editor.setBreakpoint(this.touchedBreakpoint, 'breakpointUntouched')
    var lineColumnPos = this.offsetToLineColumnConverter.offsetToLineColumn(sourceLocation, sourceLocation.file, this.editor, this.compiler.lastCompilationResult.data)
    this.editor.setBreakpoint(lineColumnPos.start.line, 'breakpointTouched')
    var self = this
    setTimeout(function () {
      self.editor.setBreakpoint(lineColumnPos.start.line, 'breakpointUntouched')
    }, 5000)
  })

  function convertSourceLocation (self, fileName, row) {
    var source = {}
    for (let file in self.compiler.lastCompilationResult.data.sourceList) {
      if (self.compiler.lastCompilationResult.data.sourceList[file] === fileName) {
        source.file = file
        break
{'fraction_non_alphanumeric': 0.10996677740863788, 'fraction_numerical': 0.0026578073089701, 'mean_word_length': 5.009980039920159, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '2535071', 'n_tokens_mistral': 900, 'n_tokens_neox': 888, 'n_words': 148}