<commit_before>package dk.cs.aau.huppaal.backend;

import com.uppaal.engine.Engine;
import dk.cs.aau.huppaal.abstractions.Component;
import dk.cs.aau.huppaal.abstractions.Location;

import java.io.File;
import java.util.function.Consumer;

public class DummyUPPAALDriver implements IUPPAALDriver {
    @Override
    public void generateDebugUPPAALModel() throws Exception, BackendException {
        throw new BackendException("UPPAAL not found at expected location");
    }

    @Override
    public void buildHUPPAALDocument() throws BackendException, Exception {
        throw new BackendException("UPPAAL not found at expected location");
    }

    @Override
    public Thread runQuery(String query, Consumer<Boolean> success, Consumer<BackendException> failure) {
        return null;
    }

    @Override
    public Thread runQuery(String query, Consumer<Boolean> success, Consumer<BackendException> failure, long timeout) {
        return null;
    }

    @Override
    public Thread runQuery(String query, Consumer<Boolean> success, Consumer<BackendException> failure, Consumer<Engine> engineConsumer) {
        return null;
    }

    @Override
    public Thread runQuery(String query, Consumer<Boolean> success, Consumer<BackendException> failure, Consumer<Engine> engineConsumer, QueryListener queryListener) {
        return null;
    }

    @Override
    public void stopEngines() {

    }

    @Override
    public String getLocationReachableQuery(Location location, Component component) {
        return null;
    }

    @Override
    public String getExistDeadlockQuery(Component component) {
        return null;
    }

    @Override
    public File getServerFile() {
        return null;
    }
}<commit_msg>DummyUPPAALDriver toasts added<commit_after>package dk.cs.aau.huppaal.backend;

import com.uppaal.engine.Engine;
import dk.cs.aau.huppaal.HUPPAAL;
import dk.cs.aau.huppaal.abstractions.Component;
import dk.cs.aau.huppaal.abstractions.Location;

import java.io.File;
import java.util.function.Consumer;

public class DummyUPPAALDriver implements IUPPAALDriver {
    @Override
    public void generateDebugUPPAALModel() throws Exception, BackendException {
        throw new BackendException("UPPAAL not found at expected location");
    }

    @Override
    public void buildHUPPAALDocument() throws BackendException, Exception {
        throw new BackendException("UPPAAL not found at expected location");
    }

    @Override
    public Thread runQuery(String query, Consumer<Boolean> success, Consumer<BackendException> failure) {
        HUPPAAL.showToast("UPPAAL not found");
        return null;
    }

    @Override
    public Thread runQuery(String query, Consumer<Boolean> success, Consumer<BackendException> failure, long timeout) {
        HUPPAAL.showToast("UPPAAL not found");
        return null;
    }

    @Override
    public Thread runQuery(String query, Consumer<Boolean> success, Consumer<BackendException> failure, Consumer<Engine> engineConsumer) {
        HUPPAAL.showToast("UPPAAL not found");
        return null;
    }

    @Override
    public Thread runQuery(String query, Consumer<Boolean> success, Consumer<BackendException> failure, Consumer<Engine> engineConsumer, QueryListener queryListener) {
        HUPPAAL.showToast("UPPAAL not found");
        return null;
    }

    @Override
    public void stopEngines() {
        HUPPAAL.showToast("UPPAAL not found");
    }

    @Override
    public String getLocationReachableQuery(Location location, Component component) {
        HUPPAAL.showToast("UPPAAL not found");
        return null;
    }

    @Override
    public String getExistDeadlockQuery(Component component) {
        HUPPAAL.showToast("UPPAAL not found");
        return null;
    }

    @Override
    public File getServerFile() {
        HUPPAAL.showToast("UPPAAL not found");
        return null;
    }
}
{'fraction_non_alphanumeric': 0.08329035585353275, 'fraction_numerical': 0.0, 'mean_word_length': 3.563529411764706, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '2275206', 'n_tokens_mistral': 1117, 'n_tokens_neox': 1110, 'n_words': 278}