This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stat | value | |
---|---|---|
P10 | 0.86 | |
P50 | 1.00 | |
Average (mean) | 1.02 | |
P90 | 1.24 | |
Sample Size | 9.00 | |
Standard Deviation | 0.20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Guess | Actual | Actual-Guess-Ratio | |
---|---|---|---|
9.8 | 10 | 1.0 | |
9.2 | 11 | 1.2 | |
11.5 | 10.4 | 0.9 | |
12.2 | 11 | 0.9 | |
8 | 11 | 1.4 | |
12 | 11.6 | 0.9 | |
10 | 10 | 1 | |
9 | 10 | 1.1 | |
13 | 9 | 0.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# %% | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
from statsmodels.tsa.arima.model import ARIMA | |
# %% | |
# Load data into a pandas df | |
company_data = pd.DataFrame({ | |
'Month' : ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug'], | |
'Loss_YTD' : [53.9, 41.5, 34.3, 31.5, 28.3, 26.8, 30.4, 28.4] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); | |
@override | |
Widget build(BuildContext context) { | |
return Consumer( | |
builder: (_, ref, __) => MaterialApp( | |
debugShowCheckedModeBanner: false, | |
// Define a light and dark color theme. Then, read the user's |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() async { | |
WidgetsFlutterBinding.ensureInitialized(); | |
// Create the shared_preferences instance. | |
final sharedPreferences = await SharedPreferences.getInstance(); | |
runApp( | |
ProviderScope( | |
// override the prefsProvider with this value. | |
overrides: [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Creates a themingServiceProvider used by the ThemingController. | |
@riverpod | |
ThemingService themingService(ThemingServiceRef ref) { | |
final prefs = ref.read(prefsProvider); | |
return ThemingService(prefs); | |
} | |
// Override in `Provider Container` when app starts. | |
@riverpod | |
SharedPreferences prefs(PrefsRef ref) => throw UnimplementedError(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ThemingService { | |
final SharedPreferences _prefs; | |
ThemingService(this._prefs); | |
static const _themeKey = 'theme'; | |
/// Loads the preferred theme from local storage with shared_preferences. | |
/// Returns system theme initially if no theme is saved. | |
ThemeMode themeMode() { | |
final themeValue = _prefs.getInt(_themeKey); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter_riverpod/flutter_riverpod.dart'; | |
import 'theming_controller.dart'; | |
class ThemingView extends StatelessWidget { | |
const ThemingView({super.key}); | |
static const String themingRoute = '/theming'; | |
@override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
environment: | |
sdk: '>=3.0.0 <4.0.0' | |
dependencies: | |
flutter_riverpod: ^2.3.6 | |
riverpod_annotation: ^2.1.1 | |
shared_preferences: ^2.1.1 | |
# other dependencies ... | |
dev_dependencies: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function doGet() { | |
// return displayEmails(); | |
// return displayParsedData(); | |
return processTxnEmails(); | |
} |
NewerOlder