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: work_package_seeder_patch.rb
    path of file: ./repos/openproject/modules/bim/lib/open_project/bim/patches
    
    the code of the file until where you have to start completion: module OpenProject::Bim::Patches::WorkPackageSeederPatch
  def self.included(base) # :nodoc:
    base.prepend InstanceMethods
  end

  module InstanceMethods
    def create_or_update_work_package(attributes)
      uuid = attributes['bcf_issue_uuid']
      if uuid
        time_tracking_attributes = time_tracking_attributes(attributes)

        work_package = find_bcf_issue(uuid)
        work_package.update_columns(created_at: Time.current,
                                    author_id: admin_user.id,
                                    assigned_to_id: find_principal(attributes['assigned_to']).id,
                                    start_date: time_tracking_attributes[:start_date],
                                    due_date: time_tracking_attributes[:due_date],
                                    dur
    
    def create_or_update_work_package(attributes)
      uuid = attributes['bcf_issue_uuid']
      if uuid
        time_tracking_attributes = time_tracking_attributes(attributes)

        work_package = find_bcf_issue(uuid)
        work_package.update_columns(created_at: Time.current,
                                    author_id: admin_user.id,
                                    assigned_to_id: find_principal(attributes['assigned_to']).id,
                                    start_date: time_tracking_attributes[:start_date],
                                    due_date: time_tracking_attributes[:due_date],
                                    duration: time_tracking_attributes[:duration],
                                    ignore_non_working_days: time_tracking_attributes[:ignore_non_working_days])

        update_parent(work_package, attributes)
      else
        create_work_package(attributes)
      end