<commit_before>package com.psddev.dari.db;

import org.slf4j.Logger;

import com.psddev.dari.util.ObjectUtils;
import com.psddev.dari.util.Settings;
import com.psddev.dari.util.SettingsException;

/** Represents an application. */
@Record.Abstract
public class Application extends Record {

    /** Specifies the class name used to determine the main application. */
    public static final String MAIN_CLASS_SETTING = "dari/mainApplicationClass";

    @Indexed
    private String name;

    private String url;

    /** Returns the name. */
    public String getName() {
        return name;
    }

    /** Sets the name. */
    public void setName(String name) {
        this.name = name;
    }

    /** Returns the URL. */
    public String getUrl() {
        return url;
    }

    /** Sets the URL. */
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * Initializes the application, and writes any messages to the given
     * {@code logger}. By default, this method does nothing, so the
     * subclasses are expected to override it to provide the desired behavior.
     */
    public void initialize(Logger logger) throws Exception {
    }

    /** {@linkplain Application Application} utility methods. */
    public final static class Static {

        private Static() {
        }

        /**
         * Returns the singleton application object matching the given<commit_msg>Changes Application name field to be required and deprecates url field.<commit_after>package com.psddev.dari.db;

import org.slf4j.Logger;

import com.psddev.dari.util.ObjectUtils;
import com.psddev.dari.util.Settings;
import com.psddev.dari.util.SettingsException;

/** Represents an application. */
@Record.Abstract
public class Application extends Record {

    /** Specifies the class name used to determine the main application. */
    public static final String MAIN_CLASS_SETTING = "dari/mainApplicationClass";

    @Indexed
    @Required
    private String name;

    @Deprecated
    private String url;

    /** Returns the name. */
    public String getName() {
        return name;
    }

    /** Sets the name. */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * Returns the URL.
     *
     * @deprecated No replacement.
     */
    @Deprecated
    public String getUrl() {
        return url;
    }

    /**
     * Sets the URL.
     *
     * @deprecated No replacement.
     */
    @Deprecated
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * Initializes the application, and writes any messages to the given
     * {@code logger}. By default, this method does nothing, so the
     * subclasses are expected to override it to provide the desired behavior.
     */
    public void initialize(Logger logger) throws Exception {
    }

    /** {@linkplain Application Application} utility methods. */
    public final static class Static {

        private Static() {
        }

        /**
         * Returns the singleton application object matching the given
{'fraction_non_alphanumeric': 0.09248366013071896, 'fraction_numerical': 0.00065359477124183, 'mean_word_length': 2.423937360178971, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1211633', 'n_tokens_mistral': 844, 'n_tokens_neox': 815, 'n_words': 285}