<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""

"""

from argo import argo

def validate_profile(p):
    pass

def test_extract_1_profile():
    p = argo.extract_profile('test_data/D20150316_prof.nc', 0)
    assert len(p) == 1
    validate_profile(p)

def test_extract_list_profiles():
    p = argo.extract_profile('test_data/D20150316_prof.nc', [0, 2, 5])
    assert len(p) == 3
    validate_profile(p)

def test_extract_all_profiles():
    p = argo.extract_profile('test_data/D20150316_prof.nc')
    assert len(p) > 1
    validate_profile(p)<commit_msg>Specific import of extract_profile.<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""

"""

from argo.argo import extract_profile

def validate_profile(p):
    pass

def test_extract_1_profile():
    p = extract_profile('test_data/D20150316_prof.nc', 0)
    assert len(p) == 1
    validate_profile(p)

def test_extract_list_profiles():
    p = extract_profile('test_data/D20150316_prof.nc', [0, 2, 5])
    assert len(p) == 3
    validate_profile(p)

def test_extract_all_profiles():
    p = extract_profile('test_data/D20150316_prof.nc')
    assert len(p) > 1
    validate_profile(p)
{'fraction_non_alphanumeric': 0.13919726729291204, 'fraction_numerical': 0.05636208368915457, 'mean_word_length': 4.117903930131004, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4414686', 'n_tokens_mistral': 481, 'n_tokens_neox': 434, 'n_words': 80}