<commit_before>/*
 *
 * Copyright 2015 University of Michigan
 *
 * 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.
 *
 *
 *
 * @author <EMAIL>
 */

package org.sead.cp;

import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

@Path("/researchobjects")
public abstract class ResearchObjects {

	/**
	 * Request publication of a new research object
	 * 
	 * @param publicationRequest
	 *            {Aggregation, &lt;ContentObject&gt;, Preferences, {&lt;Preferences
	 *            list&gt;}, Repository, &lt;RepositoryId&gt;}}
	 * 
	 * <br>
	 *            where Content is a json object including basic metadata and
	 *            the unique ID for the entity the user wants to publish. <br>
	 *            preferences is a json list of options chosen from those
	 *            available (see api ____) <br>
	 *            Respository is the ID of the repository as defined within SEAD
	 *            (see api _______) Project Space is the base URL for the source
	 *            Project Space
	 * 
	 * @see Example input file: _______ <br>
	 *      Example output file: _______<commit_msg>same update to add stats to pub request (recommended best practice, not a strict requirement right now)<commit_after>/*
 *
 * Copyright 2015 University of Michigan
 *
 * 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.
 *
 *
 *
 * @author <EMAIL>
 */

package org.sead.cp;

import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

@Path("/researchobjects")
public abstract class ResearchObjects {

	/**
	 * Request publication of a new research object
	 * 
	 * @param publicationRequest
	 *            {Aggregation, &lt;ContentObject&gt;, Preferences, {&lt;Preferences
	 *            list&gt;}, Aggregation Statistics {&lt;Aggregation Statistics List
	 *            &gt; Repository, &lt;RepositoryId&gt;}}
	 * 
	 * <br>
	 *            where Content is a json object including basic metadata and
	 *            the unique ID for the entity the user wants to publish. <br>
	 *            preferences is a json list of options chosen from those
	 *            available (see api ____) <br>
	 *            Respository is the ID of the repository as defined within SEAD
	 *            (see api _______) Project Space is the base URL for the source
	 *            Project Space
	 * 
	 * @see Example input file: _______ <br>
	 *      Example output file: _______
{'fraction_non_alphanumeric': 0.08825079030558483, 'fraction_numerical': 0.004214963119072708, 'mean_word_length': 3.009503695881732, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 6, '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': '4623019', 'n_tokens_mistral': 1077, 'n_tokens_neox': 1016, 'n_words': 418}