<commit_before>'use strict';
/// <reference path="../typings/browser.d.ts" />

import * as _ from 'lodash';
import {FetchUtil} from './FetchUtil';
import {ApiDocumentation} from "./ApiDocumentation";
import {JsonLd} from './Constants';
import {JsonLdUtil} from "./JsonLdUtil";
import {ResourceFactory} from './ResourceFactory';
import {Resource} from "./Resources";

class Heracles implements IHeracles {
    public resourceFactory = new ResourceFactory();

    loadResource(uri:string) {
        return FetchUtil.fetchResource(uri)<commit_msg>fix interface implementation<commit_after>'use strict';
/// <reference path="../typings/browser.d.ts" />

import * as _ from 'lodash';
import {FetchUtil} from './FetchUtil';
import {ApiDocumentation} from "./ApiDocumentation";
import {JsonLd} from './Constants';
import {JsonLdUtil} from "./JsonLdUtil";
import {ResourceFactory} from './ResourceFactory';
import {Resource} from "./Resources";

class Heracles implements IHeracles {
    public resourceFactory = new ResourceFactory();

    loadResource(uri:string):Promise<IHydraResource> {
        return FetchUtil.fetchResource(uri)
{'fraction_non_alphanumeric': 0.14285714285714285, 'fraction_numerical': 0.0, 'mean_word_length': 5.097297297297297, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '1626379', 'n_tokens_mistral': 315, 'n_tokens_neox': 308, 'n_words': 87}