<commit_before>package com.ironz.binaryprefs.cache;

import java.util.Collections;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

@SuppressWarnings("unused")
public final class ConcurrentCacheProviderImpl implements CacheProvider {

    private final Map<String, Object> cache = new ConcurrentHashMap<>();

    @Override
    public boolean contains(String key) {
        return cache.containsKey(key);
    }

    @Override
    public void put(String key, Object value) {
        cache.put(key, value);
    }<commit_msg>added javadoc<commit_after>package com.ironz.binaryprefs.cache;

import java.util.Collections;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * Concurrent cache provider which locks on concrete key.
 */
@SuppressWarnings("unused")
public final class ConcurrentCacheProviderImpl implements CacheProvider {

    private final Map<String, Object> cache = new ConcurrentHashMap<>();

    @Override
    public boolean contains(String key) {
        return cache.containsKey(key);
    }

    @Override
    public void put(String key, Object value) {
        cache.put(key, value);
    }
{'fraction_non_alphanumeric': 0.09652173913043478, 'fraction_numerical': 0.0, 'mean_word_length': 4.092920353982301, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3754654', 'n_tokens_mistral': 315, 'n_tokens_neox': 315, 'n_words': 85}