<commit_before>/*
 * 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.
 */
package pomodoro.model;

import com.intellij.openapi.components.PersistentStateComponent;
import com.intellij.openapi.components.State;
import com.intellij.openapi.components.Storage;
import com.intellij.util.xmlb.XmlSerializerUtil;

import static java.util.concurrent.TimeUnit.MILLISECONDS;
import static java.util.concurrent.TimeUnit.MINUTES;

@State(name = "PomodoroSettings", storages = {@Storage(id = "other", file = "$APP_CONFIG$/pomodoro.settings.xml")})
public class Settings implements PersistentStateComponent<Settings> {
	public static final int DEFAULT_POMODORO_LENGTH = 25;
	public static final int DEFAULT_BREAK_LENGTH = 5;

	public int pomodoroLength = DEFAULT_POMODORO_LENGTH;
	public int breakLength = DEFAULT_BREAK_LENGTH;
	public int ringVolume = 1;
	public boolean popupEnabled = true;
	public boolean blockDuringBreak = false;
	public boolean showToolWindow = true;

	private long timeoutToContinuePomodoro = MILLISECONDS.convert(DEFAULT_BREAK_LENGTH, MINUTES);
	private ChangeListener changeListener;

	public long getPomodoroLengthInMillis() {
//		return 10000;
		return MINUTES.toMillis(pomodoroLength);
	}

	public long getBreakLengthInMillis() {
//		return 5000;
		return MINUTES.toMillis(breakLength);
	}

	public int getPomodoroLengthInMinutes() {
		return pomodoroLength;
	}

	public int getBreakLengthInMinutes() {
		return breakLength;
	}
<commit_msg>don't show pomodoro toolwindow by default<commit_after>/*
 * 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.
 */
package pomodoro.model;

import com.intellij.openapi.components.PersistentStateComponent;
import com.intellij.openapi.components.State;
import com.intellij.openapi.components.Storage;
import com.intellij.util.xmlb.XmlSerializerUtil;

import static java.util.concurrent.TimeUnit.MILLISECONDS;
import static java.util.concurrent.TimeUnit.MINUTES;

@State(name = "PomodoroSettings", storages = {@Storage(id = "other", file = "$APP_CONFIG$/pomodoro.settings.xml")})
public class Settings implements PersistentStateComponent<Settings> {
	public static final int DEFAULT_POMODORO_LENGTH = 25;
	public static final int DEFAULT_BREAK_LENGTH = 5;

	public int pomodoroLength = DEFAULT_POMODORO_LENGTH;
	public int breakLength = DEFAULT_BREAK_LENGTH;
	public int ringVolume = 1;
	public boolean popupEnabled = true;
	public boolean blockDuringBreak = false;
	public boolean showToolWindow = false;

	private long timeoutToContinuePomodoro = MILLISECONDS.convert(DEFAULT_BREAK_LENGTH, MINUTES);
	private ChangeListener changeListener;

	public long getPomodoroLengthInMillis() {
//		return 10000;
		return MINUTES.toMillis(pomodoroLength);
	}

	public long getBreakLengthInMillis() {
//		return 5000;
		return MINUTES.toMillis(breakLength);
	}

	public int getPomodoroLengthInMinutes() {
		return pomodoroLength;
	}

	public int getBreakLengthInMinutes() {
		return breakLength;
	}

{'fraction_non_alphanumeric': 0.07996953541507996, 'fraction_numerical': 0.008631632394008631, 'mean_word_length': 5.314102564102564, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, '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': '2209639', 'n_tokens_mistral': 1209, 'n_tokens_neox': 1145, 'n_words': 355}