<commit_before>from __future__ import print_function
import numpy as np
import os
import logging
import matplotlib.pyplot as plt
import moog
import errors
from tools import linfit
from star import Star
import datetime


logger = logging.getLogger(__name__)


class SolvePars:
    def __init__(self):
        self.step_teff = 32
        self.step_logg = 0.32
        self.step_vt = 0.32
        self.niter = 50
        self.grid = 'odfnew'
        self.solar_afe = 7.45
        self.errors = False

class PlotPars:
    def __init__(self):
        self.afe = None
        self.wavelength_range = None
        self.make_figure = True<commit_msg>allow grid to be an argument<commit_after>from __future__ import print_function
import numpy as np
import os
import logging
import matplotlib.pyplot as plt
import moog
import errors
from tools import linfit
from star import Star
import datetime


logger = logging.getLogger(__name__)


class SolvePars:
    def __init__(self, grid='odfnew'):
        self.step_teff = 32
        self.step_logg = 0.32
        self.step_vt = 0.32
        self.niter = 50
        self.grid = grid
        self.solar_afe = 7.45
        self.errors = False

class PlotPars:
    def __init__(self):
        self.afe = None
        self.wavelength_range = None
        self.make_figure = True
{'fraction_non_alphanumeric': 0.06412213740458016, 'fraction_numerical': 0.01984732824427481, 'mean_word_length': 2.6115702479338845, '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': '2698059', 'n_tokens_mistral': 426, 'n_tokens_neox': 399, 'n_words': 125}