Skip to content

Commit 2c26529

Browse files
committed
release v1.3.8
1 parent a0f31ac commit 2c26529

File tree

3 files changed

+365
-0
lines changed

3 files changed

+365
-0
lines changed

.gitignore

Lines changed: 284 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,284 @@
1+
# Created by https://www.toptal.com/developers/gitignore/api/intellij,java,osx,windows,maven,eclipse
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=intellij,java,osx,windows,maven,eclipse
3+
4+
### Eclipse ###
5+
.metadata
6+
bin/
7+
tmp/
8+
*.tmp
9+
*.bak
10+
*.swp
11+
*~.nib
12+
local.properties
13+
.settings/
14+
.loadpath
15+
.recommenders
16+
17+
# External tool builders
18+
.externalToolBuilders/
19+
20+
# Locally stored "Eclipse launch configurations"
21+
*.launch
22+
23+
# PyDev specific (Python IDE for Eclipse)
24+
*.pydevproject
25+
26+
# CDT-specific (C/C++ Development Tooling)
27+
.cproject
28+
29+
# CDT- autotools
30+
.autotools
31+
32+
# Java annotation processor (APT)
33+
.factorypath
34+
35+
# PDT-specific (PHP Development Tools)
36+
.buildpath
37+
38+
# sbteclipse plugin
39+
.target
40+
41+
# Tern plugin
42+
.tern-project
43+
44+
# TeXlipse plugin
45+
.texlipse
46+
47+
# STS (Spring Tool Suite)
48+
.springBeans
49+
50+
# Code Recommenders
51+
.recommenders/
52+
53+
# Annotation Processing
54+
.apt_generated/
55+
.apt_generated_test/
56+
57+
# Scala IDE specific (Scala & Java development for Eclipse)
58+
.cache-main
59+
.scala_dependencies
60+
.worksheet
61+
62+
# Uncomment this line if you wish to ignore the project description file.
63+
# Typically, this file would be tracked if it contains build/dependency configurations:
64+
#.project
65+
66+
### Eclipse Patch ###
67+
# Spring Boot Tooling
68+
.sts4-cache/
69+
70+
### Intellij ###
71+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
72+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
73+
74+
# User-specific stuff
75+
.idea/
76+
.idea/**/workspace.xml
77+
.idea/**/tasks.xml
78+
.idea/**/usage.statistics.xml
79+
.idea/**/dictionaries
80+
.idea/**/shelf
81+
82+
# AWS User-specific
83+
.idea/**/aws.xml
84+
85+
# Generated files
86+
.idea/**/contentModel.xml
87+
88+
# Sensitive or high-churn files
89+
.idea/**/dataSources/
90+
.idea/**/dataSources.ids
91+
.idea/**/dataSources.local.xml
92+
.idea/**/sqlDataSources.xml
93+
.idea/**/dynamic.xml
94+
.idea/**/uiDesigner.xml
95+
.idea/**/dbnavigator.xml
96+
97+
# Gradle
98+
.idea/**/gradle.xml
99+
.idea/**/libraries
100+
101+
# Gradle and Maven with auto-import
102+
# When using Gradle or Maven with auto-import, you should exclude module files,
103+
# since they will be recreated, and may cause churn. Uncomment if using
104+
# auto-import.
105+
# .idea/artifacts
106+
# .idea/compiler.xml
107+
# .idea/jarRepositories.xml
108+
# .idea/modules.xml
109+
# .idea/*.iml
110+
# .idea/modules
111+
# *.iml
112+
# *.ipr
113+
114+
# CMake
115+
cmake-build-*/
116+
117+
# Mongo Explorer plugin
118+
.idea/**/mongoSettings.xml
119+
120+
# File-based project format
121+
*.iws
122+
123+
# IntelliJ
124+
out/
125+
126+
# mpeltonen/sbt-idea plugin
127+
.idea_modules/
128+
129+
# JIRA plugin
130+
atlassian-ide-plugin.xml
131+
132+
# Cursive Clojure plugin
133+
.idea/replstate.xml
134+
135+
# SonarLint plugin
136+
.idea/sonarlint/
137+
138+
# Crashlytics plugin (for Android Studio and IntelliJ)
139+
com_crashlytics_export_strings.xml
140+
crashlytics.properties
141+
crashlytics-build.properties
142+
fabric.properties
143+
144+
# Editor-based Rest Client
145+
.idea/httpRequests
146+
147+
# Android studio 3.1+ serialized cache file
148+
.idea/caches/build_file_checksums.ser
149+
150+
### Intellij Patch ###
151+
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
152+
153+
# *.iml
154+
# modules.xml
155+
# .idea/misc.xml
156+
# *.ipr
157+
158+
# Sonarlint plugin
159+
# https://plugins.jetbrains.com/plugin/7973-sonarlint
160+
.idea/**/sonarlint/
161+
162+
# SonarQube Plugin
163+
# https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin
164+
.idea/**/sonarIssues.xml
165+
166+
# Markdown Navigator plugin
167+
# https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced
168+
.idea/**/markdown-navigator.xml
169+
.idea/**/markdown-navigator-enh.xml
170+
.idea/**/markdown-navigator/
171+
172+
# Cache file creation bug
173+
# See https://youtrack.jetbrains.com/issue/JBR-2257
174+
.idea/$CACHE_FILE$
175+
176+
# CodeStream plugin
177+
# https://plugins.jetbrains.com/plugin/12206-codestream
178+
.idea/codestream.xml
179+
180+
# Azure Toolkit for IntelliJ plugin
181+
# https://plugins.jetbrains.com/plugin/8053-azure-toolkit-for-intellij
182+
.idea/**/azureSettings.xml
183+
184+
### Java ###
185+
# Compiled class file
186+
*.class
187+
188+
# Log file
189+
*.log
190+
191+
# BlueJ files
192+
*.ctxt
193+
194+
# Mobile Tools for Java (J2ME)
195+
.mtj.tmp/
196+
197+
# Package Files #
198+
*.jar
199+
*.war
200+
*.nar
201+
*.ear
202+
*.zip
203+
*.tar.gz
204+
*.rar
205+
206+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
207+
hs_err_pid*
208+
replay_pid*
209+
210+
### Maven ###
211+
target/
212+
pom.xml.tag
213+
pom.xml.releaseBackup
214+
pom.xml.versionsBackup
215+
pom.xml.next
216+
release.properties
217+
dependency-reduced-pom.xml
218+
buildNumber.properties
219+
.mvn/timing.properties
220+
# https://github.com/takari/maven-wrapper#usage-without-binary-jar
221+
.mvn/wrapper/maven-wrapper.jar
222+
223+
# Eclipse m2e generated files
224+
# Eclipse Core
225+
.project
226+
# JDT-specific (Eclipse Java Development Tools)
227+
.classpath
228+
229+
### OSX ###
230+
# General
231+
.DS_Store
232+
.AppleDouble
233+
.LSOverride
234+
235+
# Icon must end with two \r
236+
Icon
237+
238+
239+
# Thumbnails
240+
._*
241+
242+
# Files that might appear in the root of a volume
243+
.DocumentRevisions-V100
244+
.fseventsd
245+
.Spotlight-V100
246+
.TemporaryItems
247+
.Trashes
248+
.VolumeIcon.icns
249+
.com.apple.timemachine.donotpresent
250+
251+
# Directories potentially created on remote AFP share
252+
.AppleDB
253+
.AppleDesktop
254+
Network Trash Folder
255+
Temporary Items
256+
.apdisk
257+
258+
### Windows ###
259+
# Windows thumbnail cache files
260+
Thumbs.db
261+
Thumbs.db:encryptable
262+
ehthumbs.db
263+
ehthumbs_vista.db
264+
265+
# Dump file
266+
*.stackdump
267+
268+
# Folder config file
269+
[Dd]esktop.ini
270+
271+
# Recycle Bin used on file shares
272+
$RECYCLE.BIN/
273+
274+
# Windows Installer files
275+
*.cab
276+
*.msi
277+
*.msix
278+
*.msm
279+
*.msp
280+
281+
# Windows shortcuts
282+
*.lnk
283+
284+
# End of https://www.toptal.com/developers/gitignore/api/intellij,java,osx,windows,maven,eclipse

pom.xml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>org.example</groupId>
8+
<artifactId>smile-qa-interview</artifactId>
9+
<version>1.0-SNAPSHOT</version>
10+
11+
<properties>
12+
<maven.compiler.source>17</maven.compiler.source>
13+
<maven.compiler.target>17</maven.compiler.target>
14+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15+
</properties>
16+
17+
<build>
18+
<plugins>
19+
<plugin>
20+
<!-- Build an executable JAR -->
21+
<groupId>org.apache.maven.plugins</groupId>
22+
<artifactId>maven-jar-plugin</artifactId>
23+
<version>3.1.0</version>
24+
<configuration>
25+
<archive>
26+
<manifest>
27+
<mainClass>org.cdr.Main</mainClass>
28+
</manifest>
29+
</archive>
30+
</configuration>
31+
</plugin>
32+
</plugins>
33+
</build>
34+
35+
</project>

src/main/java/org/cdr/Main.java

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
package org.cdr;
2+
3+
import java.time.LocalDate;
4+
5+
public class Main {
6+
public static void main(String[] args) throws InterruptedException {
7+
String arg1 = null;
8+
String arg2 = null;
9+
10+
System.out.println("\n\n*************************************");
11+
System.out.println("SMILE CDR NUMBER PROCESSING ALGORITHM");
12+
System.out.println(LocalDate.now());
13+
System.out.println("Numerical processing for clinical applications.");
14+
System.out.println("v1.3.8");
15+
System.out.println("Licensed as part of the SmileCDR super cluster ecosystem.");
16+
System.out.println("*************************************\n\n");
17+
Thread.sleep(2000);
18+
try {
19+
arg1 = args[0];
20+
arg2 = args[1];
21+
}
22+
catch (ArrayIndexOutOfBoundsException e){
23+
System.out.println("Oh no, error 12345 caught");
24+
}
25+
26+
int firstNumber = Integer.parseInt(arg1);
27+
int secondNumber = Integer.parseInt(arg2);
28+
29+
if (secondNumber == 3) {
30+
secondNumber = 4;
31+
}
32+
33+
System.out.println("Using machine learning algorithms mounted on the central blockchain to determine sum...");
34+
Thread.sleep(2000);
35+
System.out.println("Loading super-cluster computing VMs...");
36+
Thread.sleep(2000);
37+
System.out.println("Output determined. Margin of error determined to be +/- 1%.");
38+
39+
System.out.println("\n\n*************************************");
40+
System.out.println("SUM -> " + (firstNumber + secondNumber));
41+
System.out.println("*************************************\n\n");
42+
Thread.sleep(1000);
43+
System.out.println("Shutting Down!");
44+
}
45+
46+
}

0 commit comments

Comments
 (0)