<commit_before>export:
  # Specify how data gets exported.
  # Each key is either the name of a model or, in case there is no model, the full
  # table name (`schema.tablename`).
  # For each table, the following keys are used:
  # - cols: A list of columns with custom behavior.
  #         If set to None (`~`), the column will not be exported. Use this e.g. for
  #         a column containing a UUID or an ID referencing something that is never
  #         exported (such as a category).
  #         If set to a string, that string is executed as a snipped of Python code.
  #         It has access to `VALUE`, `MAKE_EVENT_REF()` and `MAKE_ID_REF(target, id)`.
  #         The target of `MAKE_ID_REF` is usually specified as `Model.attr`, but can
  #         also reference a column directly (e.g. using the `secondary` notation
  #         described in the `fks` section below). Any value assigned to a variable
  #         that does not start with an underscore is exported instead of the original
  #         column name. This allows assigning the new value to a different column or
  #         even splitting a value into column (not very likely to be useful though).
  # - fks: A list of incoming foreign keys, referencing a column in the current table.
  #        They are processed in the specified order and once all rows of the current
  #        table have been exported, all the referenced elements will be exported.
  #        For FKs that are part of a many-to-many mapping table with no Model, you
  #        need to go through the `secondary` attribute of the relationship to reference
  #        the column (see the existing code for an example)
  # - fks_out: A list of outgoing foreign keys. The referenced rows are exported before
  #            each row in the current table that has such a reference.
  # - skipif: A python expression that will be evaluated for each row. If it returns
  #           true, the row is skipped. The current row is available as `ROW`.
  #           Note that no cascading happens, so rows that are referenced somewhere
  #           else may not be skipped.
  # - order: A python expression returning something that can be passed to `order_by()`
  #          or a tuple of such objects.
  # - allow_duplicates: By default a row may not be referenced more than once (e.g. from
  #                     different locations / FKs).  If this is set to true, this check is
  #                     disabled (but the row is obviously still exported only once).  Only
  #                     use this if you need to reference a table from two places that may
  #                     have overlaps - do not use this without having a case where you get
  #                     an error due to duplicates!

  Event:
    cols:
      venue_id: venue_name = Location.get(VALUE).name
      room_id: room_name = Room.get(VALUE).full_name
      series_id: ~
      cloned_from_id: ~
      category_id: ~
      url_shortcut: ~
      label_id: ~
      label_message: ~
    fks:
      - EventPerson.event_id
      - EventPersonLink.event_id
      - EventLogEntry.event_id
      - EventReminder.event_id
      - EventSetting.event_id
      - EventSettingPrincipal.event_id
      - PaperCompetence.event_id
      - PaperReviewQuestion.event_id
      - PaperTemplate.event_id
      - EditingFileType.event_id
      - EditingReviewCondition.event_id
      - EditingTag.event_id
      - ContributionType.event_id
      - ContributionField.event_id
      - TrackGroup.event_id
      - Track.event_id
      - Session.event_id
      - Contribution.event_id
      - TimetableEntry.event_id
      - ImageFile.event_id
      - AttachmentFolder.event_id
      - EventRole.event_id
      - EventPrincipal.event_id
      - EventNote.event_id
      - RegistrationForm.event_id
      - Survey.event_id
      - DesignerTemplate.event_id
      - EventPage.event_id
      - MenuEntry.event_id
      - AbstractEmailTemplate.event_id
      - AbstractReviewQuestion.event_id
      - Abstract.event_id

<commit_msg>Fix event export with session types<commit_after>export:
  # Specify how data gets exported.
  # Each key is either the name of a model or, in case there is no model, the full
  # table name (`schema.tablename`).
  # For each table, the following keys are used:
  # - cols: A list of columns with custom behavior.
  #         If set to None (`~`), the column will not be exported. Use this e.g. for
  #         a column containing a UUID or an ID referencing something that is never
  #         exported (such as a category).
  #         If set to a string, that string is executed as a snipped of Python code.
  #         It has access to `VALUE`, `MAKE_EVENT_REF()` and `MAKE_ID_REF(target, id)`.
  #         The target of `MAKE_ID_REF` is usually specified as `Model.attr`, but can
  #         also reference a column directly (e.g. using the `secondary` notation
  #         described in the `fks` section below). Any value assigned to a variable
  #         that does not start with an underscore is exported instead of the original
  #         column name. This allows assigning the new value to a different column or
  #         even splitting a value into column (not very likely to be useful though).
  # - fks: A list of incoming foreign keys, referencing a column in the current table.
  #        They are processed in the specified order and once all rows of the current
  #        table have been exported, all the referenced elements will be exported.
  #        For FKs that are part of a many-to-many mapping table with no Model, you
  #        need to go through the `secondary` attribute of the relationship to reference
  #        the column (see the existing code for an example)
  # - fks_out: A list of outgoing foreign keys. The referenced rows are exported before
  #            each row in the current table that has such a reference.
  # - skipif: A python expression that will be evaluated for each row. If it returns
  #           true, the row is skipped. The current row is available as `ROW`.
  #           Note that no cascading happens, so rows that are referenced somewhere
  #           else may not be skipped.
  # - order: A python expression returning something that can be passed to `order_by()`
  #          or a tuple of such objects.
  # - allow_duplicates: By default a row may not be referenced more than once (e.g. from
  #                     different locations / FKs).  If this is set to true, this check is
  #                     disabled (but the row is obviously still exported only once).  Only
  #                     use this if you need to reference a table from two places that may
  #                     have overlaps - do not use this without having a case where you get
  #                     an error due to duplicates!

  Event:
    cols:
      venue_id: venue_name = Location.get(VALUE).name
      room_id: room_name = Room.get(VALUE).full_name
      series_id: ~
      cloned_from_id: ~
      category_id: ~
      url_shortcut: ~
      label_id: ~
      label_message: ~
    fks:
      - EventPerson.event_id
      - EventPersonLink.event_id
      - EventLogEntry.event_id
      - EventReminder.event_id
      - EventSetting.event_id
      - EventSettingPrincipal.event_id
      - PaperCompetence.event_id
      - PaperReviewQuestion.event_id
      - PaperTemplate.event_id
      - EditingFileType.event_id
      - EditingReviewCondition.event_id
      - EditingTag.event_id
      - ContributionType.event_id
      - ContributionField.event_id
      - TrackGroup.event_id
      - Track.event_id
      - Session.event_id
      - SessionType.event_id
      - Contribution.event_id
      - TimetableEntry.event_id
      - ImageFile.event_id
      - AttachmentFolder.event_id
      - EventRole.event_id
      - EventPrincipal.event_id
      - EventNote.event_id
      - RegistrationForm.event_id
      - Survey.event_id
      - DesignerTemplate.event_id
      - EventPage.event_id
      - MenuEntry.event_id
      - AbstractEmailTemplate.event_id
      - AbstractReviewQuestion.event_id
      - Abstract.event_id


{'fraction_non_alphanumeric': 0.059251944204419205, 'fraction_numerical': 0.0, 'mean_word_length': 2.2564308681672025, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7200195', 'n_tokens_mistral': 2251, 'n_tokens_neox': 2165, 'n_words': 896}