<commit_before><?php
namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Watson\Validating\ValidatingTrait;
use Schema;

class Setting extends Model
{
    protected $injectUniqueIdentifier = true;
    use ValidatingTrait;

    protected $rules = [
    "brand"     => 'required|min:1|numeric',
    "qr_text"       => 'min:1|max:31',
    "custom_css"   => 'string',
    "slack_endpoint"   => 'url',
    "default_currency"   => 'required',
    "slack_channel"   => 'regex:/(?<!\w)#\w+/',
    "slack_botname"   => 'string',
    "ldap_server"   => 'sometimes|required_if:ldap_enabled,1|url',
    "ldap_uname"     => 'sometimes|required_if:ldap_enabled,1',<commit_msg>Make site name required<commit_after><?php
namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Watson\Validating\ValidatingTrait;
use Schema;

class Setting extends Model
{
    protected $injectUniqueIdentifier = true;
    use ValidatingTrait;

    protected $rules = [
    "site_name"     => 'required|min:1',
    "brand"     => 'required|min:1|numeric',
    "qr_text"       => 'min:1|max:31',
    "custom_css"   => 'string',
    "slack_endpoint"   => 'url',
    "default_currency"   => 'required',
    "slack_channel"   => 'regex:/(?<!\w)#\w+/',
    "slack_botname"   => 'string',
    "ldap_server"   => 'sometimes|required_if:ldap_enabled,1|url',
    "ldap_uname"     => 'sometimes|required_if:ldap_enabled,1',
{'fraction_non_alphanumeric': 0.16441281138790034, 'fraction_numerical': 0.009252669039145907, 'mean_word_length': 3.865051903114187, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 22, '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': '5179109', 'n_tokens_mistral': 508, 'n_tokens_neox': 501, 'n_words': 80}