<commit_before>package cmd

import (
	"fmt"
	"log"
	"math"
	"sort"
	"time"

	"github.com/phil-mansfield/shellfish/los/geom"
	"github.com/phil-mansfield/shellfish/los/analyze"
	"github.com/phil-mansfield/shellfish/cmd/catalog"
	"github.com/phil-mansfield/shellfish/cmd/env"
	"github.com/phil-mansfield/shellfish/logging"
	"github.com/phil-mansfield/shellfish/parse"
	"github.com/phil-mansfield/shellfish/io"
	"github.com/phil-mansfield/shellfish/cmd/memo"
)

type ProfConfig struct {
	bins, order, samples int64
	rMaxMult, rMinMult float64

	pType profileType

}

type profileType int
const (
	densityProfile profileType = iota
	containedDensityProfile
	angularFractionProfile
)

var _ Mode = &ProfConfig{}

func (config *ProfConfig) ExampleConfig() string {
	return `[prof.config]

#####################
## Required Fields ##
#####################

# ProfileType determines what type of profile will be output.
# Known profile types are:
# density -          the traditional spherical densiy profile that we all
                     know and love.
# contained-densiy - a density profile which only uses particles.
# angular-fraction - the angular fraction at each radius which is contained
                     within the shell.
ProfileType = density

# Order is the order of the Penna-Dines shell fit that Shellfish uses. This
# variable only needs to be set if ProfileType is set to contained-density
# or angular-fraction.
# Order = 3

# Samples is the number of Monte Carlo samples used when calculating angular
# fraction profiles. It does not need to be set when other profiles are
# calculated.
# Samples = 50000

#####################
## Optional Fields ##
#####################

# Bins is the number of logarithmic radial bins used in a profile.
# Bins = 150

# RMaxMult is the maximum radius of the profile as a function of R_200m.
# RMaxMult = 3

# RMinMult is the minimum radius of the profile as a function of R_200m.
# RMinMult = 0.03<commit_msg>Fixed comments in prof config file.<commit_after>package cmd

import (
	"fmt"
	"log"
	"math"
	"sort"
	"time"

	"github.com/phil-mansfield/shellfish/los/geom"
	"github.com/phil-mansfield/shellfish/los/analyze"
	"github.com/phil-mansfield/shellfish/cmd/catalog"
	"github.com/phil-mansfield/shellfish/cmd/env"
	"github.com/phil-mansfield/shellfish/logging"
	"github.com/phil-mansfield/shellfish/parse"
	"github.com/phil-mansfield/shellfish/io"
	"github.com/phil-mansfield/shellfish/cmd/memo"
)

type ProfConfig struct {
	bins, order, samples int64
	rMaxMult, rMinMult float64

	pType profileType

}

type profileType int
const (
	densityProfile profileType = iota
	containedDensityProfile
	angularFractionProfile
)

var _ Mode = &ProfConfig{}

func (config *ProfConfig) ExampleConfig() string {
	return `[prof.config]

#####################
## Required Fields ##
#####################

# ProfileType determines what type of profile will be output.
# Known profile types are:
# density -            the traditional spherical densiy profile that we all
#                      know and love.
# contained-densiy -   a density profile which only uses particles.
# angular-fraction -   the angular fraction at each radius which is contained
#                      within the shell.
ProfileType = density

# Order is the order of the Penna-Dines shell fit that Shellfish uses. This
# variable only needs to be set if ProfileType is set to contained-density
# or angular-fraction.
# Order = 3

# Samples is the number of Monte Carlo samples used when calculating angular
# fraction profiles. It does not need to be set when other profiles are
# calculated.
# Samples = 50000

#####################
## Optional Fields ##
#####################

# Bins is the number of logarithmic radial bins used in a profile.
# Bins = 150

# RMaxMult is the maximum radius of the profile as a function of R_200m.
# RMaxMult = 3

# RMinMult is the minimum radius of the profile as a function of R_200m.
# RMinMult = 0.03
{'fraction_non_alphanumeric': 0.1201923076923077, 'fraction_numerical': 0.011639676113360324, 'mean_word_length': 3.87422934648582, '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': '1939287', 'n_tokens_mistral': 1254, 'n_tokens_neox': 1169, 'n_words': 404}