<commit_before>import { useLocalStorageCacheBool, useLocalStorageCacheStringValue } from './useCache';

export enum ParticleMode {
    PUSH = 'push',
    REMOVE = 'remove',
    REPULSE = 'repulse',
    BUBBLE = 'bubble',
}

export function useParticle() {
    const particleMode = useLocalStorageCacheStringValue<ParticleMode>('particleMode', ParticleMode.REPULSE);
    const showParticle = useLocalStorageCacheBool('showParticle', false);
    return {
        showParticle,
        particleMode,
    };
}
<commit_msg>fix: show particle at default<commit_after>import { useLocalStorageCacheBool, useLocalStorageCacheStringValue } from './useCache';

export enum ParticleMode {
    PUSH = 'push',
    REMOVE = 'remove',
    REPULSE = 'repulse',
    BUBBLE = 'bubble',
}

export function useParticle() {
    const particleMode = useLocalStorageCacheStringValue<ParticleMode>('particleMode', ParticleMode.PUSH);
    const showParticle = useLocalStorageCacheBool('showParticle', true);
    return {
        showParticle,
        particleMode,
    };
}

{'fraction_non_alphanumeric': 0.10591603053435114, 'fraction_numerical': 0.0, 'mean_word_length': 4.271356783919598, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7466533', 'n_tokens_mistral': 316, 'n_tokens_neox': 311, 'n_words': 64}