class Liveness {

    /**
     * Liveness.
     */
    public static final String LIVENESS = "liveness";

    /**
     * Key of user id.
     */
    public static final String LIVENESS_USER_ID = "livenessUserId";

    /**
     * Key of liveness date.
     */
    public static final String LIVENESS_DATE = "livenessDate";

    /**
     * Key of liveness point.
     */
    public static final String LIVENESS_POINT = "livenessPoint";

    /**
     * Key of liveness article.
     */
    public static final String LIVENESS_ARTICLE = "livenessArticle";

    /**
     * Key of liveness comment.
     */
    public static final String LIVENESS_COMMENT = "livenessComment";

    /**
     * Key of liveness activity.
     */
    public static final String LIVENESS_ACTIVITY = "livenessActivity";

    /**
     * Key of liveness thank.
     */
    public static final String LIVENESS_THANK = "livenessThank";

    /**
     * Key of liveness vote.
     */
    public static final String LIVENESS_VOTE = "livenessVote";

    /**
     * Key of liveness reward.
     */
    public static final String LIVENESS_REWARD = "livenessReward";

    /**
     * Key of liveness PV.
     */
    public static final String LIVENESS_PV = "livenessPV";

    /**
     * Key of liveness accept answer.
     */
    public static final String LIVENESS_ACCEPT_ANSWER = "livenessAcceptAnswer";

    /**
     * Calculates point of the specified liveness.
     *
     * @param liveness the specified liveness
     * @return point
     */
    public static int calcPoint(final JSONObject liveness) {<FILL_FUNCTION_BODY>}

    /**
     * Private constructor.
     */
    private Liveness() {
    }
}

        final float activityPer = Symphonys.ACTIVITY_YESTERDAY_REWARD_ACTIVITY_PER;
        final float articlePer = Symphonys.ACTIVITY_YESTERDAY_REWARD_ARTICLE_PER;
        final float commentPer = Symphonys.ACTIVITY_YESTERDAY_REWARD_COMMENT_PER;
        final float pvPer = Symphonys.ACTIVITY_YESTERDAY_REWARD_PV_PER;
        final float rewardPer = Symphonys.ACTIVITY_YESTERDAY_REWARD_REWARD_PER;
        final float thankPer = Symphonys.ACTIVITY_YESTERDAY_REWARD_THANK_PER;
        final float votePer = Symphonys.ACTIVITY_YESTERDAY_REWARD_VOTE_PER;
        final float acceptAnswerPer = Symphonys.ACTIVITY_YESTERDAY_REWARD_ACCEPT_ANSWER_PER;

        final int activity = liveness.optInt(Liveness.LIVENESS_ACTIVITY);
        final int article = liveness.optInt(Liveness.LIVENESS_ARTICLE);
        final int comment = liveness.optInt(Liveness.LIVENESS_COMMENT);
        int pv = liveness.optInt(Liveness.LIVENESS_PV);
        if (pv > 50) {
            pv = 50;
        }
        final int reward = liveness.optInt(Liveness.LIVENESS_REWARD);
        final int thank = liveness.optInt(Liveness.LIVENESS_THANK);
        int vote = liveness.optInt(Liveness.LIVENESS_VOTE);
        if (vote > 10) {
            vote = 10;
        }
        final int acceptAnswer = liveness.optInt(Liveness.LIVENESS_ACCEPT_ANSWER);

        final int activityPoint = (int) (activity * activityPer);
        final int articlePoint = (int) (article * articlePer);
        final int commentPoint = (int) (comment * commentPer);
        final int pvPoint = (int) (pv * pvPer);
        final int rewardPoint = (int) (reward * rewardPer);
        final int thankPoint = (int) (thank * thankPer);
        final int votePoint = (int) (vote * votePer);
        final int acceptAnswerPoint = (int) (acceptAnswer * acceptAnswerPer);

        int ret = activityPoint + articlePoint + commentPoint + pvPoint + rewardPoint + thankPoint + votePoint + acceptAnswerPoint;

        final int max = Symphonys.ACTIVITY_YESTERDAY_REWARD_MAX;
        if (ret > max) {
            ret = max;
        }

        return ret;
    
<no_super_class>