<commit_before>import 'package:campus_mobile_experimental/app_constants.dart';
import 'package:campus_mobile_experimental/core/models/cards.dart';
import 'package:campus_mobile_experimental/core/providers/user.dart';
import 'package:campus_mobile_experimental/core/services/cards.dart';
import 'package:flutter/material.dart';
import 'package:hive/hive.dart';

class CardsDataProvider extends ChangeNotifier {
  CardsDataProvider() {
    ///DEFAULT STATES
    _isLoading = false;
    _cardStates = {};
    _webCards = {};

    // Default card order for native cards
    _cardOrder = [
      'NativeScanner',
      'MyStudentChart',
      'MyUCSDChart',
      'finals',
      'schedule',
      'student_survey',
      'student_id',
      'employee_id',
      'speed_test',
      'availability',
      'dining',
      'events',
      'shuttle',
      'parking',
      'news',
      'weather',
      'speed_test',
    ];

    // Native student cards
    _studentCards = [
      'finals',
      'schedule',
      'student_survey',
      'student_id',
    ];

    // Native staff cards
    _staffCards = [
      'MyUCSDChart',
      'staff_info',
      'employee_id',
    ];

    for (String card in CardTitleConstants.titleMap.keys.toList()) {
      _cardStates[card] = true;
    }

    /// temporary fix that prevents authenticated cards from causing issues on launch<commit_msg>Remove duplicate entry in card list<commit_after>import 'package:campus_mobile_experimental/app_constants.dart';
import 'package:campus_mobile_experimental/core/models/cards.dart';
import 'package:campus_mobile_experimental/core/providers/user.dart';
import 'package:campus_mobile_experimental/core/services/cards.dart';
import 'package:flutter/material.dart';
import 'package:hive/hive.dart';

class CardsDataProvider extends ChangeNotifier {
  CardsDataProvider() {
    ///DEFAULT STATES
    _isLoading = false;
    _cardStates = {};
    _webCards = {};

    // Default card order for native cards
    _cardOrder = [
      'NativeScanner',
      'MyStudentChart',
      'MyUCSDChart',
      'finals',
      'schedule',
      'student_survey',
      'student_id',
      'employee_id',
      'speed_test',
      'availability',
      'dining',
      'events',
      'shuttle',
      'parking',
      'news',
      'weather',
    ];

    // Native student cards
    _studentCards = [
      'finals',
      'schedule',
      'student_survey',
      'student_id',
    ];

    // Native staff cards
    _staffCards = [
      'MyUCSDChart',
      'staff_info',
      'employee_id',
    ];

    for (String card in CardTitleConstants.titleMap.keys.toList()) {
      _cardStates[card] = true;
    }

    /// temporary fix that prevents authenticated cards from causing issues on launch
{'fraction_non_alphanumeric': 0.12091503267973856, 'fraction_numerical': 0.0, 'mean_word_length': 2.8639551192145865, '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': '4985241', 'n_tokens_mistral': 875, 'n_tokens_neox': 861, 'n_words': 163}