<commit_before>// Copyright 2016 <NAME>. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.

// ID3v2 writing library for Go.
//
// This library can only set and write tags, but can't read them.
// So if you only want to set tags, it fits you.
// And if there is a tag of version 3 or 4, this library will just
// delete this tag, because it can't parse tags yet.
// If version of the tag is small than 3, this library will return an error.
//
// Example of creating a new tag and writing it in file:
//	package main
//
//	import (
// 		"github.com/bogem/id3v2"
// 		"log"
// 	)
//
// 	func main() {
//		// Open file and find tag in it
// 		tag, err := id3v2.Open("file.mp3")
// 		if err != nil {
// 		 log.Fatal("Error while opening mp3 file: ", err)
// 		}
//
//		// Set tags
// 		tag.SetArtist("Artist")
// 		tag.SetTitle("Title")
// 		tag.SetYear("2016")
// 		...
//
//		// Write it in file
// 		if err = tag.Flush(); err != nil {
// 			log.Fatal("Error while closing a tag: ", err)
// 		}
// 	}
package id3v2

import (
	"bytes"
	"github.com/bogem/id3v2/frame"
	"github.com/bogem/id3v2/util"
	"os"
	"sync"
)

// Possible picture types for picture frame.
const (
	PTOther                   = 0<commit_msg>Improve example of usage in overview of package<commit_after>// Copyright 2016 <NAME>. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.

// ID3v2 writing library for Go.
//
// This library can only set and write tags, but can't read them.
// So if you only want to set tags, it fits you.
// And if there is a tag of version 3 or 4, this library will just
// delete this tag, because it can't parse tags yet.
// If version of the tag is small than 3, this library will return an error.
//
// Example of creating a new tag and writing it in file:
//	package main
//
//	import (
// 		"github.com/bogem/id3v2"
// 		"log"
// 	)
//
// 	func main() {
//		// Open file and find tag in it
// 		tag, err := id3v2.Open("file.mp3")
// 		if err != nil {
// 		 log.Fatal("Error while opening mp3 file: ", err)
// 		}
//
//		// Set tags
// 		tag.SetArtist("Artist")
// 		tag.SetTitle("Title")
//
//		comment := id3v2.NewCommentFrame()
//		comment.SetLanguage("eng")
//		comment.SetDescription("Short description")
//		comment.SetText("The actual text")
//		tag.AddCommentFrame(comment)
//
//		// Write it to file
// 		if err = tag.Flush(); err != nil {
// 			log.Fatal("Error while flushing a tag: ", err)
// 		}
// 	}
package id3v2

import (
	"bytes"
	"github.com/bogem/id3v2/frame"
	"github.com/bogem/id3v2/util"
	"os"
	"sync"
)

// Possible picture types for picture frame.
const (
	PTOther                   = 0
{'fraction_non_alphanumeric': 0.14902102973168962, 'fraction_numerical': 0.018129079042784626, 'mean_word_length': 2.324096385542169, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3149416', 'n_tokens_mistral': 1037, 'n_tokens_neox': 978, 'n_words': 348}