<commit_before># frozen_string_literal: true

Decidim.configure do |config|
  config.application_name = "<NAME>"
  config.mailer_sender    = Rails.application.secrets.email
  config.maximum_attachment_size = 150.megabytes
  config.force_ssl        = true

  config.available_locales = %i(ca es)
  config.default_locale = :ca

  if ENV["HEROKU_APP_NAME"].present?
    config.base_uploads_path = ENV["HEROKU_APP_NAME"] + "/"
  end

  if Rails.application.secrets.geocoder
    config.maps = {
      provider: :here,
      api_key: Rails.application.secrets.geocoder[:here_api_key],
      static: { url: "https://image.maps.ls.hereapi.com/mia/1.6/mapview" }
    }
  end

  if Rails.application.secrets.sms.values.all?(&:present?)
    config.sms_gateway_service = "SmsGateway"
  end

  config.timestamp_service = "TimestampService"
  config.pdf_signature_service = "PdfSignatureBarcelona"

  if Rails.application.secrets.etherpad[:server].present?
    config.etherpad = Rails.application.secrets.etherpad
  end
end

Decidim::Verifications.register_workflow(:census_authorization_handler) do |auth|
  auth.form = "CensusAuthorizationHandler"
  auth.renewable = true
  auth.time_between_renewals = 1.day
  auth.metadata_cell = "census_authorization_metadata"
end
<commit_msg>Monkey-patch method<commit_after># frozen_string_literal: true

Decidim.configure do |config|
  config.application_name = "<NAME>"
  config.mailer_sender    = Rails.application.secrets.email
  config.maximum_attachment_size = 150.megabytes
  config.force_ssl        = true

  config.available_locales = %i(ca es)
  config.default_locale = :ca

  if ENV["HEROKU_APP_NAME"].present?
    config.base_uploads_path = ENV["HEROKU_APP_NAME"] + "/"
  end

  if Rails.application.secrets.geocoder
    config.maps = {
      provider: :here,
      api_key: Rails.application.secrets.geocoder[:here_api_key],
      static: { url: "https://image.maps.ls.hereapi.com/mia/1.6/mapview" }
    }
  end

  if Rails.application.secrets.sms.values.all?(&:present?)
    config.sms_gateway_service = "SmsGateway"
  end

  config.timestamp_service = "TimestampService"
  config.pdf_signature_service = "PdfSignatureBarcelona"

  if Rails.application.secrets.etherpad[:server].present?
    config.etherpad = Rails.application.secrets.etherpad
  end
end

Decidim::Verifications.register_workflow(:census_authorization_handler) do |auth|
  auth.form = "CensusAuthorizationHandler"
  auth.renewable = true
  auth.time_between_renewals = 1.day
  auth.metadata_cell = "census_authorization_metadata"
end

module Decidim::Proposals::ApplicationHelper.module_eval do
  def not_from_collaborative_draft(proposal)
    true
  end
end


{'fraction_non_alphanumeric': 0.10794602698650675, 'fraction_numerical': 0.004497751124437781, 'mean_word_length': 4.469262295081967, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '6319544', 'n_tokens_mistral': 954, 'n_tokens_neox': 898, 'n_words': 133}