<commit_before>/*
 * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 */
package org.opendaylight.controller.yang.model.api;

/**
 * Interface describing YANG 'leaf' statement.
 * <p>
 * The 'leaf' statement is used to define a leaf node in the schema tree.
 * </p>
 */
public interface LeafSchemaNode extends DataSchemaNode {

    /**
     * @return type of this leaf
     */
    TypeDefinition<?> getType();

}
<commit_msg>Fixed parsing of typedef statement. Refactored YangParserImpl to improve code readability. Added methods to LeafSchemaNode interface. Updated tests.<commit_after>/*
 * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 */
package org.opendaylight.controller.yang.model.api;

/**
 * Interface describing YANG 'leaf' statement.
 * <p>
 * The 'leaf' statement is used to define a leaf node in the schema tree.
 * </p>
 */
public interface LeafSchemaNode extends DataSchemaNode {

    /**
     * @return type of this leaf
     */
    TypeDefinition<?> getType();

    String getDefault();

    String getUnits();

}

{'fraction_non_alphanumeric': 0.0946372239747634, 'fraction_numerical': 0.010094637223974764, 'mean_word_length': 3.1088082901554404, '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': '5048488', 'n_tokens_mistral': 459, 'n_tokens_neox': 419, 'n_words': 169}