<commit_before>package org.apache.maven.continuum.store;

/*
 * Copyright 2004-2005 The Apache Software Foundation.
 *
 * 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.
 */

import java.util.Collection;
import java.util.List;

import org.apache.maven.continuum.project.ContinuumBuild;
import org.apache.maven.continuum.project.ContinuumProject;
import org.apache.maven.continuum.project.ContinuumSchedule;
import org.apache.maven.continuum.project.ContinuumProjectGroup;
import org.apache.maven.continuum.project.ContinuumBuildGroup;
import org.apache.maven.continuum.scm.ScmResult;

/**
 * @author <a href="mailto:<EMAIL>"><NAME>&oslash;l</a>
 * @version $Id$
 */
public interface ContinuumStore
{
    String ROLE = ContinuumStore.class.getName();

    // ----------------------------------------------------------------------
    // ContinuumProject Mutators
    // ----------------------------------------------------------------------

    String addProject( ContinuumProject project )
        throws ContinuumStoreException;

    void removeProject( String projectId )
        throws ContinuumStoreException;

    void updateProject( ContinuumProject project )
        throws ContinuumStoreException;

    // ----------------------------------------------------------------------
    // ContinuumProject Queries
    // ----------------------------------------------------------------------

    Collection getAllProjects()
        throws ContinuumStoreException;

    ContinuumProject getProjectByName( String name )
        throws ContinuumStoreException;

    ContinuumProject getProjectByScmUrl( String scmUrl )
        throws ContinuumStoreException;

    ContinuumProject getProject( String projectId )
        throws ContinuumStoreException;

    ContinuumProject getProjectForBuild( String buildId )
        throws ContinuumStoreException;

    ScmResult getScmResultForProject( String projectId )
        throws ContinuumStoreException;

    // ----------------------------------------------------------------------
    // Build
    // ----------------------------------------------------------------------

    String addBuild( String projectId, ContinuumBuild build )
        throws ContinuumStoreException;

    void updateBuild( ContinuumBuild build )
        throws ContinuumStoreException;

    void setBuildOutput( String buildId, String output )
        throws ContinuumStoreException;

    ContinuumBuild getBuild( String buildId )
        throws ContinuumStoreException;

    String getBuildOutput( String buildId )
        throws ContinuumStoreException;

    ContinuumBuild getLatestBuildForProject( String projectId )
        throws ContinuumStoreException;

    Collection getBuildsForProject( String projectId, int start, int end )
        throws ContinuumStoreException;

    List getChangedFilesForBuild( String buildId )
        throws ContinuumStoreException;

    // ----------------------------------------------------------------------
    // Notifiers
    // ----------------------------------------------------------------------

    void removeNotifier( Object notifier )
        throws ContinuumStoreException;

    void storeNotifier( Object notifier )
        throws ContinuumStoreException;

    // ----------------------------------------------------------------------
    // Schedules
    // ----------------------------------------------------------------------

    String addSchedule( ContinuumSchedule schedule )
        throws ContinuumStoreException;

    void updateSchedule( ContinuumSchedule schedule )
        throws ContinuumStoreException;

    void removeSchedule( String scheduleId )
        throws ContinuumStoreException;

    Collection getSchedules()
        throws ContinuumStoreException;

    ContinuumSchedule getSchedule( String scheduleId )
        throws ContinuumStoreException;

    // ----------------------------------------------------------------------
    // Project Groups
    // ----------------------------------------------------------------------

    String addProjectGroup( ContinuumProjectGroup projectGroup )
        throws ContinuumStoreException;

    void updateProjectGroup( ContinuumProjectGroup projectGroup )
        throws ContinuumStoreException;

    ContinuumProjectGroup getProjectGroup( String projectGroupId )
        throws ContinuumStoreException;

    void removeProjectGroup( String projectGroupId )
        throws ContinuumStoreException;

    Collection getProjectGroups()
        throws ContinuumStoreException;

    // ----------------------------------------------------------------------
    // Build Group
    // ----------------------------------------------------------------------

    String addBuildGroup( ContinuumBuildGroup buildGroup )
        throws ContinuumStoreException;

    void updateBuildGroup( ContinuumBuildGroup buildGroup )
        throws ContinuumStoreException;

    void removeBuildGroup( String buildGroupId )
        throws ContinuumStoreException;

    ContinuumBuildGroup getBuildGroup( String buildGroupId )
        throws ContinuumStoreException;

    Collection getBuildGroups()
        throws ContinuumStoreException;
}<commit_msg>o adding methods to the store for build settings<commit_after>package org.apache.maven.continuum.store;

/*
 * Copyright 2004-2005 The Apache Software Foundation.
 *
 * 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.
 */

import java.util.Collection;
import java.util.List;

import org.apache.maven.continuum.project.ContinuumBuild;
import org.apache.maven.continuum.project.ContinuumProject;
import org.apache.maven.continuum.project.ContinuumSchedule;
import org.apache.maven.continuum.project.ContinuumProjectGroup;
import org.apache.maven.continuum.project.ContinuumBuildGroup;
import org.apache.maven.continuum.project.ContinuumBuildSettings;
import org.apache.maven.continuum.scm.ScmResult;

/**
 * @author <a href="mailto:<EMAIL>"><NAME>&oslash;l</a>
 * @version $Id$
 */
public interface ContinuumStore
{
    String ROLE = ContinuumStore.class.getName();

    // ----------------------------------------------------------------------
    // ContinuumProject Mutators
    // ----------------------------------------------------------------------

    String addProject( ContinuumProject project )
        throws ContinuumStoreException;

    void removeProject( String projectId )
        throws ContinuumStoreException;

    void updateProject( ContinuumProject project )
        throws ContinuumStoreException;

    // ----------------------------------------------------------------------
    // ContinuumProject Queries
    // ----------------------------------------------------------------------

    Collection getAllProjects()
        throws ContinuumStoreException;

    ContinuumProject getProjectByName( String name )
        throws ContinuumStoreException;

    ContinuumProject getProjectByScmUrl( String scmUrl )
        throws ContinuumStoreException;

    ContinuumProject getProject( String projectId )
        throws ContinuumStoreException;

    ContinuumProject getProjectForBuild( String buildId )
        throws ContinuumStoreException;

    ScmResult getScmResultForProject( String projectId )
        throws ContinuumStoreException;

    // ----------------------------------------------------------------------
    // Build
    // ----------------------------------------------------------------------

    String addBuild( String projectId, ContinuumBuild build )
        throws ContinuumStoreException;

    void updateBuild( ContinuumBuild build )
        throws ContinuumStoreException;

    void setBuildOutput( String buildId, String output )
        throws ContinuumStoreException;

    ContinuumBuild getBuild( String buildId )
        throws ContinuumStoreException;

    String getBuildOutput( String buildId )
        throws ContinuumStoreException;

    ContinuumBuild getLatestBuildForProject( String projectId )
        throws ContinuumStoreException;

    Collection getBuildsForProject( String projectId, int start, int end )
        throws ContinuumStoreException;

    List getChangedFilesForBuild( String buildId )
        throws ContinuumStoreException;

    // ----------------------------------------------------------------------
    // Notifiers
    // ----------------------------------------------------------------------

    void removeNotifier( Object notifier )
        throws ContinuumStoreException;

    void storeNotifier( Object notifier )
        throws ContinuumStoreException;

    // ----------------------------------------------------------------------
    // Schedules
    // ----------------------------------------------------------------------

    String addSchedule( ContinuumSchedule schedule )
        throws ContinuumStoreException;

    void updateSchedule( ContinuumSchedule schedule )
        throws ContinuumStoreException;

    void removeSchedule( String scheduleId )
        throws ContinuumStoreException;

    Collection getSchedules()
        throws ContinuumStoreException;

    ContinuumSchedule getSchedule( String scheduleId )
        throws ContinuumStoreException;

    // ----------------------------------------------------------------------
    // Project Groups
    // ----------------------------------------------------------------------

    String addProjectGroup( ContinuumProjectGroup projectGroup )
        throws ContinuumStoreException;

    void updateProjectGroup( ContinuumProjectGroup projectGroup )
        throws ContinuumStoreException;

    ContinuumProjectGroup getProjectGroup( String projectGroupId )
        throws ContinuumStoreException;

    void removeProjectGroup( String projectGroupId )
        throws ContinuumStoreException;

    Collection getProjectGroups()
        throws ContinuumStoreException;

    // ----------------------------------------------------------------------
    // Build Group
    // ----------------------------------------------------------------------

    String addBuildGroup( ContinuumBuildGroup buildGroup )
        throws ContinuumStoreException;

    void updateBuildGroup( ContinuumBuildGroup buildGroup )
        throws ContinuumStoreException;

    void removeBuildGroup( String buildGroupId )
        throws ContinuumStoreException;

    ContinuumBuildGroup getBuildGroup( String buildGroupId )
        throws ContinuumStoreException;

    Collection getBuildGroups()
        throws ContinuumStoreException;

    // ----------------------------------------------------------------------
    // Build settings
    // ----------------------------------------------------------------------

    String addBuildSettings( ContinuumBuildSettings buildSettings )
        throws ContinuumStoreException;

    void updateBuildSettings( ContinuumBuildSettings buildSettings )
        throws ContinuumStoreException;

    void removeBuildSettings( String buildSettingsId )
        throws ContinuumStoreException;

    ContinuumBuildSettings getBuildSettings( String buildSettingsId )
        throws ContinuumStoreException;

    Collection getBuildSettings()
        throws ContinuumStoreException;
}
{'fraction_non_alphanumeric': 0.22052887387758466, 'fraction_numerical': 0.0019770986077930638, 'mean_word_length': 1.7622298065984072, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '6990698', 'n_tokens_mistral': 2545, 'n_tokens_neox': 2418, 'n_words': 696}