<commit_before>/*
 * Copyright 2014 Nastel Technologies, 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 com.nastel.jkool.tnt4j.core;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;

import com.nastel.jkool.tnt4j.source.Source;
import com.nastel.jkool.tnt4j.utils.Utils;

/**
 * <p>Implements a collection of related event and sub-activities.</p>
 *
 * <p>Represents a collection of linked items <code>LinkedItem</code>
 * that should be considered to be a single related unit. These are generally
 * delimited by BEGIN/END (or BEGIN/EXCEPTION)calls.
 * </p>
 *
 * <p>A <code>Activity</code> is required to have its start time set,
 * and to have it's end time set if its status is not <code>ActivityStatus.BEGIN</code>.</p>
 *
 * @see ActivityStatus
 * @see ActivityListener
 * @see Message
 * @see Operation
 * @see Property
 * @see Trackable
 *
 * @version $Revision: 11 $
 */
public class Activity extends Operation implements Trackable {
	private Source appl;
	private String tracking_id;
	private String parentId;
	private ActivityStatus status = ActivityStatus.BEGIN;

	private HashSet<String> correlators = new HashSet<String>(89);<commit_msg>Code cleanup<commit_after>/*
 * Copyright 2014 Nastel Technologies, 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 com.nastel.jkool.tnt4j.core;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;

import com.nastel.jkool.tnt4j.source.Source;

/**
 * <p>Implements a collection of related event and sub-activities.</p>
 *
 * <p>Represents a collection of linked items <code>LinkedItem</code>
 * that should be considered to be a single related unit. These are generally
 * delimited by BEGIN/END (or BEGIN/EXCEPTION)calls.
 * </p>
 *
 * <p>A <code>Activity</code> is required to have its start time set,
 * and to have it's end time set if its status is not <code>ActivityStatus.BEGIN</code>.</p>
 *
 * @see ActivityStatus
 * @see ActivityListener
 * @see Message
 * @see Operation
 * @see Property
 * @see Trackable
 *
 * @version $Revision: 11 $
 */
public class Activity extends Operation implements Trackable {
	private Source appl;
	private String tracking_id;
	private String parentId;
	private ActivityStatus status = ActivityStatus.BEGIN;

	private HashSet<String> correlators = new HashSet<String>(89);
{'fraction_non_alphanumeric': 0.0943620178041543, 'fraction_numerical': 0.008605341246290801, 'mean_word_length': 4.178187403993856, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '2264912', 'n_tokens_mistral': 984, 'n_tokens_neox': 953, 'n_words': 384}