<commit_before>/**
 * This file is licensed under the University of Illinois/NCSA Open Source License. See LICENSE.TXT for details.
 */
package edu.illinois.codingtracker.operations.starts;

import org.json.simple.JSONObject;

import edu.illinois.codingtracker.operations.OperationLexer;
import edu.illinois.codingtracker.operations.OperationSymbols;
import edu.illinois.codingtracker.operations.OperationTextChunk;
import edu.illinois.codingtracker.operations.UserOperation;
import edu.oregonstate.cope.clientRecorder.JSONConstants;

/**
 * This operation is no longer recorded.
 * 
 * @author <NAME>
 * 
 */
public class StartedRefactoringOperation extends UserOperation {

	private String refactoring_ID;

	public StartedRefactoringOperation() {
		super();
	}

	@Override
	protected char getOperationSymbol() {
		return OperationSymbols.REFACTORING_STARTED_SYMBOL;
	}

	@Override
	public String getDescription() {
		return "Started refactoring";
	}

	@Override
	protected void populateTextChunk(OperationTextChunk textChunk) {
		//Nothing to populate here
	}

	@Override
	protected void initializeFrom(OperationLexer operationLexer) {
		//Nothing to initialize		
	}

	@Override
	public void replay() {
		isReplayedRefactoring= true;
	}
	
	@Override
	public void parse(JSONObject value) {
		super.parse(value);
		<commit_msg>Disabled setting the refactoring flag<commit_after>/**
 * This file is licensed under the University of Illinois/NCSA Open Source License. See LICENSE.TXT for details.
 */
package edu.illinois.codingtracker.operations.starts;

import org.json.simple.JSONObject;

import edu.illinois.codingtracker.operations.OperationLexer;
import edu.illinois.codingtracker.operations.OperationSymbols;
import edu.illinois.codingtracker.operations.OperationTextChunk;
import edu.illinois.codingtracker.operations.UserOperation;
import edu.oregonstate.cope.clientRecorder.JSONConstants;

/**
 * This operation is no longer recorded.
 * 
 * @author <NAME>
 * 
 */
public class StartedRefactoringOperation extends UserOperation {

	private String refactoring_ID;

	public StartedRefactoringOperation() {
		super();
	}

	@Override
	protected char getOperationSymbol() {
		return OperationSymbols.REFACTORING_STARTED_SYMBOL;
	}

	@Override
	public String getDescription() {
		return "Started refactoring";
	}

	@Override
	protected void populateTextChunk(OperationTextChunk textChunk) {
		//Nothing to populate here
	}

	@Override
	protected void initializeFrom(OperationLexer operationLexer) {
		//Nothing to initialize		
	}

	@Override
	public void replay() {
		//isReplayedRefactoring= true;
	}
	
	@Override
	public void parse(JSONObject value) {
		super.parse(value);
		
{'fraction_non_alphanumeric': 0.08507462686567165, 'fraction_numerical': 0.0, 'mean_word_length': 5.135011441647597, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1380132', 'n_tokens_mistral': 848, 'n_tokens_neox': 784, 'n_words': 188}