<commit_before>package me.pc.mobile.helper.v14.util;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.math.BigDecimal;

public class DimenUtil {
	private static String PATH_BASE = "K:/ccc/BevaErgeTV_V2/";

	/** path_large */
	private static String path_large = PATH_BASE + "res/values-large/";
	/** path_xlarge */
	private static String path_xlarge = PATH_BASE + "res/values-xlarge/";
	/** path_sw540dp */
	private static String path_sw540dp = PATH_BASE + "res/values-sw540dp/";
	/** path_sw600dp */
	private static String path_sw600dp = PATH_BASE + "res/values-sw600dp/";
	/** path_sw672dp */
	private static String path_sw672dp = PATH_BASE + "res/values-sw672dp/";
	/** path_sw720dp */
	private static String path_sw720dp = PATH_BASE + "res/values-sw720dp/";
	/** path_sw1080dp */
	private static String path_sw1080dp = PATH_BASE + "res/values-sw1080dp/";

	/** values_large scaled value */
	private static float scale_values_large = 0.75f;
	/** values_xlarge scaled value */
	private static float scale_values_xlarge = 1.00f;// base case.
	/** values_xlarge scaled value */
	private static float scale_values_xxlarge = 1.50f;
	/** values_large scaled value */
	private static float scale_values_sw540dp = 0.75f;
	/** values_sw600dp scaled value */
	private static float scale_values_sw600dp = 1.0f;// exception.
	/** values_sw672dp scaled value */
	private static float scale_values_sw672dp = 0.9f;
	/** values_xlarge scaled value */
	private static float scale_values_sw720dp = 1.00f;// base case.
	/** values_sw1080dp scaled value */
	private static float scale_values_sw1080dp = 1.50f;

	public static void main(String[] args) {
		File file = new File(path_sw720dp);
		File[] files = file.listFiles();
		String temp = "";
		for (File file2 : files) {
			// write 540
			temp = convertStreamToString(file2.getAbsolutePath(),
					scale_values_sw540dp);
			writeFile(path_sw540dp + file2.getName(), temp);
			// write 600<commit_msg>Update DimenUtil.java<commit_after>package me.pc.mobile.helper.v14.util;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.math.BigDecimal;

public class DimenUtil {
	private static String PATH_BASE = "K:/ccc/BevaErgeTV_V2/";

	/** path_large */
	private static String path_large = PATH_BASE + "res/values-large/";
	/** path_xlarge */
	private static String path_xlarge = PATH_BASE + "res/values-xlarge/";
	/** path_sw540dp */
	private static String path_sw540dp = PATH_BASE + "res/values-sw540dp/";
	/** path_sw600dp */
	private static String path_sw600dp = PATH_BASE + "res/values-sw600dp/";
	/** path_sw672dp */
	private static String path_sw672dp = PATH_BASE + "res/values-sw672dp/";
	/** path_sw720dp */
	private static String path_sw720dp = PATH_BASE + "res/values-sw720dp/";
	/** path_sw1080dp */
	private static String path_sw1080dp = PATH_BASE + "res/values-sw1080dp/";

	/** values_large scaled value */
	private static float scale_values_large = 0.75f;
	/** values_xlarge scaled value */
	private static float scale_values_xlarge = 1.00f;// base case.
	/** values_xlarge scaled value */
	private static float scale_values_xxlarge = 1.50f;
	/** values_large scaled value */
	private static float scale_values_sw540dp = 0.75f;
	/** values_sw600dp scaled value */
	private static float scale_values_sw600dp = 1.0f;// exception.
	/** values_sw672dp scaled value */
	private static float scale_values_sw672dp = 0.9f;
	/** values_xlarge scaled value */
	private static float scale_values_sw720dp = 1.00f;// base case.
	/** values_sw1080dp scaled value */
	private static float scale_values_sw1080dp = 1.50f;

	public static void main(String[] args) {
		File src = new File(
				"D:/Users/SilentKnight//res/values-sw1080dp/dimen.xml");
		File target720 = new File(
				"D:/Users/SilentKnight/res/values-sw720dp/dimen.xml");
		File target540 = new File(
				"D:/Users/SilentKnight/res/values-sw540dp/dimen.xml");
		File targetLarge = new File(
				"D:/Users/SilentKnight/res/values-large/dimen.xml");
		File targetXLarge = new File(
				"D:/Users/SilentKnight/res/values-xlarge/dimen.xml");
		File targetXXLarge = new File(
				"D:/Users/SilentKnight/res/values-xxlarge/dimen.xml");
		// 720
		String tmp = convertStreamToString(src.getAbsolutePath(), (float) 2 / 3);
		writeFile(target720.getAbsolutePath(), tmp);
		writeFile(targetXLarge.getAbsolutePath(), tmp);
		// 540
		tmp = convertStreamToString(src.getAbsolutePath(),
				(float) 2 / 3 * 0.75f);
		writeFile(target540.getAbsolutePath(), tmp);
		writeFile(targetLarge.getAbsolutePath(), tmp);
		// 1080
		tmp = convertStreamToString(src.getAbsolutePath(), 1.0f);
		writeFile(targetXXLarge.getAbsolutePath(), tmp);
		File file = new File(path_sw720dp);
		File[] files = file.listFiles();
		String temp = "";
		for (File file2 : files) {
			// write 540
			temp = convertStreamToString(file2.getAbsolutePath(),
					scale_values_sw540dp);
			writeFile(path_sw540dp + file2.getName(), temp);
			// write 600
{'fraction_non_alphanumeric': 0.12676875363442527, 'fraction_numerical': 0.053304904051172705, 'mean_word_length': 4.238578680203045, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '6073621', 'n_tokens_mistral': 2038, 'n_tokens_neox': 1725, 'n_words': 398}