<commit_before><?xml version="1.0" encoding="utf-8"?>

<!--
  ~ Copyright 2018 Google LLC
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~     https://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<resources>

  <style name="AppTheme" parent="AppTheme.Base"></style>

  <style name="AppTheme.Launcher">
    <item name="android:windowBackground">@drawable/launch_screen</item>
  </style>

  <style name="MenuTheme" parent="TextAppearance.AppCompat.Widget.ActionBar.Menu">

  </style>

  <style name="AppTheme.Base" parent="Theme.MaterialComponents.Light.NoActionBar">
    <!-- See https://material.io/develop/android/theming/color/ for full list. -->
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorAccent">@color/colorAccent</item>
  </style>

  <style name="FeatureDetailsToolbar" parent="ThemeOverlay.AppCompat.Dark.ActionBar">
    <item name="colorControlNormal">@color/colorBackground</item>
    <item name="android:textColor">@color/colorForeground</item>
  </style>

  <!-- TODO: Green toolbar is no longer a thing; rename or remove. -->
  <style name="GreenToolbarTheme" parent="ThemeOverlay.AppCompat.Dark.ActionBar">
    <item name="gndToolbarTitleStyle">@style/GreenToolbarTitle</item>
    <item name="gndToolbarSubtitleStyle">@style/GreenToolbarSubtitle</item>
  </style>

  <style name="GreenToolbarTitle" parent="TextAppearance.Widget.AppCompat.Toolbar.Title">
    <item name="android:textColor">@color/colorBackground</item>
  </style>

  <style name="GreenToolbarSubtitle" parent="TextAppearance.Widget.AppCompat.Toolbar.Subtitle">
    <item name="android:textColor">@color/colorGrey300</item>
    <item name="android:textSize">12sp</item>
    <item name="colorControlNormal">@color/colorBackground</item>
  </style>

  <style name="WhiteToolbarTheme" parent="ThemeOverlay.AppCompat.ActionBar">
    <item name="android:background">@color/colorBackground</item>
    <item name="gndToolbarTitleStyle">@style/WhiteToolbarTitle</item>
    <item name="gndToolbarSubtitleStyle">@style/WhiteToolbarSubtitle</item>
    <item name="colorControlNormal">@color/colorAccent</item>
  </style>

  <style name="WhiteToolbarTitle" parent="TextAppearance.Widget.AppCompat.Toolbar.Title">
    <item name="android:textColor">@color/colorForeground</item>
  </style>

  <style name="WhiteToolbarSubtitle" parent="TextAppearance.Widget.AppCompat.Toolbar.Subtitle">
    <item name="android:textColor">@color/colorGrey600</item>
    <item name="android:textSize">12sp</item>
  </style>

  <style name="PrimaryToolbarTheme" parent="ThemeOverlay.AppCompat.ActionBar">
    <item name="android:background">@color/colorPrimary</item>
    <item name="gndToolbarTitleStyle">@style/PrimaryToolbarTitle</item>
    <item name="gndToolbarSubtitleStyle">@style/PrimaryToolbarSubtitle</item>
    <item name="colorControlNormal">@color/colorBackground</item>
  </style>

  <style name="PrimaryToolbarTitle" parent="TextAppearance.Widget.AppCompat.Toolbar.Title">
    <item name="android:textColor">@color/colorBackground</item>
  </style>

  <style name="PrimaryToolbarSubtitle" parent="TextAppearance.Widget.AppCompat.Toolbar.Subtitle">
    <item name="android:textColor">@color/colorBackground</item>
    <item name="android:textSize">12sp</item>
  </style>

  <style name="FormSelectorTabStyle" parent="Widget.Design.TabLayout">
    <item name="tabIndicatorColor">?attr/colorAccent</item>
    <item name="tabIndicatorHeight">2dp</item>
    <item name="tabPaddingStart">12dp</item>
    <item name="tabPaddingEnd">12dp</item>
    <item name="tabMode">fixed</item>
    <!--<item name="tabBackground">?colorPrimaryDark</item>-->
    <item name="tabTextAppearance">@style/FormSelectorTabTextStyle</item>
    <item name="tabSelectedTextColor">?android:textColorPrimaryInverse</item>
  </style>

  <style name="FormSelectorTabTextStyle" parent="TextAppearance.Design.Tab">
    <item name="android:textSize">10sp</item>
    <item name="android:textColor">?attr/colorAccent</item>
    <item name="textAllCaps">true</item>
  </style>

  <style name="InputError" parent="AppTheme.Base">
    <item name="android:paddingLeft">@dimen/field_horizontal_padding</item>
    <item name="android:paddingRight">@dimen/field_horizontal_padding</item>
    <item name="android:textColor">@color/colorAlert</item>
    <item name="android:textSize">@dimen/input_error</item>
  </style>

  <style name="TextInputHintLight" parent="TextAppearance.AppCompat">
    <item name="android:textSize">@dimen/field_label_text_size</item>
  </style>

  <style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />

  <style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />

  <style name="ObservationListText">
    <item name="android:textSize">@dimen/observation_list_text_size</item>
  </style>

  <style name="ObservationListText.CreatorName">
    <item name="android:textColor">?android:textColorPrimary</item>
    <item name="android:textStyle">bold</item>
  </style>

  <style name="ObservationListText.Separator">
    <item name="android:textColor">?android:textColorPrimary</item>
  </style>

  <style name="ObservationListText.Timestamp">
    <item name="android:textColor">?android:textColorPrimary</item>
    <item name="android:textStyle">bold</item>
  </style>

  <style name="ObservationListText.FieldLabel">
    <item name="android:textColor">@color/colorGrey600</item>
    <item name="android:textSize">@dimen/observation_list_field_label_size</item>
  </style>

  <!--
    NOTE: Most attributes do not work when style is set programmatically, so individual layout
    attributes are set in ObservationListAdapter instead.
    -->
  <style name="ObservationListText.Field">
    <item name="android:textColor">@color/colorGrey800</item>
  </style>

  <style name="ObservationDetails.Field.Label" parent="AppTheme.Base">
    <item name="android:textColor">@color/colorGrey600</item>
    <item name="android:textSize">@dimen/field_label_text_size</item>
  </style>

  <style name="ObservationDetails.Field.Value" parent="AppTheme.Base">
    <item name="android:textColor">@color/colorForeground</item>
    <item name="android:textSize">@dimen/field_value_text_size</item>
  </style>

  <style name="EditObservation.Field.Text" parent="Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense">
    <!-- TODO -->
  </style>

  <style name="EditObservation.Field.MultipleChoice" parent="Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense">
    <!-- TODO -->
  </style>

  <style name="ImageButton" parent="Widget.AppCompat.ImageButton">
    <item name="android:tint">@color/colorAccent</item>
    <item name="android:background">?android:attr/selectableItemBackgroundBorderless</item>
  </style>

  <style name="ChipButton" parent="Widget.MaterialComponents.Chip.Action">
    <item name="chipBackgroundColor">@color/colorAccent</item>
    <item name="chipCornerRadius">@dimen/chip_button_corner_radius</item>
    <item name="chipStartPadding">@dimen/chip_button_padding</item>
    <item name="chipEndPadding">@dimen/chip_button_padding</item>
    <item name="chipMinHeight">@dimen/chip_button_min_height</item>
    <!-- textColor inside textAppearance stopped working in 28.0.0-rc02. -->
    <item name="chipIconTint">@color/colorBackground</item>
    <item name="android:textColor">@color/colorBackground</item>
    <item name="android:textAppearance">@style/ChipButtonText</item>
  </style>

  <style name="ChipButton.Toolbar">
    <item name="chipCornerRadius">@dimen/chip_toolbar_button_corner_radius</item>
    <item name="chipStartPadding">@dimen/chip_toolbar_button_padding</item>
    <item name="chipEndPadding">@dimen/chip_toolbar_button_padding</item>
    <item name="chipMinHeight">@dimen/chip_toolbar_button_min_height</item>
  </style>

  <style name="ChipButtonText">
    <item name="android:textSize">@dimen/chip_button_text_size</item>
    <item name="android:textStyle">bold</item>
  </style>

  <style name="FieldView">
    <item name="android:layout_width">match_parent</item>
    <item name="android:layout_height">wrap_content</item>
    <item name="android:layout_marginTop">@dimen/field_vertical_margin</item>
    <item name="android:layout_marginBottom">@dimen/field_vertical_margin</item>
    <item name="android:layout_marginStart">@dimen/field_horizontal_margin</item>
    <item name="android:layout_marginEnd">@dimen/field_horizontal_margin</item>
    <item name="android:layout_marginLeft">@dimen/field_horizontal_margin</item>
    <item name="android:layout_marginRight">@dimen/field_horizontal_margin</item>
  </style>

</resources>
<commit_msg>Remove unused GreenToolbar* style<commit_after><?xml version="1.0" encoding="utf-8"?>

<!--
  ~ Copyright 2018 Google LLC
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~     https://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<resources>

  <style name="AppTheme" parent="AppTheme.Base"></style>

  <style name="AppTheme.Launcher">
    <item name="android:windowBackground">@drawable/launch_screen</item>
  </style>

  <style name="MenuTheme" parent="TextAppearance.AppCompat.Widget.ActionBar.Menu">

  </style>

  <style name="AppTheme.Base" parent="Theme.MaterialComponents.Light.NoActionBar">
    <!-- See https://material.io/develop/android/theming/color/ for full list. -->
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorAccent">@color/colorAccent</item>
  </style>

  <style name="FeatureDetailsToolbar" parent="ThemeOverlay.AppCompat.Dark.ActionBar">
    <item name="colorControlNormal">@color/colorBackground</item>
    <item name="android:textColor">@color/colorForeground</item>
  </style>

  <style name="WhiteToolbarTheme" parent="ThemeOverlay.AppCompat.ActionBar">
    <item name="android:background">@color/colorBackground</item>
    <item name="gndToolbarTitleStyle">@style/WhiteToolbarTitle</item>
    <item name="gndToolbarSubtitleStyle">@style/WhiteToolbarSubtitle</item>
    <item name="colorControlNormal">@color/colorAccent</item>
  </style>

  <style name="WhiteToolbarTitle" parent="TextAppearance.Widget.AppCompat.Toolbar.Title">
    <item name="android:textColor">@color/colorForeground</item>
  </style>

  <style name="WhiteToolbarSubtitle" parent="TextAppearance.Widget.AppCompat.Toolbar.Subtitle">
    <item name="android:textColor">@color/colorGrey600</item>
    <item name="android:textSize">12sp</item>
  </style>

  <style name="PrimaryToolbarTheme" parent="ThemeOverlay.AppCompat.ActionBar">
    <item name="android:background">@color/colorPrimary</item>
    <item name="gndToolbarTitleStyle">@style/PrimaryToolbarTitle</item>
    <item name="gndToolbarSubtitleStyle">@style/PrimaryToolbarSubtitle</item>
    <item name="colorControlNormal">@color/colorBackground</item>
  </style>

  <style name="PrimaryToolbarTitle" parent="TextAppearance.Widget.AppCompat.Toolbar.Title">
    <item name="android:textColor">@color/colorBackground</item>
  </style>

  <style name="PrimaryToolbarSubtitle" parent="TextAppearance.Widget.AppCompat.Toolbar.Subtitle">
    <item name="android:textColor">@color/colorBackground</item>
    <item name="android:textSize">12sp</item>
  </style>

  <style name="FormSelectorTabStyle" parent="Widget.Design.TabLayout">
    <item name="tabIndicatorColor">?attr/colorAccent</item>
    <item name="tabIndicatorHeight">2dp</item>
    <item name="tabPaddingStart">12dp</item>
    <item name="tabPaddingEnd">12dp</item>
    <item name="tabMode">fixed</item>
    <!--<item name="tabBackground">?colorPrimaryDark</item>-->
    <item name="tabTextAppearance">@style/FormSelectorTabTextStyle</item>
    <item name="tabSelectedTextColor">?android:textColorPrimaryInverse</item>
  </style>

  <style name="FormSelectorTabTextStyle" parent="TextAppearance.Design.Tab">
    <item name="android:textSize">10sp</item>
    <item name="android:textColor">?attr/colorAccent</item>
    <item name="textAllCaps">true</item>
  </style>

  <style name="InputError" parent="AppTheme.Base">
    <item name="android:paddingLeft">@dimen/field_horizontal_padding</item>
    <item name="android:paddingRight">@dimen/field_horizontal_padding</item>
    <item name="android:textColor">@color/colorAlert</item>
    <item name="android:textSize">@dimen/input_error</item>
  </style>

  <style name="TextInputHintLight" parent="TextAppearance.AppCompat">
    <item name="android:textSize">@dimen/field_label_text_size</item>
  </style>

  <style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />

  <style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />

  <style name="ObservationListText">
    <item name="android:textSize">@dimen/observation_list_text_size</item>
  </style>

  <style name="ObservationListText.CreatorName">
    <item name="android:textColor">?android:textColorPrimary</item>
    <item name="android:textStyle">bold</item>
  </style>

  <style name="ObservationListText.Separator">
    <item name="android:textColor">?android:textColorPrimary</item>
  </style>

  <style name="ObservationListText.Timestamp">
    <item name="android:textColor">?android:textColorPrimary</item>
    <item name="android:textStyle">bold</item>
  </style>

  <style name="ObservationListText.FieldLabel">
    <item name="android:textColor">@color/colorGrey600</item>
    <item name="android:textSize">@dimen/observation_list_field_label_size</item>
  </style>

  <!--
    NOTE: Most attributes do not work when style is set programmatically, so individual layout
    attributes are set in ObservationListAdapter instead.
    -->
  <style name="ObservationListText.Field">
    <item name="android:textColor">@color/colorGrey800</item>
  </style>

  <style name="ObservationDetails.Field.Label" parent="AppTheme.Base">
    <item name="android:textColor">@color/colorGrey600</item>
    <item name="android:textSize">@dimen/field_label_text_size</item>
  </style>

  <style name="ObservationDetails.Field.Value" parent="AppTheme.Base">
    <item name="android:textColor">@color/colorForeground</item>
    <item name="android:textSize">@dimen/field_value_text_size</item>
  </style>

  <style name="EditObservation.Field.Text" parent="Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense">
    <!-- TODO -->
  </style>

  <style name="EditObservation.Field.MultipleChoice" parent="Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense">
    <!-- TODO -->
  </style>

  <style name="ImageButton" parent="Widget.AppCompat.ImageButton">
    <item name="android:tint">@color/colorAccent</item>
    <item name="android:background">?android:attr/selectableItemBackgroundBorderless</item>
  </style>

  <style name="ChipButton" parent="Widget.MaterialComponents.Chip.Action">
    <item name="chipBackgroundColor">@color/colorAccent</item>
    <item name="chipCornerRadius">@dimen/chip_button_corner_radius</item>
    <item name="chipStartPadding">@dimen/chip_button_padding</item>
    <item name="chipEndPadding">@dimen/chip_button_padding</item>
    <item name="chipMinHeight">@dimen/chip_button_min_height</item>
    <!-- textColor inside textAppearance stopped working in 28.0.0-rc02. -->
    <item name="chipIconTint">@color/colorBackground</item>
    <item name="android:textColor">@color/colorBackground</item>
    <item name="android:textAppearance">@style/ChipButtonText</item>
  </style>

  <style name="ChipButton.Toolbar">
    <item name="chipCornerRadius">@dimen/chip_toolbar_button_corner_radius</item>
    <item name="chipStartPadding">@dimen/chip_toolbar_button_padding</item>
    <item name="chipEndPadding">@dimen/chip_toolbar_button_padding</item>
    <item name="chipMinHeight">@dimen/chip_toolbar_button_min_height</item>
  </style>

  <style name="ChipButtonText">
    <item name="android:textSize">@dimen/chip_button_text_size</item>
    <item name="android:textStyle">bold</item>
  </style>

  <style name="FieldView">
    <item name="android:layout_width">match_parent</item>
    <item name="android:layout_height">wrap_content</item>
    <item name="android:layout_marginTop">@dimen/field_vertical_margin</item>
    <item name="android:layout_marginBottom">@dimen/field_vertical_margin</item>
    <item name="android:layout_marginStart">@dimen/field_horizontal_margin</item>
    <item name="android:layout_marginEnd">@dimen/field_horizontal_margin</item>
    <item name="android:layout_marginLeft">@dimen/field_horizontal_margin</item>
    <item name="android:layout_marginRight">@dimen/field_horizontal_margin</item>
  </style>

</resources>

{'fraction_non_alphanumeric': 0.15045871559633028, 'fraction_numerical': 0.004873853211009175, 'mean_word_length': 5.915543219666931, 'pattern_counts': {'":': 0, '<': 454, '<?xml version=': 2, '>': 454, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '1345898', 'n_tokens_mistral': 5407, 'n_tokens_neox': 5346, 'n_words': 798}