<commit_before>/* $Id$ */
/* Author: <NAME>, University of Heidelberg, 1999 */

                                 // The most fundamental class in the
                                 // library is the ``Triangulation''
                                 // class, which is declared here:
#include <grid/tria.h>
                                 // We need the following two includes
                                 // for loops over cells and/or faces:
#include <grid/tria_accessor.h>
#include <grid/tria_iterator.h>
                                 // Here are some functions to
                                 // generate standard grids:
#include <grid/grid_generator.h>
                                 // We would like to use boundaries
                                 // which are not straight lines, so
                                 // we import some classes which
                                 // predefine some boundary
                                 // descriptions:
#include <grid/tria_boundary_lib.h>
                                 // Output of grids in various
                                 // graphics formats:
#include <grid/grid_out.h>

                                 // This is needed for C++ output:
#include <fstream>



                                 // In the following function, we
                                 // simply use the unit square as
                                 // domain and produce a globally
                                 // refined grid from it.
void first_grid ()
{
                                   // Define an object for a
                                   // triangulation of a
                                   // two-dimensional domain. Here and
                                   // in many following cases, the
                                   // string "<2>" after a class name
                                   // indicates that this is an object
                                   // that shall work in two space
                                   // dimensions. Likewise, there are
                                   // version working in one ("<1>")
                                   // and three ("<3>") space
                                   // dimensions, or for all
                                   // dimensions. We will see such
                                   // constructs in later examples,
                                   // where we show how to program
                                   // dimension independently.
                                   // (At present, only one through
                                   // three space dimensions are
                                   // supported, but that is not a
                                   // restriction. In case someone
                                   // would like to implement four
                                   // dimensional finite elements, for<commit_msg>Avoid errors about undeclared sqrt and fabs<commit_after>/* $Id$ */
/* Author: <NAME>, University of Heidelberg, 1999 */

                                 // The most fundamental class in the
                                 // library is the ``Triangulation''
                                 // class, which is declared here:
#include <grid/tria.h>
                                 // We need the following two includes
                                 // for loops over cells and/or faces:
#include <grid/tria_accessor.h>
#include <grid/tria_iterator.h>
                                 // Here are some functions to
                                 // generate standard grids:
#include <grid/grid_generator.h>
                                 // We would like to use boundaries
                                 // which are not straight lines, so
                                 // we import some classes which
                                 // predefine some boundary
                                 // descriptions:
#include <grid/tria_boundary_lib.h>
                                 // Output of grids in various
                                 // graphics formats:
#include <grid/grid_out.h>

                                 // This is needed for C++ output:
#include <fstream>
				 // And this for the declarations of the
				 // `sqrt' and `fabs' functions:
#include <cmath>



                                 // In the following function, we
                                 // simply use the unit square as
                                 // domain and produce a globally
                                 // refined grid from it.
void first_grid ()
{
                                   // Define an object for a
                                   // triangulation of a
                                   // two-dimensional domain. Here and
                                   // in many following cases, the
                                   // string "<2>" after a class name
                                   // indicates that this is an object
                                   // that shall work in two space
                                   // dimensions. Likewise, there are
                                   // version working in one ("<1>")
                                   // and three ("<3>") space
                                   // dimensions, or for all
                                   // dimensions. We will see such
                                   // constructs in later examples,
                                   // where we show how to program
                                   // dimension independently.
                                   // (At present, only one through
                                   // three space dimensions are
                                   // supported, but that is not a
                                   // restriction. In case someone
                                   // would like to implement four
                                   // dimensional finite elements, for
{'fraction_non_alphanumeric': 0.06228143213988343, 'fraction_numerical': 0.002331390507910075, 'mean_word_length': 0.7228915662650602, 'pattern_counts': {'":': 0, '<': 26, '<?xml version=': 0, '>': 26, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 86, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6939018', 'n_tokens_mistral': 1142, 'n_tokens_neox': 1058, 'n_words': 438}