<commit_before>#licence-fields
  %h3 Licence Details
  - if @study.owner.is_archivist
    %p= @form.check_box :skip_licence
  - @form.fields_for :licence do |fields|
    = fields.text_field :signed_by, :required => true
    = fields.text_field :signed_date, :required => true
    = fields.text_field :email, :required => true
    %p
      %label
        Access conditions:
        = fields.errors_on(:access_mode)
    %p{ :title => LicenceText::UNRESTRICTED_ACCESS }
      = fields.radio_button :access_mode, 'A', :label => ''
      Unrestricted – available to ASSDA registered users (see &nbsp;
      %a{ :href => 'http://www.assda.edu.au/data.html' }<>
        http://www.assda.edu.au/data.html
      ).  Usage reports available to the depositor, or authorised
      representative, upon request.
    %p{ :title => LicenceText::RESTRICTED_ACCESS }
      = fields.radio_button :access_mode, 'B', :label => ''
      Restricted – the depositor, or authorised representative, to be
      informed by ASSDA of each request to use the data in order to
      give or withhold permission.  Users must be registered with
      ASSDA and complete the &nbsp;
      %a{ :href => 'http://www.assda.edu.au/forms/ApplicationToAccessRestrictedData.pdf' }<>
        Restricted Access Form
      = '.'
    %p{ :title => LicenceText::DEFERRED_ACCESS }
      = fields.radio_button :access_mode, 'S', :label => ''
      Special conditions of access to be negotiated with ASSDA.
  %hr
  %p
    %strong Full licence text based on the current selections:
  .collapsible
    .box
      %pre= @study.licence.text false
    .clear<commit_msg>Don't show licence text on study edit page.<commit_after>#licence-fields
  %h3 Licence Details
  - if @study.owner.is_archivist
    %p= @form.check_box :skip_licence
  - @form.fields_for :licence do |fields|
    = fields.text_field :signed_by, :required => true
    = fields.text_field :signed_date, :required => true
    = fields.text_field :email, :required => true
    %p
      %label
        Access conditions:
        = fields.errors_on(:access_mode)
    %p{ :title => LicenceText::UNRESTRICTED_ACCESS }
      = fields.radio_button :access_mode, 'A', :label => ''
      Unrestricted – available to ASSDA registered users (see &nbsp;
      %a{ :href => 'http://www.assda.edu.au/data.html' }<>
        http://www.assda.edu.au/data.html
      ).  Usage reports available to the depositor, or authorised
      representative, upon request.
    %p{ :title => LicenceText::RESTRICTED_ACCESS }
      = fields.radio_button :access_mode, 'B', :label => ''
      Restricted – the depositor, or authorised representative, to be
      informed by ASSDA of each request to use the data in order to
      give or withhold permission.  Users must be registered with
      ASSDA and complete the &nbsp;
      %a{ :href => 'http://www.assda.edu.au/forms/ApplicationToAccessRestrictedData.pdf' }<>
        Restricted Access Form
      = '.'
    %p{ :title => LicenceText::DEFERRED_ACCESS }
      = fields.radio_button :access_mode, 'S', :label => ''
      Special conditions of access to be negotiated with ASSDA.

    -#
      %hr
      %p
        %strong Full licence text based on the current selections:
      .collapsible
        .box
          %pre= @study.licence.text false
        .clear
{'fraction_non_alphanumeric': 0.11454545454545455, 'fraction_numerical': 0.0006060606060606061, 'mean_word_length': 2.8653395784543325, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '5990302', 'n_tokens_mistral': 1038, 'n_tokens_neox': 1010, 'n_words': 292}