<commit_before>#!/usr/bin/python -tt

"""Module to connect to MongoDB. Acts as base class for different SPOTs. eg netspot."""

from bson.objectid import ObjectId

from pymongo import MongoClient

import netspot_settings


class SpotMAX(object):
  """Class that provides database access."""

  def __init__(self, database=None, collection=None):

    if database and collection:
      # Connect to inventory<commit_msg>datetime<commit_after>#!/usr/bin/python -tt

"""Module to connect to MongoDB. Acts as base class for different SPOTs. eg netspot."""

from bson.objectid import ObjectId

from pymongo import MongoClient
from datetime import datetime

import netspot_settings


class SpotMAX(object):
  """Class that provides database access."""

  def __init__(self, database=None, collection=None):

    if database and collection:
      # Connect to inventory
{'fraction_non_alphanumeric': 0.08826945412311266, 'fraction_numerical': 0.0, 'mean_word_length': 4.561290322580645, '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': '5500875', 'n_tokens_mistral': 248, 'n_tokens_neox': 233, 'n_words': 91}