<commit_before>part of signal_dart;

class HubProxy {
	InvokeResult invoke(String methodName, List<Object> parameters) {
    	List<Object> args = new List<Object>();
    	args.add(methodName);
    	args.addAll(parameters);
    	return new InvokeResult(hubProxy.callMethod('invoke',args));
  	}

 	HubConnection hubConnection;
	JsObject hubProxy;

	HubProxy(this.hubConnection,String hubName) {
		hubProxy = hubConnection.hubConnection.callMethod('createHubProxy',[hubName]);
	}

	void on(String methodName,Function callback) {
		hubProxy.callMethod('on',[methodName,callback]);
	}
}

class InvokeResult{
	JsObject invokeResult;

	InvokeResult(this.invokeResult);

	void done(void callback(dynamic Result)){
		invokeResult.callMethod('done',[callback]);
	}
}<commit_msg>Updated done method<commit_after>part of signal_dart;

class HubProxy {
	InvokeResult invoke(String methodName, List<Object> parameters) {
    	List<Object> args = new List<Object>();
    	args.add(methodName);
    	args.addAll(parameters);
    	return new InvokeResult(hubProxy.callMethod('invoke',args));
  	}

 	HubConnection hubConnection;
	JsObject hubProxy;

	HubProxy(this.hubConnection,String hubName) {
		hubProxy = hubConnection.hubConnection.callMethod('createHubProxy',[hubName]);
	}

	void on(String methodName,Function callback) {
		hubProxy.callMethod('on',[methodName,callback]);
	}
}

class InvokeResult{
	JsObject invokeResult;

	InvokeResult(this.invokeResult);

	void done(Function callback){
		invokeResult.callMethod('done',[callback]);
	}
}
{'fraction_non_alphanumeric': 0.12140992167101827, 'fraction_numerical': 0.0, 'mean_word_length': 5.905405405405405, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '4966696', 'n_tokens_mistral': 490, 'n_tokens_neox': 470, 'n_words': 85}