<commit_before><?php

namespace com\indigloo\sc\dao {

    /**
     * 
     * class to model activity feeds using redis data structures.
     * class uses redisent library as redis client
     * 
     * @see https://github.com/jdp/redisent
     *
     *
     */
    
    use \com\indigloo\Logger as Logger;
    use \com\indigloo\Configuration as Config;
    use \com\indigloo\sc\Constants as AppConstants;
    use \com\indigloo\sc\util\Redis as Redis;

    class ActivityFeed {

        function addFollower($followerId, $followerName, $followingId, $followingName, $verb) {

            //f1->f2 (f1 is following f2)
            if ($followerId == $followingId) {
                //do not chase your own shadows!
                return;
            }

            $feedVO = new \stdClass;

            $feedVO->type = AppConstants::FOLLOW_FEED;
            $feedVO->subjectId = $followerId;<commit_msg>Activity feed to use redis connection wrapper form webgloo repo now<commit_after><?php

namespace com\indigloo\sc\dao {

    /**
     * 
     * class to model activity feeds using redis data structures.
     * class uses redisent library as redis client
     * 
     * @see https://github.com/jdp/redisent
     *
     *
     */
    
    use \com\indigloo\Logger as Logger;
    use \com\indigloo\Configuration as Config;
    use \com\indigloo\sc\Constants as AppConstants;
    use \com\indigloo\connection\Redis as Redis;

    class ActivityFeed {

        function addFollower($followerId, $followerName, $followingId, $followingName, $verb) {

            //f1->f2 (f1 is following f2)
            if ($followerId == $followingId) {
                //do not chase your own shadows!
                return;
            }

            $feedVO = new \stdClass;

            $feedVO->type = AppConstants::FOLLOW_FEED;
            $feedVO->subjectId = $followerId;
{'fraction_non_alphanumeric': 0.1025228126677402, 'fraction_numerical': 0.0042941492216854536, 'mean_word_length': 1.9776357827476039, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '5437535', 'n_tokens_mistral': 609, 'n_tokens_neox': 560, 'n_words': 143}