<commit_before>#!/usr/bin/env python
# encoding: utf-8
    
def acoustics(solver_type='classic',iplot=False,htmlplot=False,outdir='./_output',problem='figure 9.4'):
    """
    This example solves the 1-dimensional variable-coefficient acoustics
    equations in a medium with a single interface.
    """
    from numpy import sqrt, abs

    import pyclaw

    if solver_type=='classic':
        solver = pyclaw.ClawSolver1D()
    elif solver_type=='sharpclaw':
        solver = pyclaw.SharpClawSolver1D()
    else: raise Exception('Unrecognized value of solver_type.')

    solver.mwaves=2
    solver.limiters = pyclaw.limiters.tvd.MC<commit_msg>Plot acoustics book example by default.<commit_after>#!/usr/bin/env python
# encoding: utf-8
    
def acoustics(solver_type='classic',iplot=True,htmlplot=False,outdir='./_output',problem='figure 9.4'):
    """
    This example solves the 1-dimensional variable-coefficient acoustics
    equations in a medium with a single interface.
    """
    from numpy import sqrt, abs

    import pyclaw

    if solver_type=='classic':
        solver = pyclaw.ClawSolver1D()
    elif solver_type=='sharpclaw':
        solver = pyclaw.SharpClawSolver1D()
    else: raise Exception('Unrecognized value of solver_type.')

    solver.mwaves=2
    solver.limiters = pyclaw.limiters.tvd.MC
{'fraction_non_alphanumeric': 0.11144806671721001, 'fraction_numerical': 0.01061410159211524, 'mean_word_length': 3.697508896797153, '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': '3512293', 'n_tokens_mistral': 461, 'n_tokens_neox': 425, 'n_words': 96}