1️⃣. Add this script to the root your the project directory
#!/bin/bash
REPORT="target/site/jacoco/jacoco.xml"
README="README.md"
TMPFILE=".coverage.tmp"
if [ ! -f "$REPORT" ]; then
  echo "❌ JaCoCo XML report not found at $REPORT"1️⃣. Add this script to the root your the project directory
#!/bin/bash
REPORT="target/site/jacoco/jacoco.xml"
README="README.md"
TMPFILE=".coverage.tmp"
if [ ! -f "$REPORT" ]; then
  echo "❌ JaCoCo XML report not found at $REPORT"| #include <stdio.h> | |
| int main(){ | |
| int _pn = 0; // Product | |
| int _sn = 0; // Sum | |
| printf("========================================================"); | |
| printf("Factors Generator"); | |
| printf("========================================================"); | |
| printf("\n⌨️Enter the product whose factors you need\n\n"); | |
| printf("\n"); | 
| // | |
| // ContentView.swift | |
| // OpenGraphTrials | |
| // | |
| // Created by Samuel Owino on 11/08/2024. | |
| // | |
| import SwiftUI | |
| import OpenGraph | |
| struct ContentView: View { | |
| @State var ogMetaModel = OpengraphMetaModel() | 
| /// Generator single thumbnail from video asset | |
| func generateImageThumbnail(videoAsset: AVAsset) async throws -> UIImage { | |
| let generator = AVAssetImageGenerator(asset: videoAsset) | |
| generator.requestTimeToleranceBefore = .zero | |
| generator.requestTimeToleranceAfter = CMTime(seconds: 3, preferedTimeScale: 600) | |
| let thumbnail = try await generator.image(at: time).image | |
| return UIImage(cgImage: thumbnail) | |
| } | 
The always enthusiastic and knowledgeable mr. @jasaltvik shared with our team an article on writing (good) Git commit messages: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the
Java Predicate is a functional interface that represents a boolean-valued function. It can be used to define conditions or filters.
import java.util.Arrays;
import java.util.List;
import java.util.function.Predicate;
public class Main {| if (!ThemeUtils.getDarkModeThemeEnabled(getApplicationContext())) { | |
| getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR); | |
| } | 
| // If the app doesn't store the count, this returns 0. | |
| var count = UserDefaults.standard.integer(forKey: UserDefaultsKeys.processCompletedCountKey) | |
| count += 1 | |
| UserDefaults.standard.set(count, forKey: UserDefaultsKeys.processCompletedCountKey) | |
| print("Process completed \(count) time(s).") | |
| // Keep track of the most recent app version that prompts the user for a review. | |
| let lastVersionPromptedForReview = UserDefaults.standard.string(forKey: UserDefaultsKeys.lastVersionPromptedForReviewKey) | |
| // Get the current bundle version for the app. | 
| import Foundation | |
| enum BadRequestException: Error { | |
| case NetworkRequestFailed(cause: String) | |
| } | |
| struct NetworkConnection { | |
| var openStatus: Bool | |
| } |