<commit_before>#!/usr/bin/python3
import apsw as lite
import os as os
import time as time
import sys
import numpy as np
from scipy.stats import pearsonr

from camoco.lowess import lowess
from camoco.Camoco import Camoco
from camoco.Chrom import Chrom

from matplotlib import pylab

class HapMap(Camoco):
    def __init__(self,name,basedir="~/.camoco"):
        # initialize super class
        super(self.__class__,self).__init__(name,type='HapMap',basedir=basedir)

    @property
    def num_accessions(self):
        return self.db.cursor().execute("SELECT COUNT(*) FROM accessions").fetchone()[0]

    @property
    def num_snps(self):
        return self.db.cursor().execute("SELECT COUNT(*) FROM snps").fetchone()[0]

    def accessions(self):
        ''' returns genotypes for HapMap object '''
        return [ x[0] for x in self.db.cursor().execute('SELECT * FROM accessions ORDER BY rowid').fetchall()]<commit_msg>needed to remove reference to lowess<commit_after>#!/usr/bin/python3
import apsw as lite
import os as os
import time as time
import sys
import numpy as np
from scipy.stats import pearsonr

from camoco.Camoco import Camoco
from camoco.Chrom import Chrom

from matplotlib import pylab

class HapMap(Camoco):
    def __init__(self,name,basedir="~/.camoco"):
        # initialize super class
        super(self.__class__,self).__init__(name,type='HapMap',basedir=basedir)

    @property
    def num_accessions(self):
        return self.db.cursor().execute("SELECT COUNT(*) FROM accessions").fetchone()[0]

    @property
    def num_snps(self):
        return self.db.cursor().execute("SELECT COUNT(*) FROM snps").fetchone()[0]

    def accessions(self):
        ''' returns genotypes for HapMap object '''
        return [ x[0] for x in self.db.cursor().execute('SELECT * FROM accessions ORDER BY rowid').fetchall()]
{'fraction_non_alphanumeric': 0.11710239651416122, 'fraction_numerical': 0.004357298474945534, 'mean_word_length': 3.9249329758713136, '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': '5726856', 'n_tokens_mistral': 580, 'n_tokens_neox': 559, 'n_words': 162}