<commit_before>program VisualGridExample;

{$mode objfpc}{$H+}

uses
  {$IFDEF UNIX}{$IFDEF UseCThreads}
  cthreads,
  {$ENDIF}{$ENDIF}
  Interfaces, // this includes the LCL widgetset
  Forms, runtimetypeinfocontrols, fMain
  { you can add units after this };

{$R *.res}

begin
  RequireDerivedFormResource:=True;
  Application.Initialize;
  Application.CreateForm(TForm1, Form1);
  Application.Run;
end.
<commit_msg>define for reporting memory leaks in example<commit_after>program VisualGridExample;

{$mode objfpc}{$H+}
{.$DEFINE REPORT_MEMORY_LEAKS}

uses
  {$IFDEF REPORT_MEMORY_LEAKS}
  heaptrc,
  {$ENDIF}
  {$IFDEF UNIX}{$IFDEF UseCThreads}
  cthreads,
  {$ENDIF}{$ENDIF}
  Interfaces, // this includes the LCL widgetset
  Forms, runtimetypeinfocontrols, fMain
  { you can add units after this };

{$R *.res}

begin
  // report memory leaks
  {$IFDEF REPORT_MEMORY_LEAKS}
  SetHeapTraceOutput('heaptrc.log');
  {$ENDIF}
  RequireDerivedFormResource:=True;
  Application.Initialize;
  Application.CreateForm(TForm1, Form1);
  Application.Run;
end.

{'fraction_non_alphanumeric': 0.11825922421948912, 'fraction_numerical': 0.003784295175023652, 'mean_word_length': 5.045714285714285, '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': '2388769', 'n_tokens_mistral': 401, 'n_tokens_neox': 380, 'n_words': 87}