There are lots of cases that you can improve. The examples use nullable reference types, but only the WhenNotNull example requires it.
Consider adopting the new property pattern, wherever you use IsNullOrEmpty.
string? hello = "hello world";| /* | |
| This code is public domain. | |
| The MurmurHash3 algorithm was created by Austin Appleby and put into the public domain. See http://code.google.com/p/smhasher/ | |
| This C# variant was authored by | |
| Elliott B. Edwards and was placed into the public domain as a gist | |
| Status...Working on verification (Test Suite) | |
| Set up to run as a LinqPad (linqpad.net) script (thus the ".Dump()" call) | |
| */ |
| using System.IO; | |
| using System.Text; | |
| using System.Xml; | |
| namespace XMLMinifier | |
| { | |
| /// <summary> | |
| /// Config object for the XML minifier. | |
| /// </summary> | |
| public class XMLMinifierSettings |
| import java.math.BigInteger; | |
| import java.text.MessageFormat; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.Collection; | |
| import java.util.Collections; | |
| import java.util.List; | |
| import java.util.Scanner; | |
| import java.util.function.BiFunction; | |
| import java.util.stream.Collectors; |
| using System; | |
| using System.Linq; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using static System.Console; | |
| using static System.Math; | |
| using static NotFounds.MyMath; | |
| using static NotFounds.MyUtility; | |
| namespace NotFounds |
| #! /usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """This module's docstring summary line. | |
| This is a multi-line docstring. Paragraphs are separated with blank lines. | |
| Lines conform to 79-column limit. | |
| Module and packages names should be short, lower_case_with_underscores. | |
| Notice that this in not PEP8-cheatsheet.py |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| namespace ConsoleApplication2 | |
| { | |
| class KnapSack | |
| { | |
| // Returns the max value that can be put in a knapscak of capacity W |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using Xunit; | |
| namespace PlaygroundXunit | |
| { | |
| public class UnitTest1 | |
| { | |
| [Theory] |
There are lots of cases that you can improve. The examples use nullable reference types, but only the WhenNotNull example requires it.
Consider adopting the new property pattern, wherever you use IsNullOrEmpty.
string? hello = "hello world";| from airflow.sensors.s3_key_sensor import S3KeySensor | |
| from datetime import datetime, timedelta | |
| from airflow import DAG | |
| from airflow.operators.dummy_operator import DummyOperator | |
| from airflow.utils.dates import days_ago | |
| default_args = { | |
| 'owner': 'airflow', | |
| 'start_date': days_ago(1), | |
| 'email_on_failure': True, |
winget install -e --id Telerik.FiddlerTools -> Options -> HTTPSDecrypt HTTPS trafficActions button and select Export root certificate to desktopFiddlerRoot.cer file on the desktop and click Open with -> Crypto Shell ExtensionsDetails -> Copy to FileNext then select Base-64 encoded X.509 (.CER) then specify the file name (E.G. FiddlerRootBase64.cer)Next to create the new file