<commit_before># -*- encoding : utf-8 -*-
class DealsController < ApplicationController
  cache_sweeper :export_sweeper, :only => [:destroy, :update, :confirm, :create_general_deal, :create_complex_deal, :create_balance_deal]
  
  menu_group "家計簿"
  menu "仕訳帳"
  before_filter :check_account
  before_filter :find_deal, :only => [:edit, :load_deal_pattern_into_edit, :update, :confirm, :destroy]
  before_filter :find_new_or_existing_deal, :only => [:create_entry]
  before_filter :find_account_if_specified, only: [:monthly]

  # 単数記入タブエリアの表示 (Ajax)
  def new_general_deal
    @deal = current_user.general_deals.build
    @deal.build_simple_entries
    flash[:"#{controller_name}_deal_type"] = 'general_deal' # reloadに強い<commit_msg>Change header content<commit_after># -*- encoding : utf-8 -*-
class DealsController < ApplicationController
  cache_sweeper :export_sweeper, :only => [:destroy, :update, :confirm, :create_general_deal, :create_complex_deal, :create_balance_deal]
  
  menu_group "家計簿"
  menu "家計簿"
  before_filter :check_account
  before_filter :find_deal, :only => [:edit, :load_deal_pattern_into_edit, :update, :confirm, :destroy]
  before_filter :find_new_or_existing_deal, :only => [:create_entry]
  before_filter :find_account_if_specified, only: [:monthly]

  # 単数記入タブエリアの表示 (Ajax)
  def new_general_deal
    @deal = current_user.general_deals.build
    @deal.build_simple_entries
    flash[:"#{controller_name}_deal_type"] = 'general_deal' # reloadに強い
{'fraction_non_alphanumeric': 0.11804613297150611, 'fraction_numerical': 0.0013568521031207597, 'mean_word_length': 6.338308457711443, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '4804948', 'n_tokens_mistral': 571, 'n_tokens_neox': 540, 'n_words': 95}