<commit_before>package org.neo4j.rdf.sail;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import org.neo4j.rdf.model.CompleteStatement;
import org.openrdf.model.Literal;
import org.openrdf.model.Resource;
import org.openrdf.model.Statement;
import org.openrdf.model.URI;
import org.openrdf.model.Value;

public class NeoRdfStatementImpl implements NeoRdfStatement, Serializable
{
    private Statement statement;
    private Map<String, Literal> metadata;
    
    public NeoRdfStatementImpl( Statement statement,
        CompleteStatement neoStatement )
    {
        this.statement = statement;
        this.metadata = new HashMap<String, Literal>();
        for ( String key : neoStatement.getMetadata().getKeys() )
        {
            this.metadata.put( key, NeoSesameMapper.createLiteral(
                neoStatement.getMetadata().get( key ) ) );
        }
    }
    
    public Resource getContext()
    {
        return this.statement.getContext();
    }
    
    public Value getObject()
    {
        return this.statement.getObject();
    }
    
    public URI getPredicate()
    {
        return this.statement.getPredicate();
    }
    
    public Resource getSubject()
    {
        return this.statement.getSubject();
    }
    
    public Map<String, Literal> getMetadata()
    {
        return new HashMap<String, Literal>( this.metadata );
    }
}<commit_msg>Overrides the toString method to return the underlying statements toString<commit_after>package org.neo4j.rdf.sail;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import org.neo4j.rdf.model.CompleteStatement;
import org.openrdf.model.Literal;
import org.openrdf.model.Resource;
import org.openrdf.model.Statement;
import org.openrdf.model.URI;
import org.openrdf.model.Value;

public class NeoRdfStatementImpl implements NeoRdfStatement, Serializable
{
    private Statement statement;
    private Map<String, Literal> metadata;
    
    public NeoRdfStatementImpl( Statement statement,
        CompleteStatement neoStatement )
    {
        this.statement = statement;
        this.metadata = new HashMap<String, Literal>();
        for ( String key : neoStatement.getMetadata().getKeys() )
        {
            this.metadata.put( key, NeoSesameMapper.createLiteral(
                neoStatement.getMetadata().get( key ) ) );
        }
    }
    
    public Resource getContext()
    {
        return this.statement.getContext();
    }
    
    public Value getObject()
    {
        return this.statement.getObject();
    }
    
    public URI getPredicate()
    {
        return this.statement.getPredicate();
    }
    
    public Resource getSubject()
    {
        return this.statement.getSubject();
    }
    
    public Map<String, Literal> getMetadata()
    {
        return new HashMap<String, Literal>( this.metadata );
    }
    
    @Override
    public String toString()
    {
        return this.statement.toString();
    }
}
{'fraction_non_alphanumeric': 0.09782244556113903, 'fraction_numerical': 0.001340033500837521, 'mean_word_length': 2.6638036809815953, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '4552449', 'n_tokens_mistral': 864, 'n_tokens_neox': 854, 'n_words': 181}