<commit_before>import sublime
import re

try:
  from Statement import statement
  from Expression import expression
except ImportError:
  sublime.error_message("Dependency import failed; please read readme for " +
    "IndentationNavigation plugin for installation instructions; to disable " +
    "this message remove this plugin")

def get_point(view, position, type = 'change', backward = None,
  before = 0, alignment = 'left', change = False,
  append = None, use_empty_line = False, before_if_lesser = True):

  text = view.substr(sublime.Region(0, view.size())).split("\n")
  text.append('I') # last indented string

  next = _get_next_point(view, text, position, type, backward, before,
    alignment, change, append, use_empty_line, before_if_lesser)

  while next == position and before != None and before > 0:
    before -= 1
    next = _get_next_point(view, text, position, type, backward, before,
      alignment, change, append, use_empty_line, before_if_lesser)

  return next

def _get_next_point(view, text, point, type, backward, before, alignment,
  change, append, use_empty_line, before_if_lesser):

  line, _ = view.rowcol(point)
  new_line = _calculate_next_position(view, text, line, type, backward, before,
    change, use_empty_line, before_if_lesser)

  if append != None and new_line != None:
    next_line_region = view.line(view.text_point(new_line + 1, 0))
    next_line = view.substr(next_line_region)<commit_msg>error notification modified<commit_after>import sublime
import re

try:
  from Statement import statement
  from Expression import expression
except ImportError as error:
  sublime.error_message("Dependency import failed; please read readme for " +
    "IndentationNavigation plugin for installation instructions; to disable " +
    "this message remove this plugin; message: " + str(error))
  raise error

def get_point(view, position, type = 'change', backward = None,
  before = 0, alignment = 'left', change = False,
  append = None, use_empty_line = False, before_if_lesser = True):

  text = view.substr(sublime.Region(0, view.size())).split("\n")
  text.append('I') # last indented string

  next = _get_next_point(view, text, position, type, backward, before,
    alignment, change, append, use_empty_line, before_if_lesser)

  while next == position and before != None and before > 0:
    before -= 1
    next = _get_next_point(view, text, position, type, backward, before,
      alignment, change, append, use_empty_line, before_if_lesser)

  return next

def _get_next_point(view, text, point, type, backward, before, alignment,
  change, append, use_empty_line, before_if_lesser):

  line, _ = view.rowcol(point)
  new_line = _calculate_next_position(view, text, line, type, backward, before,
    change, use_empty_line, before_if_lesser)

  if append != None and new_line != None:
    next_line_region = view.line(view.text_point(new_line + 1, 0))
    next_line = view.substr(next_line_region)
{'fraction_non_alphanumeric': 0.10064384954252796, 'fraction_numerical': 0.004066418163334463, 'mean_word_length': 4.822485207100592, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7287730', 'n_tokens_mistral': 927, 'n_tokens_neox': 901, 'n_words': 273}