Scala
Scala is a general-purpose programming language providing support for functional programming and a strong static type system. Designed to be concise, many of Scala's design decisions aimed to address criticisms of Java.
Here are 12,719 public repositories matching this topic...
-
Updated
Jul 19, 2022 - Scala
-
Updated
Jan 9, 2021 - Scala
We use sbt-dynver to set the version for the Play project based on git tags.
E.g. when you run sbt in the Play project folder you will see:
// If you haven't you need to get the Play framework source code
git clone git@github.com:playframework/playframework.git
cd ./playframework
// You are in the master branch now, from which we want to rele
The colors given in ui/analyse/src/autoShape.ts by brollin are as follows:
- !? Interesting:
#ea45d8 - ! Good:
#22ac38 - !! Brilliant:
#168226
Convert these to HSL format and define them as sass variables alongside the error ones ($c-blunder, etc) in ui/common/css/theme/_default.scss. Check them with light theme, if they lack sufficient contrast move the previous color defs t
-
Updated
Apr 29, 2022 - Scala
-
Updated
May 17, 2022 - TeX
-
Updated
Jul 14, 2022 - Assembly
-
Updated
Jul 16, 2022 - Elixir
-
Updated
Jul 11, 2022 - Python
Let's support at least reading "b3" header from a single string, most commonly traceid-spanid-1
It would also be nice to support optionally writing this, especially in message providers or others with constrained environments.
Expected behavior
As discussed on openzipkin/b3-propagation#21 and first implemented here: https://github.com/openzipkin/brave/blob/master/brave/src/main/java/bra
-
Updated
Jun 17, 2022 - Java
Not that complicated to implement:
- introduce in SslClientContext the same kind of changes as in SslServerContext so it's no longer
https://github.com/lampepfl/dotty/blob/main/scaladoc/src/dotty/tools/scaladoc/site/SidebarParser.scala
contains only general info about the file format and returns a general error for all problems. The idea is to improve the error handling so that user can see an erroneous line or which information is missing.
Show[Throwable]
I just came across the fact that a Show[Throwable] exists.
- It is not wired up into
import Scalaz._, one needs toimport scalaz.std.java.throwable._ - It discards the stack trace entirely.
What's going on with this? :D
Is it OK if I fix both of these (for 7.2 and 7.3)?
dependencyBrowseGraph fails with `key not found: GraphModuleId` when pagerduty-client is present
steps
Project files:
build.sbt:
libraryDependencies ++= Seq(
"com.github.dikhan" % "pagerduty-client" % "3.1.2"
)project/plugins.sbt:
addDependencyTreePlugin
project/build.properties:
sbt.version=1.7.1
problem
Calling dependencyBrowseGraph on the project fails with `NoSuchElementException: key not found: GraphModuleId(org
-
Updated
Jul 13, 2022 - Scala
Description
It looks the Polynote doesn't support to configure Scala REPL like other notebook product.
For example, jupyter notebook support to configure Scala REPL such as
interp.configureCompiler(_.settings.outputDirs.setSingleOutput(replClassPath))
interp.configureCompiler(_.settings.Yreplclassbased)
Some configuration is hard-coded such as settings.Ydelambdafy.value is s
If we have the following resources:
a.txt
folder/b.txt
And run the following code:
object Main {
def main(args: Array[String]): Unit =
if (Option(this.getClass().getResourceAsStream("/a.txt")).isDefined) println("Loaded /a.txt")
if (Option(this.getClass().getResourceAsStream("/folder/b.txt")).isDefined) println("Loaded /folder/b.txt")
if (Option(this-
Updated
Jul 17, 2022 - Emacs Lisp
Problem:
The current log will output something like val_function_0 while it should be val_mean_squared_error_0.
Solution:
"val/{}_{}".format(type(metric).__name__, i) use the name of the type of metric (metric is an instance of torchmetrics.metric.Metric so the type of it is function), that's why the output looks like val_function_0. It should use the name of the metri
-
Updated
Apr 21, 2022 - Python
-
Updated
Jul 10, 2022 - Kotlin
At this moment relu_layer op doesn't allow threshold configuration, and legacy RELU op allows that.
We should add configuration option to relu_layer.