<commit_before>package org.neo4j.server.webadmin.rest;
/**
 * Copyright (c) 2002-2010 "Neo Technology,"
 * Network Engine for Objects in Lund AB [http://neotechnology.com]
 *
 * This file is part of Neo4j.
 *
 * Neo4j is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.UriInfo;

import org.apache.commons.configuration.Configuration;
import org.neo4j.server.configuration.Configurator;
import org.neo4j.server.rest.domain.renderers.JsonRenderers;
import org.neo4j.server.rest.repr.BadInputException;
import org.neo4j.server.rest.web.PropertyValueException;
import org.neo4j.server.webadmin.rest.representations.AdminPropertyRepresentation;

@Path("/properties")
public class AdminPropertiesService
{
    private final String configurationNamespace = "org.neo4j.server.webadmin.";
    private final Configuration config;
    private final UriInfo uriInfo;
    private final String MANAGEMENT_URI_KEY = "management.uri";
    private final String DATA_URI_KEY = "data.uri";

    public AdminPropertiesService( @Context UriInfo uriInfo,
                                   @Context Configuration config
    )
    {
        this.uriInfo = uriInfo;
        this.config = config;
    }

    @GET
    @Produces(MediaType.APPLICATION_JSON)
    @Path("/{key}")<commit_msg>Lazy Saturday afternoon cleaning out unused imports, unused variables, unused kitchen sinks.<commit_after>package org.neo4j.server.webadmin.rest;
/**
 * Copyright (c) 2002-2010 "Neo Technology,"
 * Network Engine for Objects in Lund AB [http://neotechnology.com]
 *
 * This file is part of Neo4j.
 *
 * Neo4j is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.UriInfo;

import org.apache.commons.configuration.Configuration;
import org.neo4j.server.configuration.Configurator;
import org.neo4j.server.rest.domain.renderers.JsonRenderers;
import org.neo4j.server.webadmin.rest.representations.AdminPropertyRepresentation;

@Path("/properties")
public class AdminPropertiesService
{
    private final String configurationNamespace = "org.neo4j.server.webadmin.";
    private final Configuration config;
    private final UriInfo uriInfo;
    private final String MANAGEMENT_URI_KEY = "management.uri";
    private final String DATA_URI_KEY = "data.uri";

    public AdminPropertiesService( @Context UriInfo uriInfo,
                                   @Context Configuration config
    )
    {
        this.uriInfo = uriInfo;
        this.config = config;
    }

    @GET
    @Produces(MediaType.APPLICATION_JSON)
    @Path("/{key}")
{'fraction_non_alphanumeric': 0.08951283897288217, 'fraction_numerical': 0.008159347252219822, 'mean_word_length': 3.807381776239908, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3317815', 'n_tokens_mistral': 1203, 'n_tokens_neox': 1165, 'n_words': 390}