<commit_before>/**
 * Copyright (c) 2015 sothawo
 *
 * http://www.sothawo.com
 */
package com.sothawo.taboo.client.vaadinspringboot;

import com.sothawo.taboo.common.Bookmark;
import com.vaadin.data.util.IndexedContainer;
import com.vaadin.spring.annotation.SpringComponent;
import com.vaadin.ui.CustomComponent;
import com.vaadin.ui.Table;
import com.vaadin.ui.VerticalLayout;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Collection;
import java.util.Objects;

/**
 * Component for showing the bookmarks.
 *
 * @author <NAME> (<EMAIL>).
 */
@SpringComponent
public class BookmarkTableComponent extends CustomComponent {
// ------------------------------ FIELDS ------------------------------

    /** the item id for the bookmark column in the table */
    private static final String BOOKMARK_ITEM_ID = "bookmark";

    /** the table for the bookmarks */
    private final Table table;

    /** Vaadin Container for the table */
    private final IndexedContainer container = new IndexedContainer();
    /** the taboo service where new entries are stored */
    @Autowired
    private TabooClient taboo;<commit_msg>formatting<commit_after>/**
 * Copyright (c) 2015 sothawo
 *
 * http://www.sothawo.com
 */
package com.sothawo.taboo.client.vaadinspringboot;

import com.sothawo.taboo.common.Bookmark;
import com.vaadin.data.util.IndexedContainer;
import com.vaadin.spring.annotation.SpringComponent;
import com.vaadin.ui.CustomComponent;
import com.vaadin.ui.Table;
import com.vaadin.ui.VerticalLayout;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Collection;
import java.util.Objects;

/**
 * Component for showing the bookmarks.
 *
 * @author <NAME> (<EMAIL>).
 */
@SpringComponent
public class BookmarkTableComponent extends CustomComponent {
// ------------------------------ FIELDS ------------------------------

    /** the item id for the bookmark column in the table */
    private static final String BOOKMARK_ITEM_ID = "bookmark";

    /** the table for the bookmarks */
    private final Table table;

    /** Vaadin Container for the table */
    private final IndexedContainer container = new IndexedContainer();
    
    /** the taboo service where new entries are stored */
    @Autowired
    private TabooClient taboo;
{'fraction_non_alphanumeric': 0.15077989601386482, 'fraction_numerical': 0.0034662045060658577, 'mean_word_length': 3.152877697841727, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6278251', 'n_tokens_mistral': 670, 'n_tokens_neox': 648, 'n_words': 177}