<commit_before>/*
 * Java Genetic Algorithm Library (@__identifier__@).
 * Copyright (c) @__year__@ <NAME>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Author:
 *    <NAME> (<EMAIL>)
 */
package org.jenetics;

/**
 * @author <a href="mailto:<EMAIL>"><NAME></a>
 * @version @__version__@ &mdash; <em>$Date: 2014-02-02 $</em>
 * @since @__version__@
 */
public final class DoubleGene implements Gene<Double, DoubleGene> {

	private final Double _value;
	private final Double _min;
	private final Double _max;


	public DoubleGene(final Double value, final Double min, final Double max) {
		_value = value;
		_min = min;
		_max = max;
	}

	public Double getMin() {
		return _min;
	}

	public Double getMax() {
		return _max;
	}

	@Override
	public Double getAllele() {
		return _value;
	}

	@Override
	public DoubleGene newInstance() {
		return null;
	}

	@Override
	public Object copy() {
		return null;
	}

	@Override
	public boolean isValid() {
		return false;
	}
}
<commit_msg>Re-Implement number genes/chromosomes without JScience.<commit_after>/*
 * Java Genetic Algorithm Library (@__identifier__@).
 * Copyright (c) @__year__@ <NAME>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Author:
 *    <NAME> (<EMAIL>)
 */
package org.jenetics;

/**
 * @author <a href="mailto:<EMAIL>"><NAME></a>
 * @version @__version__@ &mdash; <em>$Date: 2014-02-02 $</em>
 * @since @__version__@
 */
public final class DoubleGene extends Number implements Gene<Double, DoubleGene> {

	private final Double _value;
	private final Double _min;
	private final Double _max;


	public DoubleGene(final Double value, final Double min, final Double max) {
		_value = value;
		_min = min;
		_max = max;
	}

	public Double getMin() {
		return _min;
	}

	public Double getMax() {
		return _max;
	}

	@Override
	public Double getAllele() {
		return _value;
	}

	@Override
	public DoubleGene newInstance() {
		return null;
	}

	@Override
	public Object copy() {
		return null;
	}

	@Override
	public boolean isValid() {
		return false;
	}

	@Override
	public int intValue() {
		return _value.intValue();
	}

	@Override
	public long longValue() {
		return _value.longValue();
	}

	@Override
	public float floatValue() {
		return _value.floatValue();
	}

	@Override
	public double doubleValue() {
		return _value;
	}
}

{'fraction_non_alphanumeric': 0.10814058275758485, 'fraction_numerical': 0.00720937218383899, 'mean_word_length': 3.7503566333808847, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3867985', 'n_tokens_mistral': 1091, 'n_tokens_neox': 1014, 'n_words': 376}