<commit_before>require 'erb'
require 'launchy'

module Shelly
  class App < Base
    DATABASE_KINDS = %w(postgresql mongodb redis none)
    attr_accessor :code_name, :databases, :ruby_version, :environment, :git_url, :domains

    def initialize
      @ruby_version = "MRI-1.9.2"
      @environment = "production"
    end

    def add_git_remote
      system("git remote rm production &> /dev/null")
      system("git remote add production #{git_url}")
    end

    def generate_cloudfile
      @email = current_user.email
      @databases = databases
      @domains = domains<commit_msg>Fixes silently removing git remote on linux<commit_after>require 'erb'
require 'launchy'

module Shelly
  class App < Base
    DATABASE_KINDS = %w(postgresql mongodb redis none)
    attr_accessor :code_name, :databases, :ruby_version, :environment, :git_url, :domains

    def initialize
      @ruby_version = "MRI-1.9.2"
      @environment = "production"
    end

    def add_git_remote
      system("git remote rm production > /dev/null 2>&1")
      system("git remote add production #{git_url}")
    end

    def generate_cloudfile
      @email = current_user.email
      @databases = databases
      @domains = domains
{'fraction_non_alphanumeric': 0.09338842975206611, 'fraction_numerical': 0.006611570247933884, 'mean_word_length': 3.2640845070422535, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '6492917', 'n_tokens_mistral': 400, 'n_tokens_neox': 375, 'n_words': 104}