<commit_before>package main

import (
	"errors"
	"fmt"
	"io/ioutil"
	"os"
	"path"
	"strconv"
)

type RawAction struct {
	BaseAction `yaml:",inline"`
	Offset     string
	Source     string
	Path       string
}

func (raw *RawAction) Verify(context *YaibContext) error {
	if raw.Source != "rootdir" {
		return errors.New("Only suppport sourcing from filesystem")
	}

	return nil
}

func (raw *RawAction) Run(context *YaibContext) error {
	raw.LogStart()
	s := path.Join(context.rootdir, raw.Path)<commit_msg>Change source naming in the raw action<commit_after>package main

import (
	"errors"
	"fmt"
	"io/ioutil"
	"os"
	"path"
	"strconv"
)

type RawAction struct {
	BaseAction `yaml:",inline"`
	Offset     string
	Source     string
	Path       string
}

func (raw *RawAction) Verify(context *YaibContext) error {
	if raw.Source != "filesystem" {
		return errors.New("Only suppport sourcing from filesystem")
	}

	return nil
}

func (raw *RawAction) Run(context *YaibContext) error {
	raw.LogStart()
	s := path.Join(context.rootdir, raw.Path)
{'fraction_non_alphanumeric': 0.1233140655105973, 'fraction_numerical': 0.0, 'mean_word_length': 4.019323671497585, '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': '7168761', 'n_tokens_mistral': 382, 'n_tokens_neox': 371, 'n_words': 99}