<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
"""
import pandas as pd
import numpy as np
import math

from .utils import _get_bin_count
from .plots import heatmap

SMPS_STATS_COLUMN_NAMES = [
    'Scan Up Time',
    'Retrace Time',
    'Down Scan First',
    'Scans Per Sample',
    'Impactor Type',
    'Sheath Flow',
    'Aerosol Flow',
    'CPC Inlet Flow',
    'CPC Sample Flow',
    'Low Voltage',
    'High Voltage',
    'Lower Size',
    'Upper Size',
    'Density',
    'Title',
    'Status Flag',
    'td',
    'tf',
    'D50',
    'Median',
    'Mean',
    'Geo. Mean',
    'Mode',
    'Geo Std Dev',
    'Total Concentration',
    'Comment'
]

class SMPS(object):
    """"""
    def __init__(self, df, meta, bins, bin_labels, meta=None):
        self.df = df
        self.meta = meta
        self.bins = bins
        self.midpoints = bins[:, 1]
        self.bin_labels = bin_labels

        self.histogram = self.df[self.bin_labels]

    def histogram(self):
        return self.df[self.bin_labels]

    def heatmap(self):<commit_msg>fixed dup arg error<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
"""
import pandas as pd
import numpy as np
import math

from .utils import _get_bin_count
from .plots import heatmap

SMPS_STATS_COLUMN_NAMES = [
    'Scan Up Time',
    'Retrace Time',
    'Down Scan First',
    'Scans Per Sample',
    'Impactor Type',
    'Sheath Flow',
    'Aerosol Flow',
    'CPC Inlet Flow',
    'CPC Sample Flow',
    'Low Voltage',
    'High Voltage',
    'Lower Size',
    'Upper Size',
    'Density',
    'Title',
    'Status Flag',
    'td',
    'tf',
    'D50',
    'Median',
    'Mean',
    'Geo. Mean',
    'Mode',
    'Geo Std Dev',
    'Total Concentration',
    'Comment'
]

class SMPS(object):
    """"""
    def __init__(self, df, bins, bin_labels, meta=None):
        self.df = df
        self.meta = meta
        self.bins = bins
        self.midpoints = bins[:, 1]
        self.bin_labels = bin_labels

        self.histogram = self.df[self.bin_labels]

    def histogram(self):
        return self.df[self.bin_labels]

    def heatmap(self):
{'fraction_non_alphanumeric': 0.14426691729323307, 'fraction_numerical': 0.0037593984962406013, 'mean_word_length': 2.3422291993720563, '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': '5230371', 'n_tokens_mistral': 790, 'n_tokens_neox': 755, 'n_words': 201}