<commit_before>require "proj/commands/command"
require "proj/configurator"

module Proj
  module Commands
    class Commit < Command
      def run(query)
        project = @library.fuzzy_search(query)
        repo = Grit::Repo.init(project.folder)
        # modified, added, un-tracked files
        repo.git.add(:A => true)
        repo.commit_index(asker.call("Commit message",false))

        # push to origin
        repo.git.push("origin","master")
      end
    end
  end
end<commit_msg>fixed bug in commit command<commit_after>require "proj/commands/command"
require "proj/configurator"

module Proj
  module Commands
    class Commit < Command
      def run(query)
        project = @library.fuzzy_search(query)
        repo = Grit::Repo.init(project.folder)
        # modified, added, un-tracked files
        repo.git.add(:A => true)
        repo.commit_index(asker.call("Commit message",false))

        # push to origin
        repo.git.push({},"origin","master")
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.11266201395812563, 'fraction_numerical': 0.0, 'mean_word_length': 2.7047970479704797, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1654351', 'n_tokens_mistral': 311, 'n_tokens_neox': 306, 'n_words': 69}