<commit_before>import pyvcflib as pvcf
import sys

vcf_file = pvcf.VariantFile(sys.argv[1])

# echo the file
print vcf_file.header
for var in vcf_file:
    print var

# print individual attributes
for var in pvcf.VariantFile(sys.argv[1]):
    print var.chrom, var.pos, var.id, var.ref, \
        var.alt, var.num_hom_ref, \
        var.num_het, var.num_hom_alt, \
        var.num_unknown, var.num_valid, var.num_alt_alleles, \
        var.gts[0:10], var.gt_types[0:10], var.gt_phases[0:10], \
        var.samples<commit_msg>updated test.py<commit_after>import pyvcflib as pvcf
import sys

vcf_file = pvcf.VariantFile(sys.argv[1])

# echo the file
print vcf_file.header
for var in vcf_file:
    print var

# print individual attributes
for var in pvcf.VariantFile(sys.argv[1]):
    print "\t".join(str(s) for s in [var.chrom, var.pos, var.id, var.ref, \
        var.alt, var.qual, var.filter, var.info, \
        var.format, var.num_hom_ref, \
        var.num_het, var.num_hom_alt, \
        var.num_unknown, var.num_valid, var.num_alt_alleles, \
        var.gts[0:10], var.gt_types[0:10], var.gt_phases[0:10], \
        var.samples])
{'fraction_non_alphanumeric': 0.13062665489849956, 'fraction_numerical': 0.019417475728155338, 'mean_word_length': 3.0938628158844765, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6654901', 'n_tokens_mistral': 455, 'n_tokens_neox': 444, 'n_words': 92}