<commit_before># -*- coding: utf-8 -*-
"""
===================================================================
Fullerene structure classes (:mod:`sknano.structures._fullerenes`)
===================================================================

.. currentmodule:: sknano.structures._fullerenes

"""
from __future__ import absolute_import, division, print_function
from __future__ import unicode_literals
from builtins import object
__docformat__ = 'restructuredtext en'

import numbers

__all__ = ['Fullerene']


class Fullerene(object):
    """Fullerene structure class.

    The `fullerene data
    <http://www.nanotube.msu.edu/fullerene/fullerene-isomers.html>`_
    were downloaded from the
    `The Nanotube Site <http://www.nanotube.msu.edu>`_.

    Parameters
    ----------
    N : int
        The :math:`N` in :math:`C_N` where :math:`N` is the number
        fullerene atoms. Always an even integer.
    PG : str, optional
        Symmetry

    Examples
    --------

    """
    def __init__(self, N=60, PG=None, Ni=None, **kwargs):

        super(Fullerene, self).__init__(**kwargs)

        # Check that N is a valid `N` and that `N` is
        self.N = N

        self.PG = PG
        self.Ni = Ni

    @property
    def N(self):
        return self._N

    @N.setter
    def N(self, value):
        if not (isinstance(value, numbers.Integral) or
                value > 0 or value % 2 == 0):
            raise TypeError('Expected an even, positive integer.')
        self._N = int(value)

    @N.deleter
    def N(self):
        del self._N<commit_msg>removing subclassing of `object`<commit_after># -*- coding: utf-8 -*-
"""
===================================================================
Fullerene structure classes (:mod:`sknano.structures._fullerenes`)
===================================================================

.. currentmodule:: sknano.structures._fullerenes

"""
from __future__ import absolute_import, division, print_function
from __future__ import unicode_literals
__docformat__ = 'restructuredtext en'

import numbers

__all__ = ['Fullerene']


class Fullerene:
    """Fullerene structure class.

    The `fullerene data
    <http://www.nanotube.msu.edu/fullerene/fullerene-isomers.html>`_
    were downloaded from the
    `The Nanotube Site <http://www.nanotube.msu.edu>`_.

    Parameters
    ----------
    N : int
        The :math:`N` in :math:`C_N` where :math:`N` is the number
        fullerene atoms. Always an even integer.
    PG : str, optional
        Symmetry

    Examples
    --------

    """
    def __init__(self, N=60, PG=None, Ni=None, **kwargs):

        super().__init__(**kwargs)

        # Check that N is a valid `N` and that `N` is
        self.N = N
        self.PG = PG
        self.Ni = Ni

    @property
    def N(self):
        return self._N

    @N.setter
    def N(self, value):
        if not (isinstance(value, numbers.Integral) or
                value > 0 or value % 2 == 0):
            raise TypeError('Expected an even, positive integer.')
        self._N = int(value)

    @N.deleter
    def N(self):
        del self._N
{'fraction_non_alphanumeric': 0.20257648953301127, 'fraction_numerical': 0.003864734299516908, 'mean_word_length': 2.6800947867298577, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2114756', 'n_tokens_mistral': 972, 'n_tokens_neox': 911, 'n_words': 253}