text:
CLN improve package maintenability

A few remarks on improving the package maintainability/doc, let me know if you want me to work on those.

Clean up dependencies

[x]  clean unused dependencies: black, autoflake, flake8, isort (I think you are only using ruff), not sure about what deepdiff is used for (could not find any reference to it), maybe remove twine (only useful to push packages to pypi, not sure it is worth installing for all developers).
[x] remove duplicate install in .github/workflows/test.yml (torchtestcase, pytest are installed in [dev])
[x] Maybe split dependencies between test and doc? this avoids installing a lot a stuff in CI when not needed, and make it clear what each optional deps is used for.

CI:

[x] Run pyright in a separate step. This makes reporting in the PR easier to read as failure of Test only results from pytest failures.
[ ] Split the pre-commit runs into separate steps for the same reason (better reporting and redirecting the user directly to the right error).

Doc:

[x] Make the documentation generation more straightforward with a single command if possible.
[x] Putting clear install instructions (pip install sbi) on the front page would be nice.
[x] Make the example of the first page runnable with toy experiment. right now it is hard to know what are the prior, theta, x objects.
[x] Put link to tutorials in the first paragraph for discoverability.
[x] Move publications to a dedicated page (not sure it is worth being on the front page of the package).
[x] Improve API page which is hard to navigate as everything is flatten.
[x] autobuild of the doc for the commit, with auto upload when pushing on main? This way the doc is always up to date and you are sure that the doc don't break when merging a PR.

All done except the splitting of the pre-commit action, which we decided to not do for now.

authors: janfb tomMoral

repo: sbi-dev/sbi


text:
ability to ignore some files

We have some files that have been copied from another project and have additional copyright / license information that must be displayed. Is it possible to ignore such files?
I'm thinking of a workaround whereby those files simply have two header sections.

+1
Same here.
I think I'd prefer some way of marking a particular header as "untouchable", e.g. via another regex.
And a task showing me all the files with "KEEP" headers would be the cherry on the cake... :)

Ouch. This little innocent project is getting too much attention. I don't have any spare cycles to work on this or similar issues these days. But hey, of course this is open source and you can help yourself and create PRs.

There is no such thing as "too much attention" in OSS... :)

... in theory ;-)

heh, funny I was thinking about this today.
I'll be giving a talk about copyright / licensing at ScalaSphere. It's only 15 minutes, so not enough time to fall asleep at the back.

source: gharchive/issue

authors: fommil hseeberger sirthias

repo: sbt/sbt-header

license_type: permissive

license_source: bigquery


text:
Issue for local resolution of project with dependsOn when scala version is different

[X] I've read the CONTRIBUTING guidelines

steps
This is close to #1448
$ cat project/build.properties
sbt.version=1.1.6

$ cat build.sbt
lazy val rootProj = (project in file(".")).
  aggregate(fooProj, barProj, bazProj).
  settings(
    scalaVersion := "2.12.6",
    crossScalaVersions := Seq("2.11.12", scalaVersion.value)
  )

lazy val fooProj = (project in file("foo")).
  dependsOn(barProj).
  settings(
    scalaVersion := "2.12.6"
  )

lazy val bazProj = (project in file("baz")).
  dependsOn(barProj).
  settings(
    scalaVersion := "2.11.12"
  )

lazy val barProj = (project in file("bar")).
  settings(
    scalaVersion := "2.12.6",
    crossScalaVersions := Seq("2.11.12", scalaVersion.value)
  )

problem
Running +update fails
 ~/otherDev/sbt-bug> sbt                                                                                [13/07|8:21]
[info] Loading settings from idea.sbt,sbt-tmpfs.sbt,dirtymoney.sbt,coursier.sbt ...
[info] Loading global plugins from /home/fabien/.sbt/1.0/plugins
[info] Loading project definition from /home/fabien/otherDev/sbt-bug/project
[info] Loading settings from build.sbt ...
[info] Set current project to rootProj (in build file:/home/fabien/otherDev/sbt-bug/)
[info] sbt server started at local:///home/fabien/.sbt/1.0/server/9812531a8551cf39fd5a/sock
sbt:rootProj> +update
[info] Setting Scala version to 2.11.12 on 3 projects.
[info] Excluded 1 projects, run ++ 2.11.12 -v for more details.
[info] Reapplying settings...
[info] Set current project to rootProj (in build file:/home/fabien/otherDev/sbt-bug/)
[info] Updating ...
[info] Updating barProj...
[info] Done updating.
[info] Updating fooProj...
[info] Updating bazProj...
[info] Done updating.
[info] Done updating.
[warn] 	module not found: barproj#barproj_2.12;0.1.0-SNAPSHOT
[warn] ==== local: tried
[warn]   /home/fabien/.ivy2/local/barproj/barproj_2.12/0.1.0-SNAPSHOT/ivys/ivy.xml
[warn] ==== public: tried
[warn]   https://repo1.maven.org/maven2/barproj/barproj_2.12/0.1.0-SNAPSHOT/barproj_2.12-0.1.0-SNAPSHOT.pom
[warn] ==== local-preloaded-ivy: tried
[warn]   /home/fabien/.sbt/preloaded/barproj/barproj_2.12/0.1.0-SNAPSHOT/ivys/ivy.xml
[warn] ==== local-preloaded: tried
[warn]   file:////home/fabien/.sbt/preloaded/barproj/barproj_2.12/0.1.0-SNAPSHOT/barproj_2.12-0.1.0-SNAPSHOT.pom
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[warn] 	::          UNRESOLVED DEPENDENCIES         ::
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[warn] 	:: barproj#barproj_2.12;0.1.0-SNAPSHOT: not found
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] 	Note: Unresolved dependencies path:
[warn] 		barproj:barproj_2.12:0.1.0-SNAPSHOT
[warn] 		  +- fooproj:fooproj_2.12:0.1.0-SNAPSHOT
[error] sbt.librarymanagement.ResolveException: unresolved dependency: barproj#barproj_2.12;0.1.0-SNAPSHOT: not found
[error] 	at sbt.internal.librarymanagement.IvyActions$.resolveAndRetrieve(IvyActions.scala:334)
[error] 	at sbt.internal.librarymanagement.IvyActions$.$anonfun$updateEither$1(IvyActions.scala:208)
[error] 	at sbt.internal.librarymanagement.IvySbt$Module.$anonfun$withModule$1(Ivy.scala:243)
[error] 	at sbt.internal.librarymanagement.IvySbt.$anonfun$withIvy$1(Ivy.scala:204)
[error] 	at sbt.internal.librarymanagement.IvySbt.sbt$internal$librarymanagement$IvySbt$$action$1(Ivy.scala:70)
[error] 	at sbt.internal.librarymanagement.IvySbt$$anon$3.call(Ivy.scala:77)
[error] 	at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:93)
[error] 	at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:78)
[error] 	at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:97)
[error] 	at xsbt.boot.Using$.withResource(Using.scala:10)
[error] 	at xsbt.boot.Using$.apply(Using.scala:9)
[error] 	at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:58)
[error] 	at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:48)
[error] 	at xsbt.boot.Locks$.apply0(Locks.scala:31)
[error] 	at xsbt.boot.Locks$.apply(Locks.scala:28)
[error] 	at sbt.internal.librarymanagement.IvySbt.withDefaultLogger(Ivy.scala:77)
[error] 	at sbt.internal.librarymanagement.IvySbt.withIvy(Ivy.scala:199)
[error] 	at sbt.internal.librarymanagement.IvySbt.withIvy(Ivy.scala:196)
[error] 	at sbt.internal.librarymanagement.IvySbt$Module.withModule(Ivy.scala:242)
[error] 	at sbt.internal.librarymanagement.IvyActions$.updateEither(IvyActions.scala:193)
[error] 	at sbt.librarymanagement.ivy.IvyDependencyResolution.update(IvyDependencyResolution.scala:20)
[error] 	at sbt.librarymanagement.DependencyResolution.update(DependencyResolution.scala:56)
[error] 	at sbt.internal.LibraryManagement$.resolve$1(LibraryManagement.scala:46)
[error] 	at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$12(LibraryManagement.scala:99)
[error] 	at sbt.util.Tracked$.$anonfun$lastOutput$1(Tracked.scala:68)
[error] 	at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$19(LibraryManagement.scala:112)
[error] 	at scala.util.control.Exception$Catch.apply(Exception.scala:224)
[error] 	at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11(LibraryManagement.scala:112)
[error] 	at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11$adapted(LibraryManagement.scala:95)
[error] 	at sbt.util.Tracked$.$anonfun$inputChanged$1(Tracked.scala:149)
[error] 	at sbt.internal.LibraryManagement$.cachedUpdate(LibraryManagement.scala:126)
[error] 	at sbt.Classpaths$.$anonfun$updateTask$5(Defaults.scala:2398)
[error] 	at scala.Function1.$anonfun$compose$1(Function1.scala:44)
[error] 	at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:39)
[error] 	at sbt.std.Transform$$anon$4.work(System.scala:66)
[error] 	at sbt.Execute.$anonfun$submit$2(Execute.scala:263)
[error] 	at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
[error] 	at sbt.Execute.work(Execute.scala:272)
[error] 	at sbt.Execute.$anonfun$submit$1(Execute.scala:263)
[error] 	at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:174)
[error] 	at sbt.CompletionService$$anon$2.call(CompletionService.scala:37)
[error] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[error] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[error] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[error] 	at java.lang.Thread.run(Thread.java:748)
[error] (fooProj / update) sbt.librarymanagement.ResolveException: unresolved dependency: barproj#barproj_2.12;0.1.0-SNAPSHOT: not found
[error] Total time: 2 s, completed Jul 13, 2018 8:31:48 AM
sbt:rootProj>

but running update separately on each project works.
sbt:rootProj> +barProj/update
[info] Setting Scala version to 2.11.12 on 3 projects.
[info] Excluded 1 projects, run ++ 2.11.12 -v for more details.
[info] Reapplying settings...
[info] Set current project to rootProj (in build file:/home/fabien/otherDev/sbt-bug/)
[info] Updating barProj...
[info] Done updating.
[success] Total time: 3 s, completed Jul 13, 2018 8:24:57 AM
[info] Setting Scala version to 2.12.6 on 3 projects.
[info] Excluded 1 projects, run ++ 2.12.6 -v for more details.
[info] Reapplying settings...
[info] Set current project to rootProj (in build file:/home/fabien/otherDev/sbt-bug/)
[info] Updating barProj...
[info] Done updating.
[success] Total time: 1 s, completed Jul 13, 2018 8:25:00 AM
[info] Reapplying settings...
[info] Set current project to rootProj (in build file:/home/fabien/otherDev/sbt-bug/)

sbt:rootProj> +bazProj/update
[info] Setting Scala version to 2.11.12 on 3 projects.
[info] Excluded 1 projects, run ++ 2.11.12 -v for more details.
[info] Reapplying settings...
[info] Set current project to rootProj (in build file:/home/fabien/otherDev/sbt-bug/)
[info] Updating bazProj...
[info] Done updating.
[success] Total time: 1 s, completed Jul 13, 2018 8:25:31 AM
[info] Reapplying settings...
[info] Set current project to rootProj (in build file:/home/fabien/otherDev/sbt-bug/)

sbt:rootProj> +fooProj/update
[info] Setting Scala version to 2.12.6 on 3 projects.
[info] Excluded 1 projects, run ++ 2.12.6 -v for more details.
[info] Reapplying settings...
[info] Set current project to rootProj (in build file:/home/fabien/otherDev/sbt-bug/)
[info] Updating fooProj...
[info] Done updating.
[success] Total time: 2 s, completed Jul 13, 2018 8:25:58 AM
[info] Reapplying settings...
[info] Set current project to rootProj (in build file:/home/fabien/otherDev/sbt-bug/)

expectation
sbt +update should complete successfuly
notes
sbt version: 1.1.6

Checkout the sbt-projectmatrix. This enables way better cross building.

Yea and please see the accompanying proposal piece that wrote - https://discuss.lightbend.com/t/spatial-representation-of-cross-building/1277

@fchaillou If you set crossScalaVersions to Seq() for the root project, things seem to work as expected.

@eed3si9n i confirm that this work. great ! I'll take a look at the crossMatrix for the future, thanks for the pointer

Adding crossScalaVersions := Seq() resolves the problem for SBT, but IntelliJ still fails to import
[IJ]sbt:myproject> ;reload; set _root_.org.jetbrains.sbt.StructureKeys.sbtStructureOptions in Global := "download resolveClassifiers resolveSbtClassifiers" ;*/*:dumpStructureTo /private/var/folders/8z/mmf5fqnj09xdh6s7jdrykwb00000gp/T/sbt-structure.xml; session clear-all ; set ideaPort in Global := 58010
[info] Loading settings for project global-plugins from idea.sbt ...
snip
[info] Reapplying settings...
[info] Set current project to myproject (in build file:/Users/jgogstad/myproject/)
Downloading https://repo1.maven.org/maven2/com/myproject/api_2.11/1-10-gc9122af-SNAPSHOT/api_2.11-1-10-gc9122af-SNAPSHOT.pom.sha1
snip
[error] coursier.lmcoursier.ResolutionException: Encountered 2 error(s) in dependency resolution:
[error]     com.myorg.myproject:api_2.11:1-10-gc9122af-SNAPSHOT:
[error]         not found:

same here

Yes, same here for me as well.

authors: FloWi eed3si9n fchaillou jgogstad muuki88 realvictorprm

repo: sbt/sbt

license_source: github-api


text:
libraryDependencies += dependency from "some url" not working with sbt version 1.4.5

[Simplified example]
https://github.com/logicpluscode/ReproduceSbtFetchDependencyIssue
[DESCRIPTION]
This is a simplified example to reproduce below problem statement :-
libraryDependencies += "dependency" from "some url"
successfully downloads dependency if sbt.version is 1.2.8 in project/build.properties,
but dependency is not downloaded, if sbt.version is 1.4.5 in project/build.properties.

[STEPS]
Step 1] simplified jar is required, that can be fetched from a http url.
Step 2] one sbt project build.sbt is required with dependency on above simplified jar
libraryDependencies += "dependency" from "url of simplified jar"

[PROJECT]
Step 1 :-
There is a multi-module sbt project DependencyAndService with
first module Dependency from which sample jar will be created, and
second module Service, that will be used to serve jar over http.
sbt clean compile run
from DependencyAndService directory will create sample dependency
and start service to serve jar over http.
Step 2 :-
load SbtFromDependency sbt project in intelllij and verify that
"example" % "dependency" % "0.0.1" is not there in External libraries

Now, modify sbt.version to 1.2.8 in SbtFromDependency/project/build.properties and verify that
"example" % "dependency" % "0.0.1" is there in External libraries

@logicpluscode Thanks for the report and repro project. Could you also report this to coursier/coursier since it looks like a dependency resolution problem on the Coursier side, and I don't know if there's much we can do on sbt's side beyond suggesting maybe you do useCoursier := false for the affected subprojects.
Also this is possibly a duplicate of https://github.com/sbt/sbt/issues/5418

As suggested, reported this issue to coursier also.
https://github.com/coursier/coursier/issues/1976
Thanks

just wanted to voice that coursier has lots of problems so the useCoursier := false feature is very helpful

useCoursier := false
Helps to resolve the issue,  though build is slow, tested for sbt version 1.5.5.


text:
s/Typesafe/Lightbend/

Hi, sbt-guys!
I replaced more references to Typesafe with Lightbend in documentation.

Hi @slothspot,
Thank you for your contribution! We really value the time you've taken to put this together.
Before we proceed with reviewing this pull request, please sign the Typesafe Contributors License Agreement:
http://www.lightbend.com/contribute/cla

LGTM

source: gharchive/pull-request

repo: sbt/website


text:
[1.x] Emit SourceInfos when incremental compilation fails

This PR implements https://github.com/sbt/zinc/issues/932 via building SourceInfos from analysis callback and pass them to handleErrors in CompilerBridge.scala.
c.c. @adpi2

@adpi2 Reopened this PR and added a unit test.
@eed3si9n c.c. https://github.com/sbt/zinc/issues/932#issuecomment-2376210214 for reason of revisiting this PR. I am thinking if this can be merged alongside #1309 as both involves adding AnalysisCallback3.

LGTM. could you squash the commits and add problem and solution descriptions in the commit message plz?

@eed3si9n Squashed!

repo: sbt/zinc


text:
Update ebt_en_es_ebt-deepl.kvg

He añadido unos cuantos más, revisa a ver que te parece

Gracias por el pull request. He visto que has ordenado el glosario en orden ascendente. He estado ordenando el glosario en orden descendente para dar prioridad a las palabras más largas sobre las más cortas con el mismo prefijo. Pero vamos a probar el orden ascendente a ver qué tal.

Bueno, está en el orden en el que me lo sacó el script que hice, siéntete libre de ordenarlo como creas que es mejor 😃

repo: sc-voice/ebt-deepl

license: MIT


text:
bug: Foundry deploy causes bug due to ast property being undefined

Is there an existing issue for this?

[X] I have looked through the existing issues

Which method was used to setup Scaffold-ETH 2 ?
npx create-eth@latest
Current Behavior
If you create a new scaffold-eth2 project using foundry, whilst deploying (without touching any of the code apart from packages/foundry/.env file to add DEPLOYER_PRIVATE_KEY), you will get an error at the end of the deploy, like this
TypeError: Cannot read properties of undefined (reading 'nodes')
    at getInheritedFromContracts (/Users/.../packages/foundry/script/generateTsAbis.js:40:38)
    at getInheritedFunctions (/Users/.../packages/foundry/script/generateTsAbis.js:53:34)
    at /Users/.../packages/foundry/script/generateTsAbis.js:109:29
    at Array.forEach (<anonymous>)
    at /Users/.../packages/foundry/script/generateTsAbis.js:101:24
    at Array.forEach (<anonymous>)
    at main (/Users/.../packages/foundry/script/generateTsAbis.js:93:10)
    at Object.<anonymous> (/Users/.../packages/foundry/script/generateTsAbis.js:143:3)
    at Module._compile (node:internal/modules/cjs/loader:1356:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)

Expected Behavior
No error about ast property being undefined
Steps To Reproduce

npx create-eth@latest
choose foundry
run yarn chain
run yarn start
run yarn deploy

Anything else?
Suggest the following edit to packages/foundry/script/generateTsAbis.js
function getInheritedFromContracts(artifact) {
  let inheritedFromContracts = [];
  if('ast' in artifact) {
    for (const astNode of artifact.ast.nodes) {
      if (astNode.nodeType == "ContractDefinition") {
        if (astNode.baseContracts.length > 0) {
          inheritedFromContracts = astNode.baseContracts.map(
            ({ baseName }) => baseName.name
          );
        }
      }
    }
  }
  return inheritedFromContracts;
}

Hey thanks @dragonsisdumb, for raising this

whilst deploying (without touching any of the code apart from packages/foundry/.env file to add DEPLOYER_PRIVATE_KEY)

Could please elaborate on this more? I just did :

npx create@latest => selected foundry => yes for install dependency
Manually updated DEPLOYER_PRIVATE_KEY with random private key in packages/foundry/.env
yarn chain => yarn deploy

And it working fine for me.

Suggest the following edit to packages/foundry/script/generateTsAbis.js

Thanks for this ! Nevertheless, I think it is worth adding that if(artifact.ast) , do you want to tackle this @dragonsisdumb ?
You could create an PR against cli branch, by updating this file https://github.com/scaffold-eth/scaffold-eth-2/blob/c55d25803fec3d11adf817cc87d8c04b3fcb0ad7/templates/extensions/foundry/packages/foundry/script/generateTsAbis.js#L39
Here is the contributing guide, but I think changes are straightforward, please let us know if you need any help 🙌

You could create an PR against cli branch, by updating this file

Yep, threw up a PR

Fixed at #806


text:
scala.swing.dialog.Result - Duplicate id: 0

is defined:
  object Result extends Enumeration {
    import JOptionPane._
    val Yes   : Result.Value = Value(YES_OPTION)
    val Ok    : Result.Value = Value(OK_OPTION)
    val No    : Result.Value = Value(NO_OPTION)
    val Cancel: Result.Value = Value(CANCEL_OPTION)
    val Closed: Result.Value = Value(CLOSED_OPTION)
  }

where
public static final int YES_OPTION = 0;
public static final int OK_OPTION = 0;
public static final int NO_OPTION = 1;
public static final int CANCEL_OPTION = 2;
public static final int CLOSED_OPTION = -1;

As you can see both YES_OPTION and OK_OPTION is bound to 0.
This causes:
Exception in thread "AWT-EventQueue-1" java.lang.AssertionError: assertion failed: Duplicate id: 0
	at scala.Enumeration$Val.<init>(Enumeration.scala:237)
	at scala.Enumeration.Value(Enumeration.scala:177)
	at scala.Enumeration.Value(Enumeration.scala:160)
	at scala.swing.Dialog$Result$.<init>(RichWindow.scala:124)
	at scala.swing.Dialog$Result$.<clinit>(RichWindow.scala)

when:
Dialog.showConfirmation(
            parent = null,
            message = "asdf",
            title = "asdf",
            optionType = Dialog.Options.Default,
            messageType = Dialog.Message.Question)

Which Scala and which Scala-Swing version are you referring to? I don't see this issue (Scala 2.12.4, Scala-Swing 2.0.0

Thanks, the problem was introduced here, I think:
https://github.com/scala/scala-swing/commit/8b89af611a67daa6cc063bbd70460e1de4891abd#diff-baa539da718865646e5380596f62353cR121
I will submit a patch

authors: Sciss cestrand

repo: scala/scala-swing


text:
Fix pkg obj prefix of opaque tp ext meth

TypeOps.makePackageObjPrefixExplicit is a part of accessibleType,
which is called on the result of findRef in typedIdent.  But in
tryExtension it's not.  We could fix it in the usage of the results in
tryExtension, but I thought perhaps we could fix it for all call
sites, by handling it within findRef.
Fixes #18097

Yes, that all looks correct.  I'll PR the cases, thank you!

FYI @zainab-ali @bilal-fazlani

authors: WojciechMazur dwijnand


text:
ScalametaParser: bug with currying in func types

Since secondOpenParenPos was initialized to -1 but changed only on 0, it was never really changed, and the syntax error about multiple parameter lists in function types likely resulted in IndexOutOfBoundsException.

It seems that it would be nice to cover this part by a test

is there no test? 😂 I'll take a look

LGTM!

ah, missed it. thank you!

repo: scalameta/scalameta


text:
ScalaPB spark implicits expects enums to be in string

Hi...
I have a proto file
syntax = "proto3";

enum OrderType {
    PURCHASE = 0;
    RETURNS = 1;
}

message EventMetadata {
    string userId = 1;
    OrderType transactionType = 2;
}

For this proto I have a sample json
{"userId":"user123","transactionType":0}

here transactionType is 0
and with that json as input I am creating a parquet file
package helper

import org.apache.spark.sql.{SaveMode, SparkSession}

object JsonToParquet extends App {
  val spark = SparkSession
    .builder()
    .appName("Read JSON File to DataSet")
    .master("local[*]")
    .config("spark.driver.host", "localhost")
    .config("spark.debug.maxToStringFields", "2000")
    .getOrCreate();

  //The json file should always be in compacted form, otherwise spark will throw error
  val collection = spark.read.json("src/test/resources/input.txt")

  collection
    .write
    .mode(SaveMode.Overwrite)
    .parquet("output")
}

and then finally when I am reading that parquet file using this
object SparkApp extends App {
  val spark: SparkSession = SparkSession
    .builder()
    .appName("TestExample")
    .master("local[*]")
    .config("spark.driver.host", "localhost")
    .getOrCreate()

  import scalapb.spark.Implicits._
    val df = spark
      .read
      .parquet("src/test/resources/dump12.parquet")
      .toDF()
      .as[EventMetadata]
      .map(r => r)

    df.printSchema()

    df.show(1, false)
}

I get error
Caused by: java.util.concurrent.ExecutionException: org.codehaus.commons.compiler.CompileException: File 'generated.java', Line 79, Column 54: failed to compile: org.codehaus.commons.compiler.CompileException: File 'generated.java', Line 79, Column 54: No applicable constructor/method found for actual parameters "collection.OrderType$, long";
candidates are: "public static scalapb.descriptors.PValue scalapb.spark.JavaHelpers.penumFromString(scalapb.GeneratedEnumCompanion, org.apache.spark.unsafe.types.UTF8String)"

But if I repeat step using the below json
{"userId":"user123","transactionType":"PURCHASE"}

The transactionType is a string "PURCHASE" and not number 0
Then the spark code is not failing...
This issue is in Scala 2.11 and 2.12...
Please fix it in 2.11 as well as we are using that version

It makes sense to ScalaPB ints for enums in spark, but as you observed it expects strings. The error we show can also be improved to make it more clear.
In the mean time, what you can do is to transform the column yourself from int to string using a scalapb.spark.udf that would do something like n => OrderType.fromValue(n).name

repo: scalapb/sparksql-scalapb


text:
fix: content not reactive

I noticed that the content wasn’t restored from local storage in dev. Turns out configuration.spec wasn’t reactive anymore, changes to it didn’t have any effect.
I traveled through the Git history to find out when this was introduced and it seems it was introduced with #1079, though I don't see any related change. Maybe a race condition?
Anyway, I think this PR fixes it. I’ve added a watcher for the spec configuration and added a helper method to useSpec to manually update the passed configuration.
I feel every watcher is introducing another problem, so I’d be open for an alternative solution that doesn’t involve a watcher. 👍

I feel every watcher is introducing another problem, so I’d be open for an alternative solution that doesn’t involve a watcher. 👍

Absolutely. The heavy dependence on watchers I have seen is both error prone and difficult to follow.

authors: geoffgscott hanspagel

repo: scalar/scalar


text:
Build and deploy Python package to PyPi

Add support for automatic build and deploy for the package on Pypi

Already implemented - I have only updated the status of this issue

repo: scalasm/my-notes-cli


text:
Transport update: setup usage of InetSocketAddress.createUnresolved()

Updates:

no more new InetSocketAddress()  constructor calls; transport code always create unresolved InetSocketAddress from string host and port.

made InetSocketAddress's inet address resolution happening exactly in one place.

renamed and updated ChannelFutureUtils; made methods more type-friendly, gave sane names.

new tests in transport to test hostname scenarios.

+1

authors: antonkharenko artem-v

repo: scalecube/scalecube


text:
Fix/disable large mpu retry

Review https://github.com/scality/S3/commit/2284dd9e7b605586b9eb1eb2b246f0f575ccfde7 only, the code change accidentally made its way into the previous commit.
FIXES scality/Integration#449

end-to-end: http://ci.ironmann.io/gh/scality/Integration/9444

@bennettbuchanan The commit actually disables retries, so it should not fail due to a retry.
However, the test may still fail if it takes too long to respond and hangs up the socket. I added a comment to reference the current issue. Let me know if it's clear to you.

Ah, I had assumed that if it got to the point of needing to retry the test, then it means the test is failed instead of letting it retry repeatedly.
It sounds like it would be clear that the request was taking too long.

@bennettbuchanan Oh, OK, I think I get what you mean about the original comment being ambiguous. The retry was actually causing the test to fail because the first complete mpu request would delete some stored parts by the time the second request is sent by aws-node-sdk, and that's why we disabled it. I clarified the retry may cause the test to fail.

authors: bennettbuchanan electrachong


text:
Long-running Search Timeout With No Results

When executing long-running searches via search command, Splunk completes search after approximately 90 seconds (sometimes 91, sometimes 92) with no results and shows error Expecting value: line 1 column 1 (char 0).
From search log:
04-11-2023 14:11:15.544 INFO  SearchStatusEnforcer [6084307 StatusEnforcerThread] - Enforcing disk quota = 10485760000
04-11-2023 14:11:15.545 INFO  UserManager [6084314 phase_1] - Done setting user context: NULL -> admin
04-11-2023 14:11:15.545 INFO  PreviewExecutor [6084307 StatusEnforcerThread] - Preview Enforcing initialization done
04-11-2023 14:11:15.545 INFO  ReducePhaseExecutor [6084314 phase_1] - Starting phase_1
04-11-2023 14:11:16.552 INFO  ReducePhaseExecutor [6084307 StatusEnforcerThread] - ReducePhaseExecutor=1 action=PREVIEW
04-11-2023 14:12:46.025 ERROR ChunkedExternProcessor [6084287 ChunkedExternProcessorStderrLogger] - stderr: Expecting value: line 1 column 1 (char 0)
04-11-2023 14:12:46.028 ERROR ChunkedExternProcessor [6084287 ChunkedExternProcessorStderrLogger] - stderr: Abnormal exit: ERROR

Adjusting srchDiskQuota in authorize.conf does not resolve, but SearchStatusEnforcer [6084307 StatusEnforcerThread] - Enforcing disk quota log line does update to the value set.

Eliminated Python requests timeout as cause - if set to low value search will stop at timeout threshold, if set to high value search still times out with disk quota.

Eliminated web.conf job_default_auto_cancel as cause.

|rest /services/search/jobs splunk_server=local shows diskUsage=77824; isDone=1.

https://github.com/scalyr/dataset-addon-for-splunk/pull/15/commits

Completed in v2.0.0

repo: scalyr/dataset-addon-for-splunk


text:
It gives an error during the windows installation

MSVCR100 dll is the requirement for the windows installation.

You need to install microsoft redistributable package.
https://www.microsoft.com/en-us/download/details.aspx?id=14632

repo: scastillo/not-youtube-dl

license: Unlicense


text:
🛑 META.APPINN is down

In a672c47, META.APPINN (https://meta.appinn.net) was down:

HTTP code: 0
Response time: 0 ms

Resolved: META.APPINN is back up in 1eec2e5 after 36 minutes.

repo: scavin/appinnuptime


text:
Alive?

Seems that repository wasn't updated for quite a while, PRs remains unmerged.
Is it still alive?

I would also like to know. Also does it still work?

Yes, it should still work, but I don't use this anymore, and haven't had a chance to check.
There is in fact a better version in the 2.0 branch, but I haven't gotten around to writing documentation for that.

@scdoshi Nice to hear from you.
We're at LotusTM interested to maintain and develop plugin further. Any chances for gettings contributors rights or transferring repository to our organization?

@scdoshi +1 to move this repo to an organization or at least give permissions to people who wants to contribute!

If someone takes over, I've created a fork based on the 2.0 branch that observes all forms on the page, allowing dynamic content to work with the library. I'm very happy if it's useful to anyone. I wrote it as I needed it for my current project.
https://github.com/pbowyer/jquery-ajaxchimp/tree/observe-forms

@pbowyer that's an interesting approach using delegated events, did not know how that worked and learned something new, so thanks!
Since dynamically adding forms would happen in javascript anyways, it doesn't seem like a problem to call ajaxchimp on the element right after adding it to the DOM and it would be more readable to me in that it's immediately obvious what is happening. (less magic)
It's also easier to chain different callbacks for each form on the page if ajaxChimp was called separately on them, or at least there was an option too.
Anyways, it's easy enough to fork the repo, so glad you got the solution you prefer

Thanks for your reply, I saw you were already delegating for the 'submit' event rather than binding directly to it, so it was a small step to generalise further!

Since dynamically adding forms would happen in javascript anyways, it doesn't seem like a problem to call ajaxchimp on the element right after adding it to the DOM and it would be more readable to me in that it's immediately obvious what is happening. (less magic)

There's two advantages of using the delegated approach that I see: Less coupling - the callback is already cluttered with code being fired after load (Facebook, Google Analytics, the list grows) so one less is nice. More importantly for me, I suspect it is more performant. Getting rid of jank is hard, and the less JS that's run when the next section of content is inserted, the easier it is to keep scroll moving smoothly. I should benchmark one day to see what the difference is - maybe when this project is done :)
Thanks for your response!

Hi!
@scdoshi So it's dead again?

authors: ArmorDarks klombomb pbowyer scdoshi seocam

repo: scdoshi/jquery-ajaxchimp

license: mit


text:
Visibility button triggered unexpectedly

Hiding an object and adjusting it directly afterwards in the properties panel, for example rotating it, triggers the visibility button again and it reappears. If you click somewhere else in between, this does not happen.

The cause: https://github.com/scenerygraphics/sciview/blob/89f7c93a722ccc70fb20939218558c25060b97c7/src/main/kotlin/sc/iview/commands/edit/Properties.kt#L477

I would also note that toggling visibility in the tree does not toggle the visibility checkbox.

I think part of the problem comes from here:
https://github.com/scenerygraphics/sciview/blob/bc00b2e09e2ea8e987758da14891108f9990a915/src/main/kotlin/sc/iview/ui/SwingNodePropertyEditor.kt#L250C2-L253
But I haven't been able to figure this out yet. Bumping @skalarproduktraum

This may also be related to the second point that is listed in this issue: https://github.com/scenerygraphics/sciview/issues/443

I'm unassigning myself for now because I got stuck when poking at this.

authors: frauzufall kephale

repo: scenerygraphics/sciview


text:
Demo is broken?

@schmich I don't see the webcam video is initialized on the demo website (https://schmich.github.io/instascan/). It is happening the same on my local machine. Has anything changed recently?
System Info
MacOS Sierra Version 10.12.6
Chrome: Version 60.0.3112.101 (Official Build) (64-bit)
FF:  55.0.2 (64-bit)
Chrome

FF

Closing since it seems it was some local issue on my laptop

repo: schmich/instascan


text:
Wiki for timeperiods data bag needs updating

Hi the format shown in the wiki for the timeperiods is incorrect.
The example should read as follows.
I've edited the wiki directly - hope this is OK!
{
  "id": "time_period_name",
  "alias": "This time period goes from now to then",
  "times": {
    "sunday": "09:00-17:00",
    "monday": "09:00-17:00",
    "tuesday": "09:00-17:00",
    "wednesday": "09:00-17:00",
    "thursday": "09:00-17:00",
    "friday": "09:00-17:00",
    "saturday": "09:00-17:00"
  }
}

Thank you very much @trilitheus for the update! Very much appreciated!

authors: sbotman trilitheus

repo: schubergphilis/nagios


text:
Package library

Closes #17 and supersed #18

Package using flit (cleanest for pure Python wheels)
Update Readme (considering changes from @rkdarst, thanks!)
Update CI and add release action (will need to add PyPi credentials for it to work). The tag is assumed to look like *.*, can be changed.
I released it on PyPi: https://pypi.org/project/yaml2ics/ (@jarrodmillman @stefanv let me know about your username on PyPi so I can add you as admin)

Note that dynamic links in dependencies are not supported on PyPi (Can't have direct dependency). Hence we need to tell users to handle it (see instructions in the Readme) until ics-py is updated and we can use a released version properly.

I approve of this license.
(and the work in general!)

I approve of this license.

For anyone reading, I just reformatted the file and added the mention this is MIT at the top (copy-pasted from another repo of the org). The text was not changed.

(and the work in general!)

Thanks for having a look 😃

My PyPI username is jarrodmillman:  https://pypi.org/user/jarrodmillman/
Should we make it more clear that this isn't stable software and that people should be cautious if they want to use it now?  I was imaging that we wouldn't release anything on PyPI for at least a month or two.  If you want to make releases to PyPI now, maybe we should mark them as alpha, beta, rc1, etc. releases leading up to the first stablish 0.1 release at the end of May.

My PyPI username is jarrodmillman: pypi.org/user/jarrodmillman

I added you!

Should we make it more clear that this isn't stable software and that people should be cautious if they want to use it now? I was imaging that we wouldn't release anything on PyPI for at least a month or two. If you want to make releases to PyPI now, maybe we should mark them as alpha, beta, rc1, etc. releases leading up to the first stablish 0.1 release at the end of May.

Yes good idea to make it RC (will push soon to "fix" this, and I will add a more prominent note in the readme). I mostly pushed this already because people are mean nowadays and did not want someone squatting this name 😅

I added a warning box in the readme and pushed 0.1rc1 (and removed the other releases I pushed).

Ready for me @stefanv @jarrodmillman

Thanks @tupui!

authors: jarrodmillman rkdarst stefanv tupui


text:
Issue with CMAKE_MAKE_PROGRAM not being set on Linux

Hello!
I am using scikit-build-core successfully in OpenCAMLib and am now also adding it to OpenVoronoi.
I noticed however, in a github actions linux (ubuntu-22.04) runner, and also on my ubuntu VM, that there is an issue with finding the ninja make program.
It seems to find ninja correctly (CMAKE_GENERATOR: Using ninja: /tmp/pip-build-env-w5n0jxac/normal/local/lib/python3.10/dist-packages/ninja/data/bin/ninja)
But then somehow doesn't set CMAKE_MAKE_PROGRAM (correctly?).
Here is a log:
 Installing backend dependencies ... done
  Running command Preparing metadata (pyproject.toml)
  2022-12-16 11:52:52,871 - scikit_build_core - DEBUG - RUN: /usr/bin/cmake --version
  2022-12-16 11:52:52,878 - scikit_build_core - INFO - CMake version: 3.22.1
  2022-12-16 11:52:52,887 - scikit_build_core - DEBUG - Default generator: Unix Makefiles
  2022-12-16 11:52:52,887 - scikit_build_core - DEBUG - RUN: /tmp/pip-build-env-w5n0jxac/normal/local/lib/python3.10/dist-packages/ninja/data/bin/ninja --version
  2022-12-16 11:52:52,889 - scikit_build_core - INFO - Ninja version: 1.11.1
  2022-12-16 11:52:52,889 - scikit_build_core - DEBUG - CMAKE_GENERATOR: Using ninja: /tmp/pip-build-env-w5n0jxac/normal/local/lib/python3.10/dist-packages/ninja/data/bin/ninja
  2022-12-16 11:52:52,889 - scikit_build_core - DEBUG - /tmp/tmpyiqown8o/build/CMakeInit.txt:
    set(SKBUILD [===[2]===] CACHE STRING "")
    set(SKBUILD_CORE_VERSION [===[0.1.4]===] CACHE STRING "")
    set(SKBUILD_PROJECT_NAME [===[openvoronoi]===] CACHE STRING "")
    set(SKBUILD_PROJECT_VERSION [===[2022.12.9]===] CACHE STRING "")
    set(PYTHON_EXECUTABLE [===[/usr/bin/python3]===] CACHE STRING "")
    set(PYTHON_INCLUDE_DIR [===[/usr/include/python3.10]===] CACHE PATH "")
    set(PYTHON_LIBRARY [===[/usr/lib/aarch64-linux-gnu/libpython3.10.so]===] CACHE PATH "")
    set(Python_EXECUTABLE [===[/usr/bin/python3]===] CACHE STRING "")
    set(Python_ROOT_DIR [===[/usr]===] CACHE STRING "")
    set(Python_INCLUDE_DIR [===[/usr/include/python3.10]===] CACHE PATH "")
    set(Python_FIND_REGISTRY [===[NEVER]===] CACHE STRING "")
    set(Python3_EXECUTABLE [===[/usr/bin/python3]===] CACHE STRING "")
    set(Python3_ROOT_DIR [===[/usr]===] CACHE STRING "")
    set(Python3_INCLUDE_DIR [===[/usr/include/python3.10]===] CACHE PATH "")
    set(Python3_FIND_REGISTRY [===[NEVER]===] CACHE STRING "")
    set(SKBUILD_SOABI [===[cpython-310-aarch64-linux-gnu]===] CACHE STRING "")
    set(SKBUILD_PLATLIB_DIR [===[/tmp/tmpyiqown8o/wheel/platlib]===] CACHE PATH "")
    set(SKBUILD_DATA_DIR [===[/tmp/tmpyiqown8o/wheel/data]===] CACHE PATH "")
    set(SKBUILD_HEADERS_DIR [===[/tmp/tmpyiqown8o/wheel/headers]===] CACHE PATH "")
    set(SKBUILD_SCRIPTS_DIR [===[/tmp/tmpyiqown8o/wheel/scripts]===] CACHE PATH "")
    set(SKBUILD_NULL_DIR [===[/tmp/tmpyiqown8o/wheel/null]===] CACHE PATH "")
  2022-12-16 11:52:52,889 - scikit_build_core - DEBUG - RUN: /usr/bin/cmake -S. -B/tmp/tmpyiqown8o/build -C/tmp/tmpyiqown8o/build/CMakeInit.txt -DCMAKE_BUILD_TYPE=Release -DBUILD_PYTHON_MODULE=ON -DBoost_ADDITIONAL_VERSIONS=1.80.0;1.79.0;1.78.0;1.77.0;1.76.0;1.75.0;1.74.0;1.73.0;1.72.0;1.71.0;1.70.0 -DCMAKE_MODULE_PATH:PATH=/tmp/pip-build-env-w5n0jxac/overlay/local/lib/python3.10/dist-packages/scikit_build_core/resources/find_python -DCMAKE_PREFIX_PATH:PATH=/usr/local/lib/python3.10/dist-packages;/tmp/pip-build-env-w5n0jxac/overlay/local/lib/python3.10/dist-packages -D CMAKE_BUILD_TYPE=Release -D Boost_ADDITIONAL_VERSIONS=1.81.0;1.80.0;1.79.0;1.78.0;1.77.0;1.76.0;1.75.0;1.74.0;1.73.0;1.72.0;1.71.0;1.70.0
  loading initial cache file /tmp/tmpyiqown8o/build/CMakeInit.txt
  CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
  CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
  CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
  -- Configuring incomplete, errors occurred!
  See also "/tmp/tmpyiqown8o/build/CMakeFiles/CMakeOutput.log".
  *** scikit-build-core 0.1.4 using CMake 3.22.1
  *** Configurating CMake...

  *** CMake configuration failed
  error: subprocess-exited-with-error

  \u00d7 Preparing metadata (pyproject.toml) did not run successfully.
  \u2502 exit code: 1
  \u2570\u2500> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
  full command: /usr/bin/python3 /home/koen/.local/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpl1ppdmym
  cwd: /home/koen/openvoronoi
  Preparing metadata (pyproject.toml) ... error
error: metadata-generation-failed

\u00d7 Encountered error while generating package metadata.
\u2570\u2500> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

I currently work around this by settings CMAKE_GENERATOR to "Unix Makefiles" on linux, but this seems to be an issue in scikit-build-core.
Let me know if I can help debugging this, or if you need more information.

koen@linuxke:~/openvoronoi$ python3 -m pip install . --verbose
Using pip 22.3.1 from /home/koen/.local/lib/python3.10/site-packages/pip (python 3.10)
Defaulting to user installation because normal site-packages is not writeable
Processing /home/koen/openvoronoi
  Running command pip subprocess to install build dependencies
  Collecting scikit-build-core@ git+https://github.com/scikit-build/scikit-build-core@henryiii/fix/ninjapath
    Cloning https://github.com/scikit-build/scikit-build-core (to revision henryiii/fix/ninjapath) to /tmp/pip-install-c84tikb2/scikit-build-core_5b4d27c069ce45a897935a5f84545f9e
    Running command git clone --filter=blob:none --quiet https://github.com/scikit-build/scikit-build-core /tmp/pip-install-c84tikb2/scikit-build-core_5b4d27c069ce45a897935a5f84545f9e
    Running command git checkout -b henryiii/fix/ninjapath --track origin/henryiii/fix/ninjapath
    Switched to a new branch 'henryiii/fix/ninjapath'
    Branch 'henryiii/fix/ninjapath' set up to track remote branch 'henryiii/fix/ninjapath' from 'origin'.
    Resolved https://github.com/scikit-build/scikit-build-core to commit 60b6c4894f4880c14aef772d54599aa816f17774
    Running command git submodule update --init --recursive -q
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
    Preparing metadata (pyproject.toml): started
    Preparing metadata (pyproject.toml): finished with status 'done'
  Collecting exceptiongroup
    Using cached exceptiongroup-1.0.4-py3-none-any.whl (14 kB)
  Collecting packaging>=20.9
    Using cached packaging-22.0-py3-none-any.whl (42 kB)
  Collecting tomli>=1.1
    Using cached tomli-2.0.1-py3-none-any.whl (12 kB)
  Building wheels for collected packages: scikit-build-core
    Building wheel for scikit-build-core (pyproject.toml): started
    Building wheel for scikit-build-core (pyproject.toml): finished with status 'done'
    Created wheel for scikit-build-core: filename=scikit_build_core-0.1.5.dev1+g60b6c48-py3-none-any.whl size=95862 sha256=6f8eb6bb677f106634bea04c2213954a3baed9a936c771e5cfe7889c2d3a6665
    Stored in directory: /tmp/pip-ephem-wheel-cache-5i2fdj7f/wheels/06/66/76/470713fba99dd8a0fff7302ba90f558c3309abab600ad8d159
  Successfully built scikit-build-core
  Installing collected packages: tomli, packaging, exceptiongroup, scikit-build-core
  Successfully installed exceptiongroup-1.0.4 packaging-22.0 scikit-build-core-0.1.5.dev1+g60b6c48 tomli-2.0.1
  Installing build dependencies ... done
  Running command Getting requirements to build wheel
  Getting requirements to build wheel ... done
  Running command pip subprocess to install backend dependencies
  Collecting distlib
    Using cached distlib-0.3.6-py2.py3-none-any.whl (468 kB)
  Collecting ninja>=1.5
    Using cached ninja-1.11.1-py2.py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (155 kB)
  Collecting pyproject_metadata
    Using cached pyproject_metadata-0.6.1-py3-none-any.whl (7.4 kB)
  Collecting pathspec
    Using cached pathspec-0.10.3-py3-none-any.whl (29 kB)
  Collecting packaging>=19.0
    Using cached packaging-22.0-py3-none-any.whl (42 kB)
  Installing collected packages: ninja, distlib, pathspec, packaging, pyproject_metadata
  Successfully installed distlib-0.3.6 ninja-1.11.1 packaging-22.0 pathspec-0.10.3 pyproject_metadata-0.6.1
  Installing backend dependencies ... done
  Running command Preparing metadata (pyproject.toml)
  2022-12-16 15:34:12,171 - scikit_build_core - DEBUG - RUN: /usr/bin/cmake --version
  2022-12-16 15:34:12,178 - scikit_build_core - INFO - CMake version: 3.22.1
  2022-12-16 15:34:12,186 - scikit_build_core - DEBUG - Default generator: Unix Makefiles
  2022-12-16 15:34:12,187 - scikit_build_core - DEBUG - RUN: /tmp/pip-build-env-bdxraoi5/normal/local/lib/python3.10/dist-packages/ninja/data/bin/ninja --version
  2022-12-16 15:34:12,189 - scikit_build_core - INFO - Ninja version: 1.11.1
  2022-12-16 15:34:12,189 - scikit_build_core - DEBUG - CMAKE_GENERATOR: Using ninja: /tmp/pip-build-env-bdxraoi5/normal/local/lib/python3.10/dist-packages/ninja/data/bin/ninja
  2022-12-16 15:34:12,189 - scikit_build_core - DEBUG - /tmp/tmp9wio8igr/build/CMakeInit.txt:
    set(SKBUILD [===[2]===] CACHE STRING "")
    set(SKBUILD_CORE_VERSION [===[0.1.5.dev1+g60b6c48]===] CACHE STRING "")
    set(SKBUILD_PROJECT_NAME [===[openvoronoi]===] CACHE STRING "")
    set(SKBUILD_PROJECT_VERSION [===[2022.12.9]===] CACHE STRING "")
    set(PYTHON_EXECUTABLE [===[/usr/bin/python3]===] CACHE STRING "")
    set(PYTHON_INCLUDE_DIR [===[/usr/include/python3.10]===] CACHE PATH "")
    set(PYTHON_LIBRARY [===[/usr/lib/aarch64-linux-gnu/libpython3.10.so]===] CACHE PATH "")
    set(Python_EXECUTABLE [===[/usr/bin/python3]===] CACHE STRING "")
    set(Python_ROOT_DIR [===[/usr]===] CACHE STRING "")
    set(Python_INCLUDE_DIR [===[/usr/include/python3.10]===] CACHE PATH "")
    set(Python_FIND_REGISTRY [===[NEVER]===] CACHE STRING "")
    set(Python3_EXECUTABLE [===[/usr/bin/python3]===] CACHE STRING "")
    set(Python3_ROOT_DIR [===[/usr]===] CACHE STRING "")
    set(Python3_INCLUDE_DIR [===[/usr/include/python3.10]===] CACHE PATH "")
    set(Python3_FIND_REGISTRY [===[NEVER]===] CACHE STRING "")
    set(SKBUILD_SOABI [===[cpython-310-aarch64-linux-gnu]===] CACHE STRING "")
    set(SKBUILD_PLATLIB_DIR [===[/tmp/tmp9wio8igr/wheel/platlib]===] CACHE PATH "")
    set(SKBUILD_DATA_DIR [===[/tmp/tmp9wio8igr/wheel/data]===] CACHE PATH "")
    set(SKBUILD_HEADERS_DIR [===[/tmp/tmp9wio8igr/wheel/headers]===] CACHE PATH "")
    set(SKBUILD_SCRIPTS_DIR [===[/tmp/tmp9wio8igr/wheel/scripts]===] CACHE PATH "")
    set(SKBUILD_NULL_DIR [===[/tmp/tmp9wio8igr/wheel/null]===] CACHE PATH "")
  2022-12-16 15:34:12,189 - scikit_build_core - DEBUG - RUNENV: SHELL=/bin/bash SESSION_MANAGER=local/linuxke:@/tmp/.ICE-unix/910,unix/linuxke:/tmp/.ICE-unix/910 QT_ACCESSIBILITY=1 COLORTERM=truecolor XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg SSH_AGENT_LAUNCHER=gnome-keyring XDG_MENU_PREFIX=gnome- GNOME_DESKTOP_SESSION_ID=this-is-deprecated LC_ADDRESS=de_DE.UTF-8 GNOME_SHELL_SESSION_MODE=ubuntu LC_NAME=de_DE.UTF-8 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh XMODIFIERS=@im=ibus DESKTOP_SESSION=ubuntu LC_MONETARY=de_DE.UTF-8 GTK_MODULES=gail:atk-bridge PWD=/home/koen/openvoronoi LOGNAME=koen XDG_SESSION_DESKTOP=ubuntu XDG_SESSION_TYPE=wayland SYSTEMD_EXEC_PID=930 XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.29PYW1 HOME=/home/koen USERNAME=koen IM_CONFIG_PHASE=1 LC_PAPER=de_DE.UTF-8 LANG=en_US.UTF-8 LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36: XDG_CURRENT_DESKTOP=ubuntu:GNOME VTE_VERSION=6800 WAYLAND_DISPLAY=wayland-0 GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/f3de64be_dbde_4269_aeab_a91af58fde4c GNOME_SETUP_DISPLAY=:1 LESSCLOSE=/usr/bin/lesspipe %s %s XDG_SESSION_CLASS=user TERM=xterm-256color LC_IDENTIFICATION=de_DE.UTF-8 LESSOPEN=| /usr/bin/lesspipe %s USER=koen GNOME_TERMINAL_SERVICE=:1.101 DISPLAY=:0 SHLVL=1 LC_TELEPHONE=de_DE.UTF-8 QT_IM_MODULE=ibus LC_MEASUREMENT=de_DE.UTF-8 XDG_RUNTIME_DIR=/run/user/1000 LC_TIME=de_DE.UTF-8 XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop PATH=/tmp/pip-build-env-bdxraoi5/overlay/bin:/tmp/pip-build-env-bdxraoi5/normal/bin:/home/koen/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin GDMSESSION=ubuntu DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus LC_NUMERIC=de_DE.UTF-8 _=/usr/bin/python3 OLDPWD=/home/koen PIP_BUILD_TRACKER=/tmp/pip-build-tracker-thasnimc PYTHONNOUSERSITE=1 PYTHONPATH=/tmp/pip-build-env-bdxraoi5/site PEP517_BUILD_BACKEND=scikit_build_core.build CMAKE_GENERATOR=Ninja CMAKE_MAKE_PROGRAM=/tmp/pip-build-env-bdxraoi5/normal/local/lib/python3.10/dist-packages/ninja/data/bin/ninja
  2022-12-16 15:34:12,189 - scikit_build_core - DEBUG - RUN: /usr/bin/cmake -S. -B/tmp/tmp9wio8igr/build -C/tmp/tmp9wio8igr/build/CMakeInit.txt -DCMAKE_BUILD_TYPE=Release -DBUILD_PYTHON_MODULE=ON -DBoost_ADDITIONAL_VERSIONS=1.80.0;1.79.0;1.78.0;1.77.0;1.76.0;1.75.0;1.74.0;1.73.0;1.72.0;1.71.0;1.70.0 -DCMAKE_MODULE_PATH:PATH=/tmp/pip-build-env-bdxraoi5/overlay/local/lib/python3.10/dist-packages/scikit_build_core/resources/find_python -DCMAKE_PREFIX_PATH:PATH=/usr/local/lib/python3.10/dist-packages;/tmp/pip-build-env-bdxraoi5/overlay/local/lib/python3.10/dist-packages
  loading initial cache file /tmp/tmp9wio8igr/build/CMakeInit.txt
  CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
  CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
  CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
  -- Configuring incomplete, errors occurred!
  See also "/tmp/tmp9wio8igr/build/CMakeFiles/CMakeOutput.log".
  *** scikit-build-core 0.1.5.dev1+g60b6c48 using CMake 3.22.1
  *** Configurating CMake...

  *** CMake configuration failed
  error: subprocess-exited-with-error

  \u00d7 Preparing metadata (pyproject.toml) did not run successfully.
  \u2502 exit code: 1
  \u2570\u2500> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
  full command: /usr/bin/python3 /home/koen/.local/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmp3a6pq464
  cwd: /home/koen/openvoronoi
  Preparing metadata (pyproject.toml) ... error
error: metadata-generation-failed

\u00d7 Encountered error while generating package metadata.
\u2570\u2500> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

So it looks like CMAKE_MAKE_PROGRAM is actually set:
CMAKE_MAKE_PROGRAM=/tmp/pip-build-env-bdxraoi5/normal/local/lib/python3.10/dist-packages/ninja/data/bin/ninja

Odd...

Ahh, it should be a variable, not a envvar.

Ahhh great! =) glad I could help!

Can you try again with that branch?

authors: henryiii vespakoen

repo: scikit-build/scikit-build-core


text:
feature suggestion: Add Gray encoding

Feature description

Gray Encoding. Our second approach is a variant of binary encoding, namely, Gray encoding [24].
It is a binary encoding system where two successive values differ in only one bit. See examples in
Figures 2 and 3: the same set of binary identifiers are generated, but in a different order compared to
the sequence of the attribute values. When combined with PrivBayes, it inherits some of the pros
and cons of the natural binary encoding, but potentially brings some advantages. As successive
values share most bits, Gray encoding can be more robust to noise. Take the value (30, 40] of
attribute “age” as an example (Figure 2). If the perturbation in PrivBayes happens to change the
first or the last bit of its code 0102, then the noisy code (i.e., 1102 or 0112) will correspond to a
value adjacent to the original one. Thus, the distortion of information is reduced. In contrast, the
natural binary encoding does not have this property. Therefore, Gray encoding is a competitive
alternative to the natural binary encoding.

From https://dl.acm.org/doi/pdf/10.1145/3134428
Reference implementation: https://github.com/sdv-dev/SDGym/blob/70e5010ca0733bda9aa1cf7c579d04228b95930e/privbayes/code/tools.h#L78

I've added a PR for this

authors: PaulWestenthanner sbrugman


text:
mannwhitneyu acceptes nans

Not sure if this is a feature request or a bug.
mannwhitneyu should not accept np.nan, currently, it accepts it and gives bad p_values.
import scipy.stats as stats
import numpy as np

a = [1,2,np.nan,np.nan,np.nan,np.nan]
b = [1,2,np.nan,np.nan,np.nan,np.nan]
stats.mannwhitneyu(a,b).pvalue
#  0.0281021903842455

This is pretty dangerous, especially when working with dataframes. I assume adding nan_policy to mannwhitneyu will be good (have not seen a ticket for that), but until it is added, maybe just returning an error if one of the vectors has np.nan (if None exists an error is already returned)
scipy.version
'1.6.3'

Sorry, it already exisits here:
https://github.com/scipy/scipy/blob/44e31b1eb202ef91caad059952ba268d2610a60b/scipy/stats/_mannwhitneyu.py#L132

Yes, i rewrote MWU for 1.7.0. it can now do the exact test for samples of moderate size, and it's vectorized / supports an axis argument. My plan is to add nan_policy with a decorator (gh-13312).

repo: scipy/scipy