<commit_before><?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE thresholds [
<!ELEMENT thresholds (threshold)+>
<!ELEMENT threshold (description , levels)>
<!ELEMENT description (CDATA)>
<!ELEMENT levels (CDATA)>
<!ATTLIST threshold map ID #REQUIRED>
<!ATTLIST levels width CDATA #REQUIRED>
<!ATTLIST levels height CDATA #REQUIRED>
<!ATTLIST levels divisor CDATA #REQUIRED>
]>
<!--
  Threshold Maps for Ordered Posterized Dither

  Each "<threshold>" element defines the map name, description, and an array
  of "levels" used to provide the threshold map for ordered dithering and
  digital halftoning.

  The "alias" attribute provides a backward compatible name for this threshold
  map (pre-dating IM v6.2.9-6), and are deprecated.

  The description is a english description of what the threshold map achieves
  and is only used for 'listing' the maps.

  The map itself is a rectangular array of integers or threshold "levels"
  of the given "width" and "height" declared within the enclosing <levels>
  element.  That is "width*height" integers or "levels" *must* be provided
  within each map.

  Each of the "levels" integer values (each value representing the threshold
  intensity "level/divisor" at which that pixel is turned on.  The "levels"
  integers given can be any postive integers between "0" and the "divisor",
  excluding those limits.

  The "divisor" not only defines the upper limit and threshold divisor for each
  "level" but also the total number of pseudo-levels the threshold mapping
  creates and fills with a dither pattern.  That is a ordered bitmap dither
  of a pure greyscale gradient will use a maximum of "divisor" ordered bitmap
  patterns, including the patterns with all the pixels 'on' and all the pixel
  'off'. It may define less patterns than that, but the color channels will
  be thresholded in units based on "divisor".

  Alternatively for a multi-level posterization, ImageMagick inserts
  "divisor-2" dither patterns (as defined by the threshold map) between each of
  channel color level produced.

  For example the map "o2x2" has a divisor of 5, which will define 3 bitmap
  patterns plus the patterns with all pixels 'on' and 'off'.  A greyscale
  gradient will thus have 5 distinct areas.
-->
<thresholds>

<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  Minimal Dither and Non-Dither Threshold Maps
-->
  <threshold map="threshold" alias="1x1">
    <description>Threshold Non-Dither</description>
    <levels width="1" height="1" divisor="2">
        1
    </levels>
  </threshold>

  <threshold map="checks" alias="2x1">
    <description>Checkerboard Dither</description>
    <levels width="2" height="2" divisor="3">
       1 2
       2 1
    </levels>
  </threshold>

<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  Dispersed Pixel Ordered Dither Patterns
-->
  <threshold map="o2x2" alias="2x2">
    <description>Ordered 2x2 Dispersed Pixel</description>
    <levels width="2" height="2" divisor="5">
       1  3
       4  2
    </levels>
  </threshold>

  <threshold map="o3x3" alias="3x3">
    <description>Ordered 3x3 Dispersed Pixel</description>
    <levels width="3" height="3" divisor="10">
        3  7  4
        6  1  9
        2  8  5
    </levels>
  </threshold>

  <threshold map="o4x4" alias="4x4">
    <!--
       From "Dithering Algorithms"
       http://www.efg2.com/Lab/Library/ImageProcessing/DHALF.TXT
     -->
    <description>Ordered 4x4 Dispersed Pixel</description>
    <levels width="4" height="4" divisor="17">
       1   9   3  11
      13   5  15   7
       4  12   2  10
      16   8  14   6
    </levels>
  </threshold>

  <threshold map="o5x5bc" alias="5x5">
    <!--
       Added by <NAME>, 4 Nov 2010, ImageMagick 6.6.5-6
     -->
    <description>Ordered 5x5 Black Circles</description>
    <levels width="5" height="5" divisor="26">
         1 21 16 15  4
         5 17 20 19 14
         6 21 25 24 12
         7 18 22 23 11
         2  8  9 10  3
    </levels>
  </threshold>


  <threshold map="o5x5wc" alias="o5x5wc">
    <!--
       Added by <NAME>, 4 Nov 2010, ImageMagick 6.6.5-6
     -->
    <description>Ordered 5x5 White Circles</description>
    <levels width="5" height="5" divisor="26">
        25 21 10 11 22
        20  9  6  7 12
        19  5  1  2 13
        18  8  4  3 14
        24 17 16 15 23
    </levels>
  </threshold>

  <threshold map="o6x6bc" alias="6x6">
    <!--
       Added by <NAME>, 4 Nov 2010, ImageMagick 6.6.5-6
     -->
    <description>Ordered 6x6 Black Circles</description>
    <levels width="6" height="6" divisor="37">
        36 32 23 24 25 33
        31 15  9 10 16 26
        22  8  2  3 11 17
        21  7  1  4 12 18
        30 14  6  5 13 27
        35 29 20 19 28 34
    </levels>
  </threshold>

  <threshold map="o6x6wc" alias="6x6wc">
    <!--
       Added by <NAME>, 4 Nov 2010, ImageMagick 6.6.5-6
     -->
    <description>Ordered 6x6 White Circles</description>
    <levels width="6" height="6" divisor="37">
        36 32 23 24 25 33
        31 15  9 10 16 26
        22  8  2  3 11 17
        21  7  1  4 12 18
        30 14  6  5 13 27
        35 29 20 19 28 34
    </levels>
  </threshold>

  <threshold map="o7x7bc" alias="7x7">
    <!--
       Added by <NAME>, 4 Nov 2010, ImageMagick 6.6.5-6
     -->
    <description>Ordered 7x7 Black Circles</description>
    <levels width="7" height="7" divisor="50">
        2  7 16 26 15  6  1
        8 17 33 39 32 14  5
       18 34 44 48 43 31 13
       27 40 45 49 47 38 25
       19 35 41 46 42 30 24
        9 20 36 37 29 23 12
        3 10 21 28 22 11  4
    </levels>
  </threshold>


  <threshold map="o7x7wc" alias="o7x7wc">
    <!--
       Added by <NAME>, 4 Nov 2010, ImageMagick 6.6.5-6
     -->
    <description>Ordered 7x7 White Circles</description>
    <levels width="7" height="7" divisor="50">
       49 42 32 18 19 33 48
       41 31 17 10 11 20 34
       40 30  9  2  3 12 21
       39 29  8  1  4  5 22
       43 28 16  7  6 13 23
       44 38 27 15 14 24 35
       46 45 37 26 25 36 47
    </levels>
  </threshold>


  <threshold map="o8x8" alias="8x8">
    <!-- Extracted from original 'OrderedDither()' Function -->
    <description>Ordered 8x8 Dispersed Pixel</description>
    <levels width="8" height="8" divisor="65">
         1  49  13  61   4  52  16  64
        33  17  45  29  36  20  48  32
         9  57   5  53  12  60   8  56
        41  25  37  21  44  28  40  24
         3  51  15  63   2  50  14  62
        35  19  47  31  34  18  46  30
        11  59   7  55  10  58   6  54
        43  27  39  23  42  26  38  22
    </levels><commit_msg>Revised 6x6 to make black circles, removed deprecated aliases.<commit_after><?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE thresholds [
<!ELEMENT thresholds (threshold)+>
<!ELEMENT threshold (description , levels)>
<!ELEMENT description (CDATA)>
<!ELEMENT levels (CDATA)>
<!ATTLIST threshold map ID #REQUIRED>
<!ATTLIST levels width CDATA #REQUIRED>
<!ATTLIST levels height CDATA #REQUIRED>
<!ATTLIST levels divisor CDATA #REQUIRED>
]>
<!--
  Threshold Maps for Ordered Posterized Dither

  Each "<threshold>" element defines the map name, description, and an array
  of "levels" used to provide the threshold map for ordered dithering and
  digital halftoning.

  The "alias" attribute provides a backward compatible name for this threshold
  map (pre-dating IM v6.2.9-6), and are deprecated.

  The description is a english description of what the threshold map achieves
  and is only used for 'listing' the maps.

  The map itself is a rectangular array of integers or threshold "levels"
  of the given "width" and "height" declared within the enclosing <levels>
  element.  That is "width*height" integers or "levels" *must* be provided
  within each map.

  Each of the "levels" integer values (each value representing the threshold
  intensity "level/divisor" at which that pixel is turned on.  The "levels"
  integers given can be any postive integers between "0" and the "divisor",
  excluding those limits.

  The "divisor" not only defines the upper limit and threshold divisor for each
  "level" but also the total number of pseudo-levels the threshold mapping
  creates and fills with a dither pattern.  That is a ordered bitmap dither
  of a pure greyscale gradient will use a maximum of "divisor" ordered bitmap
  patterns, including the patterns with all the pixels 'on' and all the pixel
  'off'. It may define less patterns than that, but the color channels will
  be thresholded in units based on "divisor".

  Alternatively for a multi-level posterization, ImageMagick inserts
  "divisor-2" dither patterns (as defined by the threshold map) between each of
  channel color level produced.

  For example the map "o2x2" has a divisor of 5, which will define 3 bitmap
  patterns plus the patterns with all pixels 'on' and 'off'.  A greyscale
  gradient will thus have 5 distinct areas.
-->
<thresholds>

<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  Minimal Dither and Non-Dither Threshold Maps
-->
  <threshold map="threshold" alias="1x1">
    <description>Threshold Non-Dither</description>
    <levels width="1" height="1" divisor="2">
        1
    </levels>
  </threshold>

  <threshold map="checks" alias="2x1">
    <description>Checkerboard Dither</description>
    <levels width="2" height="2" divisor="3">
       1 2
       2 1
    </levels>
  </threshold>

<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  Dispersed Pixel Ordered Dither Patterns
-->
  <threshold map="o2x2" alias="2x2">
    <description>Ordered 2x2 Dispersed Pixel</description>
    <levels width="2" height="2" divisor="5">
       1  3
       4  2
    </levels>
  </threshold>

  <threshold map="o3x3" alias="3x3">
    <description>Ordered 3x3 Dispersed Pixel</description>
    <levels width="3" height="3" divisor="10">
        3  7  4
        6  1  9
        2  8  5
    </levels>
  </threshold>

  <threshold map="o4x4" alias="4x4">
    <!--
       From "Dithering Algorithms"
       http://www.efg2.com/Lab/Library/ImageProcessing/DHALF.TXT
     -->
    <description>Ordered 4x4 Dispersed Pixel</description>
    <levels width="4" height="4" divisor="17">
       1   9   3  11
      13   5  15   7
       4  12   2  10
      16   8  14   6
    </levels>
  </threshold>

  <threshold map="o5x5bc" alias="5x5">
    <!--
       Added by <NAME>, 4 Nov 2010, ImageMagick 6.6.5-6
     -->
    <description>Ordered 5x5 Black Circles</description>
    <levels width="5" height="5" divisor="26">
         1 21 16 15  4
         5 17 20 19 14
         6 21 25 24 12
         7 18 22 23 11
         2  8  9 10  3
    </levels>
  </threshold>


  <threshold map="o5x5wc">
    <!--
       Added by <NAME>, 4 Nov 2010, ImageMagick 6.6.5-6
     -->
    <description>Ordered 5x5 White Circles</description>
    <levels width="5" height="5" divisor="26">
        25 21 10 11 22
        20  9  6  7 12
        19  5  1  2 13
        18  8  4  3 14
        24 17 16 15 23
    </levels>
  </threshold>

  <threshold map="o6x6bc" alias="6x6">
    <!--
       Added by <NAME>, 4 Nov 2010, ImageMagick 6.6.5-6
     -->
    <description>Ordered 6x6 Black Circles</description>
    <levels width="6" height="6" divisor="37">
         1  5 14 13 12  4
         6 22 28 27 21 11
        15 29 35 34 26 20
        16 30 36 33 25 19
         7 23 31 32 24 10
         2  8 17 18  9  3
    </levels>
  </threshold>

  <threshold map="o6x6wc">
    <!--
       Added by <NAME>, 4 Nov 2010, ImageMagick 6.6.5-6
     -->
    <description>Ordered 6x6 White Circles</description>
    <levels width="6" height="6" divisor="37">
        36 32 23 24 25 33
        31 15  9 10 16 26
        22  8  2  3 11 17
        21  7  1  4 12 18
        30 14  6  5 13 27
        35 29 20 19 28 34
    </levels>
  </threshold>

  <threshold map="o7x7bc" alias="7x7">
    <!--
       Added by <NAME>, 4 Nov 2010, ImageMagick 6.6.5-6
     -->
    <description>Ordered 7x7 Black Circles</description>
    <levels width="7" height="7" divisor="50">
        2  7 17 26 15  6  1
        8 16 33 39 32 13  5
       18 34 44 48 43 31 14
       27 40 45 49 47 38 25
       20 35 41 46 42 30 24
        9 19 36 37 29 22 12
        3 10 21 28 23 11  4
    </levels>
  </threshold>


  <threshold map="o7x7wc">
    <!--
       Added by <NAME>, 4 Nov 2010, ImageMagick 6.6.5-6
     -->
    <description>Ordered 7x7 White Circles</description>
    <levels width="7" height="7" divisor="50">
       49 42 32 18 19 33 48
       41 31 17 10 11 20 34
       40 30  9  2  3 12 21
       39 29  8  1  4  5 22
       43 28 16  7  6 13 23
       44 38 27 15 14 24 35
       46 45 37 26 25 36 47
    </levels>
  </threshold>


  <threshold map="o8x8" alias="8x8">
    <!-- Extracted from original 'OrderedDither()' Function -->
    <description>Ordered 8x8 Dispersed Pixel</description>
    <levels width="8" height="8" divisor="65">
         1  49  13  61   4  52  16  64
        33  17  45  29  36  20  48  32
         9  57   5  53  12  60   8  56
        41  25  37  21  44  28  40  24
         3  51  15  63   2  50  14  62
        35  19  47  31  34  18  46  30
        11  59   7  55  10  58   6  54
        43  27  39  23  42  26  38  22
    </levels>
{'fraction_non_alphanumeric': 0.10521942744920311, 'fraction_numerical': 0.10967595739859506, 'mean_word_length': 2.1501308589103023, 'pattern_counts': {'":': 0, '<': 205, '<?xml version=': 2, '>': 205, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 32, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7620097', 'n_tokens_mistral': 5404, 'n_tokens_neox': 4323, 'n_words': 1720}