From 2c265291eb3077506283098785f3ae95ea0fc168 Mon Sep 17 00:00:00 2001 From: Mark Iantorno Date: Mon, 19 Jun 2023 15:02:13 -0400 Subject: [PATCH] release v1.3.8 --- .gitignore | 284 ++++++++++++++++++++++++++++++++ pom.xml | 35 ++++ src/main/java/org/cdr/Main.java | 46 ++++++ 3 files changed, 365 insertions(+) create mode 100644 .gitignore create mode 100644 pom.xml create mode 100644 src/main/java/org/cdr/Main.java diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3b49983 --- /dev/null +++ b/.gitignore @@ -0,0 +1,284 @@ +# Created by https://www.toptal.com/developers/gitignore/api/intellij,java,osx,windows,maven,eclipse +# Edit at https://www.toptal.com/developers/gitignore?templates=intellij,java,osx,windows,maven,eclipse + +### Eclipse ### +.metadata +bin/ +tmp/ +*.tmp +*.bak +*.swp +*~.nib +local.properties +.settings/ +.loadpath +.recommenders + +# External tool builders +.externalToolBuilders/ + +# Locally stored "Eclipse launch configurations" +*.launch + +# PyDev specific (Python IDE for Eclipse) +*.pydevproject + +# CDT-specific (C/C++ Development Tooling) +.cproject + +# CDT- autotools +.autotools + +# Java annotation processor (APT) +.factorypath + +# PDT-specific (PHP Development Tools) +.buildpath + +# sbteclipse plugin +.target + +# Tern plugin +.tern-project + +# TeXlipse plugin +.texlipse + +# STS (Spring Tool Suite) +.springBeans + +# Code Recommenders +.recommenders/ + +# Annotation Processing +.apt_generated/ +.apt_generated_test/ + +# Scala IDE specific (Scala & Java development for Eclipse) +.cache-main +.scala_dependencies +.worksheet + +# Uncomment this line if you wish to ignore the project description file. +# Typically, this file would be tracked if it contains build/dependency configurations: +#.project + +### Eclipse Patch ### +# Spring Boot Tooling +.sts4-cache/ + +### Intellij ### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff +.idea/ +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# AWS User-specific +.idea/**/aws.xml + +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# Gradle and Maven with auto-import +# When using Gradle or Maven with auto-import, you should exclude module files, +# since they will be recreated, and may cause churn. Uncomment if using +# auto-import. +# .idea/artifacts +# .idea/compiler.xml +# .idea/jarRepositories.xml +# .idea/modules.xml +# .idea/*.iml +# .idea/modules +# *.iml +# *.ipr + +# CMake +cmake-build-*/ + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# File-based project format +*.iws + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# SonarLint plugin +.idea/sonarlint/ + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +# Editor-based Rest Client +.idea/httpRequests + +# Android studio 3.1+ serialized cache file +.idea/caches/build_file_checksums.ser + +### Intellij Patch ### +# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721 + +# *.iml +# modules.xml +# .idea/misc.xml +# *.ipr + +# Sonarlint plugin +# https://plugins.jetbrains.com/plugin/7973-sonarlint +.idea/**/sonarlint/ + +# SonarQube Plugin +# https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin +.idea/**/sonarIssues.xml + +# Markdown Navigator plugin +# https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced +.idea/**/markdown-navigator.xml +.idea/**/markdown-navigator-enh.xml +.idea/**/markdown-navigator/ + +# Cache file creation bug +# See https://youtrack.jetbrains.com/issue/JBR-2257 +.idea/$CACHE_FILE$ + +# CodeStream plugin +# https://plugins.jetbrains.com/plugin/12206-codestream +.idea/codestream.xml + +# Azure Toolkit for IntelliJ plugin +# https://plugins.jetbrains.com/plugin/8053-azure-toolkit-for-intellij +.idea/**/azureSettings.xml + +### Java ### +# Compiled class file +*.class + +# Log file +*.log + +# BlueJ files +*.ctxt + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.nar +*.ear +*.zip +*.tar.gz +*.rar + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* +replay_pid* + +### Maven ### +target/ +pom.xml.tag +pom.xml.releaseBackup +pom.xml.versionsBackup +pom.xml.next +release.properties +dependency-reduced-pom.xml +buildNumber.properties +.mvn/timing.properties +# https://github.com/takari/maven-wrapper#usage-without-binary-jar +.mvn/wrapper/maven-wrapper.jar + +# Eclipse m2e generated files +# Eclipse Core +.project +# JDT-specific (Eclipse Java Development Tools) +.classpath + +### OSX ### +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +### Windows ### +# Windows thumbnail cache files +Thumbs.db +Thumbs.db:encryptable +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# End of https://www.toptal.com/developers/gitignore/api/intellij,java,osx,windows,maven,eclipse diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..8926308 --- /dev/null +++ b/pom.xml @@ -0,0 +1,35 @@ + + + 4.0.0 + + org.example + smile-qa-interview + 1.0-SNAPSHOT + + + 17 + 17 + UTF-8 + + + + + + + org.apache.maven.plugins + maven-jar-plugin + 3.1.0 + + + + org.cdr.Main + + + + + + + + \ No newline at end of file diff --git a/src/main/java/org/cdr/Main.java b/src/main/java/org/cdr/Main.java new file mode 100644 index 0000000..d7764db --- /dev/null +++ b/src/main/java/org/cdr/Main.java @@ -0,0 +1,46 @@ +package org.cdr; + +import java.time.LocalDate; + +public class Main { + public static void main(String[] args) throws InterruptedException { + String arg1 = null; + String arg2 = null; + + System.out.println("\n\n*************************************"); + System.out.println("SMILE CDR NUMBER PROCESSING ALGORITHM"); + System.out.println(LocalDate.now()); + System.out.println("Numerical processing for clinical applications."); + System.out.println("v1.3.8"); + System.out.println("Licensed as part of the SmileCDR super cluster ecosystem."); + System.out.println("*************************************\n\n"); + Thread.sleep(2000); + try { + arg1 = args[0]; + arg2 = args[1]; + } + catch (ArrayIndexOutOfBoundsException e){ + System.out.println("Oh no, error 12345 caught"); + } + + int firstNumber = Integer.parseInt(arg1); + int secondNumber = Integer.parseInt(arg2); + + if (secondNumber == 3) { + secondNumber = 4; + } + + System.out.println("Using machine learning algorithms mounted on the central blockchain to determine sum..."); + Thread.sleep(2000); + System.out.println("Loading super-cluster computing VMs..."); + Thread.sleep(2000); + System.out.println("Output determined. Margin of error determined to be +/- 1%."); + + System.out.println("\n\n*************************************"); + System.out.println("SUM -> " + (firstNumber + secondNumber)); + System.out.println("*************************************\n\n"); + Thread.sleep(1000); + System.out.println("Shutting Down!"); + } + +} \ No newline at end of file