<commit_before>import operator
from scoville.spiceSimulator import SpiceSimulator


class Circuit:
  def __init__(self, circuitData):
    self.originalData = circuitData

    self.usedParts = []
    self.inspectedElements = []
    self.mocks = {}
    self.simulator = SpiceSimulator()
    self.simulationResult = None<commit_msg>String decoding, for now just assume utf-8<commit_after>import operator
from scoville.spiceSimulator import SpiceSimulator


class Circuit:
  def __init__(self, circuitData):
    self.originalData = circuitData.decode('utf-8')

    self.usedParts = []
    self.inspectedElements = []
    self.mocks = {}
    self.simulator = SpiceSimulator()
    self.simulationResult = None
{'fraction_non_alphanumeric': 0.09388335704125178, 'fraction_numerical': 0.002844950213371266, 'mean_word_length': 4.101449275362318, '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': '2928669', 'n_tokens_mistral': 216, 'n_tokens_neox': 208, 'n_words': 45}