<commit_before># -*- coding: utf-8 -*-
"""The sql Query model class."""
import re

from build.lib.plasoscaffolder.model import sql_query_model


class SQLQueryModel(object):
  "A sql Query Model."

  def __init__(self, query: str, name: str, columns: []):
    """ initializes the sql Query model.

    Args:
      columns ([SQLColumns]): list of columns for the Query
      name (str): The Name of the Query.
      query (str): The SQL Query.
    """
    self._name = name
    self._query = query
    self._columns = columns

  @property
  def Name(self) -> str:
    """ the sql Query Name.

    Returns:
      (str): The Name of the sql Query parser row.
    """
    return self._name

  @property
  def Query(self) -> bool:
    """ the sql Query

    Returns:
      (str): The SQL Query.

    """
    return self._query

  @property
  def Columns(self) -> []:
      return self._columns

class SQLColumns(object):
  """class for columns of a sql Query"""

  def __init__(self, sql_column: str):
    """ initializes the sql column model.

    Args:
      sqlcolum (str): the column Name of the sql Query
    """
    self._sql_column = sql_column

  @property
  def SQLColumn(self) -> str:
    """the sql column

    Returns:
      (str): the column of the sql
    """
    return self._sql_column

  #TODO write test
  def ColumnAsSnakeCase(self) -> str:
    """sql column name to snake case

    Returns:
      (str): the column name from the sql in snake case 
    """
    return '_'.join(re.findall('[A-Z][a-z]*', self._sql_column.lower()))
<commit_msg>correct some pylint errors<commit_after># -*- coding: utf-8 -*-
"""The sql Query model class."""
import re


class SQLQueryModel(object):
  "A sql Query Model."

  def __init__(self, query: str, name: str, columns: []):
    """ initializes the sql Query model.

    Args:
      columns ([SQLColumns]): list of columns for the Query
      name (str): The Name of the Query.
      query (str): The SQL Query.
    """
    self._name = name
    self._query = query
    self._columns = columns

  @property
  def Name(self) -> str:
    """ the sql Query Name.

    Returns:
      str: The Name of the sql Query parser row.
    """
    return self._name

  @property
  def Query(self) -> bool:
    """ the sql Query

    Returns:
      str: The SQL Query.

    """
    return self._query

  @property
  def Columns(self) -> []:
    """the columns of the query

    Returns:
      [SQLColumns]: list of columns
    """
    return self._columns


class SQLColumns(object):
  """class for columns of a sql Query"""

  def __init__(self, sql_column: str):
    """ initializes the sql column model.

    Args:
      sql_column (str): the column Name of the sql Query
    """
    self._sql_column = sql_column

  @property
  def SQLColumn(self) -> str:
    """the sql column

    Returns:
      str: the column of the sql
    """
    return self._sql_column

  # TODO write test
  def ColumnAsSnakeCase(self) -> str:
    """sql column name to snake case

    Returns:
      str: the column name from the sql in snake case
    """
    return '_'.join(re.findall('[A-Z][a-z]*', self._sql_column.lower()))
{'fraction_non_alphanumeric': 0.12301335028607756, 'fraction_numerical': 0.0006357279084551812, 'mean_word_length': 2.5280269058295963, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '4323091', 'n_tokens_mistral': 987, 'n_tokens_neox': 948, 'n_words': 349}