<commit_before>{% set version = "1.1" %}
{% set sha256 = "b24a1414595576b79cb5e9859107713f6c0d3cba7cd006377598440315edbf29" %}

package:
  name: seacr
  version: '{{ version }}'

source:
  url: https://github.com/FredHutch/SEACR/archive/6baf05a810a30845b40e1eab1f9590498b968c97.tar.gz
  sha256: '{{ sha256 }}'

build:
  number: 0
  noarch: generic
  script:
    - sed -i.bak '1 s|^.*$|#!/usr/bin/env Rscript|' SEACR_1.1.R
    - mkdir $PREFIX/bin
    - cp SEACR_1.1.R $PREFIX/bin/SEACR.R
    - cp SEACR_1.1.sh $PREFIX/bin/SEACR.sh

requirements:
  run:
    - r-base

test:
  commands:<commit_msg>[ci skip] Merge PR 20154<commit_after>{% set version = "1.3" %}
{% set sha256 = "da51d49bacfcfd7d37b9a151534dc7c0c8be5e2a5a1c9dc3157320bfc7385400" %}

package:
  name: seacr
  version: '{{ version }}'

source:
  url: https://github.com/FredHutch/SEACR/archive/v{{ version }}.tar.gz
  sha256: '{{ sha256 }}'

build:
  number: 0
  noarch: generic
  script:
    - sed -i.bak '1 s|^.*$|#!/usr/bin/env Rscript|' SEACR_{{ version }}.R
    - mkdir $PREFIX/bin
    - cp SEACR_{{ version }}.R $PREFIX/bin/SEACR.R
    - cp SEACR_{{ version }}.sh $PREFIX/bin/SEACR.sh

requirements:
  run:
    - r-base

test:
  commands:
{'fraction_non_alphanumeric': 0.16514522821576763, 'fraction_numerical': 0.12116182572614108, 'mean_word_length': 3.369565217391304, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2063916', 'n_tokens_mistral': 632, 'n_tokens_neox': 545, 'n_words': 95}