<commit_before>local flavours = {"PCRE", "POSIX", "oniguruma", "TRE", "GNU"}

-- Rockspec data

-- Variables to be interpolated:
--
-- flavour: regex library
-- version
-- md5sum: checksum of distribution tarball

-- When Lua 5.1 support is dropped, use an env argument with loadfile
-- instead of wrapping in a table
return {

default = {
  package="Lrexlib-"..flavour,
  version=version.."-1",
  source = {
    url = "https://github.com/downloads/rrthomas/lrexlib/lrexlib-"..version..".zip",
    md5 = md5sum
  },
  description = {
    summary = "Regular expression library binding ("..flavour.." flavour).",
    detailed = [[
      Lrexlib is a regular expression library for Lua 5.1 and 5.2, which
      provides bindings for several regular expression libraries.
      This rock provides the ]]..flavour..[[ bindings.
    ]],
    homepage = "http://github.com/rrthomas/lrexlib",
    license = "MIT/X11"
  },
  dependencies = {
    "lua >= 5.1"
  },
},

PCRE = {<commit_msg>rockspecs.lua: fix some inconsistent whitespace<commit_after>local flavours = {"PCRE", "POSIX", "oniguruma", "TRE", "GNU"}

-- Rockspec data

-- Variables to be interpolated:
--
-- flavour: regex library
-- version
-- md5sum: checksum of distribution tarball

-- When Lua 5.1 support is dropped, use an env argument with loadfile
-- instead of wrapping in a table
return {

default = {
  package = "Lrexlib-"..flavour,
  version = version.."-1",
  source = {
    url = "https://github.com/downloads/rrthomas/lrexlib/lrexlib-"..version..".zip",
    md5 = md5sum
  },
  description = {
    summary = "Regular expression library binding ("..flavour.." flavour).",
    detailed = [[
      Lrexlib is a regular expression library for Lua 5.1 and 5.2, which
      provides bindings for several regular expression libraries.
      This rock provides the ]]..flavour..[[ bindings.
    ]],
    homepage = "http://github.com/rrthomas/lrexlib",
    license = "MIT/X11"
  },
  dependencies = {
    "lua >= 5.1"
  },
},

PCRE = {
{'fraction_non_alphanumeric': 0.14744232698094284, 'fraction_numerical': 0.014042126379137413, 'mean_word_length': 2.911764705882353, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1721057', 'n_tokens_mistral': 691, 'n_tokens_neox': 640, 'n_words': 188}