<commit_before>﻿using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Text;

namespace NumberGenerator
{
   public static class NumberDecalGenerator
   {
      private const int _decalSize = 256;

      public static Image Draw( int number, int max )
      {
         var bitmap = new Bitmap( _decalSize, _decalSize );

         using ( Graphics g = Graphics.FromImage( bitmap ) )
         {
            g.SmoothingMode = SmoothingMode.HighQuality;
            g.TextRenderingHint = TextRenderingHint.AntiAliasGridFit;
         }

         return bitmap;
      }
   }
}<commit_msg>Fill the image with transparency<commit_after>﻿using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Text;

namespace NumberGenerator
{
   public static class NumberDecalGenerator
   {
      private const int _decalSize = 256;

      public static Image Draw( int number, int max )
      {
         var bitmap = new Bitmap( _decalSize, _decalSize );

         using ( Graphics g = Graphics.FromImage( bitmap ) )
         {
            g.SmoothingMode = SmoothingMode.HighQuality;
            g.TextRenderingHint = TextRenderingHint.AntiAliasGridFit;

            FillWithTransparency( g );
         }

         return bitmap;
      }

      private static void FillWithTransparency( Graphics g )
      {
         // Still not sure this is actually necessary--is it transparent by
         // default? Who knows! Ain't nobody got time for that!

         using ( var transparentBrush = new SolidBrush( Color.FromArgb( 0, Color.Transparent ) ) )
         {
            g.FillRectangle( transparentBrush, 0, 0, _decalSize, _decalSize );
         }
      }
   }
}
{'fraction_non_alphanumeric': 0.07550535077288942, 'fraction_numerical': 0.006539833531510107, 'mean_word_length': 2.3064833005893908, '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': '4336635', 'n_tokens_mistral': 490, 'n_tokens_neox': 455, 'n_words': 129}