<commit_before>package com.thinkaurelius.titan.core;

import com.thinkaurelius.titan.core.schema.TitanManagement;
import org.apache.tinkerpop.gremlin.process.computer.GraphComputer;
import org.apache.tinkerpop.gremlin.structure.Graph;

/**
 * Titan graph database implementation of the Blueprint's interface.
 * Use {@link TitanFactory} to open and configure TitanGraph instances.
 *
 * @author <NAME>uml;cheler (http://www.matthiasb.com)
 * @see TitanFactory
 * @see TitanTransaction
 */
@Graph.OptIn(Graph.OptIn.SUITE_STRUCTURE_STANDARD)
@Graph.OptIn(Graph.OptIn.SUITE_STRUCTURE_PERFORMANCE)
@Graph.OptIn(Graph.OptIn.SUITE_PROCESS_STANDARD)
@Graph.OptIn(Graph.OptIn.SUITE_PROCESS_COMPUTER)
@Graph.OptIn(Graph.OptIn.SUITE_PROCESS_PERFORMANCE)
@Graph.OptIn(Graph.OptIn.SUITE_GROOVY_PROCESS_STANDARD)
@Graph.OptIn(Graph.OptIn.SUITE_GROOVY_PROCESS_COMPUTER)
@Graph.OptIn(Graph.OptIn.SUITE_GROOVY_ENVIRONMENT)
@Graph.OptIn(Graph.OptIn.SUITE_GROOVY_ENVIRONMENT_INTEGRATE)
@Graph.OptIn(Graph.OptIn.SUITE_GROOVY_ENVIRONMENT_PERFORMANCE)
//@Graph.OptOut(
//        test = "com.tinkerpop.gremlin.structure.strategy.PartitionStrategyTest",
//        method = "shouldWriteToMultiplePartitions",
//        reason = "Issue with wrapping/unwrapping vertices and using optimization strategies")
//@Graph.OptOut(
//        test = "com.tinkerpop.gremlin.structure.strategy.SubgraphStrategyTest",
//        method = "shouldFilterMixedCriteria",
//        reason = "Issue with wrapping/unwrapping vertices and using optimization strategies")
//@Graph.OptOut(
//        test = "com.tinkerpop.gremlin.structure.strategy.SubgraphStrategyTest",
//        method = "testVertexCriterion",
//        reason = "Issue with wrapping/unwrapping vertices and using optimization strategies")
//@Graph.OptOut(
//        test = "com.tinkerpop.gremlin.structure.strategy.SubgraphStrategyTest",
//        method = "shouldFilterEdgeCriterion",
//        reason = "Issue with wrapping/unwrapping vertices and using optimization strategies")
//@Graph.OptOut(
//        test = "com.tinkerpop.gremlin.structure.strategy.StrategyGraphTest$VertexShouldBeWrappedTest",
//        method = "shouldWrap",
//        specific = "g.V(1).outE().inV()",
//        reason = "Issue with wrapping/unwrapping vertices and using optimization strategies")
//@Graph.OptOut(
//        test = "com.tinkerpop.gremlin.structure.strategy.StrategyGraphTest$VertexShouldBeWrappedTest",
//        method = "shouldWrap",
//        specific = "g.V(4).bothE().bothV()",
//        reason = "Issue with wrapping/unwrapping vertices and using optimization strategies")
//@Graph.OptOut(
//        test = "com.tinkerpop.gremlin.structure.strategy.StrategyGraphTest$VertexShouldBeWrappedTest",
//        method = "shouldWrap",
//        specific = "g.V(4).inE().outV()",
//        reason = "Issue with wrapping/unwrapping vertices and using optimization strategies")
//@Graph.OptOut(
//        test = "com.tinkerpop.gremlin.structure.strategy.StrategyGraphTest$VertexShouldBeWrappedTest",
//        method = "shouldWrap",
//        specific = "g.V(1).out()",
//        reason = "Issue with wrapping/unwrapping vertices and using optimization strategies")
//@Graph.OptOut(
//        test = "com.tinkerpop.gremlin.structure.strategy.StrategyGraphTest$VertexShouldBeWrappedTest",
//        method = "shouldWrap",
//        specific = "g.V(1).outE().otherV()",
//        reason = "Issue with wrapping/unwrapping vertices and using optimization strategies")
//@Graph.OptOut(
//        test = "com.tinkerpop.gremlin.structure.strategy.StrategyGraphTest$VertexShouldBeWrappedTest",
//        method = "shouldWrap",
//        specific = "g.V(4).inE().otherV()",
//        reason = "Issue with wrapping/unwrapping vertices and using optimization strategies")
//@Graph.OptOut(
//        test = "com.tinkerpop.gremlin.structure.strategy.StrategyGraphTest$EdgeShouldBeWrappedTest",
//        method = "shouldWrap",
//        specific = "g.V(1).outE()",
//        reason = "Issue with wrapping/unwrapping vertices and using optimization strategies")
//@Graph.OptOut(
//        test = "com.tinkerpop.gremlin.structure.strategy.StrategyGraphTest$EdgeShouldBeWrappedTest",
//        method = "shouldWrap",
//        specific = "g.V(4).bothE()",
//        reason = "Issue with wrapping/unwrapping vertices and using optimization strategies")
//@Graph.OptOut(
//        test = "com.tinkerpop.gremlin.structure.strategy.StrategyGraphTest$EdgeShouldBeWrappedTest",
//        method = "shouldWrap",
//        specific = "g.V(4).inE()",
//        reason = "Issue with wrapping/unwrapping vertices and using optimization strategies")
//------------------------
@Graph.OptOut(
        test = "org.apache.tinkerpop.gremlin.structure.EdgeTest$ExceptionConsistencyWhenEdgeRemovedTest",
        method = "shouldThrowExceptionIfEdgeWasRemoved",
        specific = "e.remove()",
        reason = "Titan cannot currently throw an exception on access to removed relations due to internal use.")
@Graph.OptOut(
        test = "org.apache.tinkerpop.gremlin.structure.EdgeTest$ExceptionConsistencyWhenEdgeRemovedTest",
        method = "shouldThrowExceptionIfEdgeWasRemoved",
        specific = "property(k)",
        reason = "Titan cannot currently throw an exception on access to removed relations due to internal use.")
@Graph.OptOut(
        test = "org.apache.tinkerpop.gremlin.structure.EdgeTest$ExceptionConsistencyWhenEdgeRemovedTest",
        method = "shouldThrowExceptionIfEdgeWasRemoved",
        specific = "remove()",
        reason = "Titan cannot currently throw an exception on access to removed relations due to internal use.")
@Graph.OptOut(
        test = "org.apache.tinkerpop.gremlin.structure.VertexPropertyTest$ExceptionConsistencyWhenVertexPropertyRemovedTest",
        method = "shouldThrowExceptionIfVertexPropertyWasRemoved",
        specific = "property(k)",
        reason = "Titan cannot currently throw an exception on access to removed relations due to internal use.")
@Graph.OptOut(
        test = "org.apache.tinkerpop.gremlin.structure.VertexPropertyTest$VertexPropertyAddition",
        method = "shouldHandleSetVertexProperties",
        reason = "Titan can only handle SET cardinality for properties when defined in the schema")
//------------------------
//@Graph.OptOut(
//        test="com.tinkerpop.gremlin.process.graph.step.branch.UnionTest$ComputerTest",
//        method="g_V_chooseXlabel_eq_person__unionX__out_lang__out_nameX__in_labelX_groupCount",
//        reason="TP3 unexpectedly retrieves labels for neighboring vertices when detaching elements")
//@Graph.OptOut(
//        test="com.tinkerpop.gremlin.process.graph.step.branch.UnionTest$ComputerTest",
//        method="g_V_chooseXlabel_eq_person__unionX__out_lang__out_nameX__in_labelX",
//        reason="TP3 unexpectedly retrieves labels for neighboring vertices when detaching elements")
//@Graph.OptOut(
//        test="com.tinkerpop.gremlin.process.computer.ranking.PageRankVertexProgramTest",
//        method="shouldExecutePageRank",
//        reason="Blocked on resolution of a TP3 inconsistency regarding the returned result graph")
public interface TitanGraph extends TitanGraphTransaction {

   /* ---------------------------------------------------------------
    * Transactions and general admin
    * ---------------------------------------------------------------
    */

    /**
     * Opens a new thread-independent {@link TitanTransaction}.
     * <p/>
     * The transaction is open when it is returned but MUST be explicitly closed by calling {@link com.thinkaurelius.titan.core.TitanTransaction#commit()}
     * or {@link com.thinkaurelius.titan.core.TitanTransaction#rollback()} when it is no longer needed.
     * <p/>
     * Note, that this returns a thread independent transaction object. It is not necessary to call this method
     * to use Blueprint's standard transaction framework which will automatically start a transaction with the first
     * operation on the graph.
     *
     * @return Transaction object representing a transactional context.
     */
    public TitanTransaction newTransaction();

    /**
     * Returns a {@link TransactionBuilder} to construct a new thread-independent {@link TitanTransaction}.
     *
     * @return a new TransactionBuilder
     * @see TransactionBuilder
     * @see #newTransaction()
     */
    public TransactionBuilder buildTransaction();

    /**
     * Returns the management system for this graph instance. The management system provides functionality
     * to change global configuration options, install indexes and inspect the graph schema.
     * <p />
     * The management system operates in its own transactional context which must be explicitly closed.
     *
     * @return
     */
    public TitanManagement openManagement();

    /**
     * Checks whether the graph is open.
     *
     * @return true, if the graph is open, else false.
     * @see #close()
     */
    public boolean isOpen();

    /**
     * Checks whether the graph is closed.
     *
     * @return true, if the graph has been closed, else false
     */
    public boolean isClosed();

    /**
     * Closes the graph database.
     * <p/>
     * Closing the graph database causes a disconnect and possible closing of the underlying storage backend
     * and a release of all occupied resources by this graph database.
     * Closing a graph database requires that all open thread-independent transactions have been closed -
     * otherwise they will be left abandoned.
     *
     * @throws TitanException if closing the graph database caused errors in the storage backend
     */
    @Override
    public void close() throws TitanException;





}
<commit_msg>Opt out of failing TP tests that are fixed in HEAD<commit_after>package com.thinkaurelius.titan.core;

import com.thinkaurelius.titan.core.schema.TitanManagement;
import org.apache.tinkerpop.gremlin.process.computer.GraphComputer;
import org.apache.tinkerpop.gremlin.structure.Graph;

/**
 * Titan graph database implementation of the Blueprint's interface.
 * Use {@link TitanFactory} to open and configure TitanGraph instances.
 *
 * @author <NAME>uml;cheler (http://www.matthiasb.com)
 * @see TitanFactory
 * @see TitanTransaction
 */
@Graph.OptIn(Graph.OptIn.SUITE_STRUCTURE_STANDARD)
@Graph.OptIn(Graph.OptIn.SUITE_STRUCTURE_PERFORMANCE)
@Graph.OptIn(Graph.OptIn.SUITE_PROCESS_STANDARD)
@Graph.OptIn(Graph.OptIn.SUITE_PROCESS_COMPUTER)
@Graph.OptIn(Graph.OptIn.SUITE_PROCESS_PERFORMANCE)
@Graph.OptIn(Graph.OptIn.SUITE_GROOVY_PROCESS_STANDARD)
@Graph.OptIn(Graph.OptIn.SUITE_GROOVY_PROCESS_COMPUTER)
@Graph.OptIn(Graph.OptIn.SUITE_GROOVY_ENVIRONMENT)
@Graph.OptIn(Graph.OptIn.SUITE_GROOVY_ENVIRONMENT_INTEGRATE)
@Graph.OptIn(Graph.OptIn.SUITE_GROOVY_ENVIRONMENT_PERFORMANCE)
//@Graph.OptOut(
//        test = "com.tinkerpop.gremlin.structure.strategy.PartitionStrategyTest",
//        method = "shouldWriteToMultiplePartitions",
//        reason = "Issue with wrapping/unwrapping vertices and using optimization strategies")
//@Graph.OptOut(
//        test = "com.tinkerpop.gremlin.structure.strategy.SubgraphStrategyTest",
//        method = "shouldFilterMixedCriteria",
//        reason = "Issue with wrapping/unwrapping vertices and using optimization strategies")
//@Graph.OptOut(
//        test = "com.tinkerpop.gremlin.structure.strategy.SubgraphStrategyTest",
//        method = "testVertexCriterion",
//        reason = "Issue with wrapping/unwrapping vertices and using optimization strategies")
//@Graph.OptOut(
//        test = "com.tinkerpop.gremlin.structure.strategy.SubgraphStrategyTest",
//        method = "shouldFilterEdgeCriterion",
//        reason = "Issue with wrapping/unwrapping vertices and using optimization strategies")
//@Graph.OptOut(
//        test = "com.tinkerpop.gremlin.structure.strategy.StrategyGraphTest$VertexShouldBeWrappedTest",
//        method = "shouldWrap",
//        specific = "g.V(1).outE().inV()",
//        reason = "Issue with wrapping/unwrapping vertices and using optimization strategies")
//@Graph.OptOut(
//        test = "com.tinkerpop.gremlin.structure.strategy.StrategyGraphTest$VertexShouldBeWrappedTest",
//        method = "shouldWrap",
//        specific = "g.V(4).bothE().bothV()",
//        reason = "Issue with wrapping/unwrapping vertices and using optimization strategies")
//@Graph.OptOut(
//        test = "com.tinkerpop.gremlin.structure.strategy.StrategyGraphTest$VertexShouldBeWrappedTest",
//        method = "shouldWrap",
//        specific = "g.V(4).inE().outV()",
//        reason = "Issue with wrapping/unwrapping vertices and using optimization strategies")
//@Graph.OptOut(
//        test = "com.tinkerpop.gremlin.structure.strategy.StrategyGraphTest$VertexShouldBeWrappedTest",
//        method = "shouldWrap",
//        specific = "g.V(1).out()",
//        reason = "Issue with wrapping/unwrapping vertices and using optimization strategies")
//@Graph.OptOut(
//        test = "com.tinkerpop.gremlin.structure.strategy.StrategyGraphTest$VertexShouldBeWrappedTest",
//        method = "shouldWrap",
//        specific = "g.V(1).outE().otherV()",
//        reason = "Issue with wrapping/unwrapping vertices and using optimization strategies")
//@Graph.OptOut(
//        test = "com.tinkerpop.gremlin.structure.strategy.StrategyGraphTest$VertexShouldBeWrappedTest",
//        method = "shouldWrap",
//        specific = "g.V(4).inE().otherV()",
//        reason = "Issue with wrapping/unwrapping vertices and using optimization strategies")
//@Graph.OptOut(
//        test = "com.tinkerpop.gremlin.structure.strategy.StrategyGraphTest$EdgeShouldBeWrappedTest",
//        method = "shouldWrap",
//        specific = "g.V(1).outE()",
//        reason = "Issue with wrapping/unwrapping vertices and using optimization strategies")
//@Graph.OptOut(
//        test = "com.tinkerpop.gremlin.structure.strategy.StrategyGraphTest$EdgeShouldBeWrappedTest",
//        method = "shouldWrap",
//        specific = "g.V(4).bothE()",
//        reason = "Issue with wrapping/unwrapping vertices and using optimization strategies")
//@Graph.OptOut(
//        test = "com.tinkerpop.gremlin.structure.strategy.StrategyGraphTest$EdgeShouldBeWrappedTest",
//        method = "shouldWrap",
//        specific = "g.V(4).inE()",
//        reason = "Issue with wrapping/unwrapping vertices and using optimization strategies")
//------------------------
@Graph.OptOut(
        test = "org.apache.tinkerpop.gremlin.structure.EdgeTest$ExceptionConsistencyWhenEdgeRemovedTest",
        method = "shouldThrowExceptionIfEdgeWasRemoved",
        specific = "e.remove()",
        reason = "Titan cannot currently throw an exception on access to removed relations due to internal use.")
@Graph.OptOut(
        test = "org.apache.tinkerpop.gremlin.structure.EdgeTest$ExceptionConsistencyWhenEdgeRemovedTest",
        method = "shouldThrowExceptionIfEdgeWasRemoved",
        specific = "property(k)",
        reason = "Titan cannot currently throw an exception on access to removed relations due to internal use.")
@Graph.OptOut(
        test = "org.apache.tinkerpop.gremlin.structure.EdgeTest$ExceptionConsistencyWhenEdgeRemovedTest",
        method = "shouldThrowExceptionIfEdgeWasRemoved",
        specific = "remove()",
        reason = "Titan cannot currently throw an exception on access to removed relations due to internal use.")
@Graph.OptOut(
        test = "org.apache.tinkerpop.gremlin.structure.VertexPropertyTest$ExceptionConsistencyWhenVertexPropertyRemovedTest",
        method = "shouldThrowExceptionIfVertexPropertyWasRemoved",
        specific = "property(k)",
        reason = "Titan cannot currently throw an exception on access to removed relations due to internal use.")
@Graph.OptOut(
        test = "org.apache.tinkerpop.gremlin.structure.VertexPropertyTest$VertexPropertyAddition",
        method = "shouldHandleSetVertexProperties",
        reason = "Titan can only handle SET cardinality for properties when defined in the schema")
@Graph.OptOut(
        test = "org.apache.tinkerpop.gremlin.groovy.jsr223.GremlinGroovyScriptEngineOverGraphTest",
        method = "shouldProcessUTF8Query",
        reason = "https://issues.apache.org/jira/browse/TINKERPOP3-629 (FIXED on HEAD)")
@Graph.OptOut(
        test = "org.apache.tinkerpop.gremlin.groovy.jsr223.GremlinGroovyScriptEngineOverGraphTest",
        method = "shouldEvalGlobalClosuresEvenAfterEvictionOfClass",
        reason = "https://issues.apache.org/jira/browse/TINKERPOP3-630 (FIXED on HEAD)")
//------------------------
//@Graph.OptOut(
//        test="com.tinkerpop.gremlin.process.graph.step.branch.UnionTest$ComputerTest",
//        method="g_V_chooseXlabel_eq_person__unionX__out_lang__out_nameX__in_labelX_groupCount",
//        reason="TP3 unexpectedly retrieves labels for neighboring vertices when detaching elements")
//@Graph.OptOut(
//        test="com.tinkerpop.gremlin.process.graph.step.branch.UnionTest$ComputerTest",
//        method="g_V_chooseXlabel_eq_person__unionX__out_lang__out_nameX__in_labelX",
//        reason="TP3 unexpectedly retrieves labels for neighboring vertices when detaching elements")
//@Graph.OptOut(
//        test="com.tinkerpop.gremlin.process.computer.ranking.PageRankVertexProgramTest",
//        method="shouldExecutePageRank",
//        reason="Blocked on resolution of a TP3 inconsistency regarding the returned result graph")
public interface TitanGraph extends TitanGraphTransaction {

   /* ---------------------------------------------------------------
    * Transactions and general admin
    * ---------------------------------------------------------------
    */

    /**
     * Opens a new thread-independent {@link TitanTransaction}.
     * <p/>
     * The transaction is open when it is returned but MUST be explicitly closed by calling {@link com.thinkaurelius.titan.core.TitanTransaction#commit()}
     * or {@link com.thinkaurelius.titan.core.TitanTransaction#rollback()} when it is no longer needed.
     * <p/>
     * Note, that this returns a thread independent transaction object. It is not necessary to call this method
     * to use Blueprint's standard transaction framework which will automatically start a transaction with the first
     * operation on the graph.
     *
     * @return Transaction object representing a transactional context.
     */
    public TitanTransaction newTransaction();

    /**
     * Returns a {@link TransactionBuilder} to construct a new thread-independent {@link TitanTransaction}.
     *
     * @return a new TransactionBuilder
     * @see TransactionBuilder
     * @see #newTransaction()
     */
    public TransactionBuilder buildTransaction();

    /**
     * Returns the management system for this graph instance. The management system provides functionality
     * to change global configuration options, install indexes and inspect the graph schema.
     * <p />
     * The management system operates in its own transactional context which must be explicitly closed.
     *
     * @return
     */
    public TitanManagement openManagement();

    /**
     * Checks whether the graph is open.
     *
     * @return true, if the graph is open, else false.
     * @see #close()
     */
    public boolean isOpen();

    /**
     * Checks whether the graph is closed.
     *
     * @return true, if the graph has been closed, else false
     */
    public boolean isClosed();

    /**
     * Closes the graph database.
     * <p/>
     * Closing the graph database causes a disconnect and possible closing of the underlying storage backend
     * and a release of all occupied resources by this graph database.
     * Closing a graph database requires that all open thread-independent transactions have been closed -
     * otherwise they will be left abandoned.
     *
     * @throws TitanException if closing the graph database caused errors in the storage backend
     */
    @Override
    public void close() throws TitanException;





}

{'fraction_non_alphanumeric': 0.12343211233821398, 'fraction_numerical': 0.0019489280895507472, 'mean_word_length': 3.2515402591884426, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 2, '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': '5045177', 'n_tokens_mistral': 5730, 'n_tokens_neox': 5497, 'n_words': 1352}