<commit_before>#include "functional.h"
#include "pw9xx.h"

template<class num>
static num energy(const densvars<num> &d)
{
  const parameter param_AB[6] = 
    { 0.19645, 7.7956, 0.2743, 0.1508, 100.0, 0.004};
  using pw91_like_x_internal::prefactor;
  using pw91_like_x_internal::pw91xk_enhancement;
  return prefactor(d.a)*pw91xk_enhancement(param_AB,d.a,d.gaa)
    + prefactor(d.b)*pw91xk_enhancement(param_AB,d.b,d.gbb);
}

void setup_pw91x(functional &f)
{
  f.describe(XC_PW91X, XC_GGA,
	     "Perdew-Wang 1991 GGA Exchange Functional",
	     "Perdew-Wang 1991 GGA Exchange Functional\n"
	     "<NAME>, <NAME>, <NAME>, "
	     "<NAME>, <NAME>, and <NAME>, "
	     "Phys. Rev. B 46, 6671 (1992)\n"
	     "Implemented by Andre Gomes.\n"
	     "Test from http://www.cse.scitech.ac.uk/ccg/dft/"
	     "data_pt_x_pw91.html\n"); 
  SET_GGA_ENERGY_FUNCTION(f,energy);
  const double d[] = <commit_msg>Add an extra decimal in a pw91x parameter. Does not affect the test.<commit_after>#include "functional.h"
#include "pw9xx.h"

template<class num>
static num energy(const densvars<num> &d)
{
  const parameter param_AB[6] = 
    { 0.19645, 7.7956, 0.2743, 0.15084, 100.0, 0.004};
  using pw91_like_x_internal::prefactor;
  using pw91_like_x_internal::pw91xk_enhancement;
  return prefactor(d.a)*pw91xk_enhancement(param_AB,d.a,d.gaa)
    + prefactor(d.b)*pw91xk_enhancement(param_AB,d.b,d.gbb);
}

void setup_pw91x(functional &f)
{
  f.describe(XC_PW91X, XC_GGA,
	     "Perdew-Wang 1991 GGA Exchange Functional",
	     "Perdew-Wang 1991 GGA Exchange Functional\n"
	     "<NAME>, <NAME>, <NAME>, "
	     "<NAME>, <NAME>, and <NAME>, "
	     "Phys. Rev. B 46, 6671 (1992)\n"
	     "Implemented by <NAME>.\n"
	     "Test from http://www.cse.scitech.ac.uk/ccg/dft/"
	     "data_pt_x_pw91.html\n"); 
  SET_GGA_ENERGY_FUNCTION(f,energy);
  const double d[] = 
{'fraction_non_alphanumeric': 0.15343057806591032, 'fraction_numerical': 0.07185305240410589, 'mean_word_length': 3.8481675392670156, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 20, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5493113', 'n_tokens_mistral': 900, 'n_tokens_neox': 769, 'n_words': 145}