<commit_before>/*----------------------------   function_lib.h     ---------------------------*/
/*      $Id$                 */
/* Copyright <NAME>, University of Minnesota, 1999                     */
#ifndef __function_lib_H
#define __function_lib_H
/*----------------------------   function_lib.h     ---------------------------*/


#include <base/function.h>

/**
 * n-quadratic pillow on the unit square.
 *
 * This is a function for testing the implementation. It has zero
 * boundary values on the domain $(-1,1)^d$. In the inside, it is the
 * product of $x_i^2-1$.
 *
 * Together with the function, its derivatives and Laplacian are defined.
 * @author: <NAME>, 1999
 */
template<int dim>
class PillowFunction : Function<dim>
{
  public:
				     /**
				      * The value at a single point.
				      */
    virtual double value (const Point<dim>   &p,
			  const unsigned int  component = 0) const;

				     /**
				      * Values at multiple points.
				      */
    virtual void value_list (const vector<Point<dim> > &points,
			     vector<double>            &values,
			     const unsigned int         component = 0) const;

				     /**
				      * Gradient at a single point.
				      */
    virtual Tensor<1,dim> gradient (const Point<dim>   &p,
				    const unsigned int  component = 0) const;

				     /**
				      * Gradients at multiple points.
				      */
    virtual void gradient_list (const vector<Point<dim> > &points,
				vector<Tensor<1,dim> >    &gradients,
				const unsigned int         component = 0) const;

				     /**
				      * Laplacian at a single point.
				      */
    double laplacian(const Point<dim>   &p,
		     const unsigned int  component = 0) const;

				     /**
				      * Laplacian at multiple points.
				      */
    void laplacian_list(const vector<Point<dim> > &points,
		   vector<double>            &values,
		   const unsigned int         component = 0) const;
};



/*----------------------------   function_lib.h     ---------------------------*/
/* end of #ifndef __function_lib_H */
#endif
/*----------------------------   function_lib.h     ---------------------------*/<commit_msg>Beautification. Fell out while doing other things.<commit_after>/*----------------------------   function_lib.h     ---------------------------*/
/*      $Id$               */
/* Copyright <NAME>, University of Minnesota, 1999                     */
#ifndef __function_lib_H
#define __function_lib_H
/*----------------------------   function_lib.h     ---------------------------*/


#include <base/function.h>

/**
 * n-quadratic pillow on the unit square.
 *
 * This is a function for testing the implementation. It has zero
 * boundary values on the domain $(-1,1)^d$. In the inside, it is the
 * product of $x_i^2-1$.
 *
 * Together with the function, its derivatives and Laplacian are defined.
 *
 * @author: <NAME>, 1999
 */
template<int dim>
class PillowFunction : Function<dim>
{
  public:
				     /**
				      * The value at a single point.
				      */
    virtual double value (const Point<dim>   &p,
			  const unsigned int  component = 0) const;

				     /**
				      * Values at multiple points.
				      */
    virtual void value_list (const vector<Point<dim> > &points,
			     vector<double>            &values,
			     const unsigned int         component = 0) const;

				     /**
				      * Gradient at a single point.
				      */
    virtual Tensor<1,dim> gradient (const Point<dim>   &p,
				    const unsigned int  component = 0) const;

				     /**
				      * Gradients at multiple points.
				      */
    virtual void gradient_list (const vector<Point<dim> > &points,
				vector<Tensor<1,dim> >    &gradients,
				const unsigned int         component = 0) const;

				     /**
				      * Laplacian at a single point.
				      */
    double laplacian(const Point<dim>   &p,
		     const unsigned int  component = 0) const;

				     /**
				      * Laplacian at multiple points.
				      */
    void laplacian_list(const vector<Point<dim> > &points,
			vector<double>            &values,
			const unsigned int         component = 0) const;
};



/*----------------------------   function_lib.h     ---------------------------*/
/* end of #ifndef __function_lib_H */
#endif
/*----------------------------   function_lib.h     ---------------------------*/
{'fraction_non_alphanumeric': 0.1984820607175713, 'fraction_numerical': 0.00919963201471941, 'mean_word_length': 1.4255437813720022, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, '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': '2544282', 'n_tokens_mistral': 1375, 'n_tokens_neox': 1106, 'n_words': 358}