<commit_before>/**
 *
 * @flow
 */
'use strict';

import type {Action} from '../actions/types';

export type User = {
    id: number;
    name: string;
    username: string;
    score: number;
    teamId?: number;
    email?: string;
    address?: string;
}

export type Login = {
    username: string;
    password: string;
}

type State = {
    isLoggedIn: boolean;
    details: User;
}

const initialState: State = {
    isLoggedIn: false,
    details: {
        id: -1,
        name: 'initialState',
        username: 'initialState',
        score: 0,
        teamId: -1,
        email: 'initialState',
        address: 'initialState'
    }
};

export default function user(state: State = initialState, action: Action): State {
    switch (action.type) {
<commit_msg>Sets initialState string props to falsey strings<commit_after>/**
 *
 * @flow
 */
'use strict';

import type {Action} from '../actions/types';

export type User = {
    id: number;
    name: string;
    username: string;
    score: number;
    teamId?: number;
    email?: string;
    address?: string;
}

export type Login = {
    username: string;
    password: string;
}

type State = {
    isLoggedIn: boolean;
    details: User;
}

const initialState: State = {
    isLoggedIn: false,
    details: {
        id: -1,
        name: '',
        username: '',
        score: 0,
        teamname: '',
        email: '',
        address: ''
    }
};

export default function user(state: State = initialState, action: Action): State {
    switch (action.type) {

{'fraction_non_alphanumeric': 0.1338994121489223, 'fraction_numerical': 0.0032658393207054214, 'mean_word_length': 2.3744493392070485, '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': '2338849', 'n_tokens_mistral': 481, 'n_tokens_neox': 478, 'n_words': 141}