<commit_before># frozen_string_literal: true

module KeepUp
  # Interface to the version control system (only Git is supported).
  class VersionControl
    def initialize(runner:)
      @runner = runner
    end

    def commit_changes(dependency)
      @runner.run "git commit -am 'Update #{dependency.name} to version #{dependency.version}'"
    end

    def revert_changes<commit_msg>Break up long line<commit_after># frozen_string_literal: true

module KeepUp
  # Interface to the version control system (only Git is supported).
  class VersionControl
    def initialize(runner:)
      @runner = runner
    end

    def commit_changes(dependency)
      message = "Update #{dependency.name} to version #{dependency.version}"
      @runner.run "git commit -am '#{message}'"
    end

    def revert_changes
{'fraction_non_alphanumeric': 0.08436724565756824, 'fraction_numerical': 0.0, 'mean_word_length': 3.611428571428571, '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': '4601349', 'n_tokens_mistral': 230, 'n_tokens_neox': 213, 'n_words': 76}