<commit_before>package com.nisoft.inspectortools.ui.typeinspect;

import android.app.Activity;
import android.app.Fragment;
import android.app.FragmentManager;
import android.content.Intent;
import android.os.Bundle;
import android.os.Environment;
import android.support.annotation.Nullable;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.StaggeredGridLayoutManager;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.TextView;
import android.widget.Toast;

import com.nisoft.inspectortools.R;
import com.nisoft.inspectortools.adapter.PicsAdapter;
import com.nisoft.inspectortools.bean.inspect.InspectRecodePics;
import com.nisoft.inspectortools.bean.inspect.PicsLab;
import com.nisoft.inspectortools.db.inspect.PicsDbSchema;
import com.nisoft.inspectortools.ui.base.DatePickerDialog;
import com.nisoft.inspectortools.ui.choosetype.ChooseRecodeTypeFragment;
import com.nisoft.inspectortools.ui.base.EditTextActivity;
import com.nisoft.inspectortools.utils.FileUtil;
import com.nisoft.inspectortools.utils.StringFormatUtil;

import java.io.File;
import java.util.ArrayList;
import java.util.Date;


/**
 * Created by Administrator on 2017/5/22.
 */

public class WorkingFragment extends Fragment {
    private TextView mDatePickerButton;
    private EditText mJobNumber;
    private TextView mDescriptionText;
    private RecyclerView mPicsView;
    private static InspectRecodePics sRecodePics;
    private ArrayList<String> mPicsPath;
    private PicsAdapter mAdapter;
    private ImageButton mJobNumSaveButton;
    private String oldJobNum;
    private String jobType;
    private static final String PATH = Environment.getExternalStorageState()+"/工作相册/";

    public static WorkingFragment newInstance(String jobNum,String inspectType) {
        WorkingFragment fragment = new WorkingFragment();
        Bundle args = new Bundle();
        if (jobNum != null) {
            args.putString("job_num", jobNum);
        }
        args.putString(ChooseRecodeTypeFragment.INSPECT_TYPE,inspectType);
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        init();
    }
<commit_msg>解决拍照闪退bug<commit_after>package com.nisoft.inspectortools.ui.typeinspect;

import android.app.Activity;
import android.app.Fragment;
import android.app.FragmentManager;
import android.content.Intent;
import android.os.Bundle;
import android.os.Environment;
import android.support.annotation.Nullable;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.StaggeredGridLayoutManager;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.TextView;
import android.widget.Toast;

import com.nisoft.inspectortools.R;
import com.nisoft.inspectortools.adapter.PicsAdapter;
import com.nisoft.inspectortools.bean.inspect.InspectRecodePics;
import com.nisoft.inspectortools.bean.inspect.PicsLab;
import com.nisoft.inspectortools.db.inspect.PicsDbSchema;
import com.nisoft.inspectortools.ui.base.DatePickerDialog;
import com.nisoft.inspectortools.ui.choosetype.ChooseRecodeTypeFragment;
import com.nisoft.inspectortools.ui.base.EditTextActivity;
import com.nisoft.inspectortools.utils.FileUtil;
import com.nisoft.inspectortools.utils.StringFormatUtil;

import java.io.File;
import java.util.ArrayList;
import java.util.Date;


/**
 * Created by Administrator on 2017/5/22.
 */

public class WorkingFragment extends Fragment {
    private TextView mDatePickerButton;
    private EditText mJobNumber;
    private TextView mDescriptionText;
    private RecyclerView mPicsView;
    private static InspectRecodePics sRecodePics;
    private ArrayList<String> mPicsPath;
    private PicsAdapter mAdapter;
    private ImageButton mJobNumSaveButton;
    private String oldJobNum;
    private String jobType;
    private static final String PATH = Environment.getExternalStorageDirectory().getAbsolutePath()+"/工作相册/";

    public static WorkingFragment newInstance(String jobNum,String inspectType) {
        WorkingFragment fragment = new WorkingFragment();
        Bundle args = new Bundle();
        if (jobNum != null) {
            args.putString("job_num", jobNum);
        }
        args.putString(ChooseRecodeTypeFragment.INSPECT_TYPE,inspectType);
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        init();
    }

{'fraction_non_alphanumeric': 0.08814413018209996, 'fraction_numerical': 0.0038744672607516468, 'mean_word_length': 4.867045454545455, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2895988', 'n_tokens_mistral': 1553, 'n_tokens_neox': 1528, 'n_words': 296}