<commit_before>package com.wh.finaldemos.demos.textshow.Path;

import android.os.Bundle;
import android.os.Environment;
import android.widget.TextView;

import com.wh.finaldemos.BaseDemoActivity;
import com.wh.finaldemos.R;

import java.io.File;

public class PathShowDemoActivity extends BaseDemoActivity {

    TextView mShowBoard;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_path_show_demo);

        mShowBoard = (TextView) findViewById(R.id.show_path);
        mShowBoard.setText(buildPathsString());
    }

    private String buildPathsString() {
        StringBuilder stringBuilder = new StringBuilder();
        File file1 = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);
        stringBuilder.append("Environment.DIRECTORY_DOWNLOADS:" + file1.getAbsolutePath() + ", exists:" + file1.exists());
        stringBuilder.append("\n\n");
        file1 = Environment.getExternalStorageDirectory();
        stringBuilder.append("Environment.getExternalStorageDirectory:" + file1.getAbsolutePath() + ", exists:" + file1.exists());
        stringBuilder.append("\n\n");
        file1 = getExternalFilesDir(null);
        stringBuilder.append("Context.getExternalFilesDir(null):" + file1.getAbsolutePath() + ", exists:" + file1.exists());
        stringBuilder.append("\n\n");
        file1 = getFilesDir();
        stringBuilder.append("Context.getFilesDir():" + file1.getAbsolutePath() + ", exists:" + file1.exists());
        stringBuilder.append("\n\n");
        return stringBuilder.toString();
    }
}<commit_msg>add Context.getExternalCacheDir in path text show demo<commit_after>package com.wh.finaldemos.demos.textshow.Path;

import android.os.Bundle;
import android.os.Environment;
import android.widget.TextView;

import com.wh.finaldemos.BaseDemoActivity;
import com.wh.finaldemos.R;

import java.io.File;

public class PathShowDemoActivity extends BaseDemoActivity {

    TextView mShowBoard;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_path_show_demo);

        mShowBoard = (TextView) findViewById(R.id.show_path);
        mShowBoard.setText(buildPathsString());
    }

    private String buildPathsString() {
        StringBuilder stringBuilder = new StringBuilder();
        File file1 = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);
        stringBuilder.append("Environment.DIRECTORY_DOWNLOADS:" + file1.getAbsolutePath() + ", exists:" + file1.exists());
        stringBuilder.append("\n\n");
        file1 = Environment.getExternalStorageDirectory();
        stringBuilder.append("Environment.getExternalStorageDirectory:" + file1.getAbsolutePath() + ", exists:" + file1.exists());
        stringBuilder.append("\n\n");
        file1 = getExternalFilesDir(null);
        stringBuilder.append("Context.getExternalFilesDir(null):" + file1.getAbsolutePath() + ", exists:" + file1.exists());
        stringBuilder.append("\n\n");
        file1 = getFilesDir();
        stringBuilder.append("Context.getFilesDir():" + file1.getAbsolutePath() + ", exists:" + file1.exists());
        stringBuilder.append("\n\n");
        file1 = getExternalCacheDir();
        stringBuilder.append("Context.getExternalCacheDir():" + file1.getAbsolutePath() + ", exists:" + file1.exists());
        stringBuilder.append("\n\n");
        return stringBuilder.toString();
    }
}
{'fraction_non_alphanumeric': 0.12847124824684433, 'fraction_numerical': 0.007573632538569425, 'mean_word_length': 4.015471167369902, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2375669', 'n_tokens_mistral': 984, 'n_tokens_neox': 960, 'n_words': 153}