<commit_before>// See LICENSE.txt for licensing information.

// Package piratebay implements a robust and comprehensive interface to PirateBay.
package piratebay

import (
	"fmt"
	"io/ioutil"
	"log"
	"net/http"
	"os"
	"regexp"
	"time"
)

const (
	VERSION = "0.0.1" // current version of the library
)

// Category represents a fully qualified PirateBay's category,
// e.g. "HD - TV shows". Categories are scraped.
type Category struct {
	Group string
	Title string
	ID    string
}

// Ordering represents a PirateBay's ordering. Orderings are scraped.
type Ordering struct {
	Title string
	ID    string
}

// Torrent represents a torrent and all its data that were possible to scrape.
type Torrent struct {
	Site
	Category
	ID       string
	Title    string
	Magnet   string
	Uploaded time.Time
	User     string
	VIPUser  bool
	SizeStr  string
	SizeInt  int64<commit_msg>Version bump<commit_after>// See LICENSE.txt for licensing information.

// Package piratebay implements a robust and comprehensive interface to PirateBay.
package piratebay

import (
	"fmt"
	"io/ioutil"
	"log"
	"net/http"
	"os"
	"regexp"
	"time"
)

const (
	VERSION = "0.0.2" // current version of the library
)

// Category represents a fully qualified PirateBay's category,
// e.g. "HD - TV shows". Categories are scraped.
type Category struct {
	Group string
	Title string
	ID    string
}

// Ordering represents a PirateBay's ordering. Orderings are scraped.
type Ordering struct {
	Title string
	ID    string
}

// Torrent represents a torrent and all its data that were possible to scrape.
type Torrent struct {
	Site
	Category
	ID       string
	Title    string
	Magnet   string
	Uploaded time.Time
	User     string
	VIPUser  bool
	SizeStr  string
	SizeInt  int64
{'fraction_non_alphanumeric': 0.07352096496266514, 'fraction_numerical': 0.005743825387708214, 'mean_word_length': 3.2281553398058254, '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': '4686504', 'n_tokens_mistral': 572, 'n_tokens_neox': 551, 'n_words': 212}