APISonar


ai.susi.DAO.log

> ai > susi > DAO > log
ai APIs susi APIs DAO APIs log APIs

Example 1
public static void terminateAll() {
        List<Long> deleteIds = new ArrayList<>();
        computing.values().forEach(job -> {
            if (job.isAlive()) try {
                job.interrupt();
                DAO.log("interrupting TimeoutMatcher: '" + job.getName() + "'");
            } catch (Throwable e) {}
            else deleteIds.add(job.getId());
        });
        deleteIds.forEach(id -> computing.remove(id));
    }
Example 2
private static List<SusiUtterance> phrasesFromWildcard(String skillidname, boolean acceptWildcardIntent, String utterances_declaration, boolean prior, int line) {
        List<SusiUtterance> utterances = new ArrayList<>();
        for (String u: utterances_declaration.split("\\|")) {
            SusiUtterance utterance = new SusiUtterance(u.trim(), prior, line);
            if (!acceptWildcardIntent && utterance.isCatchallPhrase()) {
                DAO.log("WARNING: skipping skill / wildcard not allowed here: " + skillidname);
                continue;
            } else {
                utterances.add(utterance);
            }
        }
        return utterances;
    }