<commit_before>- issuable = local_assigns.fetch(:issuable)
- form = local_assigns.fetch(:form)

- return unless issuable.is_a?(MergeRequest)
- return unless issuable.for_fork?
- return unless can?(current_user, :push_code, issuable.source_project)

%hr

.form-group.row
  %label.col-form-label.col-sm-2
    = _('Contribution')
  .col-sm-10
    .form-check.prepend-top-5
      = form.check_box :allow_collaboration, disabled: !issuable.can_allow_collaboration?(current_user), class: 'form-check-input'
      = form.label :allow_collaboration, class: 'form-check-label' do
        = _('Allow commits from members who can merge to the target branch.')
        = link_to 'About this feature', help_page_path('user/project/merge_requests/allow_collaboration')<commit_msg>Open merge collab link in new tab<commit_after>- issuable = local_assigns.fetch(:issuable)
- form = local_assigns.fetch(:form)

- return unless issuable.is_a?(MergeRequest)
- return unless issuable.for_fork?
- return unless can?(current_user, :push_code, issuable.source_project)

%hr

.form-group.row
  %label.col-form-label.col-sm-2
    = _('Contribution')
  .col-sm-10
    .form-check.prepend-top-5
      = form.check_box :allow_collaboration, disabled: !issuable.can_allow_collaboration?(current_user), class: 'form-check-input'
      = form.label :allow_collaboration, class: 'form-check-label' do
        = _('Allow commits from members who can merge to the target branch.')
        = link_to 'About this feature', help_page_path('user/project/merge_requests/allow_collaboration'), target: '_blank', rel: 'noopener noreferrer nofollow'
{'fraction_non_alphanumeric': 0.12570006222775357, 'fraction_numerical': 0.004978220286247666, 'mean_word_length': 4.488054607508532, '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': '6124596', 'n_tokens_mistral': 542, 'n_tokens_neox': 536, 'n_words': 109}