<commit_before><?php

const PATTERNS_COUNT = 3;

const RUN_TIMES = 10;

const BUILDS = [
    'C PCRE2'      => 'gcc -O3 -DNDEBUG c/benchmark.c -I/usr/local/include/ -lpcre2-8 -o c/bin/benchmark',
    'Crystal'      => 'crystal build crystal/benchmark.cr --release -o crystal/bin/benchmark',
    'C++ STL'      => 'g++ -std=c++11 -O3 cpp/benchmark.cpp -DREGEX_NAMESPACE=std -lboost_regex -o cpp/bin/benchmark-stl',
    'C++ Boost'    => 'g++ -std=c++11 -O3 cpp/benchmark.cpp -DREGEX_NAMESPACE=boost -lboost_regex -o cpp/bin/benchmark-boost',
    'C# Mono'      => 'mcs csharp/Benchmark.cs -out:csharp/bin-mono/benchmark.exe -debug- -optimize',
    'C# .Net Core' => 'dotnet build csharp/benchmark.csproj -c Release',
    'D dmd'        => 'dmd -O -release -inline -of=d/bin/benchmark d/benchmark.d',
    'D ldc'        => 'ldc2 -O3 -release -of=d/bin/benchmark-ldc d/benchmark.d',
    'Dart Native'  => 'dart2native dart/benchmark.dart -o dart/bin/benchmark',
    'Go'           => 'go build -ldflags "-s -w" -o go/bin/benchmark ./go',
    'Java'         => 'javac java/Benchmark.java',
    'Kotlin'       => 'kotlinc kotlin/benchmark.kt -include-runtime -d kotlin/benchmark.jar',
    'Nim'          => 'nim c -d:release --opt:speed --verbosity:0 -o:nim/bin/benchmark nim/benchmark.nim',
    'Rust'         => 'cargo build --quiet --release --manifest-path=rust/Cargo.toml',
];

const COMMANDS = [
    'C PCRE2'      => 'c/bin/benchmark',
    'Crystal'      => 'crystal/bin/benchmark',
    'C++ STL'      => 'cpp/bin/benchmark-stl',
    'C++ Boost'    => 'cpp/bin/benchmark-boost',
    'C# Mono'      => 'mono -O=all csharp/bin-mono/benchmark.exe',
    'C# .Net Core' => 'dotnet csharp/bin/Release/netcoreapp3.0/benchmark.dll',<commit_msg>Fix dart native build<commit_after><?php

const PATTERNS_COUNT = 3;

const RUN_TIMES = 10;

const BUILDS = [
    'C PCRE2'      => 'gcc -O3 -DNDEBUG c/benchmark.c -I/usr/local/include/ -lpcre2-8 -o c/bin/benchmark',
    'Crystal'      => 'crystal build crystal/benchmark.cr --release -o crystal/bin/benchmark',
    'C++ STL'      => 'g++ -std=c++11 -O3 cpp/benchmark.cpp -DREGEX_NAMESPACE=std -lboost_regex -o cpp/bin/benchmark-stl',
    'C++ Boost'    => 'g++ -std=c++11 -O3 cpp/benchmark.cpp -DREGEX_NAMESPACE=boost -lboost_regex -o cpp/bin/benchmark-boost',
    'C# Mono'      => 'mcs csharp/Benchmark.cs -out:csharp/bin-mono/benchmark.exe -debug- -optimize',
    'C# .Net Core' => 'dotnet build csharp/benchmark.csproj -c Release',
    'D dmd'        => 'dmd -O -release -inline -of=d/bin/benchmark d/benchmark.d',
    'D ldc'        => 'ldc2 -O3 -release -of=d/bin/benchmark-ldc d/benchmark.d',
    'Dart Native'  => 'mkdir -p /var/regex/dart/bin && dart2native dart/benchmark.dart -o dart/bin/benchmark',
    'Go'           => 'go build -ldflags "-s -w" -o go/bin/benchmark ./go',
    'Java'         => 'javac java/Benchmark.java',
    'Kotlin'       => 'kotlinc kotlin/benchmark.kt -include-runtime -d kotlin/benchmark.jar',
    'Nim'          => 'nim c -d:release --opt:speed --verbosity:0 -o:nim/bin/benchmark nim/benchmark.nim',
    'Rust'         => 'cargo build --quiet --release --manifest-path=rust/Cargo.toml',
];

const COMMANDS = [
    'C PCRE2'      => 'c/bin/benchmark',
    'Crystal'      => 'crystal/bin/benchmark',
    'C++ STL'      => 'cpp/bin/benchmark-stl',
    'C++ Boost'    => 'cpp/bin/benchmark-boost',
    'C# Mono'      => 'mono -O=all csharp/bin-mono/benchmark.exe',
    'C# .Net Core' => 'dotnet csharp/bin/Release/netcoreapp3.0/benchmark.dll',
{'fraction_non_alphanumeric': 0.18629124004550626, 'fraction_numerical': 0.011376564277588168, 'mean_word_length': 2.59244126659857, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 43, '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': '1024787', 'n_tokens_mistral': 1463, 'n_tokens_neox': 1409, 'n_words': 279}