<commit_before>#!/usr/bin/env python
from ARMI_Lt import ARMISeekr
from Bio.Blast.Applications import NcbiblastnCommandline
__author__ = '<NAME>'


class Jackson(ARMISeekr):

    def _blast(self, (fasta, db)):
        blastn = NcbiblastnCommandline(query=fasta,
                                       db=db,
                                       evalue=10,
                                       outfmt="'6 sseqid nident slen'",
                                       perc_identity=self.cutoff,
                                       num_descriptions=10000,
                                       num_alignments=10000)
        stdout, stderr = blastn()
        if stdout != '':
            plus = [[fasta, aln[0],
                     (lambda x: "{0.2d}".format(x) if x >= 100 else '+')(abs(float(aln[1]) / float(aln[2])))]
                    for aln in [hsp.split('\t')
                    for hsp in stdout.rstrip().split("\n")]
                    if abs(float(aln[1]) / float(aln[2])) >= self.cutoff/100.0]

            print plus
            return plus
<commit_msg>removed print debug<commit_after>#!/usr/bin/env python
from ARMI_Lt import ARMISeekr
from Bio.Blast.Applications import NcbiblastnCommandline
__author__ = '<NAME>'


class Jackson(ARMISeekr):

    def _blast(self, (fasta, db)):
        blastn = NcbiblastnCommandline(query=fasta,
                                       db=db,
                                       evalue=10,
                                       outfmt="'6 sseqid nident slen'",
                                       perc_identity=self.cutoff,
                                       num_descriptions=10000,
                                       num_alignments=10000)
        stdout, stderr = blastn()
        if stdout != '':
            return [[fasta, aln[0],
                     (lambda x: "{0.2d}".format(x) if x >= 100 else '+')(abs(float(aln[1]) / float(aln[2])))]
                    for aln in [hsp.split('\t')
                    for hsp in stdout.rstrip().split("\n")]
                    if abs(float(aln[1]) / float(aln[2])) >= self.cutoff/100.0]

{'fraction_non_alphanumeric': 0.11929657794676807, 'fraction_numerical': 0.025665399239543727, 'mean_word_length': 1.2905331882480957, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1418528', 'n_tokens_mistral': 663, 'n_tokens_neox': 602, 'n_words': 122}