-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from julianmendez/17-updated-documentation
17 translation of packages to single files
- Loading branch information
Showing
492 changed files
with
12,432 additions
and
11,631 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
# CI configuration | ||
# https://docs.github.com/en/actions/guides/building-and-testing-java-with-maven | ||
# https://github.com/actions/setup-java | ||
|
||
name: Scala CI | ||
|
||
on: | ||
- push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
java: | ||
- 11 | ||
- 17 | ||
scala: | ||
- 2.11.12 | ||
- 2.12.17 | ||
- 2.13.10 | ||
- 3.2.2 | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v3 | ||
- name: Set up Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
distribution: zulu | ||
- name: Build with sbt | ||
run: sbt '++ ${{ matrix.scala }}' scalaVersion sbtVersion version clean compile test package assembly | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,24 +2,24 @@ import sbt.Keys.scalacOptions | |
|
||
lazy val scala2_11 = "2.11.12" | ||
|
||
lazy val scala2_12 = "2.12.16" | ||
lazy val scala2_12 = "2.12.17" | ||
|
||
lazy val scala2_13 = "2.13.8" | ||
lazy val scala2_13 = "2.13.10" | ||
|
||
lazy val scala3_1 = "3.1.3" | ||
lazy val scala3_2 = "3.2.2" | ||
|
||
lazy val commonSettings = | ||
Seq( | ||
organization := "se.umu.cs.rai.soda", | ||
version := "0.16.0", | ||
version := "0.17.0", | ||
description := "Functional language to describe ethical problems", | ||
homepage := Some(url("https://bitbucket.org/mendezjulian/soda")), | ||
startYear := Some(2020), | ||
licenses := Seq("Apache License Version 2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0.txt")), | ||
organizationName := "Responsible Artificial Intelligence - Umea University", | ||
organizationHomepage := Some(url("https://www.umu.se/en/research/groups/responsible-artificial-intelligence")), | ||
developers := List( | ||
Developer("julianmendez", "Julian Mendez", "[email protected]", new URL("https://julianmendez.github.io")) | ||
Developer("julianmendez", "Julian Alfredo Mendez", "[email protected]", new URL("https://julianmendez.github.io")) | ||
), | ||
/** | ||
* Scala | ||
|
@@ -28,15 +28,15 @@ lazy val commonSettings = | |
* [[https://repo1.maven.org/maven2/org/scala-lang/scalap/]] | ||
* [[https://repo1.maven.org/maven2/org/scala-lang/scala3-compiler_3/]] | ||
*/ | ||
crossScalaVersions := Seq(scala2_11, scala2_12, scala2_13, scala3_1), | ||
scalaVersion := scala3_1, | ||
crossScalaVersions := Seq(scala2_11, scala2_12, scala2_13, scala3_2), | ||
scalaVersion := scala3_2, | ||
/** | ||
* ScalaTest | ||
* [[https://www.scalatest.org]] | ||
* [[https://github.com/scalatest/scalatest]] | ||
* [[https://repo1.maven.org/maven2/org/scalatest/]] | ||
*/ | ||
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.13" % "test", | ||
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.15" % "test", | ||
resolvers += Resolver.mavenLocal, | ||
publishTo := Some(Resolver.mavenLocal), | ||
publishMavenStyle := true, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 0 additions & 29 deletions
29
examples/src/main/scala/soda/example/algorithms/FizzBuzz.scala
This file was deleted.
Oops, something went wrong.
23 changes: 10 additions & 13 deletions
23
examples/src/main/scala/soda/example/algorithms/FizzBuzz.soda
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,24 @@ | ||
package soda.example.algorithms | ||
|
||
class FizzBuzz | ||
|
||
import | ||
soda.lib.Recursion_ | ||
|
||
fizz = "Fizz" | ||
|
||
buzz = "Buzz" | ||
|
||
fizz_buzz = | ||
Recursion_ () | ||
.range (100) | ||
_range = soda.lib.Range_ () | ||
|
||
apply : Seq [String] = | ||
_range.apply (100) | ||
.map ( lambda (x : Int) --> x + 1) | ||
.map (get_fizz_buzz_term) | ||
.map (_get_fizz_buzz_term) | ||
|
||
get_fizz_buzz_term (n : Int) = | ||
if is_divisible_by (n) (15) then fizz + buzz | ||
else if is_divisible_by (n) (3) then fizz | ||
else if is_divisible_by (n) (5) then buzz | ||
_get_fizz_buzz_term (n : Int) : String = | ||
if _is_divisible_by (n) (15) then fizz + buzz | ||
else if _is_divisible_by (n) (3) then fizz | ||
else if _is_divisible_by (n) (5) then buzz | ||
else n.toString | ||
|
||
is_divisible_by (n : Int) (k : Int) : Boolean = | ||
_is_divisible_by (n : Int) (k : Int) : Boolean = | ||
n % k == 0 | ||
|
||
end |
28 changes: 0 additions & 28 deletions
28
examples/src/main/scala/soda/example/algorithms/FizzBuzzPatternMatching.scala
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.