<commit_before><?xml version='1.0' encoding='utf-8'?>
<testproblem>
  <name>driven_cavity</name>
  <owner userid="piggt01"/>
  <problem_definition length="vlong" nprocs="1">
    <command_line>make run</command_line>
  </problem_definition>
  <variables>
    <variable name="convergence" language="python">import numpy
import driven_cavity
NN=numpy.array([ 16, 32, 64, 128 ])

error=driven_cavity.retrieve_results(NN)

convergence=numpy.log(error[:-1,:]/error[1:,:])/numpy.log(numpy.matrix(NN[1:]/NN[:-1]).T*numpy.matrix([1,1,1,1,1,1,1,1]))

    </variable>
  </variables>
  <pass_tests>
    <test name="Quantity1ConvergesToSecondOrder" language="python">import numpy
print convergence[:,0]
assert(numpy.all(convergence[:,0]&gt;1.54))</test>
    <test name="Quantity2ConvergesToSecondOrder" language="python">import numpy
print convergence[:,1]
assert(numpy.all(convergence[:,1]&gt;1.38))</test>
    <test name="Quantity3ConvergesToSecondOrder" language="python">import numpy<commit_msg>Revert example to 'long'.<commit_after><?xml version='1.0' encoding='utf-8'?>
<testproblem>
  <name>driven_cavity</name>
  <owner userid="piggt01"/>
  <problem_definition length="long" nprocs="1">
    <command_line>make run</command_line>
  </problem_definition>
  <variables>
    <variable name="convergence" language="python">import numpy
import driven_cavity
NN=numpy.array([ 16, 32, 64, 128 ])

error=driven_cavity.retrieve_results(NN)

convergence=numpy.log(error[:-1,:]/error[1:,:])/numpy.log(numpy.matrix(NN[1:]/NN[:-1]).T*numpy.matrix([1,1,1,1,1,1,1,1]))

    </variable>
  </variables>
  <pass_tests>
    <test name="Quantity1ConvergesToSecondOrder" language="python">import numpy
print convergence[:,0]
assert(numpy.all(convergence[:,0]&gt;1.54))</test>
    <test name="Quantity2ConvergesToSecondOrder" language="python">import numpy
print convergence[:,1]
assert(numpy.all(convergence[:,1]&gt;1.38))</test>
    <test name="Quantity3ConvergesToSecondOrder" language="python">import numpy
{'fraction_non_alphanumeric': 0.18507312153303077, 'fraction_numerical': 0.040342914775592535, 'mean_word_length': 7.4425531914893615, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 2, '>': 41, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '355218', 'n_tokens_mistral': 761, 'n_tokens_neox': 722, 'n_words': 98}