<commit_before>/**
 * Copyright (c) 2011 Source Auditor Inc.
 *
 *   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 org.spdx.rdfparser;

import java.util.List;

import com.google.common.collect.Lists;
import com.hp.hpl.jena.graph.Node;
import com.hp.hpl.jena.graph.Triple;
import com.hp.hpl.jena.rdf.model.Model;
import com.hp.hpl.jena.rdf.model.Property;
import com.hp.hpl.jena.rdf.model.Resource;
import com.hp.hpl.jena.util.iterator.ExtendedIterator;

/**
 * Contains an SPDX Package Verification Code, currently consisting
 * of a value and list of excluded files.
 * 
 * @author <NAME>
 *
 */
public class SpdxPackageVerificationCode {

	private String value;
	private List<String> excludedFileNames = Lists.newArrayList();
	private Model model;
	private Node verificationCodeNode;
	private Resource verificationCodeResource;

	
	public SpdxPackageVerificationCode(String value, String[] excludedFileNames) {
		this.value = value;
		for (int i = 0; i < excludedFileNames.length; i++) {
			this.excludedFileNames.add(excludedFileNames[i]);
		}
		this.model = null;
		this.verificationCodeNode = null;
		this.verificationCodeResource = null;
	}<commit_msg>SpdxPackageVerificationCode: Guard against excludedFileNames being null<commit_after>/**
 * Copyright (c) 2011 Source Auditor Inc.
 *
 *   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 org.spdx.rdfparser;

import java.util.List;

import com.google.common.collect.Lists;
import com.hp.hpl.jena.graph.Node;
import com.hp.hpl.jena.graph.Triple;
import com.hp.hpl.jena.rdf.model.Model;
import com.hp.hpl.jena.rdf.model.Property;
import com.hp.hpl.jena.rdf.model.Resource;
import com.hp.hpl.jena.util.iterator.ExtendedIterator;

/**
 * Contains an SPDX Package Verification Code, currently consisting
 * of a value and list of excluded files.
 * 
 * @author <NAME>
 *
 */
public class SpdxPackageVerificationCode {

	private String value;
	private List<String> excludedFileNames = Lists.newArrayList();
	private Model model;
	private Node verificationCodeNode;
	private Resource verificationCodeResource;

	
	public SpdxPackageVerificationCode(String value, String[] excludedFileNames) {
		this.value = value;
		if (excludedFileNames != null) {
			for (String fileName : excludedFileNames) {
				this.excludedFileNames.add(fileName);
			}
		}
		this.model = null;
		this.verificationCodeNode = null;
		this.verificationCodeResource = null;
	}
{'fraction_non_alphanumeric': 0.09431785405249495, 'fraction_numerical': 0.00490337467551197, 'mean_word_length': 4.085043988269795, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 7, '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': '3223593', 'n_tokens_mistral': 1070, 'n_tokens_neox': 1032, 'n_words': 327}