<commit_before>import help_screen as hs_m

from pentai.gui.fonts import AI_FONT

class AIHelpScreen(hs_m.HelpScreen):

    def __init__(self, *args, **kwargs):
        self.heading = "AI Player Help"
        super(AIHelpScreen, self).__init__(*args, **kwargs)

    def set_text(self):
        sc = self.ids.scrollable_id
        sc.text1 = """      You can either edit an existing player by selecting their name (choose under "Create One"), or create a new one (leave the top box with "Create One", and type in the name immediately below).

      There are several settings that can be adjusted for a given [font=%s]Artificial Intelligence[/font] (AI) player profile:

    [i]Depth[/i]: Controls how many turns the AI looks ahead for each move.
    [i]Vision[/i]: How often does the AI see the better move possibilities?
    [i]Openings book[/i]: Should the AI be able to refer to previous games?
    [i]Judgement[/i]: How well should the AI judge the value of positions?""" % AI_FONT

        sc.text2 = """
      The Openings Book uses positions that have been played previously with PentAI, and by many skilled players on pente.org. Every time you play a game against an [font=%s]AI Player[/font], the result is added to the Openings Book, along with the first 12 or so moves. (unless you disable this in [i]Settings[/i])

      When you have finished creating or editing an [font=%s]AI Player[/font], click on the Save button.

      Several profiles are included. Have a look at, and experiment with their configurations, or create your own. The AI players starting with a capital letter increase in difficulty alphabetically. Note that the players in [font=%s]*asterisks*[/font] are special, and do not follow any pattern.

""" % (AI_FONT, AI_FONT, AI_FONT)<commit_msg>Indentation & font tweaks<commit_after>import help_screen as hs_m

from pentai.gui.fonts import AI_FONT

class AIHelpScreen(hs_m.HelpScreen):

    def __init__(self, *args, **kwargs):
        self.heading = "AI Player Help"
        super(AIHelpScreen, self).__init__(*args, **kwargs)

    def set_text(self):
        sc = self.ids.scrollable_id
        sc.text1 = """ You can either edit an existing player by selecting their name (choose under "Create One"), or create a new one (leave the top box with "Create One", and type in the name immediately below).

 There are several properties that can be adjusted for a given [font=%s]Artificial[/font]
 [font=%s]Intelligence[/font] (AI) player profile:

 [i]Depth[/i]: Controls how many turns the AI looks ahead for each move.
 [i]Vision[/i]: How often does the AI see the better move possibilities?
 [i]Openings book[/i]: Should the AI be able to refer to previous games?
 [i]Judgement[/i]: How well should the AI judge the value of positions?""" % (AI_FONT, AI_FONT)

        sc.text2 = """
 The Openings Book uses positions that have been played previously with PentAI, and by many skilled players on pente.org. Every time you play a game against an AI Player, the result is added to the Openings Book, along with the first 12 or so moves. (unless you disable this in [i]Settings[/i])

 When you have finished creating or editing an AI Player, click on the Save button.

 Several profiles are included. Have a look at, and experiment with their configurations, or create your own. The AI players starting with a capital letter increase in difficulty alphabetically. Note that the players in [font=%s]*asterisks*[/font] are special, and do not follow any pattern.

""" % (AI_FONT,)
{'fraction_non_alphanumeric': 0.08613804905875641, 'fraction_numerical': 0.0022818026240730175, 'mean_word_length': 3.89804469273743, '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': '3281821', 'n_tokens_mistral': 995, 'n_tokens_neox': 932, 'n_words': 472}