You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: releases_helper.rb
    path of file: ./repos/texterify/app/helpers
    
    the code of the file until where you have to start completion: require 'securerandom'

module ReleasesHelper
  def create_release(project, export_config, version)
    timestamp = Time.now.utc.iso8601

    # Create the release
    release = Release.new
    release.export_config = export_config
    release.version = version
    release.timestamp = timestamp
    release.save!

    # Create a file for every language
    project
      .languages
      .where
      .not(language_code: nil)
      .each do |language|
        release_file_id = SecureRandom.uuid

        bucket_path = "#{project.id}/#{export_config.id}/#{version}-#{timestamp}/#{release_file_id}.json"

        file = Tempfile.new(project.id)

    
  def create_release_export(project, export_config, language, file, timestamp)
    post_processing_rules = project.post_processing_rules.where(export_config_id: [export_config.id, nil]).order_by_name

    language_data =
      Texterify::Export.create_language_export_data(
        project,
        export_config,
        language,
        post_processing_rules,
        skip_timestamp: true
      )

    export_data = {
      is_default: language.is_default,
      language_code: language.language_code&.code,
      country_code: language.country_code&.code,
      texts: language_data.map { |key, value| { key: key, value: value[:other] } },
      plurals: [] # TODO: Add plural support
    }

    file.puts({ timestamp: timestamp, data: export_data }.to_json)
  end