<commit_before>#! /usr/bin/env python
import git
import shutil
import os
import yaml

class Seasoning:
  def __init__(basedir, branch):
    self.fileref = basedir + "/" + branch + "/states/seasoning.yml"
    self.statesdir = basedir + "/" + branch + "/states"
    self.config = ""

  def loadseasoning():
    self.config = yaml.safe_load(self.fileref)
  
  def cloneformula(name, url, branch):
    targetdir = self.statesdir + "/" + name
    g = git.cmd.Git()
    g.clone(url, targetdir, branch=branch, depth=1)<commit_msg>Updated loadseasoning<commit_after>#! /usr/bin/env python
import git
import shutil
import os
import yaml

class Seasoning:
  def __init__(basedir, branch):
    self.fileref = basedir + "/" + branch + "/states/seasoning.yml"
    self.statesdir = basedir + "/" + branch + "/states"
    self.config = ""

  def loadseasoning():
    stream = open(self.fileref)
    self.config = yaml.safe_load(stream)
    stream.close()
  
  def cloneformula(name, url, branch):
    targetdir = self.statesdir + "/" + name
    g = git.cmd.Git()
    g.clone(url, targetdir, branch=branch, depth=1)
{'fraction_non_alphanumeric': 0.14194722474977253, 'fraction_numerical': 0.0018198362147406734, 'mean_word_length': 3.3824701195219125, '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': '6498183', 'n_tokens_mistral': 386, 'n_tokens_neox': 368, 'n_words': 87}