<commit_before>/*
 *  Copyright(c) 2003-2004 by the authors indicated in the @author tags.
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package org.tigris.subversion.svnclientadapter;

/**
 * Some static methods to deal with svn status
 * 
 * @author <NAME> (cchab at tigris.org)
 */
public class SVNStatusUtils {
    
    public static boolean isManaged(SVNStatusKind textStatus) {
        return ((!textStatus.equals(SVNStatusKind.UNVERSIONED))
                && (!textStatus.equals(SVNStatusKind.NONE)) && (!textStatus
                .equals(SVNStatusKind.IGNORED)));
    }
    
    /**
     * Returns if is managed by svn (added, normal, modified ...)
     * 
     * @return if managed by svn
     */    
    public static boolean isManaged(ISVNStatus status) {
        return isManaged(status.getTextStatus());
    }

    public static boolean hasRemote(SVNStatusKind textStatus) {
        return ((isManaged(textStatus)) && (!textStatus.equals(SVNStatusKind.ADDED)));
    }
    
    /**
     * Returns if the resource has a remote counter-part
     * 
     * @return has version in repository
     */
    public static boolean hasRemote(ISVNStatus status) {
        return hasRemote(status.getTextStatus());
    }    

    public static boolean isAdded(ISVNStatus status) {
        return status.getTextStatus().equals(SVNStatusKind.ADDED);
    }
<commit_msg>* src/main/org/tigris/subversion/svnclientadapter/SVNStatusUtils.java   (isManaged): Added JavaDoc.  Improved comprehensibility of    implementation.<commit_after>/*
 *  Copyright(c) 2003-2004 by the authors indicated in the @author tags.
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package org.tigris.subversion.svnclientadapter;

/**
 * Some static methods to deal with svn status
 * 
 * @author <NAME> (cchab at tigris.org)
 */
public class SVNStatusUtils {
    
    /**
     * @param textStatus The status information to examine
     * (non-<code>null</code>).
     * @return Whether <code>textStatus</code> denotes a versioned
     * resource.
     */
    public static boolean isManaged(SVNStatusKind textStatus) {
        return (!textStatus.equals(SVNStatusKind.UNVERSIONED)
                && !textStatus.equals(SVNStatusKind.NONE)
                && !textStatus.equals(SVNStatusKind.IGNORED));
    }
    
    /**
     * Returns if is managed by svn (added, normal, modified ...)
     * 
     * @return if managed by svn
     */    
    public static boolean isManaged(ISVNStatus status) {
        return isManaged(status.getTextStatus());
    }

    public static boolean hasRemote(SVNStatusKind textStatus) {
        return ((isManaged(textStatus)) && (!textStatus.equals(SVNStatusKind.ADDED)));
    }
    
    /**
     * Returns if the resource has a remote counter-part
     * 
     * @return has version in repository
     */
    public static boolean hasRemote(ISVNStatus status) {
        return hasRemote(status.getTextStatus());
    }    

    public static boolean isAdded(ISVNStatus status) {
        return status.getTextStatus().equals(SVNStatusKind.ADDED);
    }

{'fraction_non_alphanumeric': 0.09473940574768631, 'fraction_numerical': 0.0058451047247929854, 'mean_word_length': 2.941458733205374, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6541636', 'n_tokens_mistral': 1161, 'n_tokens_neox': 1129, 'n_words': 368}