<commit_before>/*******************************************************************************
 * Copyright 2012 <NAME>
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 ******************************************************************************/
package net.sf.uadetector;

import java.io.Serializable;

import javax.annotation.Nonnull;
import javax.annotation.concurrent.Immutable;
import javax.annotation.concurrent.NotThreadSafe;

import net.sf.qualitycheck.Check;

@Immutable
public final class DeviceCategory implements ReadableDeviceCategory, Serializable {

	@NotThreadSafe
	public static final class Builder {

		@Nonnull
		private Category category;

		@Nonnull
		private String icon;

		@Nonnull
		private String infoUrl;

		@Nonnull
		private String name;

		public Builder() {
			// default constructor
		}

		public Builder(@Nonnull final DeviceCategory deviceCategory) {
			Check.notNull(deviceCategory, "deviceCategory");
			category = Check.notNull(deviceCategory.getCategory(), "deviceCategory.getCategory()");
			icon = Check.notNull(deviceCategory.getIcon(), "deviceCategory.getIcon()");
			infoUrl = Check.notNull(deviceCategory.getInfoUrl(), "deviceCategory.getInfoUrl()");
			name = Check.notNull(deviceCategory.getName(), "deviceCategory.getName()");
		}

		@Nonnull
		public DeviceCategory build() {
			return new DeviceCategory(category, icon, infoUrl, name);
		}

		@Nonnull
		public Builder setCategory(@Nonnull final Category category) {
			this.category = Check.notNull(category, "category");
			return this;
		}

		@Nonnull<commit_msg>Removed accidentally set non-null annotations<commit_after>/*******************************************************************************
 * Copyright 2012 <NAME>
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 ******************************************************************************/
package net.sf.uadetector;

import java.io.Serializable;

import javax.annotation.Nonnull;
import javax.annotation.concurrent.Immutable;
import javax.annotation.concurrent.NotThreadSafe;

import net.sf.qualitycheck.Check;

@Immutable
public final class DeviceCategory implements ReadableDeviceCategory, Serializable {

	@NotThreadSafe
	public static final class Builder {

		private Category category;

		private String icon;

		private String infoUrl;

		private String name;

		public Builder() {
			// default constructor
		}

		public Builder(@Nonnull final DeviceCategory deviceCategory) {
			Check.notNull(deviceCategory, "deviceCategory");
			category = Check.notNull(deviceCategory.getCategory(), "deviceCategory.getCategory()");
			icon = Check.notNull(deviceCategory.getIcon(), "deviceCategory.getIcon()");
			infoUrl = Check.notNull(deviceCategory.getInfoUrl(), "deviceCategory.getInfoUrl()");
			name = Check.notNull(deviceCategory.getName(), "deviceCategory.getName()");
		}

		@Nonnull
		public DeviceCategory build() {
			return new DeviceCategory(category, icon, infoUrl, name);
		}

		@Nonnull
		public Builder setCategory(@Nonnull final Category category) {
			this.category = Check.notNull(category, "category");
			return this;
		}

		@Nonnull
{'fraction_non_alphanumeric': 0.16176470588235295, 'fraction_numerical': 0.003857280617164899, 'mean_word_length': 5.065789473684211, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4443929', 'n_tokens_mistral': 1141, 'n_tokens_neox': 1019, 'n_words': 339}