Tensorflow PIP Package fails to build - AttributeError: module 'pandas' has no attribute 'core'

This may be a bug in the Python PIP build script(s), or something askew in my environment.  I am trying to build Tensorflow from source, to include AVX/AVX2 support.  It always fails with the error log pasted below.  I have tried the latest git pull over the last week or so (i.e. multiple git pulls, followed by "bazel clean ; bazel build ".  I have also tried the same with the r1.10 branch.
There is this somewhat similar question on StackOverflow.  That is more about using Pandas, rather than building Tensorflow.  At any rate I tried all the suggestions to no avail.  And my Pandas is working:
$ python -c "import pandas as pd ; import pandas.core.ops as ops ; print(pd.__version__)" && echo $?
0.23.4
0

System Details:

Have I written custom code: NO
OS Platform and Distribution: CentOS Linux 7.4.1708 with Anaconda Python3 distribution
Mobile device: N/A
TensorFlow installed from: not yet installed, trying to build from source (no build-halting errors during the C/C++ portion of the build)
TensorFlow version: latest git pull over the last several days, both master and r1.10 branch
Python version: Python 3.6.6 :: Anaconda custom (64-bit)
Bazel version (if compiling from source):

$ bazel version
Build label: 0.16.0- (@non-git)
Build target: bazel-out/k8-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Tue Jul 31 18:27:17 2018<PHONE_NUMBER>)
Build timestamp:<PHONE_NUMBER>
Build timestamp as int:<PHONE_NUMBER>

GCC/Compiler version: gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16)
CUDA/cuDNN version: N/A
GPU model and memory: N/A
Exact command to reproduce:

  $ git clone https://github.com/tensorflow/tensorflow.git
  $ cd tensorflow
  $ ./configure # accept all defaults
  $ bazel build -c opt --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-msse4.1 --copt=-msse4.2 --verbose_failures -k //tensorflow/tools/pip_package:build_pip_package

Output of tf_env_collect.sh:
== cat /etc/issue ===============================================
Linux septictank 3.10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 2018 x
86_64 x86_64 x86_64 GNU/Linux
VERSION="7 (Core)"
VERSION_ID="7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
== are we in docker =============================================
No
== compiler =====================================================
c++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
== uname -a =====================================================
Linux septictank 3.10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
== check pips ===================================================
numpy                              1.15.0
numpydoc                           0.8.0
protobuf                           3.5.2
== check for virtualenv =========================================
False
== tensorflow import ============================================
Traceback (most recent call last):
File "/home/matt/tensorflow/tensorflow/python/platform/self_check.py", line 2$, in
from tensorflow.python.platform import build_info
ImportError: cannot import name 'build_info'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "/home/matt/tensorflow/tensorflow/init.py", line 24, in
from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-i$port
File "/home/matt/tensorflow/tensorflow/python/init.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "/home/matt/tensorflow/tensorflow/python/pywrap_tensorflow.py", line 25,
in
from tensorflow.python.platform import self_check
File "/home/matt/tensorflow/tensorflow/python/platform/self_check.py", line 27
, in
raise ImportError("Could not import tensorflow. Do not import tensorflow "
ImportError: Could not import tensorflow. Do not import tensorflow from its sour
ce directory; change directory to outside the TensorFlow source tree, and relaun
ch your Python interpreter from there.
== env ==========================================================
LD_LIBRARY_PATH is unset
DYLD_LIBRARY_PATH is unset
== nvidia-smi ===================================================
./tf_env_collect.sh: line 105: nvidia-smi: command not found
== cuda libs  ===================================================
Error message from bazel:
ERROR: /home/matt/tensorflow/tensorflow/python/estimator/api/BUILD:12:1: Couldn't build file tensorflow/python/estimator/api/__init__.py: Executing genrule //tensorflow/python/estimator/api:estimator_python_api_gen failed (Exit 1): bash failed: error executing command
  (cd /home/matt/.cache/bazel/_bazel_matt/b51f46dcf2ef174fa43a943ad13629f0/execroot/org_tensorflow && \
  exec env - \
    PATH=/opt/anaconda3/bin:/opt/anaconda3/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/bin:/sbin:/usr/sbin \
    PYTHON_BIN_PATH=/opt/anaconda3/bin/python \
    PYTHON_LIB_PATH=/opt/anaconda3/lib/python3.6/site-packages \
    TF_DOWNLOAD_CLANG=0 \
    TF_NEED_CUDA=0 \
    TF_NEED_OPENCL_SYCL=0 \
  /bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh; bazel-out/host/bin/tensorflow/python/estimator/api/create_tensorflow.python.estimator_api  --apidir=bazel-out/k8-opt/genfiles/tensorflow/python/estimator/api --apiname=estimator --apiversion=2 --package=tensorflow.python.estimator --output_package=tensorflow.python.estimator.api bazel-out/k8-opt/genfiles/tensorflow/python/estimator/api/__init__.py bazel-out/k8-opt/genfiles/tensorflow/python/estimator/api/estimator/__init__.py bazel-out/k8-opt/genfiles/tensorflow/python/estimator/api/estimator/export/__init__.py bazel-out/k8-opt/genfiles/tensorflow/python/estimator/api/estimator/inputs/__init__.py')
tf.estimator package not installed.
Traceback (most recent call last):
  File "/home/matt/.cache/bazel/_bazel_matt/b51f46dcf2ef174fa43a943ad13629f0/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/python/estimator/api/create_tensorflow.python.estimator_api.runfiles/org_tensorflow/tensorflow/python/tools/api/generator/create_python_api.py", line 511, in <module>
    main()
  File "/home/matt/.cache/bazel/_bazel_matt/b51f46dcf2ef174fa43a943ad13629f0/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/python/estimator/api/create_tensorflow.python.estimator_api.runfiles/org_tensorflow/tensorflow/python/tools/api/generator/create_python_api.py", line 504, in main
    importlib.import_module(args.package)
  File "/opt/anaconda3/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/matt/.cache/bazel/_bazel_matt/b51f46dcf2ef174fa43a943ad13629f0/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/python/estimator/api/create_tensorflow.python.estimator_api.runfiles/org_tensorflow/tensorflow/python/estimator/__init__.py", line 25, in <module>
    import tensorflow.python.estimator.estimator_lib
  File "/home/matt/.cache/bazel/_bazel_matt/b51f46dcf2ef174fa43a943ad13629f0/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/python/estimator/api/create_tensorflow.python.estimator_api.runfiles/org_tensorflow/tensorflow/python/estimator/estimator_lib.py", line 41, in <module>
    from tensorflow.python.estimator.inputs import inputs
  File "/home/matt/.cache/bazel/_bazel_matt/b51f46dcf2ef174fa43a943ad13629f0/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/python/estimator/api/create_tensorflow.python.estimator_api.runfiles/org_tensorflow/tensorflow/python/estimator/inputs/inputs.py", line 23, in <module>
    from tensorflow.python.estimator.inputs.pandas_io import pandas_input_fn
  File "/home/matt/.cache/bazel/_bazel_matt/b51f46dcf2ef174fa43a943ad13629f0/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/python/estimator/api/create_tensorflow.python.estimator_api.runfiles/org_tensorflow/tensorflow/python/estimator/inputs/pandas_io.py", line 31, in <module>
    import pandas as pd
  File "/opt/anaconda3/lib/python3.6/site-packages/pandas/__init__.py", line 42, in <module>
    from pandas.core.api import *
  File "/opt/anaconda3/lib/python3.6/site-packages/pandas/core/api.py", line 10, in <module>
    from pandas.core.groupby.groupby import Grouper
  File "/opt/anaconda3/lib/python3.6/site-packages/pandas/core/groupby/__init__.py", line 2, in <module>
    from pandas.core.groupby.groupby import (
  File "/opt/anaconda3/lib/python3.6/site-packages/pandas/core/groupby/groupby.py", line 49, in <module>
    from pandas.core.frame import DataFrame
  File "/opt/anaconda3/lib/python3.6/site-packages/pandas/core/frame.py", line 74, in <module>
    from pandas.core.series import Series
  File "/opt/anaconda3/lib/python3.6/site-packages/pandas/core/series.py", line 67, in <module>
    import pandas.core.ops as ops
AttributeError: module 'pandas' has no attribute 'core'
Target //tensorflow/tools/pip_package:build_pip_package failed to build

@yifeif, could you ptal.

Does re-install the package help?

To which package are you referring?
On Thu, Aug 16, 2018 at 7:20 PM Yifei Feng<EMAIL_ADDRESS>wrote:

Does re-install the package help?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/21488#issuecomment-413721464,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADUj2Uvprwygv_tEr_77Fu7tcG22F6nDks5uRgxngaJpZM4V0q0M
.

Sorry for not being clear @matt-garman. I meant pandas.

I just un-installed, then re-installed pandas v0.23.4: same result as
posted above.
On Fri, Aug 17, 2018 at 1:00 PM Yifei Feng<EMAIL_ADDRESS>wrote:

Sorry for not being clear @matt-garman https://github.com/matt-garman.
I meant pandas.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/21488#issuecomment-413942949,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADUj2ToAB36hQ6IfnSm_fyDovS558Nvhks5uRwS2gaJpZM4V0q0M
.

Nagging Assignee @yifeif: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @yifeif: It has been 29 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @yifeif: It has been 44 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @yifeif: It has been 74 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @yifeif: It has been 89 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @yifeif: It has been 104 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.


#160 Install open-iscsi and Longhorn

ref: #160
This installs open-iscsi and Longhorn using Helmfile.
Not sure this is the optimal way to do it - but it does work 😅

cool :) I think I get the idea that you use transactional-update for starting the deamon, as this also create a snapshopt, right? I wonder if that's necessary 🤔
With defaultClass: true you're setting longhorn as the default StorageClass, right? I wonder if its possible if longhorn can be combined with the hcloud-storage class. Haven't had time to look into that. On the other hand I assume that with longhorn you want to have the volumes on the nodes and an additional backup strategy should push data to hetzner volumes, maybe... 🤔

@skriems
Afaik just doing systemctl enable --now iscsid will just enable it for now, after the next reboot it'll be gone - hence the transactional update :)
as for defaultClass: true it's just what i use myself, i noticed after i made the pull request that hcloud is also setting itself as default 😅
So by default it'll most likely end up using hcloud since it comes first in the alphabet.
As for backing up Longhorn, that has to happen to an S3 bucket - that's how it's own internal backup solution works.
As for single node clusters, it wouldn't fail - it'd just still try and keep 2 volumes around 😂
As for setting it to the X amount of worker nodes added, that could work - but you'd end up with very little usable space, longhorn should be smart enough to move a volume over to the node that requires it if it doesn't have it there already

@karbowiak Thanks! There are many good things in this PR; I like how you think. However, a few things.
It needs to be fully optional, with a variable flag to determine if longhorn is used or not.
Also, the whole interaction with hcloud needs to be clarified, and the different major use cases need to be exposed with a flag.
One of those use cases would be either hcloud or longhorn (mutual exclusion), in which case the Hetzner CSI needs to never get installed (so its installation must be if longhorn is false, for instance).
Last but not least, please retarget this PR to the "staging" branch, so we can test it out. We try to keep the master in sync with the latest release. So closing for now while you re-submit it to the "staging" branch, and from there, we can make the improvements needed before we merge.

As for the systemctl enable --now, am almost sure it does not need transactional updates as @skriems mentioned, please double check!

@karbowiak I checked the docs and in fact an enable --now does both, enable (start the deamon after reboot) and start a given deamon. So I think since nothing is really installed we can omit the transactional-update :)
I you still working on this?


Option to tie retrieved child facades lifespan to lifecycle of executing strategy

A strategy is a chain of calls on adapter(s).  Once the strategy ends and there is no then(), the chain ends.
b.callFunction()
.then(function(a) {
  return b.callAnotherFunction();
})
.then(function(b) {
  // ...
});

Returning a new call from a then() doesn't extend the original strategy, it creates a new strategy, and then attaches every strategy item (like pipes, thens, catches) after the executing then() to the new strategy.  The old strategy completes.
  Right now, you have to explicitly close all your child facades (it IS hierarchical, so you really would only need to close the top level parent facade to cascade to all child facades)
However, there is no overall 'thing' tracking the whole execution of the call chain. Appending to the existing strategy won't work, because it ends when it gets to the first then(). Perhaps some higher abstraction, or refactoring the code to make appending to the existing strategy a possibility instead of using the new one returned from then()?

Added wiki.


Add Rust native symbolization library and C API wrapper

This PR adds the Rust native symbolization framework that we developed at Elastic and now making available in OpenTelemetry as part of the ebpf-profiler project. We can use it to implement automatic on-target symbolization of native binaries (e.g. Go executables) but also to enable an OTel bulk native symbol upload protocol that we (Profiling SIG) can come together and specify.
Building through Cargo works and all tests are passing.
NOTE: This is the initial PR that introduces the Rust symbolization framework but does not resolve packaging and artifact questions. We may decide to split this out into a separate repository post-merge.

nit: Can we add target/ to .gitignore ?


haskellPackages.hinit: unbreak, also add to top level

Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

@poscat0x04 Looks fine. Maybe you want to add yourself to the maintainers list in the hackage2nix.yaml?

done.


(1) Fixed wrong variable in loop, (2) now works with 1-indexed graphs…

…, (3) added clarification about inc

0-indexing and 1-indexing depends on the problem. So, either one is fine.

I standardized the same criteria already used in Kosaraju's.


ExpressJs res.sendFile gave error "no such file or directory ", but error is not captured by sentry

Hi, I try to integrate sentry with my express.js app but I came to one situation when error was not captured by sentry.
I made a simple app to show this, below I put the code.
var app = require('express')();
var raven = require('raven');

function onError(err, req, res, next) {
    // The error id is attached to `res.sentry` to be returned
    // and optionally displayed to the user for support.
    res.statusCode = 500;
    res.end(err +'\n'+ res.sentry + '\n');
}

// The request handler must be the first item
app.use(raven.middleware.express.requestHandler('sentry-dsn'));

app.get('/', function mainHandler(req, res) {
    //error id is attached to res.sentry
    throw new Error('Broke!');
});

app.get('/invalid-file-path', function mainHandler(req, res) {
    //error id is attached to res.sentry
    res.sendFile('test1.txt');
});

app.get('/invalid-file', function mainHandler(req, res) {
    //res.sentry is undefined
    res.sendFile(__dirname + '/test-invalid.txt');
});

app.get('/ok-file', function mainHandler(req, res) {
    res.sendFile(__dirname + '/test.txt');
});

// The error handler must be before any other error middleware
app.use(raven.middleware.express.errorHandler('sentry_dsn'));

// Optional fallthrough error handler
app.use(onError);

app.listen(3000);

I used this versions:  "express": "^4.13.4",, and "raven": "^0.10.0".
When I go to routes / or /invalid-file-path, everythink is ok, I got the error id attached to res.sentry, but when go to route /invalid-file re.sentry is undefined.
Is it me doing something wrong or is this realy a bug?

This is not how express error handling works. You need to call next with the error as your first argument, not throw it.
Check out this article.

This is not mine real app I just made a example app based on sentry example for ExpressJs. Error is directly throw just to check if the error is corectly captured by Sentry. Sentry deal with this situation correctly, but the problem is with code in res.sendFile(__dirname + '/test-invalid.txt'); becouse it is not captured by sentry middleware.

Somewhere down the line statusCode: 404 and status: 404 are added to the error object. Everything below 500 is ignored by the express/connect error handler.
getsentry/raven-node/blob/master/lib/middleware/connect.js#L16

Thank you @DamonGant for explanation. I will close this issue now.


[ListTrades] gRPC returning empty array while cli returns trades

try to remove page.

you calling the page number 20. This should maybe return error if number of trades is < of page_size


KAFKA-15556: Remove NetworkClientDelegate methods isUnavailable, maybeThrowAuthFailure, and tryConnect

Change:
*Refactored AbstractFetch so only Fetcher will check for node status when creating fetch requests.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

@kirktrue, Can I have a review for this PR? Thanks in advance.

@philipnee PTAL, the context for this one is here: https://github.com/apache/kafka/pull/14406

thanks. seems like all test aborted, let me reopen the pr to trigger the tests

hm let's me try again, the ci failed to start it seems

@philipnee do you think I should close this one and open a new PR instead? the ci doesn't seem to restart after we close and re-open this PR


Alternative API for checking if a field was set

Initial Checks

[X] I have searched Google & GitHub for similar requests and couldn't find anything
[X] I have read and followed the docs and still think this feature is missing

Description
Currently the only way to check if a field was included in the model data is to use model.model_fields_set which works perfectly well but results in slightly awkward code when this is used in certain contexts, e.g.
assert ("resource_id" in obj.model_fields_set) is False

Omitting the brackets here results in a bug due to the evaluation order
assert "resource_id" in obj.model_fields_set is False
# evaluates to `assert False`

This footgun could be avoided if there was a method that could be called instead, e.g. something along these lines
assert obj.model_field_is_set('resource_id') is False

Thoughts?
Note: you could write something like obj.model_fields_set.__contains__('resource_id') but that seems quite ugly to me and non-obvious.

Apologies if this has has been discussed before, I couldn't find anything.
Affected Components

[ ] Compatibility between releases
[X] Data validation/parsing
[ ] Data serialization - .model_dump() and .model_dump_json()
[ ] JSON Schema
[ ] Dataclasses
[ ] Model Config
[ ] Field Types - adding or changing a particular data type
[ ] Function validation decorator
[ ] Generic Models
[ ] Other Model behaviour - model_construct(), pickling, private attributes, ORM mode
[ ] Plugins and integration with other tools - mypy, FastAPI, python-devtools, Hypothesis, VS Code, PyCharm, etc.

You could simply do assert "resource_id" not in obj.model_fields_set

Ahh yeah that is a good point 🤦


Vitis AI Compiler for Caffe model error #8

Hi everyone,
I'm a student at Scuola Superiore Sant'Anna in Pisa.
I'm trying to accelerate a network model on a ZCU102 ultrascale+ using Vitis-AI tools v1.2.
I can successfully quantize the model, but when launching the vai_c_caffe command, it reports:
[VAI_C][Fatal] Check failed for condition [shape.count() == shape.count()] in [/home/xbuild/conda-bld/dnnc_1592904456005/work/dnnc_impl/core/weights.h:161] :_
Could anyone explain me the error and how to fix it, if it is possible?

Hi, @JerrySciangula
It seems there is a shape mismatch for the weights during the reshape process, Could you share your prototxt file?
Thanks very much.

Thank you very much @Mookel. I was wrong in something on my model. I just solved.


DOC: Add shared floating IP / virtual IP to floating IP docs.

It looked logical to add this to https://github.com/rackerlabs/genestack/pull/286 , but it has unsigned commits.
I will probably end up having to rebase this, but I wanted to PR it.
Marking as draft for now.


[CUBRID] Insert Color in Query plan's TableView

Problem
There is no color in query plan's Tableview.
Solution

Change text color in cell to red when it is Full Scan
Change text color in cell to green when it is Index Scan

Thank you for the idea


Dead link http://go.microsoft.com/fwlink/?LinkID=787012&clcid=0x409

Found in docs/extend//reference/client/api/TFS/Dashboards/Contracts/IWidget.md

@nschonni I have reported this one to the Visual Studio team to get it fixed. Thanks for letting us know.


DAO governance discussion

There has been quite a few comments in #36 raising the possibility of governing part or all of the Session token/SENT through a DAO, I'm starting this issue to track that discussion.

Well guess I'll open:
https://imgur.com/a/9F7KW1V
This is OPTF CEO giving a response to DAO. I argue that he is ultimately wrong in his analysis that DAO would be classified as security under Australian law.
CORPORATIONS ACT 2001
All references are to Corporations Act 2001
http://classic.austlii.edu.au/au/legis/cth/consol_act/ca2001172/index.html
Securities are defined SECT 92
http://classic.austlii.edu.au/au/legis/cth/consol_act/ca2001172/s92.html
Voting interests and voting shares are defined under SECT 9
http://classic.austlii.edu.au/au/legis/cth/consol_act/ca2001172/s9.html#voting_interest
Managed investment scheme is defined under SECT 9
http://classic.austlii.edu.au/au/legis/cth/consol_act/ca2001172/s9.html#managed_investment_scheme
Disclosing entities are defined under 111AC
http://classic.austlii.edu.au/au/legis/cth/consol_act/ca2001172/s111ac.html
ED securities are defined under 111AD
http://classic.austlii.edu.au/au/legis/cth/consol_act/ca2001172/s111ad.html
ACNC ACT
All references are to ACNC act
http://classic.austlii.edu.au/au/legis/cth/consol_act/acanca2012523/
Tax concessions are outlined under SECT 20.5(2)
http://classic.austlii.edu.au/au/legis/cth/consol_act/acanca2012523/s20.5.html
Entitlement for registration under ACNC act is defined under SECT 25.5
http://classic.austlii.edu.au/au/legis/cth/consol_act/acanca2012523/s25.5.html
(Relevant subtypes column 2, rows 2 and 7)
Governance standards are defined under SECT 45.10
http://classic.austlii.edu.au/au/legis/cth/consol_act/acanca2012523/s45.10.html
CHARITIES ACT 2013
All references are to charities act
http://classic.austlii.edu.au//au/legis/cth/num_act/ca2013104/
Charity is defined under SECT 5
http://classic.austlii.edu.au//au/legis/cth/num_act/ca2013104/s5.html
Public benefit is defined under SECT 6
http://classic.austlii.edu.au//au/legis/cth/num_act/ca2013104/s6.html
Charitable purposes are defined under SECT 12
http://classic.austlii.edu.au//au/legis/cth/num_act/ca2013104/s12.html
PROBLEMS

Interests of de facto shareholders/investors should be looked after in systematic manner.
1. Mechanisms to reliably inform the investors should be in place.
2. Mechanisms to enforce responsibility at organization level should be in place.
Deviations from causes towards public benefit (column 2 of SECT25.5 of ACNC act) and charitable purposes (Charities act SECT12) result in losing tax exempt status.
DAO arrangements to enforce investor interests by voting on membership or board composition could enforce profit motive onto the charity (OPTF).
DAO voting rights enforcing investor interests and profit motive could constitute a security under corporations act SECT92.
If DAO voting rights enforcing investors interests and profit motive constitute a security under SECT92, the arrangement could be classified as managed investment scheme (corporations act SECT9)
If the arrangement would be classified as managed investment scheme, the DAO securities representing interests in the scheme could be classified as ED securities and thus OPTF would be classified as disclosing entity which can’t be a tax exempt and would have to follow different set of regulations. (corporations act SECT 111AC and AD)

PROBLEM SOLVING
Easy one first: there are no laws or regulations to prevent OPTF from providing the investors with accurate information, period. The choice to operate in darkness and without responsibility has been made: no accurate information to investors, attempts by few investors to inform others are squashed, and the CEO is habitually lying about current events as well as financials of OPTF. This has an effect on price: investors calculate information risk into their equation and deem it too risky to invest. Investors also see the blatant lies and make the decision to not invest in untrustworthy entity.
Solutions could include:

Integrated off-chain and on-chain governance based on existing transparent supply chain models such as: https://www.researchgate.net/publication/356283324_Integrating_On-chain_and_Off-chain_Governance_for_Supply_Chain_Transparency_and_Integrity This has drawbacks in investing resources into development as well as making all processes heavier. Although a very promising model and surely adaptable to the circumstances, this is not viable solution for a 4M$ market cap coin.
Lightweight solution would be DAO vote on investor oversight committee. Elected committee members would be appointed as non-voting members of OPTF and would receive privileges to OPTF records so these could be verified and investors could be informed reliably.
A third solution would be hiring a professional auditor by DAO vote. Investors could pool their money into a smart contract and take a vote to hire a specific auditor which would be automatically approved by OPTF. Another way to finance this model could be from the reward pool directly into the smart contract.

The second one is much tougher. As outlined above, enforcing a profit motive onto a “charity”, will introduce multitude of legal problems with a risk of losing the tax exempt status. In order for the DAO to not be classified as managed investment scheme, it must not have these three qualities (paraphrasing the corporations act SECT9):

Investors contribute money or money’s worth as consideration to acquire rights (interests) to benefits that are produced by the scheme;
All contributions from investors are pooled or used for a common purpose to further produce benefits. Benefits may be financial or consist of rights or interests in property; and
The members of the scheme (investors) are not active in controlling the scheme’s day-to-day operations.

The problem is in potential loss of tax exempt status and further regulation on OPTF activities, but if you look at the stated lawful charitable purposes listed by OPTF: furthering education and human rights, anyone can see that these are not furthered beyond perhaps the surface level. When you strip away privacy features from the coin, the arguments for stated goals and purposes become weaker.
However
Number 2 is potentially the weak link that could constitute a loophole in the law. “All contributions from investors are pooled or used for a common purpose to further produce benefits. Benefits may be financial or consist of rights or interests in property” All contributions are not pooled, they are arguably not used to produce further benefits but to uphold and develop infrastructure in accordance with the charity’s stated goals and purposes and if there is motive to uphold the price, there is proven reason based on the whitepaper to uphold certain price level in order for the infrastructure to stay intact.
Thus, solutions could include:

DAO vote on membership of OPTF as voting members.
DAO to propose an address for governance rewards and a vote to release the funds to one of the proposed addresses.

Both of these would arguably introduce responsibility for OPTF towards investors.

To be able to go fast and do not waste time on sc dev for the DAO;
snapshot.org could be used to vote on importants decisions of the DAO. so technically it costs nothing to start a DAO.

The proposal is about governance so we should consider the current state of governance which is through this document:
https://imgur.com/a/QiaDs8i
It’s the complete LAG Foundation constitution from 21.02.2018 and unless this constitution has been amended, it is still the current governing document of OPTF.
I would like to highlight this part:

Part 2 - Charitable purposes and powers
6. Objects and Purposes
The Company is established to be a charity for purposes beneficial to the community
generally and for the advancement of education. It will achieve these purposes through the
following activities:
(a) facilitating the development of an open source, highly secure, decentralised data
transmission network that allows individuals, business and government to freely
transact and communicate without the threat of malicious third party interference;
(b) ensuring the continuing development of the secure network by funding independent
development projects;
(c) providing education and support to developers seeking to build apps utilising the
secure network;
(d) ensuring the open source network is developed as a genuinely decentralised system
absent any external control or influence to ensure the independence, security and
longevity of the network;
(e) raising moneys to fund the activities and charitable objectives of the Foundation,
including through the offering of the Loki cryptocurrency; and
® all other such activities as are ancillary or incidental to the above purposes.

This is perhaps the most important part of the document. Without commenting anything on if OPTF activities are currently or historically been in line with these objects and purposes which are to guarantee the tax exempt status, only in regards to DAO, only the (d) is meaningful here.
There have been good reasons in the past to keep OPTF absent of possibility of external control or influence, but do these conditions still apply? Are the powers behind beldex and their 200M market cap a threat to OXEN in such way that their weight could sybil the project through DAO? If so, there are multitude of problems that should be taken into consideration when considering how this document should be amended and how DAO should be implemented. (d) is something that could be strengthened with right setup or weakened with a wrong one.
Easy logic and a good amount of early scientific proof of fairly novel invention exist to prove with a degree of certainty that DAO would add up to fundamental value of OXEN, establish a systemic strength and brand value. It’s assumable that this would have positive effect on price. So despite difficulties, there exists a motivation to govern OPTF through DAO in a way that would balance

Risks regarding malicious outside influence
Oxen holder interests
Legal requirements
Interests of current staff and members

Here’s a proposal for a model which would achieve these ends.

Devs and current OPTF members are the guarantors of project against sybil.
Devs hold weight.
They select others who hold weight and selections are open so that everyone can see who was selected by whom.
Together these weight holders hold 51% of the DAO votes.
All weight holders are represented at OPTF website by their own names, their powers are limited by constitution and their votes are public.
There are time intervals at which new selections take place so that all who have been selected on the last round can select one other.

Idea is that 51% of the power is with people who have expertise, non-malicious intent, their name is staked, and that this set of people can make decisions which are beneficial to the goals of the network. This way there would be, as the 6(d) requires, truly decentralized network absent of outside control.
If the DAO includes decision making mechanism which would have direct power on actions of OPTF, this set of DAO voters can be made to be bound by OPTF constitution to vote against unlawful or un-OPTF-constitutional decisions, thus among other things, guaranteeing the non-profit status. Also, if there is any danger that an entity with malicious intent attempts to use the DAO, this set of voters can collude to stop it. There can be rules or conditions which must apply in order to stay weight holder. There can be rules and mechanisms to enforce impartial selections such as all selections having to include a public reasoning how the selectee is optimal choice for a weight holder.
49% of the DAO votes are distributed according to OXEN holdings. These votes are to represent the interests of the investors, but which are not even at 100% under one entity, enough to form a sybil against OPTF decision making.
I’m intentionally leaving some parts blank and if you are vigilant, you can see that there are lots of places in this model where things can be tweaked or changed around. So is with what should be done with DAO votes. These can be used for, including but not limited to:

Voting on resources
Voting on OPTF membership
Voting on decisions directly

The way in which OPTF constitution is amended is defined under clause 9

Amending the constitution
9.1 Subject to clause 9.2, the members may amend this constitution by passing a Special
Resolution.
9.2 The members must not pass a Special Resolution that amends this constitution if passing it
causes the Company to no longer be a charity.

General meeting is defined under 21.5 and 70

21.5 Notice of a General Meeting must include:
(a) the place, date and time for the meeting (and if the meeting is to be held in two or
more places, the technology that will be used to facilitate this);
(b) the general nature of the meeting's business;
(c) if applicable, that a Special Resolution is to be proposed and the words of the
proposed resolution;
(d) a statement that members have the right to appoint proxies and that, if a member
appoints a proxy:

Special Resolution means a resolution:
(a) of which notice has been given under clause 21.5(c); and
(b) that has been passed by at least 75% of the votes cast by members present and
entitled to vote on the resolution;

It would take 75% of these people to vote for DAO in general meeting:
https://imgur.com/a/xrJlOeS
Chris McCabe
Lucinda Lovegrove
Simon Harman
Jason Rhinelander
Alexander Linton
Dr Jason David Potts
Josh Jessop-Smith
Greg Valles
Robert Morris
Glen Lovsin
Suelette Dreyfus
Chris Pavlesic
Michael Bacina
Sam de Silva
Sam Williams


import error

@myfavouritekk Thanks for sharing the code.
When I go to step 3, I come across an error as follow:
Traceback (most recent call last):
File "tools/propagate/sequence_roi_propagation.py", line 26, in
from fast_rcnn.craft import sequence_im_detect
ImportError: cannot import name sequence_im_detect
Then I check the fast_rcnn.craft.py and there is no such a function "sequence_im_detect", only "im_detect".
Would u please help me with this issue? THX!

I met this import error too, there is something wrong in cloning recrusively. You'd better clone the 'tubelet_proposal' branch of py-faster-rcnn, the function sequence_im_detect in this branch's fast_rcnn.craft.py. Wish you success :D

@Solomon1588 Thanks so much! I've worked it out with your suggestion.

@Solomon1588 Right. There seems to be a problem in submodule. I will have a commit to fix it. Thanks.

Hi, I want to seek help. Could you tell me what is the proposal_file in the step2 command?
python tools/data/box_proto_from_proposals.py proposal_file vid_root save_dir
I download the VID_ResNet_152_4b35_RPN_proposals.zip and unzip it, and find two .mat files. I try the .mat file as proposal_file, and it goes wrong. Thanks a lot. @NatalieZG @Solomon1588


Reading file error in train()

On Windows platform.
In denoise.cpp, train()
f1 = fopen(argv[1], "r");   f2 = fopen(argv[2], "r");
is used to read noise and speech file (pcm or raw). But the mode should be set to 'rb'.
f1 = fopen(argv[1], "rb");   f2 = fopen(argv[2], "rb");

Nice, I didn't know that this is not working in Windows
I fixed it!

On windows platf


Fix and improve GCB presubmit

Exclude modified files in the root direcotry from presubmit.
Improve presubmit tests output.

/gcbrun

Why do we want "Exclude modified files in the root direcotry from presubmit"?


Issues with rendering on Samsung devices and simulator

Discussed in https://github.com/SceneView/sceneview-android/discussions/163

Originally posted by Ncit September 26, 2022
I have issues with model on devices samsung a52 and simulator. Can you give me some advices, on how to fix it?
On test device honor 10 everything is ok.
These is model on samsung a52

This is model in simulator

also found issue on xiaomi and pixel3 devices. Scene rendereres multiple models

Me too


Fix pipeline for frodo-cli

Binary builds are broken.
/snapshot/dist/node_modules/@rockcarver/frodo-lib/src/index.js:1
(function (exports, require, module, __filename, __dirname) { import fs from 'fs';
                                                              ^^^^^^

SyntaxError: Cannot use import statement outside a module
    at new Script (node:vm:101:7)
    at Socket.<anonymous> ([eval]:18:19)
    at Socket.emit (node:events:527:28)
    at addChunk (node:internal/streams/readable:324:12)
    at readableAddChunk (node:internal/streams/readable:297:9)
    at Readable.push (node:internal/streams/readable:234:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)

Node.js v18.1.0
/snapshot/dist/node_modules/@rockcarver/frodo-lib/src/index.js:1
(function (exports, require, module, __filename, __dirname) { import fs from 'fs';
                                                              ^^^^^^

SyntaxError: Cannot use import statement outside a module
    at new Script (node:vm:101:7)
    at Socket.<anonymous> ([eval]:18:19)
    at Socket.emit (node:events:527:28)
    at addChunk (node:internal/streams/readable:324:12)
    at readableAddChunk (node:internal/streams/readable:297:9)
    at Readable.push (node:internal/streams/readable:234:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)

Node.js v18.1.0
> Warning Failed to make bytecode node18-x64 for file<EMAIL_ADDRESS>

it looks like we need to solve the ESM vs CJS module issue before binary builds will work again. that may mean we need to complete the TS transition in frodo-lib. @adam-cyclones


Added missing export on public-api

@Boerni1995 we forgot to add an export of the ColorConfiguration to the public-api.


Add product / page delete warning

I want to merge this change because it adds new product type / page type delete warning. There are 4 versions to show for each list (page type list, product type list, etc)

no assigned items to selected single type

some assigned items to selected single type

no assigned items to selected multiple type

some assigned items to selected multiple type

PR intended to be tested with API branch:
Screenshots

Pull Request Checklist

[ ] This code contains UI changes
[ ] All visible strings are translated with proper context including data-formatting
[ ] Attributes [data-test-id] are added for new elements
[ ] Changes are mentioned in the changelog
[ ] The changes are tested in different browsers and in light/dark mode

Test environment config

API_URI=https://qa.staging.saleor.cloud/graphql/

Task linked: SALEOR-2863 Product/page type deleting warning


ignoreUpdateCurrentPage when program set currentPage

ignoreUpdateCurrentPage when program set currentPage, Only update currentPage when animation finished. This will avoid currentPage may temporarily set previous value back when currentPage change.

Hi, sorry for the late response on this PR,
I understood the issue that you were trying to fix but I think we don't need the ignoreUpdateCurrentPage flag
we can fix the issue by calling updateCurrentPageIfNeeded(basedOn:) once the animation completed and don't call it immediately when animated is true.
So, I'm going to merge this PR but change it a bit to the following code.
Please test it if you have time and let me know if you found any issue.
Thanks a lot
        CATransaction.begin()
        CATransaction.setCompletionBlock { [weak self] in
            self?.updateCurrentPageIfNeeded(basedOn: contentOffset)
        }
        if !animated {
            updateCurrentPageIfNeeded(basedOn: contentOffset)
        }
        collectionView?.setContentOffset(contentOffset, animated: animated)
        CATransaction.commit()


SCMOD-3246: Updated the base container to cafdataprocessing/policy-el…

…asticsearch-container:2.0

Dev build: http://sou-jenkins2.hpeswlab.net/job/CAFDataProcessing/view/Developer/job/CAFDataProcessing~policy-server~SCMOD-3246~CI/


[2.2] Not loading ./prisma/.env variables when ./.env exists

Bug description
When running prisma migrate I'm getting the following error:
Environment variables loaded from current directory
Error: Get config {"is_panic":false,"message":"error: Environment variable not found: DATABASE_URL.\n  -->  schema.prisma:3\n   | \n 2 |   provider = \"postgresql\"\n 3 |   url      = env(\"DATABASE_URL\")\n   | \n\nValidation Error Count: 1","meta":{"full_error":"error: Environment variable not found: DATABASE_URL.\n  -->  schema.prisma:3\n   | \n 2 |   provider = \"postgresql\"\n 3 |   url      = env(\"DATABASE_URL\")\n   | \n\nValidation Error Count: 1"},"error_code":"P1012"}

Works fine if I store DATABASE_URL in a .env file at the root level, or cd into prisma before running the commands.
How to reproduce
Create a schema that uses a .env file:
datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}

Store the .env file inside the prisma folder.
Run prisma migrate up or prisma migrate save
Expected behavior
Load the env file from the prisma folder as before.
Environment & setup

OS: Mac OS
Database: PostgreSQL
Prisma version: 2.2
Node.js version: 14.2.0

So you are indeed correct @jwld - this behavior was different in 2.1.0 and applies to all Prisma CLI commands. I moved this issue to the main repository and asked my colleagues to look into this. Thanks for reporting!

Similar report in Community Slack: https://prisma.slack.com/archives/CKQTGR6T0/p1594241396043100?thread_ts=1594236245.032700&cid=CKQTGR6T0

Thanks for reporting! We have a fix coming up next week 🐛

Thanks a lot for reporting 🙏
This issue is fixed in the latest version of @prisma/cli: 2.2.1


Speech recognizer

Any plans to accommodate multiple languages support

I guess you are referring to the Google Cloud Speech API. +1 by me.
Is it somewhere hardcoded? We are practically searching for languageCode parameter.

OK, I just had a look to the examples sections. I think it's already covered there.

No I am not looking for languageCode because that is configurable ...but one at a time
I am taking about handling multiple languages by speech recognizerat one time just like Google Voice Search
As of now we can just configure one language at a time
Does Google Cloud Speech support more than 1 language simultaneously, like Google Voice on my Android phone does?

According to their documentation you must pass in a language: Recognition Config which seems to indicate that it does not support language detection.
For supported languages you can look at their Language Support Docs.

Can we have two google stream running/associated simultaneously with sonus to detect two different languages at same time?

If you modified Sonus I'm guessing that you'd be able to accomplish this, yes,


Cannot serialize and deserialize group projective elements correctly due to lossy conversion to affine representation

use ark_bn254::{Fr as ScalarField, G1Projective as G};
let g_s =  G::generator().mul(ScalarField::from(2)); //Multiplying scalar with generator
//Serialization
let mut serialized_data = Vec::new();
g_s.serialize_uncompressed(&mut serialized_data).unwrap();
//Deserialization
let deserialized_data= G::deserialize_uncompressed(&*serialized_data).unwrap();
These serialized and deserialized values doesn't match

Hi! They are not intended to match, but they should be equal (i.e., assert_eq!(serialized_data, deserialized_data) should not panic). Can you confirm that this is the case?

Yes, assertion matches, assertion simply converts project elements to affine and does equality check. It would be useful if serialization and deserialization supported projective elements, especially case for generating proving and verification key files.

Sorry, the assertion should have been assert_eq!(g_s, deserialized_data). And this assertion does not convert to affine, but does normalize them to enable comparison.
Regardless, this is expected behaviour, as trait is *Canonical*Serialize, i.e. the aim is for the serialized data to contain canonical representations, which Projective elements are not.
Also, I recommend serializing keys in affine form; there is no downside if you do not compress, and it makes MSMs faster.

Interestingly, projective coordinates are not even secure as wire representations of elliptic curve points, just purely an internal performance optimization.  See https://eprint.iacr.org/2003/191 or https://crypto.stackexchange.com/questions/83652/what-information-is-revealed-if-we-send-our-points-in-projective-coordinates


[SPARK-28143][SQL]IN expression missing attribute should throw analysis exception

What changes were proposed in this pull request?
SQL queries like select 1 where in (), which miss the attribute name should throw AnalysisException with Invalid number of arguments for function in as debug message rather than java.lang.UnsupportedOperationException: empty.init.
This problem I guess is related to this pr - https://github.com/apache/spark/pull/21226
How was this patch tested?
add ut

cc @cloud-fan

Test build #106819 has started for PR 24947 at commit 4af96a1.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/12036/
Test PASSed.

Test build #106819 has finished for PR 24947 at commit 4af96a1.

This patch fails due to an unknown error code, -9.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/106819/
Test FAILed.

retest this please

Test build #106823 has started for PR 24947 at commit 4af96a1.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/12041/
Test PASSed.

Test build #106823 has finished for PR 24947 at commit 4af96a1.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/106823/
Test FAILed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/12049/
Test PASSed.

Test build #106833 has started for PR 24947 at commit 9ca1990.

Test build #106833 has finished for PR 24947 at commit 9ca1990.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/106833/
Test PASSed.

does the problem still exist when we turn on spark.sql.parser.ansi.enabled?

@cloud-fan spark.sql.parser.ansi.enabled=true  works fine
spark-sql> select 1 where not in ('2019-06-21');
Error in query:
no viable alternative at input 'in'(line 1, pos 19)

== SQL ==
select 1 where not in ('2019-06-21')

Then I think it's a parser issue(and is already fixed), we shouldn't hack FunctionRegistry for it.

Test build #106856 has started for PR 24947 at commit 15c67d6.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/12075/
Test PASSed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/12082/
Test PASSed.

Test build #106866 has started for PR 24947 at commit 30ef47e.

Test build #106856 has finished for PR 24947 at commit 15c67d6.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/106856/
Test PASSed.

Test build #106866 has finished for PR 24947 at commit 30ef47e.

This patch fails due to an unknown error code, -9.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/106866/
Test FAILed.

retest this please

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/12090/
Test PASSed.

Test build #106874 has started for PR 24947 at commit 30ef47e.

Test build #106874 has finished for PR 24947 at commit 30ef47e.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/106874/
Test PASSed.

@yaooqinn I think there are some last comments to address?

@srowen I have updated the pr description and title as last comment required. If anything I misread, please correct me. Thanks very much.

@HyukjinKwon is that OK by you?

Test build #4826 has started for PR 24947 at commit 30ef47e.

Test build #4826 has finished for PR 24947 at commit 30ef47e.

This patch fails Spark unit tests.
This patch does not merge cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/13298/
Test PASSed.

Test build #108197 has started for PR 24947 at commit a0363de.

Test build #108197 has finished for PR 24947 at commit a0363de.

This patch fails due to an unknown error code, -9.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/108197/
Test FAILed.

retest this please

Test build #108226 has started for PR 24947 at commit a0363de.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/13327/
Test PASSed.

Test build #108226 has finished for PR 24947 at commit a0363de.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/108226/
Test PASSed.

Seems we're blocked by https://github.com/apache/spark/pull/24947#discussion_r307589185, shall we close this and investigate if we can remove those functions from function registry? That way will cleanly fix this issue.

Build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/15677/
Test PASSed.


WithStore HOC shouldComponentUpdate lifecycle method not functioning correcttly

The block of code I'm concerned with exists here: https://github.com/express-labs/pure-react-carousel/blob/master/src/Store/WithStore.jsx#L33
Currently when a prop change occurs within a component that utilizes WithStore, it will not update because this.props and nextProps both are equal. Only when I trigger a state change within CarouselProvider do I see a re-render of my modified component.
I was worried that I was perhaps mutating my props incorrectly, but after attempting different methods of updating my redux state and seeing no progress, it was only after outright removing WithStore, everything was re-rendering as expected - my only assumption is that there is something wrong with WithStore and how it handles props of the component it is passed.

Welp! Looks like the issue was a classic PEBKAC issue where I was in fact improperly mutating my state data.
What made this so complicated was that this incorrect assigning of data was taking place in a very unexpected location.
Anyway, issue was completely on my end so I'm going to close the issue.


python311Packages.twilio: 8.13.0 -> 9.0.0

Diff: https://github.com/twilio/twilio-python/compare/refs/tags/8.13.0...9.0.0
Changelog: https://github.com/twilio/twilio-python/blob/9.0.0/CHANGES.md
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 292274 run on x86_64-linux 1

4 packages built:

authentik
home-assistant-component-tests.twilio
python311Packages.twilio
python311Packages.twilio.dist


Check results of QuantifiedCode analysis

https://www.quantifiedcode.com/app/project/663c550f107844aa842b4ce5e02883c4

CQ is an ex-parrot :(


Extension not working on vue2

Hi !
While re-working an old project, I've tried to include the library in a vue2 project without success. I know vue2 is EOL and not maintained anymore but as the readme stated that the lib was woking on both vue 2 & 3, and that it works really well on vue3 I tried my luck.
It seems that there is an issue during the component registration and the component is not rendered.  The following error is thrown:
Uncaught TypeError: r.provide is not a function
    at Object.install (index.js:12:1)
    at Vue.use (vue.runtime.esm.js:5808:1)
    (...)

I've created a codesandbox reproduction here: https://codesandbox.io/p/sandbox/broken-fire-wk68jf?workspaceId=abfa27a5-2bc8-4627-8d58-a8c3f78b090f
Regards

I will take a look and see what I can do.
Technically it should just work because I use vue-demi, but seems like you hit a weird error.

Cheers !
Had to setup the project to handle the nullish coalescing operator also but it’s related to the babel version used by the vue-cli if I’m not mistaken.


CLI hangs for some languages

Hi Jackson and Kyle,
Thanks for this amazing resource!  I've run into a pretty basic issue, and wonder if there's a problem on my end.
I am trying to re-extract lexicons for some languages (like Ukrainian) including stress information, for which the current scrape TSVs don't have stress.
After installing wikipron, the CLI works for some languages:
(base) morgan@Morgans-MBP-2 ~ % wikipron abk

INFO: Language: 'Abkhaz'
INFO: No cut-off date specified
ƶ	ʐ
ааба	a a p a
абӷьы	a ˈb ʁʲ ə
абельльи	a b e lʲ lʲ ə j
абна	a b n a

(this coninues, outputting a couple entries per second)
But for Ukrainian (ukr), it hangs after one entry:
(base) morgan@Morgans-MBP-2 ~ % wikipron ukr
INFO: Language: 'Ukrainian'
INFO: No cut-off date specified
ś	ɕ

(here I waited 5 minutes)
And for Russian, (rus), it hangs before any entries are outputted.
Here is the trace if I cancel the Ukrainian run:
(base) morgan@Morgans-MBP-2 ~ % wikipron ukr
INFO: Language: 'Ukrainian'
INFO: No cut-off date specified
ś	ɕ
^CTraceback (most recent call last):
  File "/Users/morgan/opt/anaconda3/bin/wikipron", line 8, in <module>
    sys.exit(main())
  File "/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/wikipron/cli.py", line 133, in main
    _scrape_and_write(config)
  File "/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/wikipron/cli.py", line 123, in _scrape_and_write
    for i, (word, pron) in enumerate(scrape(config), 1):
  File "/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/wikipron/scrape.py", line 104, in scrape
    yield from _scrape_once(data, config)
  File "/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/wikipron/scrape.py", line 59, in _scrape_once
    request = session.get(
  File "/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/requests/sessions.py", line 600, in get
    return self.request("GET", url, **kwargs)
  File "/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/requests/sessions.py", line 587, in request
    resp = self.send(prep, **send_kwargs)
  File "/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/requests/sessions.py", line 701, in send
    r = adapter.send(request, **kwargs)
  File "/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/requests/adapters.py", line 489, in send
    resp = conn.urlopen(
  File "/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/urllib3/connectionpool.py", line 449, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/urllib3/connectionpool.py", line 444, in _make_request
    httplib_response = conn.getresponse()
  File "/Users/morgan/opt/anaconda3/lib/python3.9/http/client.py", line 1377, in getresponse
    response.begin()
  File "/Users/morgan/opt/anaconda3/lib/python3.9/http/client.py", line 320, in begin
    version, status, reason = self._read_status()
  File "/Users/morgan/opt/anaconda3/lib/python3.9/http/client.py", line 281, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/Users/morgan/opt/anaconda3/lib/python3.9/socket.py", line 704, in readinto
    return self._sock.recv_into(b)
  File "/Users/morgan/opt/anaconda3/lib/python3.9/ssl.py", line 1242, in recv_into
    return self.read(nbytes, buffer)
  File "/Users/morgan/opt/anaconda3/lib/python3.9/ssl.py", line 1100, in read
    return self._sslobj.read(len, buffer)
KeyboardInterrupt

Thanks!

 From experience I know that Russian only has [] transcriptions IIRC but the only way for us to know that is to (seemingly though not really) hang while it downloads all the relevant pages, none of which have // transcriptions. I bet Ukrainian is the same story. LMK if this works.On Jul 21, 2023, at 11:51 AM, msonderegger @.> wrote:
Hi Jackson and Kyle,
Thanks for this amazing resource!  I've run into a pretty basic issue, and wonder if there's a problem on my end.
I am trying to re-extract lexicons for some languages (like Ukrainian) including stress information, for which the current scrape TSVs don't have stress.
After installing wikipron, the CLI works for some languages:
(base) @. ~ % wikipron abk
INFO: Language: 'Abkhaz'
INFO: No cut-off date specified
ƶ	ʐ
ааба	a a p a
абӷьы	a ˈb ʁʲ ə
абельльи	a b e lʲ lʲ ə j
абна	a b n a
But for Ukrainian (ukr), it hangs after one entry:
(base) @.*** ~ % wikipron ukr
INFO: Language: 'Ukrainian'
INFO: No cut-off date specified
ś	ɕ
(here I waited 5 minutes)
And for Russian, (rus), it hangs before any entries are outputted.
Here is the trace if I cancel the Ukrainian run:
(base) @.*** ~ % wikipron ukr
INFO: Language: 'Ukrainian'
INFO: No cut-off date specified
ś	ɕ
^CTraceback (most recent call last):
File "/Users/morgan/opt/anaconda3/bin/wikipron", line 8, in
sys.exit(main())
File "/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/wikipron/cli.py", line 133, in main
_scrape_and_write(config)
File "/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/wikipron/cli.py", line 123, in _scrape_and_write
for i, (word, pron) in enumerate(scrape(config), 1):
File "/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/wikipron/scrape.py", line 104, in scrape
yield from _scrape_once(data, config)
File "/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/wikipron/scrape.py", line 59, in _scrape_once
request = session.get(
File "/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/requests/sessions.py", line 600, in get
return self.request("GET", url, **kwargs)
File "/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/urllib3/connectionpool.py", line 449, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/urllib3/connectionpool.py", line 444, in _make_request
httplib_response = conn.getresponse()
File "/Users/morgan/opt/anaconda3/lib/python3.9/http/client.py", line 1377, in getresponse
response.begin()
File "/Users/morgan/opt/anaconda3/lib/python3.9/http/client.py", line 320, in begin
version, status, reason = self._read_status()
File "/Users/morgan/opt/anaconda3/lib/python3.9/http/client.py", line 281, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/Users/morgan/opt/anaconda3/lib/python3.9/socket.py", line 704, in readinto
return self._sock.recv_into(b)
File "/Users/morgan/opt/anaconda3/lib/python3.9/ssl.py", line 1242, in recv_into
return self.read(nbytes, buffer)
File "/Users/morgan/opt/anaconda3/lib/python3.9/ssl.py", line 1100, in read
return self._sslobj.read(len, buffer)
KeyboardInterrupt
Thanks!
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

Specifying narrow transcription works.  Thank you!
Morgan
On Fri, Jul 21, 2023 at 12:13 PM Kyle Gorman @.***>
wrote:

Not in front of computer but try specifying that you want narrow
transcriptions (—narrow). From experience I know that Russian only has []
transcriptions IIRC but the only way for us to know that is to (seemingly
though not really) hang while it downloads all the relevant pages, none of
which have // transcriptions. I bet Ukrainian is the same story. LMK if
this works.On Jul 21, 2023, at 11:51 AM, msonderegger @.> wrote:
Hi Jackson and Kyle,
Thanks for this amazing resource! I've run into a pretty basic issue, and
wonder if there's a problem on my end.
I am trying to re-extract lexicons for some languages (like Ukrainian)
including stress information, for which the current scrape TSVs don't have
stress.
After installing wikipron, the CLI works for some languages:
(base) @. ~ % wikipron abk
INFO: Language: 'Abkhaz'
INFO: No cut-off date specified
ƶ ʐ
ааба a a p a
абӷьы a ˈb ʁʲ ə
абельльи a b e lʲ lʲ ə j
абна a b n a
But for Ukrainian (ukr), it hangs after one entry:
(base) @.*** ~ % wikipron ukr
INFO: Language: 'Ukrainian'
INFO: No cut-off date specified
ś ɕ
(here I waited 5 minutes)
And for Russian, (rus), it hangs before any entries are outputted.
Here is the trace if I cancel the Ukrainian run:
(base) @.*** ~ % wikipron ukr
INFO: Language: 'Ukrainian'
INFO: No cut-off date specified
ś ɕ
^CTraceback (most recent call last):
File "/Users/morgan/opt/anaconda3/bin/wikipron", line 8, in
sys.exit(main())
File
"/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/wikipron/cli.py",
line 133, in main
_scrape_and_write(config)
File
"/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/wikipron/cli.py",
line 123, in _scrape_and_write
for i, (word, pron) in enumerate(scrape(config), 1):
File
"/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/wikipron/scrape.py",
line 104, in scrape
yield from _scrape_once(data, config)
File
"/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/wikipron/scrape.py",
line 59, in _scrape_once
request = session.get(
File
"/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/requests/sessions.py",
line 600, in get
return self.request("GET", url, **kwargs)
File
"/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/requests/sessions.py",
line 587, in request
resp = self.send(prep, **send_kwargs)
File
"/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/requests/sessions.py",
line 701, in send
r = adapter.send(request, **kwargs)
File
"/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/requests/adapters.py",
line 489, in send
resp = conn.urlopen(
File
"/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/urllib3/connectionpool.py",
line 703, in urlopen
httplib_response = self._make_request(
File
"/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/urllib3/connectionpool.py",
line 449, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File
"/Users/morgan/opt/anaconda3/lib/python3.9/site-packages/urllib3/connectionpool.py",
line 444, in _make_request
httplib_response = conn.getresponse()
File "/Users/morgan/opt/anaconda3/lib/python3.9/http/client.py", line
1377, in getresponse
response.begin()
File "/Users/morgan/opt/anaconda3/lib/python3.9/http/client.py", line 320,
in begin
version, status, reason = self._read_status()
File "/Users/morgan/opt/anaconda3/lib/python3.9/http/client.py", line 281,
in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/Users/morgan/opt/anaconda3/lib/python3.9/socket.py", line 704, in
readinto
return self._sock.recv_into(b)
File "/Users/morgan/opt/anaconda3/lib/python3.9/ssl.py", line 1242, in
recv_into
return self.read(nbytes, buffer)
File "/Users/morgan/opt/anaconda3/lib/python3.9/ssl.py", line 1100, in
read
return self._sslobj.read(len, buffer)
KeyboardInterrupt
Thanks!
—Reply to this email directly, view it on GitHub, or unsubscribe.You are
receiving this because you are subscribed to this thread.Message ID:
@.***>
—
Reply to this email directly, view it on GitHub
https://github.com/CUNY-CL/wikipron/issues/500#issuecomment-1645867547,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAGC5UMCTW7LO2KTNOUULQDXRKTENANCNFSM6AAAAAA2TAPQPM
.
You are receiving this because you authored the thread.Message ID:
@.***>


it would be nice to be able to programmatically highlight and select

I have 2 radial menu controls, one for each of the joysticks on a controller.
My code is based in C# so something that makes it possible to send an input event to select what item to select would be great.

RadialMenuAdvanced.Set("selection", 1); works.


Add a profile script

I've been working on getting iron-node working with AVA so we can do some proper profiling. I think I finally cracked it.
The first thing was to run in a single process (this means only running a single test file), and fake the response of a parent process. It logs test results to the Chrome DevTools console (and it's not very pretty), but we shouldn't really care about the test results much while profiling.
The second was working around some weirdness with setTimeout in iron-node. I'm not sure if it's an iron-node problem, or an electron one, but storing setTimeout the way we do in globals.js breaks things. The solution here was to just undo our safe copies of setTimeout and clearTimeout. This means we can't profile against anything that manipulates timers (not sure why that would ever be necessary).

Can you quickly mention how to use this in maintaining.md?

Can you add a .iron-node.js config file? With these to true: https://github.com/s-a/iron-node/blob/85198516e90bb9e03d45efe0bd361ad4a4fe467e/.iron-node.js#L11-L12

Tried it now. What's the workflow for profiling? The tests run on startup and finish before I manage to do anything. Is the recommended practise to put a debugger; statement at the top of the test file?

Sorry @sindresorhus - for some reason I never got notifications on any of these.

What's the workflow for profiling?

Click record then reload the page (that is what I did). I did not put any debugger statements in. That's an interesting thought though.

Awesome. Excited to have an easy way to perf test AVA.

I find this very intersting! Are you willing to share your workflow to profile your software in something like markdown documentation? I like to link from my repo to share your work with the community. Just want to say... keep in mind that results will differ from native node but it will in fact deliver insightful results.

@s-a I added a short section in https://github.com/sindresorhus/ava/blob/master/maintaining.md#profiling. Was hoping @jamestalmage would fill it out with his workflow.

:+1:  I can not wait to read it . :) @jamestalmage Please ping me here when you finished.

I'm also interested in the progress of this thread and how we can combine efforts with devtool to provide better debugging/profiling all around.
e.g. The setTimeout issue was resolved in a recent commit to devtool, since now we are using true Node.js timers instead of the built-in browser timers.
https://github.com/s-a/iron-node/issues/85
Relevant commit:
https://github.com/Jam3/devtool/commit/11e491c2bb4540f2a2b9bf6290b3e2b82bcbba89

Relevant: https://github.com/Jam3/devtool#iron-node
@mattdesl Is there anything devtools is worse at than iron-node for our needs (profiling CPU usage)?

I just played with devtool, it seems great, and it already works with profile.js.
devtool node_modules/ava/profile.js test/someTest.js

@mattdesl @s-a, with either project, is there a way to tell Chrome DevTools to start recording a CPU profile programmatically? It would be awesome not to have to start the recording and then reload the page.

@jamestalmage console.profile('name) and console.profileEnd('name').

I think the differences will be subtle between the two tools, though my end goal is to have devtool support most use cases (which involves lots of tweaks for require.main, process, and all that).
You can use console.profile("foo") and console.profileEnd("foo"). So you could programmatically add profiles for files or whatever.
I am currently writing a blog post on all things devtool, you can see it here:
http://mattdesl.svbtle.com/debugging-nodejs-in-chrome-devtools

I am currently writing a blog post on all things devtool

Awesome - great writeup - I just added it to #489

console.profile('foo')

@mattdesl @s-a Feedback on #491 would be appreciated.

@jamestalmage sorry #491 is out of my scope. I feel this could have something to do with

e.g. The setTimeout issue was resolved in a recent commit to devtool, since now we are using true Node.js timers instead of the built-in browser timers.

As matt metioned in his README.md devTool is in an experimental state.

Note: This tool is still in early stages. So far it has only been tested on a couple of OSX machines. :)

However FYI just added https://github.com/s-a/iron-node/blob/master/docs/PROFILE.md. There is a lot more work todo. :) Nice weekend @all :smile:


[Bug, sim plots] f1_score in plot isn't in proper [precision, recall] range. Sim plot mixing them up?

Describe the bug
f1 score is the geometric mean of precision and recall. Therefore its value should always be between the precision value and recall value.
Here's a typical plot. Run with defaults from predictoor.md, simulator section.
Note how f1 is not between them.

Towards solving
A typical log line is:
...
sim_engine INFO ... Acc= 168/ 344 = 48.84% [43.55%, 54.12%], prcsn=0.488, recall=0.846, f1=0.619
...

Note how f1 is between precision and recall.
The likely problem: the plotting is mixing up f1 and either precision or recall.
Appendix: screenshot of more log lines

This has been fixed as part of the port from streamlit to dash
Commit https://github.com/oceanprotocol/pdr-backend/commit/c0f2470c7e577181421b75666b692819d29a0943


Fix right-inline styling in semi-diplomatic transcriptions

As discussed in a meeting today, in the semi-diplomatic transcriptions of the folio texts, the value plc-right-inline on the stage element is not rendering where we want it. The two texts I have been remediating and proofing (Mac_F1 and JC_F1) have instances of this issue.
Please update the styling to reflect the encoding.

add margin-top: -1.8rem

plc-centre is also rendering on its own line even without an <lb>.

No worries, I've got a plan for this. We want something that looks similar to what people expect based on where things show up in the text block of the original book. The semi-dip.scss file is my next priority.

Should be done


PlotCollection coords attribute for better composability

This PR adds a coords attribute to PlotCollection to allow better composability
between plots.
With this and using the proposal in #37 (implemented for plot_dist, plot_trace and plot_trace_dist
in this PR) plot_trace_dist now limits to generating the PlotCollection instance,
setting default values, calling plot_trace on the right column, calling plot_dist on the left column
and finally add extra labels that wouldn't match from plot_dist or plot_trace.

📚 Documentation preview 📚: https://arviz-plots--39.org.readthedocs.build/en/39/

cc @imperorrp I have started adding contributing docs: https://arviz-plots--39.org.readthedocs.build/en/39/contributing/testing.html, https://arviz-plots--39.org.readthedocs.build/en/39/contributing/docs.html and https://arviz-plots--39.org.readthedocs.build/en/39/contributing/new_plot.html, hope they help

This is really great!

cc @imperorrp I have started adding contributing docs: https://arviz-plots--39.org.readthedocs.build/en/39/contributing/testing.html, https://arviz-plots--39.org.readthedocs.build/en/39/contributing/docs.html and https://arviz-plots--39.org.readthedocs.build/en/39/contributing/new_plot.html, hope they help

Nice, thank you! Looking forward to the WIP portions when they're done


Installation steps

There's no "go get" command to show how to install, but I guessed with:
go get -u github.com/chrislusf/glow

which returned no errors, but when I did a go run on the first sample in README.md, I get this:
$ go run glow1.go
../src/github.com/chrislusf/glow/flow/dataset_sort.go:7:2: cannot find package "github.com/psilva261/timsort" in any of:
	/usr/local/go/src/github.com/psilva261/timsort (from $GOROOT)
	/home/cecil/Workspace/src/github.com/psilva261/timsort (from $GOPATH)
$

Looks like there may be dependencies? Could you update the README to provide install instructions?

Actually the installation instructions should just be:
go get github.com/chrislusf/glow

However, I can reproduce this issue. But I do not understand why I still need to do:
go get github.com/psilva261/timsort

"go get" should handle the dependencies.

I've noticed that sometimes "go get" can act oddly, so I don't tend to use "go get github.com/user/repo".
Instead, simply place the import in your code, such as making a main.go containing the sample from the readme.  In the same directory as your new main.go, type:
go get

Without any parameters, it will download all of your imports and dependencies in your code automatically.
This worked perfectly for me with the sample.

@ctd1500 Thanks for the tip!
I just figured it out one minute ahead of your post. :)


Hardcoded database configuration

I came across following problem when was playing with your great project:
I created my own DB in OrientDB and created migration file in Laravel.
When I executed php artisan orient I got an exception:
  [Sgpatil\Orientphp\Exception]
  Error: Unable to create Class

Debugging showed that app always got response with code 401 (unauthorized) from OrientDB because it tried to access non existing database because you've hardcoded it in sgpatil/orientdb-laravel-5/src/Sgpatil/Orientdb/OrientdbServiceProvider.php:
Line: 39
$this->app->bind('ConnectionResolverInterface', function($app) {
            $conn = new Connection(['host' => 'localhost',
                'port' => 2480,
                'username' => 'root',
                'database' => 'graphdb2',
                'password' => 'root']);
            return new DatabaseManager($app, $conn );
        });

Line: 56
        $this->app->bind('orientdb.database', function() {
            return new Connection(['host' => 'localhost',
                'port' => 2480,
                'username' => 'root',
                'database' => 'graphdb2',
                'password' => 'root']);
        });

Please fix it and keep it going - this project is really awesome!

Hello @Dalamar thank you for your detailed information. The project is still in its initial phase. I will look into it and resolve it as early as possible. I genuinely appreciate your efforts and time. Feel free to submit a PR if possible, would really help.


Split bill - Split amount is incorrect if the amount is small

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Actions Performed:

Login with any account that has workspace.
Click on plus button, choose Split => Choose 8 members and enter small number like 2.01 , choose the currency as USD . Click Next
Notice that the currency is calculated correctly, now go back and change the currency to VND and press Next.
Notice that the currency of members are now showing 0đ

Expected Result:
The number of split money should show as the same with USD  currency.
Actual Result:
The currency of members are now showing 0 with VND currency.
Workaround:
unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[ ] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number:
Reproducible in staging?: 1.2.51-0
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
https://user-images.githubusercontent.com/43996225/211650875-b500d869-3630-4067-8e88-f315d4c917eb.mp4
https://user-images.githubusercontent.com/43996225/211650918-f3d91277-dfba-47c5-a4d6-81fb4a0ce54b.mov
Expensify/Expensify Issue URL:
Issue reported by: @hungvu193
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1673325036803299
View all open jobs on GitHub

My first few of these, so taking the template from StackOverflowTeams: https://stackoverflowteams.com/c/expensify/questions/14418

[ ] The "bug" is actually a bug.
[x] The bug is not a duplicate report of an existing GH
[x] The bug is reproducible, following the reproduction steps.
[x] The GH template is filled out as fully as possible
[x] The GH was created by an Expensify employee or a QA tester.
[x] The bug is an /App issue

Still not sure about this. Going to see how we handle these tiny currency splits in oldDot.
Possibly related issues:

https://github.com/Expensify/App/issues/12517
https://github.com/Expensify/App/issues/13565

In fact, even if you split d2, it's an odd UI:

Anyway, I kind of expected this is how we handle it everywhere with a tiny currency like VND. From oldDot, you can see the difference between USD and VND:

The lowest denomination of VND you can even get is 100 it seems though even splitting that is odd - it gives you a split of d100, and 8 "equal" amounts of d11 (so like d88 if you sum them):

100 VND is also equal to just 0.0043 USD, which doesn't exist. I'm basically on the fence as to whether this is a real thing we should fix or not, as it likely requires an internal fix. Going to ask in Slack.

Asking: https://expensify.slack.com/archives/C049HHMV9SM/p1673438329495629?thread_ts=1673325036.803299&cid=C049HHMV9SM

Okay, as discussed in Slack, we're going to continue with this in the product, as it's not a real use case we expect anybody to ever encounter.


Apache hash fails

Checking hash of httpd-2.4.25-win64-VC14.zip... Hash check failed for 'https://www.apachelounge.com/download/VC14/binar
es/httpd-2.4.25-win64-VC14.zip'.
Expected:
    C4625C3ABD688941FC80548B8C8314E1C5278804A019C14BFFC92DC49A087905
Actual:
    e03a43b53f00320de27d9b7046f5e317d06268795592ef32353ce857d7aa4d76

Please run scoop update and scoop install apache again. 😄


now dev: every call to /api initiates a new build

In now.json I have:
{
  "name": "project",
  "version": 2,
  "github": {
    "enabled": true
  },
  "routes": [
    { "handle": "filesystem" },
    { "src": "/.*", "status": 404, "dest": "404" }
  ],
  "builds": [
    {
      "src": "package.json",
      "use": "@now/static-build",
      "config": { "distDir": "dist" }
    },
    {
      "src": "api/actions/lead/register/index.js",
      "use": "@now/node"
    },
    {
      "src": "api/index.js",
      "use": "@now/node"
    }
  ],
  "env": {
    "MONGO_URI": "@mongo_uri",
    "SLACK_API_KEY": "@slack_api_key"
  }
}

In package.json:
"scripts": {
    "build": "gridsome build",
    "develop": "gridsome develop",
    "explore": "gridsome explore",
    "now-build": "npm run build"
  }

When I run now dev it initiates gridsome develop and serves a local static Gridsome website. But once I try to call some route within /api it goes yarn run now-build.
What am I doing wrong?
now --prod seems to be working but it also initiates gridsome build for three times and after adding /api to the project the deployment process started taking much longer time.

Thank you for reporting this! We'll take a look.

This is expected behavior. Both the @now/node and @now/next builders look for the closest package.json file and execute the "now-build" script if it is defined. So to fix this, you need to create an api/package.json file. This is actually better because now your API endpoints will only install the dependencies that they use and not the ones that your frontend uses and vice versa.
I'm gonna close this one, but feel free to comment if we need to clarify anything more.

@TooTallNate thank you for the answer! Adding package.json and modules to /api is indeed better as I separate client and backend modules though all this is still odd because package.json as a source is explicit only in one build.  It seems the Now team should still investigate into this issue.

@TooTallNate @leo could you please advise me on how to setup the project properly. I have the following file structure:
- api
-- _use
-- actions
-- package.json
...
now.json
package.json

now.json:
{
  "name": "NAME",
  "scope": "SCOPE",
  "github": { "enabled": false },
  "routes": [
    { "handle": "filesystem" },
    { "src": "/.*", "status": 404, "dest": "404" }
  ],
  "builds": [
    {
      "src": "package.json",
      "use": "@now/static-build",
      "config": { "distDir": "dist" }
    },
    {
      "src": "api/actions/**/*.js",
      "use": "@now/node"
    }
  ]
}

package.json:
{
  "name": "website",
  "private": true,
  "scripts": {
    "dev": "gridsome develop -p 5002",
    "stage": "now",
    "prod": "now --prod",
    "build": "gridsome build",
    "explore": "gridsome explore",
    "now-build": "npm run build"
  },
  "dependencies": {
    "@fullhuman/postcss-purgecss": "^1.2.0",
    "@gridsome/plugin-sitemap": "^0.2.1",
    "@slack/web-api": "^5.1.0",
    "axios": "^0.19.0",
    "gridsome": "^0.7.5",
    "gridsome-plugin-gtm": "^0.1.1",
    "gridsome-plugin-modal": "^0.1.1",
    "gridsome-plugin-rss": "^1.1.0",
    "mongoose": "^5.7.1",
    "vue-awesome-swiper": "^3.1.3",
    "vue-gtm": "^2.0.0",
    "vue-markdown": "^2.2.4",
    "vue-mq": "^1.0.1",
    "vue-scrollto": "^2.15.0",
    "vuelidate": "^0.7.4"
  },
  "devDependencies": {
    "@fortawesome/fontawesome-svg-core": "^1.2.19",
    "@fortawesome/free-brands-svg-icons": "^5.9.0",
    "@fortawesome/free-solid-svg-icons": "^5.9.0",
    "@fortawesome/vue-fontawesome": "^0.1.6",
    "@gridsome/plugin-critical": "^0.1.3",
    "@gridsome/remark-prismjs": "^0.1.0",
    "@gridsome/source-filesystem": "^0.5.0",
    "@gridsome/transformer-remark": "^0.3.4",
    "moment": "^2.24.0",
    "postcss-import": "^12.0.1",
    "postcss-nested": "^4.1.2",
    "postcss-preset-env": "^6.7.0",
    "tailwindcss": "^1.0.4",
    "tailwindcss-transitions": "^2.0.1"
  }
}

api/package.json:
{
  "name": "api",
  "private": true,
  "scripts": {
    "build": "node",
    "now-build": "npm run build"
  },
  "dependencies": {
    "@slack/web-api": "^5.1.0",
    "axios": "^0.19.0",
    "mongoose": "^5.7.1"
  },
  "devDependencies": {
    "moment": "^2.24.0"
  }
}

So after a go now dev it shows an error No output directory named "public" found.


when NODE_PATH is on process.env, loop over each path and add to paths

Before this fix, the NODE_PATH array was being added causing the sort function below to fail.
This fix just adds each path after the filter has been processed to remove blank or undefined paths.

thanks!


Persist user created accounts

Closes #949
Description
Do not let flow dev remove user created account.

For contributor use:

[x] Targeted PR against master branch
[x] Linked to Github issue with discussion and accepted design OR link to spec that describes this work
[ ] Code follows the standards mentioned here
[ ] Updated relevant documentation
[ ] Re-reviewed Files changed in the Github PR explorer
[ ] Added appropriate labels

Codecov Report

Merging #980 (4ef5e00) into master (bed89ec) will not change coverage.
The diff coverage is 0.00%.

@@          Coverage Diff           @@
##           master    #980   +/-   ##
======================================
  Coverage    2.52%   2.52%
======================================
  Files           5       5
  Lines         435     435
======================================
  Hits           11      11
  Misses        423     423
  Partials        1       1

Flag
Coverage Δ

unittests
2.52% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

internal/super/dev.go
0.00% <ø> (ø)

internal/super/project.go
0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


fixing build status

Description
Fixing build status issue

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 60.24%. Comparing base (9b7209f) to head (9b3097e).
Report is 114 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #189      +/-   ##
==========================================
- Coverage   68.32%   60.24%   -8.08%
==========================================
  Files          95      113      +18
  Lines        3283     4017     +734
==========================================
+ Hits         2243     2420     +177
- Misses       1040     1597     +557

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


LaTeX converted partially to unicode

We only translate at symbol level, leaving underscores etc untouched.
We also replace $$ and $ with backticks
A useful database is https://github.com/leanprover/vscode-lean4/blob/master/vscode-lean4/src/abbreviation/abbreviations.json

This is a step for #2

Instead of a bunch of replacements, it is better to use Lean's substrings and look for sequences of characters beginning with a single backslash. We can split into such sequences and the regions in between (as is done for identifiers), replace and rebuild.

@0art0 Good point. We should have special rules for these.

For most of these, we should let Codex do the work and map minimally. You can see in comments in #2 that Codex handled finite sequences fine. At least in this round, we will not build elaborate rule-based translations but only have rules where a substitution will lead to the wrong meaning.

Also note that we have a large file of transformations. This includes inequalities, subsets and a lot more.

For inequalities and subsets, we must also handle iterated versions, i.e., a≤b≤c or A⊂B⊂C⊂D.

For this it is best to add syntax in Lean. I tried this for a few minutes and it did not work, but with help from Lean 4 Zulip it should be possible.

Looks like Chat-GPT does this fine. So at most it looks like two steps for GPT-3.5-turbo or GPT-4. It even handles stuff like $\mathfrac$.


Getting images using new Http1 or Http2 methods

Hi,
On version 5 i was using the request method to get champion images by using the .body() method in the response which was ReadableStream which also was the input of a streamPipeline.

Right now with this new methods I can only access to string or object (text() and json() methods) responses but cant access directly to the stream. I am missing something or this cannot be done with this new version methods?
PD: I'm using DEPRECATED_request as a temporary solution but I would like to fully migrate to new API.

Ah yeah, the new http1/http2 support does currently not support streaming the response yet. It shouldn't be too difficult to change, you could just add an option to pipe the response data in the createHttp1/2Request functions.
PRs are welcome


too slow

Expected behavior
Actual behavior
Information about the Issue
Steps to reproduce the behavior

...
...

https://www.docker-cn.com/registry-mirror ?
No information provided or steps to replicate - Closing 😞