From 1a2b28c975a6431b1168ae7bc07d40762b974a9c Mon Sep 17 00:00:00 2001 From: Anna Yudina Date: Wed, 14 Jun 2023 17:05:17 +0200 Subject: [PATCH 1/2] Bar.scala --- Bar.scala | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Bar.scala diff --git a/Bar.scala b/Bar.scala new file mode 100644 index 0000000..923afbf --- /dev/null +++ b/Bar.scala @@ -0,0 +1,21 @@ +import scala.concurrent.duration._ + + +object Test { + lazy val delayedValue: String = { + Thread.sleep(5.seconds.toMillis) + println("Evaluated!") + "Value" + } + + def main(args: Array[String]): Unit = { + println("Start!") + println("I will happen before `delayedValue` evaluation :(") + foo(delayedValue) + println(delayedValue) + } + + def foo(bar: String) = { + println("I will happen after `delayedValue` evaluation! :D") + } +} \ No newline at end of file From 7214c50222089aeab39b4fb414c3070d53aba077 Mon Sep 17 00:00:00 2001 From: Anna Yudina <118352578+anna-codacy@users.noreply.github.com> Date: Wed, 18 Oct 2023 11:32:05 +0200 Subject: [PATCH 2/2] Update foo.txt --- foo.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/foo.txt b/foo.txt index f0b5b32..82d6a55 100644 --- a/foo.txt +++ b/foo.txt @@ -1,5 +1,3 @@ Once upon a time, nestled within the data-swept realm of the Internet, existed an ancient, abandoned Git repository named CodeLandia. For eons, it languished in obscurity, haunted by forgotten snippets of codes and unresolved bugs. One day, a valiant young programmer named Ada discovered CodeLandia, recognizing its potential. With a brave heart and swift fingers, she resolved the bugs, streamlined the code, and breathed life into the abandoned repository. And thus, CodeLandia bloomed, transforming from a forgotten relic into a thriving, useful repository, a testament to Ada's diligence and the undying magic of code. -Change! - -More change! +#_#