<commit_before>
module Digipolitan

  class Xcodeproj

    def self.rename_project(project = nil, plist_path = nil)
      if project == nil
        project = self.get_project()
      end

      project_name = File.basename(project, ".xcodeproj")
      app_name = Digipolitan::UI.input("Project name ?")

      if Digipolitan::UI.confirm("Are you sure to replace the current project '#{project_name}' to '#{app_name}' ?")
        Digipolitan::UI.message("Starting replacement...")
        ignored_entries = [".git", "DerivedData"]
        Digipolitan::FileUtils.rename_files(project_name, app_name, ignored_entries)
        Digipolitan::FileUtils.replace_contents_of_files(project_name, app_name, ignored_entries)
        Digipolitan::UI.success("Successfully replaced '#{project_name}' with '#{app_name}'")
      end
    end

    def self.get_project()
      return Dir['*.xcodeproj'].first
    end

    def self.get_info_plist(project)
      plist_name = "Info.plist"
      if File.exists?(plist_name)
        return plist_name
      else
        return File.join(File.basename(project, ".xcodeproj"), plist_name)
      end
    end

  end
end<commit_msg>remove project functions<commit_after>
module Digipolitan

  class Xcodeproj

    def self.rename_project(project = nil, plist_path = nil)
      if project == nil
        project = self.get_project()
      end

      project_name = File.basename(project, ".xcodeproj")
      app_name = Digipolitan::UI.input("Project name ?")

      if Digipolitan::UI.confirm("Are you sure to replace the current project '#{project_name}' to '#{app_name}' ?")
        Digipolitan::UI.message("Starting replacement...")
        ignored_entries = [".git", "DerivedData"]
        Digipolitan::FileUtils.rename_files(project_name, app_name, ignored_entries)
        Digipolitan::FileUtils.replace_contents_of_files(project_name, app_name, ignored_entries)
        Digipolitan::UI.success("Successfully replaced '#{project_name}' with '#{app_name}'")
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.11530815109343936, 'fraction_numerical': 0.0, 'mean_word_length': 3.473333333333333, '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': '2964275', 'n_tokens_mistral': 640, 'n_tokens_neox': 629, 'n_words': 129}