<commit_before>package com.imcode.imcms.security;

import imcode.server.document.NoPermissionToEditDocumentException;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import static com.imcode.imcms.security.AccessType.ALL;

/**
 * Annotation marks method means that user is checked (before target method
 * execution) for specified access with
 * {@link NoPermissionToEditDocumentException} if access not granted.
 *
 * @author <NAME> from Ubrainians for imCode
 * 12.02.18.
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface CheckAccess {

    /**
     * Access to specified content such as all, image, text, etc.
     *
     * @return specified access type
     */
    AccessType value() default ALL;

}<commit_msg>IMCMS-255 - Upgrade server side to work with new client: - Fixed javadoc.<commit_after>package com.imcode.imcms.security;

import imcode.server.document.NoPermissionToEditDocumentException;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import static com.imcode.imcms.security.AccessType.ALL;

/**
 * Annotation marks method means that user is checked (before target method
 * execution) for specified access with
 * {@link NoPermissionToEditDocumentException} if access not granted.
 *
 * @author <NAME> from Ubrainians for imCode
 * 12.02.18.
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface CheckAccess {

    /**
     * Access to specified content by {@link AccessType} such as {@code ALL},
     * {@code IMAGE}, {@code TEXT}, etc.
     *
     * @return specified access type
     */
    AccessType value() default ALL;

}
{'fraction_non_alphanumeric': 0.0997289972899729, 'fraction_numerical': 0.008130081300813009, 'mean_word_length': 4.413489736070381, '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': '6076905', 'n_tokens_mistral': 541, 'n_tokens_neox': 517, 'n_words': 150}