<commit_before>package net.coding.program.project;


import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.readystatesoftware.viewbadger.BadgeView;

import net.coding.program.R;
import net.coding.program.common.Global;
import net.coding.program.common.GlobalData;
import net.coding.program.common.ImageLoadTool;
import net.coding.program.common.RedPointTip;
import net.coding.program.common.model.ProjectObject;
import net.coding.program.common.ui.BaseFragment;
import net.coding.program.project.init.setting.ProjectSettingMainActivity_;
import net.coding.program.project.init.setting.v2.EnterpriseProjectSetActivity_;

import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.EFragment;
import org.androidannotations.annotations.FragmentArg;
import org.androidannotations.annotations.ViewById;
import org.greenrobot.eventbus.EventBus;
import org.json.JSONException;
import org.json.JSONObject;

@EFragment(R.layout.fragment_public_project_home)
public abstract class BaseProjectHomeFragment extends BaseFragment {

    public final String HOST_VISTIT = getHostVisit();
    protected boolean isUpdateDynamic = false;

    @FragmentArg
    ProjectObject mProjectObject;

    protected View.OnClickListener clickProjectSetting = v -> {
        if (!GlobalData.isEnterprise()) {
            ProjectSettingMainActivity_.intent(BaseProjectHomeFragment.this)
                    .projectObject(mProjectObject)
                    .start();
        } else {
            EnterpriseProjectSetActivity_.intent(BaseProjectHomeFragment.this)
                    .project(mProjectObject)<commit_msg>公开项目设置页保持原来 UI<commit_after>package net.coding.program.project;


import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.readystatesoftware.viewbadger.BadgeView;

import net.coding.program.R;
import net.coding.program.common.Global;
import net.coding.program.common.GlobalData;
import net.coding.program.common.ImageLoadTool;
import net.coding.program.common.RedPointTip;
import net.coding.program.common.model.ProjectObject;
import net.coding.program.common.ui.BaseFragment;
import net.coding.program.project.init.setting.ProjectSetActivity_;
import net.coding.program.project.init.setting.ProjectSettingMainActivity_;
import net.coding.program.project.init.setting.v2.EnterpriseProjectSetActivity_;

import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.EFragment;
import org.androidannotations.annotations.FragmentArg;
import org.androidannotations.annotations.ViewById;
import org.greenrobot.eventbus.EventBus;
import org.json.JSONException;
import org.json.JSONObject;

@EFragment(R.layout.fragment_public_project_home)
public abstract class BaseProjectHomeFragment extends BaseFragment {

    public final String HOST_VISTIT = getHostVisit();
    protected boolean isUpdateDynamic = false;

    @FragmentArg
    ProjectObject mProjectObject;

    protected View.OnClickListener clickProjectSetting = v -> {
        if (!GlobalData.isEnterprise()) {
            if (!mProjectObject.isPublic) {
                ProjectSettingMainActivity_.intent(BaseProjectHomeFragment.this)
                        .projectObject(mProjectObject)
                        .start();
            } else {
                ProjectSetActivity_.intent(this).projectObject(mProjectObject).start();
            }
        } else {
            EnterpriseProjectSetActivity_.intent(BaseProjectHomeFragment.this)
                    .project(mProjectObject)
{'fraction_non_alphanumeric': 0.08648498331479422, 'fraction_numerical': 0.0005561735261401557, 'mean_word_length': 4.321005917159764, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4334705', 'n_tokens_mistral': 976, 'n_tokens_neox': 933, 'n_words': 152}