<commit_before>package org.smeup.sys.os.type.base.api.tools;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import org.eclipse.datatools.modelbase.sql.constraints.Index;
import org.eclipse.datatools.modelbase.sql.query.TableInDatabase;
import org.eclipse.datatools.modelbase.sql.query.helper.StatementHelper;
import org.eclipse.datatools.modelbase.sql.tables.Table;
import org.eclipse.datatools.sqltools.parsers.sql.query.SQLQueryParseResult;
import org.smeup.sys.db.core.QConnection;
import org.smeup.sys.db.syntax.QDefinitionParseResult;
import org.smeup.sys.db.syntax.QDefinitionParser;
import org.smeup.sys.db.syntax.QDefinitionStatement;
import org.smeup.sys.db.syntax.QQueryParser;
import org.smeup.sys.db.syntax.ddl.QCreateIndexStatement;
import org.smeup.sys.db.syntax.ddl.QCreateViewStatement;
import org.smeup.sys.db.syntax.ddl.impl.CreateViewStatementImpl;
import org.smeup.sys.il.memo.QResourceWriter;
import org.smeup.sys.os.core.jobs.QJob;
import org.smeup.sys.os.file.QLogicalFile;
import org.smeup.sys.os.file.QPhysicalFile;
import org.smeup.sys.os.type.QTypedObject;

public class IndexList {

	private QTypedObject objToRename;
	private List<String> indexNames;
	private QJob job;
	private QDefinitionParser definitionParser;
	private QQueryParser queryParser;
	
	public IndexList(QJob job, QTypedObject objToRename) {
		this.job = job;
		this.objToRename = objToRename;
		this.definitionParser = job.getContext().get(QDefinitionParser.class); //???
		this.queryParser = job.getContext().get(QQueryParser.class); //????
		this.indexNames = findIndexes();
	}
	
	@SuppressWarnings("unchecked")
	private List<String> findIndexes() {<commit_msg>Rimozione warnings<commit_after>package org.smeup.sys.os.type.base.api.tools;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import org.eclipse.datatools.modelbase.sql.constraints.Index;
import org.eclipse.datatools.modelbase.sql.tables.Table;
import org.smeup.sys.db.core.QConnection;
import org.smeup.sys.db.syntax.QDefinitionParseResult;
import org.smeup.sys.db.syntax.QDefinitionParser;
import org.smeup.sys.db.syntax.QDefinitionStatement;
import org.smeup.sys.db.syntax.ddl.QCreateIndexStatement;
import org.smeup.sys.db.syntax.ddl.QCreateViewStatement;
import org.smeup.sys.il.memo.QResourceWriter;
import org.smeup.sys.os.core.jobs.QJob;
import org.smeup.sys.os.file.QLogicalFile;
import org.smeup.sys.os.file.QPhysicalFile;
import org.smeup.sys.os.type.QTypedObject;

public class IndexList {

	private QTypedObject objToRename;
	private List<String> indexNames;
	private QJob job;
	private QDefinitionParser definitionParser;
	
	public IndexList(QJob job, QTypedObject objToRename) {
		this.job = job;
		this.objToRename = objToRename;
		this.definitionParser = job.getContext().get(QDefinitionParser.class); //???
		this.indexNames = findIndexes();
	}
	
	@SuppressWarnings("unchecked")
	private List<String> findIndexes() {
{'fraction_non_alphanumeric': 0.12010796221322537, 'fraction_numerical': 0.0, 'mean_word_length': 5.738636363636363, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5714705', 'n_tokens_mistral': 1069, 'n_tokens_neox': 1041, 'n_words': 148}