<commit_before>
from os.path import join
import sys
import numpy as np

from seisflows.tools import msg
from seisflows.tools import unix
from seisflows.tools.array import loadnpy, savenpy
from seisflows.tools.code import divides, exists
from seisflows.tools.config import SeisflowsParameters, SeisflowsPaths, \
    ParameterError, loadclass

PAR = SeisflowsParameters()
PATH = SeisflowsPaths()

import system
import solver
import optimize
import preprocess
import postprocess


class thrifty_inversion(loadclass('workflow', 'inversion')):
    """ Thrifty inversion subclass

      Provides savings over conventional inversion by avoiding redundant forward
      simulations associated with sufficient decrease and curvature tests in a 
      safeguarded backtracking line search.

      The results of 'inversion' and 'thrifty_inversion' should be exactly the
      same.  Users who value a simple, readable, easily extensible workflow 
      should choose 'inversion'. Users who value efficiency should choose 
      'thrifty_inversion.'
    """
<commit_msg>tweaked some docstrings<commit_after>
from os.path import join
import sys
import numpy as np

from seisflows.tools import msg
from seisflows.tools import unix
from seisflows.tools.array import loadnpy, savenpy
from seisflows.tools.code import divides, exists
from seisflows.tools.config import SeisflowsParameters, SeisflowsPaths, \
    ParameterError, loadclass

PAR = SeisflowsParameters()
PATH = SeisflowsPaths()

import system
import solver
import optimize
import preprocess
import postprocess


class thrifty_inversion(loadclass('workflow', 'inversion')):
    """ Thrifty inversion subclass

      Provides savings over conventional inversion by avoiding redundant forward
      simulations associated with sufficient decrease and curvature tests in a 
      safeguarded backtracking line search.

      The results of 'inversion' and 'thrifty_inversion' should be exactly the
      same.  Users who prefer a simpler but less efficient workflow can choose
      choose 'inversion'. Users who prefer a more efficient but more complicated
      workflow can choose 'thrifty_inversion.'
    """

{'fraction_non_alphanumeric': 0.04916512059369202, 'fraction_numerical': 0.0, 'mean_word_length': 4.474619289340102, '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': '1872075', 'n_tokens_mistral': 594, 'n_tokens_neox': 562, 'n_words': 227}