<commit_before>package org.jpc.query;

import org.jpc.converter.TermConvertable;
import org.jpc.engine.prolog.PrologEngine;
import org.jpc.term.Term;

public abstract class PrologEngineQuery extends Query {

	private Term goal;
	private PrologEngine prologEngine;
	
	
	public PrologEngineQuery(PrologEngine prologEngine, TermConvertable termConvertable) {
		this.prologEngine = prologEngine;
		this.goal = termConvertable.asTerm();
	}
	
	@Override
	public PrologEngine getPrologEngine() {
		return prologEngine;
	}
	
	@Override
	public Term asTerm() {
		return goal;
	}
	
	protected Term asTerm(String termString) {
		return prologEngine.asTerm(termString);<commit_msg>adapting the PrologEngine class to the previous changes<commit_after>package org.jpc.query;

import org.jpc.engine.prolog.PrologEngine;
import org.jpc.term.Term;

public abstract class PrologEngineQuery extends Query {

	private Term goal;
	private PrologEngine prologEngine;
	
	
	public PrologEngineQuery(PrologEngine prologEngine, Term term) {
		this.prologEngine = prologEngine;
		this.goal = term;
	}
	
	@Override
	public PrologEngine getPrologEngine() {
		return prologEngine;
	}
	
	@Override
	public Term asTerm() {
		return goal;
	}
	
	protected Term asTerm(String termString) {
		return prologEngine.asTerm(termString);
{'fraction_non_alphanumeric': 0.07947530864197531, 'fraction_numerical': 0.0, 'mean_word_length': 5.0607476635514015, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6031809', 'n_tokens_mistral': 439, 'n_tokens_neox': 405, 'n_words': 98}