<commit_before>module Canvas
  module Help
    def self.default_links
      [
        {
          :available_to => ['student'],
          :text => I18n.t('#help_dialog.instructor_question', 'Ask Your Instructor a Question'),
          :subtext => I18n.t('#help_dialog.instructor_question_sub', 'Questions are submitted to your instructor'),
          :url => '#teacher_feedback'
        },
        {
          :available_to => ['user', 'student', 'teacher', 'admin'],
          :text => I18n.t('#help_dialog.search_the_canvas_guides', 'Search the Canvas Guides'),
          :subtext => I18n.t('#help_dialog.canvas_help_sub', 'Find answers to common questions'),
          :url => 'http://guides.instructure.com'
        },
        {
          :available_to => ['user', 'student', 'teacher', 'admin'],
          :text => I18n.t('#help_dialog.report_problem', 'Report a Problem'),
          :subtext => I18n.t('#help_dialog.report_problem_sub', 'If Canvas misbehaves, tell us about it'),
          :url => '#create_ticket'
        }
      ]
    end
  end
end<commit_msg>wrap a Setting around the Canvas Guide URL<commit_after>module Canvas
  module Help
    def self.default_links
      [
        {
          :available_to => ['student'],
          :text => I18n.t('#help_dialog.instructor_question', 'Ask Your Instructor a Question'),
          :subtext => I18n.t('#help_dialog.instructor_question_sub', 'Questions are submitted to your instructor'),
          :url => '#teacher_feedback'
        },
        {
          :available_to => ['user', 'student', 'teacher', 'admin'],
          :text => I18n.t('#help_dialog.search_the_canvas_guides', 'Search the Canvas Guides'),
          :subtext => I18n.t('#help_dialog.canvas_help_sub', 'Find answers to common questions'),
          :url => Setting.get('help_dialog_canvas_guide_url', 'http://guides.instructure.com')
        },
        {
          :available_to => ['user', 'student', 'teacher', 'admin'],
          :text => I18n.t('#help_dialog.report_problem', 'Report a Problem'),
          :subtext => I18n.t('#help_dialog.report_problem_sub', 'If Canvas misbehaves, tell us about it'),
          :url => '#create_ticket'
        }
      ]
    end
  end
end
{'fraction_non_alphanumeric': 0.1502262443438914, 'fraction_numerical': 0.01085972850678733, 'mean_word_length': 2.660596026490066, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, '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': '1955514', 'n_tokens_mistral': 692, 'n_tokens_neox': 664, 'n_words': 145}