<commit_before>// golist is a Go utility for producing readable Go source listings
// using markdown. There are two rules it uses in producing these
// markdown listings:
//
// 1. lines beginning with a double slash are treated as markdown text.
// 2. all other lines are indented with a tab; according to markdown's
// syntax, this should produce a code listing.
//
// Currently, the only output formats supported are writing to standard out
// or a markdown file.
package main

import (
	"bufio"
	"flag"
	"fmt"
	"io"
	"io/ioutil"
	"os"
	"path/filepath"
	"regexp"
	"strings"
	"time"
)

const DefaultDateFormat = "2006-01-02 15:04:05 MST"

func buildCommentLine() (err error) {
	CommentLine, err = regexp.Compile(`^\s*` + LineComments + `\s*`)
	return
}

var (
	LineComments = ";;-"
	DateFormat   = DefaultDateFormat
	CommentLine  *regexp.Regexp
	InputFormats = map[string]SourceTransformer{
		"markdown": SourceToMarkdown,
		"tex":      SourceToLatex,<commit_msg>Fix Lisp pattern.<commit_after>// golist is a Go utility for producing readable Go source listings
// using markdown. There are two rules it uses in producing these
// markdown listings:
//
// 1. lines beginning with a double slash are treated as markdown text.
// 2. all other lines are indented with a tab; according to markdown's
// syntax, this should produce a code listing.
//
// Currently, the only output formats supported are writing to standard out
// or a markdown file.
package main

import (
	"bufio"
	"flag"
	"fmt"
	"io"
	"io/ioutil"
	"os"
	"path/filepath"
	"regexp"
	"strings"
	"time"
)

const DefaultDateFormat = "2006-01-02 15:04:05 MST"

func buildCommentLine() (err error) {
	CommentLine, err = regexp.Compile(`^\s*` + LineComments + `\s*`)
	return
}

var (
	LineComments = `^\s*;;+`
	DateFormat   = DefaultDateFormat
	CommentLine  *regexp.Regexp
	InputFormats = map[string]SourceTransformer{
		"markdown": SourceToMarkdown,
		"tex":      SourceToLatex,
{'fraction_non_alphanumeric': 0.11466942148760331, 'fraction_numerical': 0.01652892561983471, 'mean_word_length': 3.818407960199005, 'pattern_counts': {'":': 4, '<': 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': '4345783', 'n_tokens_mistral': 681, 'n_tokens_neox': 633, 'n_words': 224}