<commit_before>/*
 BddRunner.java

 Copyright (c) 2014 KazushigeSasaki

 This software is released under the MIT License.

 http://opensource.org/licenses/mit-license.php

 */
package jp.gr.java_conf.kazsharp.pretendbdd;

import java.io.InputStream;
import java.util.Properties;

import org.junit.runners.BlockJUnit4ClassRunner;
import org.junit.runners.model.FrameworkMethod;
import org.junit.runners.model.InitializationError;

/**
 * PretendBDDの機能を使うためのRunner.
 * <p>
 * テストクラスのRunnerに指定することで@Bddの値をメソッド名にする.
 * </p>
 * <blockquote>
 *
 * <pre>
 *
 * &#064;RunWith(BddRunner.class)
 * public class MyTest {
 *
 * 	&#064;Test
 *   &#064;Bdd(&quot;テストケースの説明&quot;)
 *   public void test1() {
 *     ・・・
 *   }
 * }
 *
 * </pre>
 *
 * </blockquote>
 *
 * @author <NAME>
 * @since 1.0
 *
 */
public class BddRunner extends BlockJUnit4ClassRunner {

	private static boolean executeBdd = false;

	static {
		InputStream in = null;
		try {
			in = BddRunner.class.getResourceAsStream("bddconf.properties");
			if (in != null) {
				Properties prop = new Properties();
				prop.load(in);
				executeBdd = Boolean.parseBoolean(prop.getProperty("bdd"));
			}
		} catch (Throwable t) {
			t.printStackTrace();
		} finally {
			if (in != null) {
				try {
					in.close();
				} catch (Exception e) {
				}
			}
		}<commit_msg>設定ファイルの取得パスを変更<commit_after>/*
 BddRunner.java

 Copyright (c) 2014 KazushigeSasaki

 This software is released under the MIT License.

 http://opensource.org/licenses/mit-license.php

 */
package jp.gr.java_conf.kazsharp.pretendbdd;

import java.io.InputStream;
import java.util.Properties;

import org.junit.runners.BlockJUnit4ClassRunner;
import org.junit.runners.model.FrameworkMethod;
import org.junit.runners.model.InitializationError;

/**
 * PretendBDDの機能を使うためのRunner.
 * <p>
 * テストクラスのRunnerに指定することで@Bddの値をメソッド名にする.
 * </p>
 * <blockquote>
 *
 * <pre>
 *
 * &#064;RunWith(BddRunner.class)
 * public class MyTest {
 *
 * 	&#064;Test
 *   &#064;Bdd(&quot;テストケースの説明&quot;)
 *   public void test1() {
 *     ・・・
 *   }
 * }
 *
 * </pre>
 *
 * </blockquote>
 *
 * @author <NAME>
 * @since 1.0
 *
 */
public class BddRunner extends BlockJUnit4ClassRunner {

	private static boolean executeBdd = false;

	static {
		InputStream in = null;
		try {
			in = BddRunner.class.getResourceAsStream("/bddconf.properties");
			if (in != null) {
				Properties prop = new Properties();
				prop.load(in);
				executeBdd = Boolean.parseBoolean(prop.getProperty("bdd"));
			}
		} catch (Throwable t) {
			t.printStackTrace();
		} finally {
			if (in != null) {
				try {
					in.close();
				} catch (Exception e) {
				}
			}
		}
{'fraction_non_alphanumeric': 0.14518574677786203, 'fraction_numerical': 0.013646702047005308, 'mean_word_length': 3.383720930232558, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '4740040', 'n_tokens_mistral': 1120, 'n_tokens_neox': 993, 'n_words': 178}