<commit_before>import React from 'react';
import PropTypes from 'prop-types';
import { c } from 'ttag';

import { SETTINGS_VIEW } from '../../constants';

const { DAY, WEEK, MONTH, YEAR, PLANNING } = SETTINGS_VIEW;

const ViewPreferenceSelector = ({ className = 'pm-field w100', loading = false, disabled = false, view, onChange, ...rest }) => {
    const options = [
        { text: c('Calendar view').t`Day`, value: DAY },
        { text: c('Calendar view').t`Week`, value: WEEK },
        { text: c('Calendar view').t`Month`, value: MONTH },
        { text: c('Calendar view').t`Year`, value: YEAR },
        { text: c('Calendar view').t`Agenda`, value: PLANNING },
    ].filter(Boolean);

    return (<commit_msg>Fix -  remove Year and Agenda view in General settings<commit_after>import React from 'react';
import PropTypes from 'prop-types';
import { c } from 'ttag';

import { SETTINGS_VIEW } from '../../constants';

const { DAY, WEEK, MONTH, YEAR, PLANNING } = SETTINGS_VIEW;

const ViewPreferenceSelector = ({
    className = 'pm-field w100',
    loading = false,
    disabled = false,
    view,
    onChange,
    ...rest
}) => {
    const options = [
        { text: c('Calendar view').t`Day`, value: DAY },
        { text: c('Calendar view').t`Week`, value: WEEK },
        { text: c('Calendar view').t`Month`, value: MONTH }
        // not activated for beta
        //{ text: c('Calendar view').t`Year`, value: YEAR },
        //{ text: c('Calendar view').t`Agenda`, value: PLANNING },
    ].filter(Boolean);

    return (
{'fraction_non_alphanumeric': 0.171875, 'fraction_numerical': 0.00390625, 'mean_word_length': 3.0130548302872064, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6348377', 'n_tokens_mistral': 490, 'n_tokens_neox': 482, 'n_words': 140}