<commit_before>package org.verapdf.model.impl.pb.cos;

import org.apache.pdfbox.cos.COSString;
import org.verapdf.model.coslayer.CosString;

/**
 * Created by <NAME> on 4/28/15.
 * <p>
 *     Current class is representation of CosString interface of abstract model.
 *     This class is analogue of COSString in pdfbox.
 * </p>
 */
public class PBCosString extends PBCosObject implements CosString {

    public PBCosString(COSString value) {
        super(value);
        setType("CosString");
    }

	/**
	 * Get Unicode string value stored in the PDF object
	 */
    @Override
    public String getvalue() {
        return ((COSString) baseObject).getString();
    }

    /** true if the string is stored in Hex format
     */
    @Override
    public Boolean getisHex() {
        return Boolean.valueOf(((COSString) baseObject).isHex() != null);
    }

    /** true if all symbols below range 0-9,a-f,A-F
     */
    @Override
	public Boolean getisHexSymbols() {
        return Boolean.valueOf(((COSString) baseObject).getIsHexSymbols());
    }

    /**<commit_msg>PT-115 : fix for hexa strings<commit_after>package org.verapdf.model.impl.pb.cos;

import org.apache.pdfbox.cos.COSString;
import org.verapdf.model.coslayer.CosString;

/**
 * Created by <NAME> on 4/28/15.
 * <p>
 *     Current class is representation of CosString interface of abstract model.
 *     This class is analogue of COSString in pdfbox.
 * </p>
 */
public class PBCosString extends PBCosObject implements CosString {

    public PBCosString(COSString value) {
        super(value);
        setType("CosString");
    }

	/**
	 * Get Unicode string value stored in the PDF object
	 */
    @Override
    public String getvalue() {
        return ((COSString) baseObject).getASCII();
    }

    /** true if the string is stored in Hex format
     */
    @Override
    public Boolean getisHex() {
        return ((COSString) baseObject).isHex();
    }

    /** true if all symbols below range 0-9,a-f,A-F
     */
    @Override
	public Boolean getisHexSymbols() {
        return ((COSString) baseObject).getIsHexSymbols();
    }

    /**
{'fraction_non_alphanumeric': 0.11558503079109426, 'fraction_numerical': 0.008053055423969682, 'mean_word_length': 2.764705882352941, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '3754284', 'n_tokens_mistral': 676, 'n_tokens_neox': 639, 'n_words': 183}