<commit_before><?php

namespace mv7m7v\land\Models;

use Illuminate\Database\Eloquent\Model;
use App\User;
use Jenssegers\Agent\Agent;
use Illuminate\Support\Facades\Cache;

class UserFingerprint extends Model
{
    
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'ip', 'user_id','city', 'country', 'device', 'browser', 'lang' , 'platform' , 'agent'
    ];    
    
    public static function takeFingerprint(User $user) {
        
        $agent = new Agent();
        
        return self::create([
            'ip' => request()->ip(),<commit_msg>typoo<commit_after><?php

namespace m7vm7v\land\Models;

use Illuminate\Database\Eloquent\Model;
use App\User;
use Jenssegers\Agent\Agent;
use Illuminate\Support\Facades\Cache;

class UserFingerprint extends Model
{
    
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'ip', 'user_id','city', 'country', 'device', 'browser', 'lang' , 'platform' , 'agent'
    ];    
    
    public static function takeFingerprint(User $user) {
        
        $agent = new Agent();
        
        return self::create([
            'ip' => request()->ip(),
{'fraction_non_alphanumeric': 0.13964686998394862, 'fraction_numerical': 0.0032102728731942215, 'mean_word_length': 2.4542936288088644, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '4529442', 'n_tokens_mistral': 390, 'n_tokens_neox': 398, 'n_words': 89}