<commit_before>package manifestparser

import "errors"

type Application struct {
	Name string `yaml:"name"`
	Data map[string]interface{}
}

func (application Application) MarshalYAML() (interface{}, error) {
	return application.Data, nil
}

func (app *Application) UnmarshalYAML(unmarshal func(v interface{}) error) error {
	err := unmarshal(&app.Data)
	if err != nil {
		return err
	}

	if name, ok := app.Data["name"].(string); ok {
		app.Name = name
		return nil
	}

	return errors.New("Found an application with no name specified")
}<commit_msg>Remove redundant yaml struct tag<commit_after>package manifestparser

import "errors"

type Application struct {
	Name string
	Data map[string]interface{}
}

func (application Application) MarshalYAML() (interface{}, error) {
	return application.Data, nil
}

func (app *Application) UnmarshalYAML(unmarshal func(v interface{}) error) error {
	err := unmarshal(&app.Data)
	if err != nil {
		return err
	}

	if name, ok := app.Data["name"].(string); ok {
		app.Name = name
		return nil
	}

	return errors.New("Found an application with no name specified")
}
{'fraction_non_alphanumeric': 0.12398190045248869, 'fraction_numerical': 0.0, 'mean_word_length': 4.821052631578947, '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': '3085543', 'n_tokens_mistral': 359, 'n_tokens_neox': 334, 'n_words': 109}