<commit_before>module Gemrat
  class Gemfile
    class DuplicateGemFound < StandardError; end
    def initialize(path)
      self.path = path
    end

    def add(gem)
      check(gem)

      file = File.open(path, "a")<commit_msg>Fix bug where specifying a gemfile that doesn't exist would not create a new gemfile<commit_after>module Gemrat
  class Gemfile
    class DuplicateGemFound < StandardError; end
    def initialize(path)
      self.path = path
    end

    def add(gem)
      file = File.open(path, "a")

      check(gem)

{'fraction_non_alphanumeric': 0.07677902621722846, 'fraction_numerical': 0.0, 'mean_word_length': 2.8768115942028984, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1962855', 'n_tokens_mistral': 169, 'n_tokens_neox': 162, 'n_words': 51}