<commit_before>/*
 * AttentionalFocusCB.h
 *
 *  Created on: 17 Jun, 2014
 *      Author: misgana
 */

#ifndef _ATTENTIONAL_FOCUS_CB_H
#define _ATTENTIONAL_FOCUS_CB_H

#include <opencog/atomspace/AtomSpace.h>
#include <opencog/atomspace/Link.h>
#include <iostream>
#include <vector>
#include <algorithm>

#include "PatternMatchCallback.h"
#include "DefaultPatternMatchCB.h"


namespace opencog {

class AttentionalFocusCB: public virtual DefaultPatternMatchCB {

private:
	AtomSpace * _atom_space;
public:
	AttentionalFocusCB(AtomSpace * as) :
			DefaultPatternMatchCB(as), _atom_space(as) {
	}
	bool node_match(Handle& node1, Handle& node2);
	bool link_match(LinkPtr& lpat, LinkPtr& lsoln);
	IncomingSet get_incoming_set(Handle h);
};
} //namespace opencog
#endif /* _ATTENTIONALFOCUSCB_H */
<commit_msg>another way<commit_after>/*
 * AttentionalFocusCB.h
 *
 *  Created on: 17 Jun, 2014
 *      Author: misgana
 */

#ifndef _ATTENTIONAL_FOCUS_CB_H
#define _ATTENTIONAL_FOCUS_CB_H

#include <opencog/atomspace/AtomSpace.h>
#include <opencog/atomspace/Link.h>
#include <iostream>
#include <vector>
#include <algorithm>

#include "PatternMatchCallback.h"
#include "DefaultPatternMatchCB.h"


namespace opencog {

class AttentionalFocusCB: public virtual DefaultPatternMatchCB {

private:
	AtomSpace * _atom_space;
public:
	AttentionalFocusCB(AtomSpace * as) :
			DefaultPatternMatchCB(as), _atom_space(as) {
	}
	bool node_match(Handle& node1, Handle& node2);
	bool link_match(LinkPtr& lpat, LinkPtr& lsoln);
	IncomingSet get_incoming_set(Handle h);

};
} //namespace opencog
#endif /* _ATTENTIONALFOCUSCB_H */

{'fraction_non_alphanumeric': 0.11062771908017402, 'fraction_numerical': 0.009944064636420136, 'mean_word_length': 5.793248945147679, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '5544772', 'n_tokens_mistral': 624, 'n_tokens_neox': 596, 'n_words': 119}