<commit_before>package ru.job4j.Count;

import net.jcip.annotations.GuardedBy;
import net.jcip.annotations.ThreadSafe;

/**
 * Created by Comp on 28.10.2017.
 */
@ThreadSafe
public class CountIncrement implements Runnable {
    @GuardedBy("this") private Count count = new Count();
    @GuardedBy("this") private Count2 count2 = new Count2();

    private Object lock = new Object();

    public CountIncrement(Count count, Count2 count2) {
        this.count = count;
        this.count2 = count2;
    }

    @Override
    public void run() {
        System.out.println(count.get());
        System.out.println(count2.get());
    }

    public static void main(String[] args) {
        Count count = new Count();
        Count2 count2 = new Count2();
        new Thread(new CountIncrement(count, count2)).start();
        new Thread(new CountIncrement(count, count2)).start();
    }<commit_msg>класс Count и метод int incremant()[#27905]<commit_after>package ru.job4j.Count;

import net.jcip.annotations.GuardedBy;
import net.jcip.annotations.ThreadSafe;

/**
 * Created by Comp on 28.10.2017.
 */
@ThreadSafe
public class CountIncrement implements Runnable {
    @GuardedBy("this") private Count count = new Count();
    @GuardedBy("this") private Count2 count2 = new Count2();

    private Object lock = new Object();

    private CountIncrement(Count count, Count2 count2) {
        this.count = count;
        this.count2 = count2;
    }

    @Override
    public void run() {
        System.out.println(count.get());
        System.out.println(count2.get());
    }

    public static void main(String[] args) {
        Count count = new Count();
        Count2 count2 = new Count2();
        new Thread(new CountIncrement(count, count2)).start();
        new Thread(new CountIncrement(count, count2)).start();
    }
{'fraction_non_alphanumeric': 0.12465678198791873, 'fraction_numerical': 0.026908292147171883, 'mean_word_length': 3.0669642857142856, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4507490', 'n_tokens_mistral': 564, 'n_tokens_neox': 537, 'n_words': 145}