<commit_before>﻿using System;
using System.Collections.Generic;
using System.Management.Automation;
using Microsoft.VisualStudio;
using Microsoft.VisualStudio.Debugger.Interop;
using System.Diagnostics;

namespace PowerShellTools.DebugEngine
{
    public class ScriptStackFrame : IDebugStackFrame2
    {
        private ScriptDebugger _debugger;
        private ScriptProgramNode _node;
        private ScriptDocumentContext _docContext;
        private CallStackFrame _frame;

        public CallStackFrame Frame
        {
            get { return _frame; }
        }

        public ScriptStackFrame(ScriptProgramNode node, CallStackFrame frame)
        {
            _node = node;
            _debugger = node.Debugger;
            _docContext = new ScriptDocumentContext(frame.ScriptName, frame.ScriptLineNumber, 0, frame.ToString());
            _frame = frame;<commit_msg>Fixed an issue where the debugger was 1 line off.<commit_after>﻿using System;  
using System.Collections.Generic;
using System.Management.Automation;
using Microsoft.VisualStudio;
using Microsoft.VisualStudio.Debugger.Interop;
using System.Diagnostics;

namespace PowerShellTools.DebugEngine
{
    public class ScriptStackFrame : IDebugStackFrame2
    {
        private ScriptDebugger _debugger;
        private ScriptProgramNode _node;
        private ScriptDocumentContext _docContext;
        private CallStackFrame _frame;

        public CallStackFrame Frame
        {
            get { return _frame; }
        }

        public ScriptStackFrame(ScriptProgramNode node, CallStackFrame frame)
        {
            _node = node;
            _debugger = node.Debugger;
            // VS is zero based, PS is 1 based
            _docContext = new ScriptDocumentContext(frame.ScriptName, frame.ScriptLineNumber - 1, 0, frame.ToString());
            _frame = frame;
{'fraction_non_alphanumeric': 0.06233062330623306, 'fraction_numerical': 0.003794037940379404, 'mean_word_length': 2.8378378378378377, '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': '4324572', 'n_tokens_mistral': 464, 'n_tokens_neox': 458, 'n_words': 123}