<commit_before>package it.sieradzki.userscript_parser;

import it.sieradzki.userscript_parser.metadata.ApiFunction;
import it.sieradzki.userscript_parser.metadata.ExecuteRules;
import it.sieradzki.userscript_parser.metadata.RunAt;
import it.sieradzki.userscript_parser.metadata.Version;

import java.net.URL;
import java.util.EnumSet;
import java.util.Set;

/**
 * @see <a href="http://wiki.greasespot.net/Metadata_Block">Metadata Block specification</a>
 * @see <a href="http://wiki.greasespot.net/@grant">@grant specification</a>
 */
public class Userscript {

	public static final String OPENING_TAG = "==UserScript==";

	public static final String CLOSING_TAG = "==/UserScript==";

	// @description
	private String description;

	// @downloadURL
	private URL downloadUrl;

	// @include + @match, @exclude
	private ExecuteRules executeRules;

	// @grant
	private Set<ApiFunction> grantedApiFunctions = EnumSet.noneOf(ApiFunction.class);

	// @icon
	private URL icon;

	// @name
	private String name;

	// @namespace
	private String namespace;

	// @require
	private Set<URL> require;

	// @run-at
	private RunAt runAt;

	// @updateURL
	private URL updateUrl;

	// @version
	private Version version;<commit_msg>Initialize "require" field with empty set<commit_after>package it.sieradzki.userscript_parser;

import it.sieradzki.userscript_parser.metadata.ApiFunction;
import it.sieradzki.userscript_parser.metadata.ExecuteRules;
import it.sieradzki.userscript_parser.metadata.RunAt;
import it.sieradzki.userscript_parser.metadata.Version;

import java.net.URL;
import java.util.EnumSet;
import java.util.HashSet;
import java.util.Set;

/**
 * @see <a href="http://wiki.greasespot.net/Metadata_Block">Metadata Block specification</a>
 * @see <a href="http://wiki.greasespot.net/@grant">@grant specification</a>
 */
public class Userscript {

	public static final String OPENING_TAG = "==UserScript==";

	public static final String CLOSING_TAG = "==/UserScript==";

	// @description
	private String description;

	// @downloadURL
	private URL downloadUrl;

	// @include + @match, @exclude
	private ExecuteRules executeRules;

	// @grant
	private Set<ApiFunction> grantedApiFunctions = EnumSet.noneOf(ApiFunction.class);

	// @icon
	private URL icon;

	// @name
	private String name;

	// @namespace
	private String namespace;

	// @require
	private Set<URL> require = new HashSet<URL>();

	// @run-at
	private RunAt runAt;

	// @updateURL
	private URL updateUrl;

	// @version
	private Version version;
{'fraction_non_alphanumeric': 0.12395041983206717, 'fraction_numerical': 0.0, 'mean_word_length': 4.699316628701594, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, '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': '3107332', 'n_tokens_mistral': 839, 'n_tokens_neox': 796, 'n_words': 182}