<commit_before>{% set name = "cpat" %}
{% set version = "1.2.4" %}

package:
  name: "{{ name|lower }}"
  version: "{{ version }}"

build:
  noarch: python
  number: 1
  script: "{{ PYTHON }} -m pip install . --no-deps --ignore-installed -vv "

source:
  url: https://files.pythonhosted.org/packages/53/dd/f6e7fda49f3e64b68c606c480847fd06fbc364b77561cdb68482b41e163c/CPAT-1.2.4.tar.gz
  sha256: 6a552174f24531f7a391b6d330cf03990161941d31a535814139ea1ae3cd1444

requirements:
  host:
    - setuptools
    - bx-python
    - pip
    - nose
    # CPAT explicitly checks if python's version string starts with 2.7
    - python >=2.7,<2.8
    - pysam
    - numpy
    - cython

  run:
    - bx-python
    - python >=2.7,<2.8
    - numpy
    - pysam
    - r-base

test:
  commands:
    - cpat.py -h
    - make_hexamer_tab.py -h
    - make_logitModel.py -h

about:
  home: http://rna-cpat.sourceforge.net/
  license: GNU General Public v2 or later (GPLv2+)
  summary: Coding Potential Assessment Tool<commit_msg>Update cpat to 2.0.0 (#14921)<commit_after>{% set name = "cpat" %}
{% set version = "2.0.0" %}

package:
  name: "{{ name|lower }}"
  version: "{{ version }}"

build:
  noarch: python
  number: 0
  script: "{{ PYTHON }} -m pip install . --no-deps --ignore-installed -vv "

source:
  url: https://files.pythonhosted.org/packages/5c/ed/0cb7373f623f6e0d4a642f54cef717d4c78de339e0499ff57649a7c1f25f/CPAT-2.0.0.tar.gz
  sha256: bcd1fd8543f51c45abeeccf4612f059b46ee56c5a75877db9c170bf221a5b8f4

requirements:
  host:
    - setuptools
    - bx-python
    - pip
    - nose
    - python >=3.5
    - pysam
    - numpy
    - cython
  run:
    - bx-python
    - python >=3.5
    - numpy
    - pysam
    - r-base

test:
  commands:
    - cpat.py -h
    - make_hexamer_tab.py -h
    - make_logitModel.py -h

about:
  home: http://rna-cpat.sourceforge.net/
  license: GNU General Public v2 or later (GPLv2+)
  summary: Coding Potential Assessment Tool
{'fraction_non_alphanumeric': 0.1330582774626096, 'fraction_numerical': 0.10778751933986591, 'mean_word_length': 2.6329588014981273, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6400735', 'n_tokens_mistral': 931, 'n_tokens_neox': 816, 'n_words': 157}