<commit_before>module Lti

  class Utils

    def self.lti_configs
      LtiApplication.find_each do |app|
        config = {
          title: app.name,
          launch_url: "https://#{Rails.application.secrets.application_url}/lti_launches",
          domain: "#{Rails.application.secrets.application_url}",
          icon: "#{Rails.application.secrets.application_url}/images/oauth_icon.png",
          description: app.description
        }
        puts "****************************************************************************************************************"
        puts "LTI configuration for #{app.name}"
        puts ""
        puts "----------------------------------------------------------------------------------------------------------------"
        puts "Basic LTI Config"
        puts "----------------------------------------------------------------------------------------------------------------"
        puts Lti::Config.xml(config)
        puts ""
        puts "----------------------------------------------------------------------------------------------------------------"
        puts "Course Navigation LTI Config"
        puts "----------------------------------------------------------------------------------------------------------------"
        course_navigation_config = Lti::Config.course_navigation(config, "public")
        puts Lti::Config.xml(course_navigation_config)
        puts ""
        puts "----------------------------------------------------------------------------------------------------------------"
        puts "Account Navigation LTI Config"
        puts "----------------------------------------------------------------------------------------------------------------"
        account_navigation_config = Lti::Config.account_navigation(config)
        puts Lti::Config.xml(account_navigation_config)
        puts ""<commit_msg>Fixes icon path<commit_after>module Lti

  class Utils

    def self.lti_configs
      LtiApplication.find_each do |app|
        config = {
          title: app.name,
          launch_url: "https://#{Rails.application.secrets.application_url}/lti_launches",
          domain: "#{Rails.application.secrets.application_url}",
          icon: "https://#{Rails.application.secrets.application_url}/images/oauth_icon.png",
          description: app.description
        }
        puts "****************************************************************************************************************"
        puts "LTI configuration for #{app.name}"
        puts ""
        puts "----------------------------------------------------------------------------------------------------------------"
        puts "Basic LTI Config"
        puts "----------------------------------------------------------------------------------------------------------------"
        puts Lti::Config.xml(config)
        puts ""
        puts "----------------------------------------------------------------------------------------------------------------"
        puts "Course Navigation LTI Config"
        puts "----------------------------------------------------------------------------------------------------------------"
        course_navigation_config = Lti::Config.course_navigation(config, "public")
        puts Lti::Config.xml(course_navigation_config)
        puts ""
        puts "----------------------------------------------------------------------------------------------------------------"
        puts "Account Navigation LTI Config"
        puts "----------------------------------------------------------------------------------------------------------------"
        account_navigation_config = Lti::Config.account_navigation(config)
        puts Lti::Config.xml(account_navigation_config)
        puts ""
{'fraction_non_alphanumeric': 0.4752240379546653, 'fraction_numerical': 0.0, 'mean_word_length': 0.8685376661742984, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '572248', 'n_tokens_mistral': 662, 'n_tokens_neox': 678, 'n_words': 124}