<commit_before>{% set name = "pycm" %}
{% set version = "v7r5p1" %}

# handle Virgo version number format
{% set semver_version = version|
    replace('v', '', 1)|
    replace('r', '.', 1)|
    replace('p', '.', 1)
 %}

package:
   name: "{{ name }}"
   version: "{{ version }}"

source:
   url: http://software.igwn.org/lscsoft/source/{{ name }}-{{ version }}.tar.gz
   sha256: 427466add2f0c3095a4aaece857cd403de603eda1a3462367deae03a4fb27057

build:
  number: 0
  skip: true  # [not linux]

requirements:
  build:
    - {{ compiler('c') }}
    - cmake >=3.12.0
    - make  # [unix]
    - pkg-config  # [unix]
    - ctypesgen >=1.0.2
  host:  
    - cm >=9.0.1
    - python
    - setuptools
  run: 
    - cm >=9.0.1
    - python

test:
  requires:
    - pkg-config
  commands:
    - test -r ${PREFIX}/lib/libpycm.so  # [unix]
    - pkg-config --print-errors --exact-version "{{ version }}" pycm
  imports:
    - PyCm
<commit_msg>Correction to the version in the url<commit_after>{% set name = "pycm" %}
{% set version = "v7r5p1" %}

# handle Virgo version number format
{% set semver_version = version|
    replace('v', '', 1)|
    replace('r', '.', 1)|
    replace('p', '.', 1)
 %}

package:
   name: "{{ name }}"
   version: "{{ version }}"

source:
   url: http://software.igwn.org/lscsoft/source/{{ name }}-{{ semver_version }}.tar.gz
   sha256: 427466add2f0c3095a4aaece857cd403de603eda1a3462367deae03a4fb27057

build:
  number: 0
  skip: true  # [not linux]

requirements:
  build:
    - {{ compiler('c') }}
    - cmake >=3.12.0
    - make  # [unix]
    - pkg-config  # [unix]
    - ctypesgen >=1.0.2
  host:  
    - cm >=9.0.1
    - python
    - setuptools
  run: 
    - cm >=9.0.1
    - python

test:
  requires:
    - pkg-config
  commands:
    - test -r ${PREFIX}/lib/libpycm.so  # [unix]
    - pkg-config --print-errors --exact-version "{{ version }}" pycm
  imports:
    - PyCm

{'fraction_non_alphanumeric': 0.182010582010582, 'fraction_numerical': 0.06455026455026455, 'mean_word_length': 2.4319419237749544, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '6237165', 'n_tokens_mistral': 837, 'n_tokens_neox': 760, 'n_words': 158}