"editor.tabSize" does not work in vscode v1.21.0

OS: Archlinux
In vscode version 1.18.1, I have the following in USER SETTINGS settings.json:
{
  "editor.detectIndentation": false,
   "[json]": {
     "editor.tabSize": 2
   },
}

It works fine. But in vscode version 1.21.0, it does not work. Why? Thanks.

I just figured out why.
In vscode version 1.18.1, json only has one filetype json. But in vscode 1.21.0, json has two filetypes, the normal json and json with commentsjsonc. and when I try to open a *.json file which has comments, the filetype will be jsonc instead of json. so to fix the problem. I should have the following in settings.json:
{
  "editor.detectIndentation": false,
   "[json]": {
     "editor.tabSize": 2
   },
   "[jsonc]": {
     "editor.tabSize": 2
   },
}

Should I close this issue? thanks.


[SPARK-40120][PYTHON][SQL][DOCS] Make pyspark.sql.readwriter examples self-contained

What changes were proposed in this pull request?
This PR proposes to improve the examples in pyspark.sql.readwriter by making each example self-contained with a brief explanation and a bit more realistic example.
Why are the changes needed?
To make the documentation more readable and able to copy and paste directly in PySpark shell.
Does this PR introduce any user-facing change?
Yes, it changes the documentation
How was this patch tested?
Manually ran each doctests. CI also runs this.

cc @zhengruifeng @viirya @xinrong-meng @itholic in case you guys find some time to review.

Looks pretty good!

All tests passed.
Merged to master.


TypeError: unsupported operand type(s) for -=: 'Retry' and 'int', when get on subnet is called.

This happens when there is an error prone network connection where some requests are going through while others are being dropped.
Below is the stack trace:
azure_get_subnet
    get_name_from_id(subnet_id))
  File "/usr/local/lib/python2.7/dist-packages/azure/mgmt/network/v2017_09_01/operations/subnets_operations.py", line 175, in get
    response = self._client.send(request, header_parameters, **operation_config)
  File "/usr/local/lib/python2.7/dist-packages/msrest/service_client.py", line 336, in send
    pipeline_response = self.config.pipeline.run(request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/msrest/pipeline/__init__.py", line 197, in run
    return first_node.send(pipeline_request, **kwargs)  # type: ignore
  File "/usr/local/lib/python2.7/dist-packages/msrest/pipeline/__init__.py", line 150, in send
    response = self.next.send(request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/msrest/pipeline/requests.py", line 72, in send
    return self.next.send(request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/msrest/pipeline/requests.py", line 137, in send
    return self.next.send(request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/msrest/pipeline/__init__.py", line 150, in send
    response = self.next.send(request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/msrest/pipeline/requests.py", line 193, in send
    self.driver.send(request.http_request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/msrest/universal_http/requests.py", line 328, in send
    return super(RequestsHTTPSender, self).send(request, **requests_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/msrest/universal_http/requests.py", line 137, in send
    **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 468, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 576, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 370, in send
    timeout=timeout
  File "/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/connectionpool.py", line 609, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/retry.py", line 226, in increment
    total -= 1
TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'

Apparently, this was fixed in the requests with this commit: https://github.com/sigmavirus24/requests/commit/c4bd6ea1501ee24a7e45d3e888f11d2a52e41469
There's some sort of incompatibility between the distro install of requests and urllib3.
Version details:
$ uname -a
Linux 10-145-139-60 4.15.0-1030-azure #31~16.04.1-Ubuntu SMP Tue Oct 30 19:40:01 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

$ pip freeze | grep -i azure
azure-common==1.1.18
azure-mgmt-compute==3.0.1
azure-mgmt-dns==1.2.0
azure-mgmt-marketplaceordering==0.1.0
azure-mgmt-monitor==0.4.0
azure-mgmt-network==1.5.0
azure-mgmt-nspkg==3.0.2
azure-mgmt-resource==1.2.2
azure-mgmt-storage==1.4.0
azure-mgmt-trafficmanager==0.40.0
azure-monitor==0.3.0
azure-nspkg==3.0.2
azure-storage==0.33.0
msrestazure==0.4.34

Thank you for opening this issue! We are routing it to the appropriate team for follow up.

Hi @parimanur
Your stacktrace is from requests, and you suggest it's a requests bug actually. We don't vendor requests, so you have full control over the version of requests you are using. I'm not exactly sure then what we can do here :(
Can you share more precise thought?
Thanks!

One thing, based on the path you installed the SDK as sudo, and use requests of the system. It's strongly recommended not do so, and use a virtual environment.

By default, Requests does not retry failed connections. Only failed DNS lookups, socket connections and connection timeouts are retried. The reason I had raised the issue here is that in case Azure SDK is using the urllib's Retry. Please go ahead and close the issue if that is not the case. I will see if this can be referenced to the already existing issue in requests / urllib repo.
This is also seen in the venv setup. Also checked in the venv the request library has the fix mentioned above.

On a Debian/Ubuntu environment, requests does not includes urllib3 as vendored. Using the Xenial package (since you are on 16.04):
https://packages.ubuntu.com/xenial/all/python-requests/filelist
/usr/lib/python2.7/dist-packages/requests-2.9.1.egg-info/PKG-INFO
/usr/lib/python2.7/dist-packages/requests-2.9.1.egg-info/dependency_links.txt
/usr/lib/python2.7/dist-packages/requests-2.9.1.egg-info/not-zip-safe
/usr/lib/python2.7/dist-packages/requests-2.9.1.egg-info/requires.txt
/usr/lib/python2.7/dist-packages/requests-2.9.1.egg-info/top_level.txt
/usr/lib/python2.7/dist-packages/requests/__init__.py
/usr/lib/python2.7/dist-packages/requests/adapters.py
/usr/lib/python2.7/dist-packages/requests/api.py
/usr/lib/python2.7/dist-packages/requests/auth.py
/usr/lib/python2.7/dist-packages/requests/certs.py
/usr/lib/python2.7/dist-packages/requests/compat.py
/usr/lib/python2.7/dist-packages/requests/cookies.py
/usr/lib/python2.7/dist-packages/requests/exceptions.py
/usr/lib/python2.7/dist-packages/requests/hooks.py
/usr/lib/python2.7/dist-packages/requests/models.py
/usr/lib/python2.7/dist-packages/requests/packages/__init__.py
/usr/lib/python2.7/dist-packages/requests/sessions.py
/usr/lib/python2.7/dist-packages/requests/status_codes.py
/usr/lib/python2.7/dist-packages/requests/structures.py
/usr/lib/python2.7/dist-packages/requests/utils.py

It's not using /usr/local/lib as well.
The fact that you have a version of requests with vendored urllib3 inside /usr/local/lib on a Ubuntu 16.04 machine means some personal installation mechanism that are not recommended,
I would suggest to clean "/usr/local/lib/python2.7/dist-packages/" and uses only a venv and nothing else, to simplify the life of the Python interpreter for dependencies resolutions.
Closing this issue as environment related.
Thanks,

We faced similar issue for checking Azure VM status. We were able to resolve the issue by upgrading the requests library in Python.
Command for reference if anyone else is also stuck:
python -m pip install --upgrade requests


Tests are failing with python 2.7

_________________________________ [tox sdist] __________________________________
[TOX] ***creating sdist package
[TOX] /Users/kmike/svn/nltk$ /usr/local/Cellar/python/2.7.2/bin/python setup.py sdist --formats=zip --dist-dir .tox/dist >.tox/log/0.log
[TOX] ***copying new sdistfile to '/Users/kmike/.tox/distshare/nltk-2.0.1rc3.zip'
______________________________ [tox testenv:py27] ______________________________
[TOX] ***reusing existing matching virtualenv py27
[TOX] ***upgrade-installing sdist
[TOX] /Users/kmike/svn/nltk/.tox/py27/log$ ../bin/pip install --download-cache=/Users/kmike/svn/nltk/.tox/_download /Users/kmike/svn/nltk/.tox/dist/nltk-2.0.1rc3.zip -U --no-deps >13.log
[TOX] /Users/kmike/svn/nltk/nltk/test$ ../../.tox/py27/bin/python testrunner.py

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 49, in align.doctest
Failed example:
    als.alignment = align.Alignment([(0, 0), (1, 4), (2, 1), (3, 3)])
Expected:
    Traceback (most recent call last):
        ...
    IndexError: Alignment is outside boundary of mots
Got:
    Traceback (most recent call last):
      File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest align.doctest[9]>", line 1, in <module>
        als.alignment = align.Alignment([(0, 0), (1, 4), (2, 1), (3, 3)])
    AttributeError: can't set attribute

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 53, in align.doctest
Failed example:
    als.alignment = align.Alignment([(-1, 0), (1, 2), (2, 1), (3, 3)])
Expected:
    Traceback (most recent call last):
        ...
    IndexError: Alignment is outside boundary of words
Got:
    Traceback (most recent call last):
      File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest align.doctest[10]>", line 1, in <module>
        als.alignment = align.Alignment([(-1, 0), (1, 2), (2, 1), (3, 3)])
    AttributeError: can't set attribute

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 59, in align.doctest
Failed example:
    als.alignment = align.Alignment([(1, 3), (3, 2), (0, 1), (2, 0)])
Exception raised:
    Traceback (most recent call last):
      File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest align.doctest[12]>", line 1, in <module>
        als.alignment = align.Alignment([(1, 3), (3, 2), (0, 1), (2, 0)])
    AttributeError: can't set attribute

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 60, in align.doctest
Failed example:
    als.alignment
Expected:
    Alignment([(0, 1), (1, 3), (2, 0), (3, 2)])
Got:
    Alignment([(0, 0), (1, 1), (2, 2), (3, 3)])

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 67, in align.doctest
Failed example:
    als.alignment = [(0, 0), (1, 1), (2, 2, "boat"), (3, 3, False, (1,2))]
Exception raised:
    Traceback (most recent call last):
      File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest align.doctest[14]>", line 1, in <module>
        als.alignment = [(0, 0), (1, 1), (2, 2, "boat"), (3, 3, False, (1,2))]
    AttributeError: can't set attribute

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 68, in align.doctest
Failed example:
    als.alignment
Expected:
    Alignment([(0, 0), (1, 1), (2, 2, 'boat'), (3, 3, False, (1, 2))])
Got:
    Alignment([(0, 0), (1, 1), (2, 2), (3, 3)])

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 70, in align.doctest
Failed example:
    als.alignment = ((0, 0), (1, 1), (2, 2), (3, 3))
Exception raised:
    Traceback (most recent call last):
      File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest align.doctest[16]>", line 1, in <module>
        als.alignment = ((0, 0), (1, 1), (2, 2), (3, 3))
    AttributeError: can't set attribute

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 86, in align.doctest
Failed example:
    em_ibm1 = align.EMIBMModel1(corpus, 1e-3)
Exception raised:
    Traceback (most recent call last):
      File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest align.doctest[19]>", line 1, in <module>
        em_ibm1 = align.EMIBMModel1(corpus, 1e-3)
    AttributeError: 'module' object has no attribute 'EMIBMModel1'

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 87, in align.doctest
Failed example:
    iterations = em_ibm1.train()
Exception raised:
    Traceback (most recent call last):
      File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest align.doctest[20]>", line 1, in <module>
        iterations = em_ibm1.train()
    NameError: name 'em_ibm1' is not defined

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 88, in align.doctest
Failed example:
    print round(em_ibm1.probabilities['the', 'das'], 1)
Exception raised:
    Traceback (most recent call last):
      File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest align.doctest[21]>", line 1, in <module>
        print round(em_ibm1.probabilities['the', 'das'], 1)
    NameError: name 'em_ibm1' is not defined

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 90, in align.doctest
Failed example:
    print round(em_ibm1.probabilities['book', 'das'], 1)
Exception raised:
    Traceback (most recent call last):
      File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest align.doctest[22]>", line 1, in <module>
        print round(em_ibm1.probabilities['book', 'das'], 1)
    NameError: name 'em_ibm1' is not defined

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 92, in align.doctest
Failed example:
    print round(em_ibm1.probabilities['house', 'das'], 1)
Exception raised:
    Traceback (most recent call last):
      File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest align.doctest[23]>", line 1, in <module>
        print round(em_ibm1.probabilities['house', 'das'], 1)
    NameError: name 'em_ibm1' is not defined

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 94, in align.doctest
Failed example:
    print round(em_ibm1.probabilities['the', 'Buch'], 1)
Exception raised:
    Traceback (most recent call last):
      File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest align.doctest[24]>", line 1, in <module>
        print round(em_ibm1.probabilities['the', 'Buch'], 1)
    NameError: name 'em_ibm1' is not defined

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 96, in align.doctest
Failed example:
    print round(em_ibm1.probabilities['book', 'Buch'], 1)
Exception raised:
    Traceback (most recent call last):
      File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest align.doctest[25]>", line 1, in <module>
        print round(em_ibm1.probabilities['book', 'Buch'], 1)
    NameError: name 'em_ibm1' is not defined

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 98, in align.doctest
Failed example:
    print round(em_ibm1.probabilities['a', 'Buch'], 1)
Exception raised:
    Traceback (most recent call last):
      File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest align.doctest[26]>", line 1, in <module>
        print round(em_ibm1.probabilities['a', 'Buch'], 1)
    NameError: name 'em_ibm1' is not defined

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 100, in align.doctest
Failed example:
    print round(em_ibm1.probabilities['book', 'ein'], 1)
Exception raised:
    Traceback (most recent call last):
      File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest align.doctest[27]>", line 1, in <module>
        print round(em_ibm1.probabilities['book', 'ein'], 1)
    NameError: name 'em_ibm1' is not defined

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 102, in align.doctest
Failed example:
    print round(em_ibm1.probabilities['a', 'ein'], 1)
Exception raised:
    Traceback (most recent call last):
      File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest align.doctest[28]>", line 1, in <module>
        print round(em_ibm1.probabilities['a', 'ein'], 1)
    NameError: name 'em_ibm1' is not defined

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 104, in align.doctest
Failed example:
    print round(em_ibm1.probabilities['the', 'Haus'], 1)
Exception raised:
    Traceback (most recent call last):
      File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest align.doctest[29]>", line 1, in <module>
        print round(em_ibm1.probabilities['the', 'Haus'], 1)
    NameError: name 'em_ibm1' is not defined

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 106, in align.doctest
Failed example:
    print round(em_ibm1.probabilities['house', 'Haus'], 1)
Exception raised:
    Traceback (most recent call last):
      File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest align.doctest[30]>", line 1, in <module>
        print round(em_ibm1.probabilities['house', 'Haus'], 1)
    NameError: name 'em_ibm1' is not defined

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 112, in align.doctest
Failed example:
    em_ibm1.aligned() # doctest: +NORMALIZE_WHITESPACE
Exception raised:
    Traceback (most recent call last):
      File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest align.doctest[31]>", line 1, in <module>
        em_ibm1.aligned() # doctest: +NORMALIZE_WHITESPACE
    NameError: name 'em_ibm1' is not defined
.
***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/chat80.doctest", line 205, in chat80.doctest
Failed example:
    trees = cp.nbest_parse(query.split())
Exception raised:
    Traceback (most recent call last):
      File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest chat80.doctest[21]>", line 1, in <module>
        trees = cp.nbest_parse(query.split())
    AttributeError: 'FeatureGrammar' object has no attribute 'nbest_parse'

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/chat80.doctest", line 206, in chat80.doctest
Failed example:
    answer = trees[0].node['SEM']
Exception raised:
    Traceback (most recent call last):
      File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest chat80.doctest[22]>", line 1, in <module>
        answer = trees[0].node['SEM']
    NameError: name 'trees' is not defined

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/chat80.doctest", line 207, in chat80.doctest
Failed example:
    q = join(answer)
Exception raised:
    Traceback (most recent call last):
      File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest chat80.doctest[23]>", line 1, in <module>
        q = join(answer)
      File "/usr/local/Cellar/python/2.7.2/lib/python2.7/string.py", line 318, in join
        return sep.join(words)
    TypeError: sequence item 1: expected string, int found

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/chat80.doctest", line 208, in chat80.doctest
Failed example:
    print q
Expected:
    SELECT City FROM city_table WHERE   Country="china"
Got:
    SELECT City, Population FROM city_table WHERE Country = 'china' and Population > 1000

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/chat80.doctest", line 211, in chat80.doctest
Failed example:
    for r in rows: print "%s" % r,
Exception raised:
    Traceback (most recent call last):
      File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest chat80.doctest[26]>", line 1, in <module>
        for r in rows: print "%s" % r,
    TypeError: not all arguments converted during string formatting
.
***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/chunk.doctest", line 99, in chunk.doctest
Failed example:
    chunkscore.recall()
Expected:
    0.33333333333333331
Got:
    0.3333333333333333

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/chunk.doctest", line 102, in chunk.doctest
Failed example:
    chunkscore.f_measure()
Expected:
    0.40000000000000002
Got:
    0.4
........

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/parse.doctest", line 552, in parse.doctest
Failed example:
    prod.prob()
Expected:
    0.29999999999999999
Got:
    0.3
.

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/semantics.doctest", line 663, in semantics.doctest
Failed example:
    print cs_semrep.core
Expected:
    chase(z2,z4)
Got:
    chase(z2,z3)

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/semantics.doctest", line 665, in semantics.doctest
Failed example:
    for bo in cs_semrep.store:
        print bo
Expected:
    bo(\P.all x.(girl(x) -> P(x)),z2)
    bo(\P.exists x.(dog(x) & P(x)),z4)
Got:
    bo(\P.all x.(girl(x) -> P(x)),z2)
    bo(\P.exists x.(dog(x) & P(x)),z3)

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/semantics.doctest", line 669, in semantics.doctest
Failed example:
    cs_semrep.s_retrieve(trace=True)
Expected:
    Permutation 1
       (\P.all x.(girl(x) -> P(x)))(\z2.chase(z2,z4))
       (\P.exists x.(dog(x) & P(x)))(\z4.all x.(girl(x) -> chase(x,z4)))
    Permutation 2
       (\P.exists x.(dog(x) & P(x)))(\z4.chase(z2,z4))
       (\P.all x.(girl(x) -> P(x)))(\z2.exists x.(dog(x) & chase(z2,x)))
Got:
    Permutation 1
       (\P.all x.(girl(x) -> P(x)))(\z2.chase(z2,z3))
       (\P.exists x.(dog(x) & P(x)))(\z3.all x.(girl(x) -> chase(x,z3)))
    Permutation 2
       (\P.exists x.(dog(x) & P(x)))(\z3.chase(z2,z3))
       (\P.all x.(girl(x) -> P(x)))(\z2.exists x.(dog(x) & chase(z2,x)))

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/semantics.doctest", line 677, in semantics.doctest
Failed example:
    for reading in cs_semrep.readings:
        print reading
Expected:
    exists x.(dog(x) & all z3.(girl(z3) -> chase(z3,x)))
    all x.(girl(x) -> exists z4.(dog(z4) & chase(x,z4)))
Got:
    exists x.(dog(x) & all z13.(girl(z13) -> chase(z13,x)))
    all x.(girl(x) -> exists z14.(dog(z14) & chase(x,z14)))
.
***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/simple.doctest", line 33, in simple.doctest
Failed example:
    recall(reference_set, test_set)
Expected:
    0.80000000000000004
Got:
    0.8

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/simple.doctest", line 35, in simple.doctest
Failed example:
    f_measure(reference_set, test_set)
Expected:
    0.88888888888888884
Got:
    0.8888888888888888
.
***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/sourcedstring.doctest", line 1246, in sourcedstring.doctest
Failed example:
    re.sub('better', 'worse', sent)
Expected:
    'I got worse.'
Got:
    'I got worse.'@[27:33,27:27,...,27:27,39:40]

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/sourcedstring.doctest", line 1254, in sourcedstring.doctest
Failed example:
    re.sub('better', 'worse', sent)
Expected:
    'I got worse.'
Got:
    'I got worse.'@[27:33,27:27,...,27:27,39:40]

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/sourcedstring.doctest", line 1448, in sourcedstring.doctest
Failed example:
    x.rpartition(y)
Expected:
    ('ascii byte string'@[0:17], ''@[17:17], ''@[17:17])
Got:
    (''@[0:0], ''@[0:0], 'ascii byte string'@[0:17])
...
***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/tokenize.doctest", line 20, in tokenize.doctest
Failed example:
    print regexp_tokenize(s2, r'[,\.\?!"]\s*', gaps=True)
Expected:
    ['Alas', 'it has not rained today', 'When', 'do you think',
     'will it rain again']
Got:
    ['Alas', 'it has not rained today', 'When', 'do you think', 'will it rain again']

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/tokenize.doctest", line 28, in tokenize.doctest
Failed example:
    print regexp_tokenize(s3, r'</?(b|p)>', gaps=True)
Expected:
    ['Although this is ', 'not',
     ' the case here, we must not relax our vigilance!']
Got:
    ['Although this is ', 'not', ' the case here, we must not relax our vigilance!']

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/tokenize.doctest", line 36, in tokenize.doctest
Failed example:
    print regexp_tokenize(s3, r'</?(?P<named>b|p)>', gaps=True)
Expected:
    ['Although this is ', 'not',
     ' the case here, we must not relax our vigilance!']
Got:
    ['Although this is ', 'not', ' the case here, we must not relax our vigilance!']

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/tokenize.doctest", line 44, in tokenize.doctest
Failed example:
    print regexp_tokenize(s2, r'(h|r|l)a(s|(i|n0))', gaps=True)
Expected:
    ['A', ', it ', ' not ', 'ned today. When, do you think, will it ',
     'n again?']
Got:
    ['A', ', it ', ' not ', 'ned today. When, do you think, will it ', 'n again?']

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/tokenize.doctest", line 50, in tokenize.doctest
Failed example:
    print regexp_tokenize(s2, r'(.)\1')
Expected:
    Traceback (most recent call last):
       ...
    ValueError: Regular expressions with back-references are
    not supported: '(.)\\1'
Got:
    Traceback (most recent call last):
      File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest tokenize.doctest[12]>", line 1, in <module>
        print regexp_tokenize(s2, r'(.)\1')
      File "/Users/kmike/svn/nltk/nltk/tokenize/regexp.py", line 192, in regexp_tokenize
        tokenizer = RegexpTokenizer(pattern, gaps, discard_empty, flags)
      File "/Users/kmike/svn/nltk/nltk/tokenize/regexp.py", line 112, in __init__
        nongrouping_pattern = convert_regexp_to_nongrouping(pattern)
      File "/Users/kmike/svn/nltk/nltk/internals.py", line 44, in convert_regexp_to_nongrouping
        'are not supported: %r' % pattern)
    ValueError: Regular expressions with back-references are not supported: '(.)\\1'

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/tokenize.doctest", line 55, in tokenize.doctest
Failed example:
    print regexp_tokenize(s2, r'(?P<foo>)(?P=foo)')
Expected:
    Traceback (most recent call last):
       ...
    ValueError: Regular expressions with back-references are
    not supported: '(?P<foo>)(?P=foo)'
Got:
    Traceback (most recent call last):
      File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest tokenize.doctest[13]>", line 1, in <module>
        print regexp_tokenize(s2, r'(?P<foo>)(?P=foo)')
      File "/Users/kmike/svn/nltk/nltk/tokenize/regexp.py", line 192, in regexp_tokenize
        tokenizer = RegexpTokenizer(pattern, gaps, discard_empty, flags)
      File "/Users/kmike/svn/nltk/nltk/tokenize/regexp.py", line 112, in __init__
        nongrouping_pattern = convert_regexp_to_nongrouping(pattern)
      File "/Users/kmike/svn/nltk/nltk/internals.py", line 44, in convert_regexp_to_nongrouping
        'are not supported: %r' % pattern)
    ValueError: Regular expressions with back-references are not supported: '(?P<foo>)(?P=foo)'

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/tokenize.doctest", line 63, in tokenize.doctest
Failed example:
    print regexp_tokenize(s, pattern=r'\.(\s+|$)', gaps=True)
Expected:
    ['Good muffins cost $3.88\nin New York',
     'Please buy me\ntwo of them', 'Thanks']
Got:
    ['Good muffins cost $3.88\nin New York', 'Please buy me\ntwo of them', 'Thanks']
..
***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/tree.doctest", line 16, in tree.doctest
Failed example:
    print tree
Expected nothing
Got:
    (s (dp (d the) (np dog)) (vp (v chased) (dp (d the) (np cat))))

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/tree.doctest", line 24, in tree.doctest
Failed example:
    print tree[path]
Exception raised:
    Traceback (most recent call last):
      File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest tree.doctest[7]>", line 1, in <module>
        print tree[path]
    NameError: name 'path' is not defined

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/tree.doctest", line 37, in tree.doctest
Failed example:
    print tree.pprint_latex_qtree()
Expected:
    \Tree [.s
            [.np [.d THE ] [.np DOG ] ]
            [.vp [.v CHASED ] [.np [.d THE ] [.np CAT ] ] ] ]
Got:
    \Tree [.s
            [.dp [.d the ] [.np dog ] ]
            [.vp [.v chased ] [.dp [.d the ] [.np cat ] ] ] ]

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/tree.doctest", line 692, in tree.doctest
Failed example:
    ptree[0,0].remove(make_ptree('(Q p)'))
Expected:
    Traceback (most recent call last):
      . . .
    ValueError: list.index(x): x not in list
Got:
    Traceback (most recent call last):
      File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest tree.doctest[155]>", line 1, in <module>
        ptree[0,0].remove(make_ptree('(Q p)'))
      File "/Users/kmike/svn/nltk/nltk/tree.py", line 986, in remove
        index = self.index(child)
    ValueError: ParentedTree('Q', ['p']) is not in list

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/tree.doctest", line 698, in tree.doctest
Failed example:
    ptree.remove('h');
Expected:
    Traceback (most recent call last):
      . . .
    ValueError: list.index(x): x not in list
Got:
    Traceback (most recent call last):
      File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest tree.doctest[157]>", line 1, in <module>
        ptree.remove('h');
      File "/Users/kmike/svn/nltk/nltk/tree.py", line 986, in remove
        index = self.index(child)
    ValueError: 'h' is not in list

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/tree.doctest", line 994, in tree.doctest
Failed example:
    mptree[0,0].remove(make_mptree('(Q p)'))
Expected:
    Traceback (most recent call last):
      . . .
    ValueError: list.index(x): x not in list
Got:
    Traceback (most recent call last):
      File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest tree.doctest[234]>", line 1, in <module>
        mptree[0,0].remove(make_mptree('(Q p)'))
      File "/Users/kmike/svn/nltk/nltk/tree.py", line 986, in remove
        index = self.index(child)
    ValueError: MultiParentedTree('Q', ['p']) is not in list

***************************************************************************
File "/Users/kmike/svn/nltk/nltk/test/tree.doctest", line 1000, in tree.doctest
Failed example:
    mptree.remove('h');
Expected:
    Traceback (most recent call last):
      . . .
    ValueError: list.index(x): x not in list
Got:
    Traceback (most recent call last):
      File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest tree.doctest[236]>", line 1, in <module>
        mptree.remove('h');
      File "/Users/kmike/svn/nltk/nltk/tree.py", line 986, in remove
        index = self.index(child)
    ValueError: 'h' is not in list
....
A test failed unexpectedly. Please report this error
to the nltk-dev mailinglist.
[TOX] ERROR: InvocationError: '../../.tox/py27/bin/python testrunner.py'
________________________________ [tox summary] _________________________________
[TOX] ERROR: py27: commands failed

Many of these examples raise AttributeError, which indicates an API change rather than a problem with doctest per se.

@timClicks Yeah, you're right, that's why I didn't mention align.doctest in that thread (https://groups.google.com/forum/#!topic/nltk-dev/_pEuA0kTlkg)

Some tests were fixed, some are still failing: https://gist.github.com/1596526

what's the way to solve that i.e. 'RecursiveDescentParser' object has no attribute 'nbest_parse'?THX


Bug fix/6680 requirement to get relative xpaths in pom for ginger 3.0

Meni,
I have done changes in getxpath for web to improve its performance and that decreased the time by 50%.
I want to update the getrelxpath specific for web for better performance. So will not be pushing the change for now.
Sent from my iPhone
On 16 Dec 2018, at 22:03, Meni Kadosh <notifications<EMAIL_ADDRESS>wrote:
@MeniKadosh1 commented on this pull request.
Jaspreet if this PR is ready so please push it before this week Beta testing's starts.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/Ginger-Automation/Ginger/pull/409#pullrequestreview-185382824, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AniQii1zYbnBh6a6PityEeWg7l55b7M5ks5u5igzgaJpZM4ZKtyP.
This email and the information contained herein is proprietary and confidential and subject to the Amdocs Email Terms of Service, which you may review at https://www.amdocs.com/about/email-terms-of-service https://www.amdocs.com/about/email-terms-of-service

Ok, got it, thanks.
Regards,
Meni Kadosh
Automation Tools Development Team Lead
Amdocs Quality Engineering Services
BEAT R&D Center
+972-8-62-40961 (office)
[amdocs-2017-brand-mark-rgb]
Follow us on Facebookhttp://www.facebook.com/amdocs/, Twitterhttp://twitter.com/amdocs, LinkedInhttp://www.linkedin.com/company/amdocs, YouTubehttp://www.youtube.com/amdocsinc, Google+https://plus.google.com/105657940751678445194 and the Amdocs blog networkhttp://blogs.amdocs.com/.
From: JaspreetGIT<EMAIL_ADDRESS>Sent: Sunday, December 16, 2018 1:09 PM
To: Ginger-Automation/Ginger<EMAIL_ADDRESS>Cc: Meni Kadosh<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [Ginger-Automation/Ginger] Bug fix/6680 requirement to get relative xpaths in pom for ginger 3.0 (#409)
Meni,
I have done changes in getxpath for web to improve its performance and that decreased the time by 50%.
I want to update the getrelxpath specific for web for better performance. So will not be pushing the change for now.
Sent from my iPhone
On 16 Dec 2018, at 22:03, Meni Kadosh <notifications<EMAIL_ADDRESS>wrote:
@MeniKadosh1 commented on this pull request.
Jaspreet if this PR is ready so please push it before this week Beta testing's starts.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/Ginger-Automation/Ginger/pull/409#pullrequestreview-185382824, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AniQii1zYbnBh6a6PityEeWg7l55b7M5ks5u5igzgaJpZM4ZKtyP.
This email and the information contained herein is proprietary and confidential and subject to the Amdocs Email Terms of Service, which you may review at https://www.amdocs.com/about/email-terms-of-service https://www.amdocs.com/about/email-terms-of-service
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/Ginger-Automation/Ginger/pull/409#issuecomment-447634603, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AmYUrvc1Lehdubx8fOd3e5moQp6RdBEoks5u5inYgaJpZM4ZKtyP.
This email and the information contained herein is proprietary and confidential and subject to the Amdocs Email Terms of Service, which you may review at https://www.amdocs.com/about/email-terms-of-service https://www.amdocs.com/about/email-terms-of-service

so please close the PR for now till it will be ready.

Done
From: Meni Kadosh<EMAIL_ADDRESS>Sent: Sunday, December 16, 2018 10:13 PM
To: Ginger-Automation/Ginger<EMAIL_ADDRESS>Cc: Jaspreet Kaur<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [Ginger-Automation/Ginger] Bug fix/6680 requirement to get relative xpaths in pom for ginger 3.0 (#409)
so please close the PR for now till it will be ready.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/Ginger-Automation/Ginger/pull/409#issuecomment-447634801, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AniQinsVg4ya8ygORBpZQn3XngpL5a8tks5u5iqrgaJpZM4ZKtyP.
This email and the information contained herein is proprietary and confidential and subject to the Amdocs Email Terms of Service, which you may review at https://www.amdocs.com/about/email-terms-of-service https://www.amdocs.com/about/email-terms-of-service


update readme

the readme doesn't contain the prerequisites and usage

But it will not count in hacktoberfest. It's written in hacktoberfest rule

@Chanchal-D you can pick any other issue mentioned in issues tab

but it is included in hacktoberfest, for non coders

ok then create PR


fix(oscillator): move 3d view to oscillators

Makes more sense not to have to flip back
and forth.

:tada: This PR is included in version 3.2.3 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


[Model] Support Solar Model

Solar 22B model has been newly uploaded, I hope this PR helps.
HuggingFace: upstage/solar-pro-preview-instruct
BEFORE SUBMITTING, PLEASE READ THE CHECKLIST BELOW AND FILL IN THE DESCRIPTION ABOVE

 PR Checklist (Click to Expand)
Thank you for your contribution to vLLM! Before submitting the pull request, please ensure the PR meets the following criteria. This helps vLLM maintain the code quality and improve the efficiency of the review process.
PR Title and Classification
Only specific types of PRs will be reviewed. The PR title is prefixed appropriately to indicate the type of change. Please use one of the following:

[Bugfix] for bug fixes.
[CI/Build] for build or continuous integration improvements.
[Doc] for documentation fixes and improvements.
[Model] for adding a new model or improving an existing model. Model name should appear in the title.
[Frontend] For changes on the vLLM frontend (e.g., OpenAI API server, LLM class, etc.)
[Kernel] for changes affecting CUDA kernels or other compute kernels.
[Core] for changes in the core vLLM logic (e.g., LLMEngine, AsyncLLMEngine, Scheduler, etc.)
[Hardware][Vendor] for hardware-specific changes. Vendor name should appear in the prefix (e.g., [Hardware][AMD]).
[Misc] for PRs that do not fit the above categories. Please use this sparingly.

Note: If the PR spans more than one category, please include all relevant prefixes.
Code Quality
The PR need to meet the following code quality standards:

We adhere to Google Python style guide and Google C++ style guide.
Pass all linter checks. Please use format.sh to format your code.
The code need to be well-documented to ensure future contributors can easily understand the code.
Include sufficient tests to ensure the project to stay correct and robust. This includes both unit tests and integration tests.
Please add documentation to docs/source/ if the PR modifies the user-facing behaviors of vLLM. It helps vLLM user understand and utilize the new features or changes.

Adding or changing kernels
Each custom kernel needs a schema and one or more implementations to be registered with PyTorch.

Make sure custom ops are registered following PyTorch guidelines: Custom C++ and CUDA Operators and The Custom Operators Manual
Custom operations that return Tensors require meta-functions. Meta-functions should be implemented and registered in python so that dynamic dims can be handled automatically. See above documents for a description of meta-functions.
Use torch.libary.opcheck() to test the function registration and meta-function for any registered ops.  See tests/kernels for examples.
When changing the C++ signature of an existing op, the schema must be updated to reflect the changes.
If a new custom type is needed, see the following document: Custom Class Support in PT2.

Notes for Large Changes
Please keep the changes as concise as possible. For major architectural changes (>500 LOC excluding kernel/data/config/test), we would expect a GitHub issue (RFC) discussing the technical design and justification. Otherwise, we will tag it with rfc-required and might not go through the PR.
What to Expect for the Reviews
The goal of the vLLM team is to be a transparent reviewing machine. We would like to make the review process transparent and efficient and make sure no contributor feel confused or frustrated. However, the vLLM team is small, so we need to prioritize some PRs over others. Here is what you can expect from the review process:

 After the PR is submitted, the PR will be assigned to a reviewer. Every reviewer will pick up the PRs based on their expertise and availability.
 After the PR is assigned, the reviewer will provide status update every 2-3 days. If the PR is not reviewed within 7 days, please feel free to ping the reviewer or the vLLM team.
 After the review, the reviewer will put an  action-required label on the PR if there are changes required. The contributor should address the comments and ping the reviewer to re-review the PR.
 Please respond to all comments within a reasonable time frame. If a comment isn't clear or you disagree with a suggestion, feel free to ask for clarification or discuss the suggestion.

Thank You
 Finally, thank you for taking the time to read these guidelines and for your interest in contributing to vLLM. Your contributions make vLLM a great tool for everyone!

Summary of changes
Add SolarModel
vllm/model_executor/models/init.py
vllm/model_executor/models/solar.py
Add SolarConfig
vllm/transformers_utils/config.py
vllm/transformers_utils/configs/init.py
vllm/transformers_utils/configs/solar.py
Thanks

Could you describe the major differences of this architecture against llama? From a glance looking at the config and modeling code, it seems quite similar

This PR introduces the Solar model, a new language model architecture with the following key features:

Feature
Description

BSKCN Structure
Block-Sparse K-Chain Network for efficient layer output reuse

Flexible RoPE
Adaptable Rotary Position Embedding implementation

Fine-grained Control
Additional config options (bskcn_1, bskcn_2, etc.) for detailed tuning

This is what I've checked so far.

https://huggingface.co/upstage/solar-pro-preview-instruct/discussions/10

These seem like reasonable differences then. Could you fix the formatting first? It should just be pip install -r requirements-lint.txt and then ./format.sh

I've run this script before, but the variable name is too long, so there's a problem.

/ready

Thank you, I modified the format.

There was a small issue with the SamplerOutput import that I fixed in the latest commit. After that, the model looks to be performing as expected!
lm_eval --model vllm --model_args pretrained=upstage/solar-pro-preview-instruct,max_model_len=4096 --tasks gsm8k --num_fewshot 5 --batch_size auto

vllm (pretrained=upstage/solar-pro-preview-instruct,max_model_len=4096), gen_kwargs: (None), limit: None, num_fewshot: 5, batch_size: auto
|Tasks|Version|     Filter     |n-shot|  Metric   |   |Value |   |Stderr|
|-----|------:|----------------|-----:|-----------|---|-----:|---|-----:|
|gsm8k|      3|flexible-extract|     5|exact_match|↑  |0.8719|±  |0.0092|
|     |       |strict-match    |     5|exact_match|↑  |0.8673|±  |0.0093|

Thank you for integrating our Solar model into vLLM, @shing100! It will be very helpful for users exploring Solar.
Just to clarify: BSKCN actually stands for Block level SKip CoNnection, not Block-Sparse K-Chain Network. It is an architectural feature we added to the model.
For those interested, our original implementation for Solar vLLM (used in this PR) can be found here.


Rpy3

Hello @Shotgunosine! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file sklmer/_estimators.py:

Line 28:80: E501 line too long (92 > 79 characters)
Line 32:80: E501 line too long (82 > 79 characters)

In the file sklmer/tests/test_estimators.py:

Line 48:80: E501 line too long (92 > 79 characters)


Replacing old open import syntax with new

I believe that the proper substitute for import open State is import State exposing (..).

Yes, but note that there is a much more comprehensive pull request (https://github.com/elm-lang/package.elm-lang.org/pull/43) on improving the guideline pages. It includes the bit you fix here, and more. It seems to me that PR of @mgold should be dealt with.

Ah - great! :D! I'll close this one then.


How to test TFMnist example on Android device

Hello,
I tried to test armnn-devenv/armnn/tests/TfMnist-Armnn example. However, it is not compiled even within UnitTests binaries. Could any one provide a way to compile and test it on android device?
Best,
Fangming

Hi @phamyphen, those tests depend on some third-party IP(stb, which you can get from https://github.com/nothings/stb) that we can't distribute, and they aren't yet part of our supported product (hence no documentation for them...) but they do contain some interesting and useful example code.
After you've got the tests to compile, most of them will require hard-coded model protobufs and image files that we can't distribute. Probably the best thing for you to do would be to treat them as a starting point for your own testing.
The most useful program in that folder is 'ExecuteNetwork', which can take any model, and any input tensor, and simply prints out the output tensor. Hopefully, its internal command-line documentation will provide enough information for you to make use of it.
Anyways, to build the tests, update cmake/GlobalConfig.cmake - option(BUILD_TESTS "Build test applications" OFF) to ON and then run cmake with -DTHIRD_PARTY_INCLUDE_DIRS.
e.g:
CXX=aarch64-linux-android-clang++ CC=aarch64-linux-android-clang CXX_FLAGS="-fPIE -fPIC" cmake ..  -DCMAKE_SYSTEM_NAME=Android  -DCMAKE_EXE_LINKER_FLAGS=-pie -DARMCOMPUTE_ROOT=$HOME/armnn-devenv/ComputeLibrary/  -DARMCOMPUTE_BUILD_DIR=$HOME/armnn-devenv/ComputeLibrary/build  -DBOOST_ROOT=$HOME/armnn-devenv/boost/install/   -DARMCOMPUTENEON=1 -DARMCOMPUTECL=1  -DTHIRD_PARTY_INCLUDE_DIRS=/home/surmeh01/armnn-devenv/armnn/third-party/stb -DTF_GENERATED_SOURCES=$HOME/armnn-devenv/google/tf_pb/ -DBUILD_TF_PARSER=1   -DPROTOBUF_ROOT=$HOME/armnn-devenv/google/arm64_pb_install/
Good luck,
Surabhi

Is it possible to measure elapsed time on certain network ?

Hi @pcub,
You can have a look at armnn/tests/ExecuteNetwork/ExecuteNetwork.cpp and armnn/tests/InferenceTest.cpp.
They are tools that print out the inference timings of a given model. For more details you can for example run ExecuteNetwork -h to get the list of usage options.
Regards,
Matteo

Hi @pcub,
I hope your question has been answered. Please open a new one if you need any further information.


Update system.c

Edited love.system.getPowerInfo (seems to work fine now), and added
love.system.getModel, love.system.getRegion and love.system.getLanguage. Also fixed sfilib and sftdlib, now they don't need sf2d.h in their respective include folders.
About the new functions, I didn't knew where to put them but love.system seemed the most fitting. Change it if you feel like it fits better somewhere else.

Travis is failing to build this PR, if you can fix it, I'll merge (thanks for the help btw :+1:)

Yes, it's just I forgot to update the sf2d.h location of some files. Just pushed a commit that should be enough.
And thank YOU for the port, it's helped me a lot :D

I have a lot of free time now so i'll see what else I can do with the code.
By the way, I forgot to tell you that I managed to compile under Windows. I've used the makefile below for portlibs:
https://github.com/cpp3ds/3ds_portlibs
All worked except for freetype. I had to install gcc with MingW32 and install zlib (NOT the portlib).
What didn't work was .cia and .3ds compiling. I don't know what the issue is, but it's related to makerom. It didn't work on Windows, and when I tried to pass a build with Travis it gave another makerom error about corrupted memory, so I just decided to delete the outputs in the makefile. Pretty sure it's not just a Windows issue.

I'm probably going to remove .cia and .3ds support anyways, I never got round to making it work and I don't know if its actually possible to get working.
It's good that you got it building on Windows, I wasn't sure if that was possible!


Handle Windows COM ports correctly

Offending line: https://github.com/UAVCAN/pyuavcan/blob/master/uavcan/node.py#L96
device.startswith("/dev")

Fixed with https://github.com/UAVCAN/pyuavcan/pull/11


Konflux migration

:sparkles: use Konflux to test and publish to PyPI
Ticket: APPSRE-11111

@fishi0x01, PTAL. This project is published in PyPI.
Do I need the release-plan? I don't want/need to publish any image to redhat-services-prod

To be honest, Im not sure how the guidelines currently are for those cases.


Define a Simple Data Model and OData Service with CDS

Tutorial URL: https://developers.sap.com/tutorials/odata-05-data-model-service.html
Please specify the step you are referring to: Step 9
"my-service.cd" should be "cat-service.cds"

Thanks again @tpembe the tutorial has been updated (see https://github.com/SAPDocuments/Tutorials/commit/753c5cb9ccdbd1876435e67b689dbdc4678c3904)


automeme/autonsfw and more..... not working

automeme/autonsfw/autoembed/autoback commands not woking update on it on sharded_with_mongo branche

I think bot can't find client.guilds.cache.get(guildid) in shard
and client.channel.fetch can't find becasue of sharding

i have sharded standart version, all works, so this problem in code (1 more thing: mongo version not completed)

i have sharded standart version, all works, so this problem in code (1 more thing: mongo version not completed)

do you this part how works

i have sharded standart version, all works, so this problem in code (1 more thing: mongo version not completed)

let bb = message.channel.id
let ch = await client.cluster.broadcastEval((c, { bb }) => c.channels.cache.get(bb), {
context: {
bb,
},
});
if(!ch) { // bot can't find how to fix this
client.dd.delete(bb)

i have sharded standart version, all works, so this problem in code (1 more thing: mongo version not completed)

i so midifed repo i you git but client.guilds.cache.get(guildid) won't work in shard

i have sharded standart version, all works, so this problem in code (1 more thing: mongo version not completed)

can i contact you in discord because slow respond in github here my id DJHammer#7246


Merge minor QKD-related branches

Since there were changes being done on too many different feature-inspired branches, it's time to merge the QKD-related branches onto the 'main':

'cascade_blocks_binomial_cdf_version'
'cleaning'
'minor-tests'

The other two branches really are experimental - with one for restructurising the classes for QKD simulations and the other for parallelisation of the GA.

Done.


Merge master branch to prTesting1_201909251259 branch

Docs Build status updates of commit 1dc19e0:
:clock10: Pending: waiting for processors (19 builds ahead of you)
:warning: Docs Build is busy, currently there are 19 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit 1dc19e0:
:warning: Validation status: warnings

File
Status
Preview URL
Details

split/updateTestCon1.md
:warning:Warning

Details

split/updateTestCon1.md

[Warning] Missing attribute: author. Add the current author's GitHub ID.
[Warning] Missing attribute: title. Add a title string to show in search engine results.

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


python311Packages.google-cloud-bigquery: 3.13.0 -> 3.16.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python311Packages.google-cloud-bigquery is: Google BigQuery API client library
meta.homepage for python311Packages.google-cloud-bigquery is: https://github.com/googleapis/python-bigquery
meta.changelog for python311Packages.google-cloud-bigquery is: https://github.com/googleapis/python-bigquery/blob/v3.16.0/CHANGELOG.md
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 3.16.0 with grep in /nix/store/79wld0iv4ndf7cbr93y9nxbqza90fwr1-python3.11-google-cloud-bigquery-3.16.0
found 3.16.0 in filename of file in /nix/store/79wld0iv4ndf7cbr93y9nxbqza90fwr1-python3.11-google-cloud-bigquery-3.16.0

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath
python311Packages.dbt-bigquery
python311Packages.google-cloud-bigquery

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/79wld0iv4ndf7cbr93y9nxbqza90fwr1-python3.11-google-cloud-bigquery-3.16.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python311Packages.google-cloud-bigquery https://github.com/r-ryantm/nixpkgs/archive/9b67dc7566653ec7f4c6e35155ef9184a4f39a98.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/9b67dc7566653ec7f4c6e35155ef9184a4f39a98#python311Packages.google-cloud-bigquery

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/79wld0iv4ndf7cbr93y9nxbqza90fwr1-python3.11-google-cloud-bigquery-3.16.0
ls -la /nix/store/79wld0iv4ndf7cbr93y9nxbqza90fwr1-python3.11-google-cloud-bigquery-3.16.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

2 packages marked as broken and skipped:

python311Packages.dbt-bigquery
python311Packages.google-cloud-bigquery

Maintainer pings

@ofborg build python311Packages.google-cloud-bigquery python311Packages.google-cloud-bigquery.passthru.tests


spyder version bump with caution

i have version bumped this however it is to be noted that previous release was for python 3.4 however the released marked above is for python 2.7
till 2.3.3 they had both 2.7 and 3.4 release however 2.3.4 has only 2.7 release.
also homepage updated as suggested by Issue #10461

Well, if they ceased to support it, nothing we can do.


build: correct the resource layout for Windows

Windows uses the NeXT-ish layout with a different resource dir
(<TARGET>.resources) rather than Resources.  Account for that in the
build.

CC: @millenomi @gwynne

@swift-ci please test

Heck yes consistency!


Handle ECONNREFUSED and typo fix

This PR adds error handling for ECONNREFUSED, and also fixes a small typo. This allows requests that fail due to a previous request encountering ECONNREFUSED to retry if the service on 8125 is available. Small edge case.

Sure thing, feel free to merge when ready.


How to re-insert soft-deleted relation in a custom join table?

Your Question
Taking the sample from the documentation
type Person struct {
	ID        int
	Name      string
	Addresses []Address `gorm:"many2many:person_addresses;"`
}

type Address struct {
	ID   uint
	Name string
}

type PersonAddress struct {
	PersonID  int `gorm:"primaryKey"`
	AddressID int `gorm:"primaryKey"`
	CreatedAt time.Time
	DeletedAt gorm.DeletedAt
}

// ...

err = db.SetupJoinTable(&Person{}, "Addresses", &PersonAddress{})

// ...

// create a person, an address and their relation
person := &Person{ID: 1}
address := &Address{ID: 1}
db.Create(person)
db.Debug().Model(&person).Association("Addresses").Append(address)

// delete the relation
db.Debug().Model(&person).Association("Addresses").Delete(address)

// Question: how to insert the relation back?

// re-appending the relation does not work
db.Debug().Model(&person).Association("Addresses").Append(address)

// replacing doesn't work
db.Debug().Model(&person).Association("Addresses").Replace(address)

// using .Clauses(clause.OnConflict{UpdateAll: true}) doesn't work either
db.Debug().Model(&person).Clauses(clause.OnConflict{
    UpdateAll: true,
}).Association("Addresses").Append(address)

Please see comments in code for details.

The document you expected this should be explained
https://gorm.io/docs/many_to_many.html#Customize-JoinTable

Expected answer

use this plugin https://gorm.io/docs/delete.html#Delete-Flag


Complete recommendation_engine API

Move away from hard-code to user / db driven.

Handled and live!


Incorrect docblock for EnumeratesValues::ensure()

Laravel Version
10.23.1
PHP Version
8.2.3
Database Driver & Version
No response
Description
The @param and @return declarations in the docblock of the lluminate\Collections\Traits\EnumeratesValues::ensure() method are incorrect.
https://github.com/laravel/framework/blob/ca546893cb98a633daf8be6fdd286faa05c9044d/src/Illuminate/Collections/Traits/EnumeratesValues.php#L315-L325
@param
Situation
The documentation says the following about the $type parameter:

Primitive types such as string, int, float, bool, and array may also be specified:
return $collection->ensure('int');

https://laravel.com/docs/10.x/collections#method-ensure
Issue
The usage with primitive type strings doesn't match the class-string<TEnsureOfType> type-hint and static analysis tools (like PHPStan) will complain about this (and rightly so).
Solution
Since you can't type-hint "a string representation of a primitive type" (so far at least), the only solution would be to create separate methods for all primitive types (ensureInt, ensureBool, etc.).
@return
Situation
The key type is hinted as mixed, although a template TKey of array-key is available.
Issue
This makes a collection lose it's key type after applying the ensure method.
Solution
/*
 * @return static<TKey, TEnsureType>
 */

Steps To Reproduce

Install Laravel
Install PHPStan
Create a file app/Example.php with the following code:

<?php

declare(strict_types=1);

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Collection;

class Example
{
    /**
     * @param  Collection<array-key, mixed> $collection
     * @return void
     */
    public function paramIssue(Collection $collection): void
    {
        $collection->ensure('int');
    }

    /**
     * @param  array<int, Model> $array
     * @return Collection<int, Model>
     */
    public function returnIssue(array $array): Collection
    {
        return collect($array)->ensure(Model::class);
    }
}

Running static analysis will generate the following errors:
 ------ -----------------------------------------------------------------------------------------------------------------------------------
  Line   app/Example.php
 ------ -----------------------------------------------------------------------------------------------------------------------------------
  18     Parameter #1 $type of method Illuminate\Support\Collection<(int|string),mixed>::ensure() expects class-string<int>, string given.
  27     Method App\Example::returnIssue() should return
         Illuminate\Support\Collection<int, Illuminate\Database\Eloquent\Model> but returns
         Illuminate\Support\Collection<mixed, Illuminate\Database\Eloquent\Model>.
 ------ -----------------------------------------------------------------------------------------------------------------------------------

Heya, thanks for reporting.
If you notice improper DocBlock, PHPStan, or IDE warnings while using Laravel, do not create a GitHub issue. Instead, please submit a pull request to fix the problem. Also see our contribution guide.
Thanks!

Instead, please submit a pull request [...]

Well, I'd like to propose the bug (and possible solutions) first before putting in the work. Otherwise I could spend quite some time on this, while it get's rejected in the end. That would be a waste.

@driesvints this is exactly why I open an issue first before putting in the work of a PR :disappointed:
https://github.com/laravel/framework/pull/48460#issuecomment-1726636769

I’m sorry you feel that way @wimski. But it’s better for us to look at a PR to see it’s impact and what it does.


Need to test recovery of Inheritance Key

If a user (the beneficiary) is having the xpubs of the other keys and is requesting the Inheritance key. The unassigned key (which in this case is the inheritance key) flow asks for the xpubs and if all is well after a specific period of time, gives the user the Inheritance Key.
Scenario needs to be tested for confirmation.

IK server outdated, all issues for it should be replaced by a central issue to face it out


Downcast an owned boxed value?

Is it possible to downcast an owned boxed value instead of a ref?
Something like:
let p: Box<Person> = person_alice;
let alice: Option<Box<Alice>> = Mopa.downcast_box::<Alice>(p);

p.downcast::<Alice>() will get you an Result<Box<Alice>, Box<Person>>.


Add tooltip

This change is

Looks like you have branched it off from https://github.com/paranext/paranext-extension-text-collection/pull/24, so #.24 needs to go first, right?

also depends on https://github.com/paranext/paranext-core/pull/657/commits

The first screenshot wasn't the best. The tooltip was still fading in or out. This is what it looks like when it's fully loaded.
Also yes, the other PR should go first, so I have not enabled auto merge for this PR

Yes it should have been. That merge button just looked too good. rip. Let's get the other one merged asap :)


Added little tags support

Its very basic. What I did is moved code responsible for listing from index to default list, added partial for tags and put it in two places - in list view just below title and in single view also below title. Its looking just ok as for me, but I'm at css so I'll leave it like that.

nice!
I used it thanks

@a-urth I forked this theme and added some new stuff :+1:
https://github.com/beli3ver/hemingway2


Speed of Lucene index is lost by expand function

OrientDB Version: 2.2.27
Java Version: n/a
OS: Ubuntu
Expected behavior
Using a Lucene provides very fast lookup of the rowids. Trying to get usefull information from the record-columns based on these rowids, should require only slightly more time.
Actual behavior

the query from the index goes lightspeed fast:
orientdb {db=cdrarch}> SELECT count(rid) FROM INDEX:idx_myindex WHERE key LUCENE ' columnA:2219 AND columnB:[2017110608 TO<PHONE_NUMBER>] '

+----+-----+
|#   |count|
+----+-----+
|0   |24830|
+----+-----+
1 item(s) found. Query executed in 0.468 sec(s).

trying to get usefull information from the actual records, of which the rowids were found via the index, takes ages:
orientdb {db=cdrarch}> select count(*) FROM (SELECT expand(rid) FROM INDEX:idx_myindex WHERE key LUCENE ' columnA:2219 AND columnB:[2017110608 TO<PHONE_NUMBER>] ')
+----+-----+
|#   |count|
+----+-----+
|0   |24830|
+----+-----+

1 item(s) found. Query executed in 95.189 sec(s).
Steps to reproduce

Hi @rdelangh
this is because the
 SELECT count(rid) FROM INDEX:idx_myindex WHERE key LUCENE ' columnA:2219 AND columnB:[2017110608 TO<PHONE_NUMBER>]

does not load the records from disk. Just use the lucene index for counting.
when you use this
select count(*) FROM (SELECT expand(rid) FROM INDEX:idx_myindex WHERE key LUCENE ' columnA:2219 AND columnB:[2017110608 TO<PHONE_NUMBER>] ')

24830 records are loaded

hi Enrico,
my example was only meant to indicate the difference of speed when "expand()" must be used to access extra fields from the records (which is a typical requirement, I guess), and not only to count the results (which indeed can be done simply on the index).

Hi @rdelangh
can you attach here the explain of
select count(*) FROM (SELECT expand(rid) FROM INDEX:idx_myindex WHERE key LUCENE ' columnA:2219 AND columnB:[2017110608 TO<PHONE_NUMBER>] ')

hello @maggiolo00
here you go:
`orientdb {db=mydb}> explain SELECT count(*) FROM ( SELECT expand(rid) FROM INDEX:idx_myindex WHERE key LUCENE ' columnA:2219 AND columnB:[2017103008 TO<PHONE_NUMBER>] ')
Profiled command '{projectionElapsed:0,optimizationElapsed:148849,expandElapsed:25,user:#5:0,tips:[1],elapsed:148848.98,resultType:collection,resultSize:1}' in 148.865005 sec(s):
{"@type":"d","@version":0,"projectionElapsed":0,"optimizationElapsed":148849,"expandElapsed":25,"user":"#5:0","tips":["Query 'SELECT expand(rid) FROM INDEX:idx_myindex WHERE key LUCENE ' columnA:2219 AND columnB:[2017103008 TO<PHONE_NUMBER>] '' returned a result set with more than 10000 records. Check if you really need all these records, or reduce the resultset by using a LIMIT to improve both performance and used RAM"],"elapsed":148848.98,"resultType":"collection","resultSize":1,"@fieldTypes":"projectionElapsed=l,optimizationElapsed=l,expandElapsed=l,user=x,elapsed=f"}`


install panic

when i install zou, it panic. does it dependent for c. Can I replace rustssl for no c dependency?

Hi!
Thanks for trying to use zou but the build has not been updated since 4-5 years now... I think everything is deprecated, including the OpenSSL (version 0.9) that was used at this time.
Please check in the README in the "Troubleshooting" section if the last point solves the issue, which I doubt.
Otherwise I will have to update the source code & dependencies to make sure that everything is still usable.
Unfortunately I am so busy I can't do this in the next weeks / months, so do not hesitate to fork the project and make your own updates / changes ;-)
I will archive the project as I doubt I will make an update in the future.
Thanks again for using it!

Just tried and I got the same issue than here: https://github.com/sfackler/rust-openssl/issues/987.
So an update of the source code & dependencies is definitely the solution.


Sanity check pt. 2

Current coverage is 80.45% (diff: 100%)

Merging #686 into master will not change coverage

@@             master       #686   diff @@
==========================================
  Files           282        282
  Lines         10706      10706
  Methods           0          0
  Messages          0          0
  Branches       1420       1420
==========================================
  Hits           8614       8614
  Misses         1713       1713
  Partials        379        379

Powered by Codecov. Last update 3b4b35d...31612f8


Offset to each section

Hello, could i know how to set offset for each section?

@yw-teh This is currently working with the fixedHeader Option.
Do you need another option to add a custom defined amount of pixels?

I am closing this for now as I haven't heard back from you.


Black screen

I am using rathena.

Use packetver 20170517 and disable packet obfuscation. Should work out of the box with latest rathena.

I did, but now is happening it.

Make sure that other processes are not using grf files in time when you run the client.

I am sure, I reboot my pc and it stills happening it.

is it work with rathena right?

Yes, but the error is not related to the server.
Maybe you run some antivirus software ?
Try to disable it, don't know how it could interact, but anyway.

@felipemartins210 if you use Itau, BB, Caixa economicas as your banks, you need to uninstall their protection, since gas block alot of files that are related to RO

nothing! i give up T_T

Just for future reference.
I had the same problem when I tried to use an updated GRF, but using a kRO client from 2017 it works properly.
NOTE: The problem will happen if u tried to use an encrypted GRF.

The issue is outdated, so i think it's time to close it.
If there're new problems, feel free to create a new issue.
There'll new release in near future with many fixes.

The issue is outdated, so i think it's time to close it.
If there're new problems, feel free to create a new issue.
There'll new release in near future with many fixes.


Dart 2 tests should be audited to fix bad tests

It appears that a nontrivial fraction of failing test cases in the analyzer/FE integration are due to tests that are incorrect.  (In a random sampling of 60 of the ~500 failures currently outstanding, 4 appeared to be due to bad tests).  These tests need to be evaluated, and if they are indeed bad, fixed.
Suspected bad tests found so far:

language_2/compile_time_constant_static5_test/11

Test contains an implicit downcast that is invalid since it can be statically proven to always fail - see #31537

language_2/compile_time_constant_static5_test/16

Test contains an implicit downcast that is invalid since it can be statically proven to always fail - see #31537

language_2/compile_time_constant_static5_test/21

Test contains an implicit downcast that is invalid since it can be statically proven to always fail - see #31537

language_2/compile_time_constant_static5_test/23

Test contains an illegal assignment - see #31402

language_2/config_import_corelib_test

Test tries to call undefined methods on a type other than dynamic

language_2/deferred_load_library_wrong_args_test/01

Marked as a runtime error, should be a compile-time error

language_2/dynamic_prefix_core_test

Test assumes old semantics for dynamic (not a member of dart:core)

language_2/emit_const_fields_test

Test tries to call operator [] on an object whose static type is Object

language_2/external_test/24

Marked as a runtime error, should be a compile-time error

language_2/external_test/21

Marked as a runtime error, should be a compile-time error

language_2/generic_no_such_method_dispatcher_simple_test

Test tries to call undefined methods on a type other than dynamic

language_2/null_no_such_method_test

Test tries to call undefined methods on a type other than dynamic

language_2/override_inheritance_method_test/29

This test attempts to pair a base class method of type (int) -> dynamic with an override of type (String) -> dynamic, but does not expect an error

language_2/parser_quirks_test

Test tries to call undefined methods on a type other than dynamic

language_2/regress_23408_test

Test tries to call undefined methods on a type other than dynamic

language_2/regress_29025_test

Test assumes old call semantics

language_2/regress_29405_test

Test assumes old call semantics

language_2/regress_30339_test

Test contains invalid assignment errors

language_2/setter_no_getter_test/01

Marked as a runtime error, should be a compile-time error

language_2/string_split_test

Test contains an invalid override

language_2/string_supertype_checked_test

This test contains a class that implements Comparable, therefore the base class declaration of compareTo has type (dynamic) -> int, but the override has type (Comparable) -> int, which is an invalid override

language_2/super_bound_closure_test

Test tries to call undefined methods on a type other than dynamic

language_2/super_no_such_method1_test

Test attempts a super call to an abstract method; seems like this should be a compile-time error

language_2/super_no_such_method2_test

Test attempts a super call to an abstract method; seems like this should be a compile-time error

language_2/super_no_such_method3_test

Test attempts a super call to an abstract method; seems like this should be a compile-time error

language_2/super_operator_index5_test

Test attempts a super call to an abstract method; seems like this should be a compile-time error

language_2/super_operator_index6_test

Test attempts a super call to an abstract method; seems like this should be a compile-time error

language_2/super_operator_index7_test

Test attempts a super call to an abstract method; seems like this should be a compile-time error

language_2/super_operator_index8_test

Test attempts a super call to an abstract method; seems like this should be a compile-time error

language_2/type_promotion_functions_test

This whole test seems to be bad (has an unconditional compile time error at line 100)

language_2/type_promotion_more_specific_test/04

Test claims that type should not be promoted, but front end promotes it.  Which behavior is correct?

I'll keep this list updated if I discover more bad tests.

@leafpetersen and @lrhn - it may be useful to triage the failing language_2 tests to try and identify bad tests - esp. for tests like the first on Paul's list. I believe the dart 2 test migration effort did leave some amount of known work behind.

Right, type_promotion_functions_test is broken—it relies on the Dart 1 << relation. Should be rewritten such that the stated << relations become actual Dart 2 subtype relationships (e.g., FuncDynToDyn << FuncAtoDyn becomes FuncNullToDyn <: FuncAtoDyn where typedef FuncNullToDyn(Null n);).
Similarly, I agree that override_inheritance_method_test/29 should be adjusted to `//# 29: compile-time error'.
In string_supertype_checked_test, the comment refers to 'supertypes of String' which seems to have very little to do with the source code that follows, but one way to make the code meaningful today would be to use implements Comparable<A> and int compareTo(Comparable<A> other), which preserves the properties that the override uses variance and promote performs a cast.

the dart 2 test migration effort did leave some amount of known work behind.

Indeed, except perhaps for 'known [by all]'. ;)

As Erik says, it is a known issue that some of the language_2 tests are bad tests.  There was a issue in the tracker that they needed to be triaged, from at least a year ago, but I can't find that issue right now (maybe it's closed?) and as far as I can remember it never really had an owner anyway.
The usual thing we've been doing is fixing them as we find them.  Beware that it's very painful to do that due to the status file updates required.

I've now finished triaging the remaining test.py failures for analyzer/CFE integration, so I believe the list above is reasonably complete.

I'm currently fixing tests that are failing on large numbers of bots, including several of the ones listed. Many of these are language_2 tests that have a discrepancy between analyzer and CFE or which have been broken since the Dart 2 migration.


Support Version 4 of Backend

no longer try to enable microservices manually
requires #117 and #118

:tada: This PR is included in version 6.2.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


"Teams verwalten" as registered user

Describe the bug
When I registered as user who is offering teams and then in my dashboard click on "Teams verwalten" in the "Ich suche" area, I land on a page that says "Ich biete". Also, when I then enter a team, it never appears in my dashboard.
To Reproduce
Steps to reproduce the behavior:

Register as user via 'Ich biete Mitarbeiter:innen'
Go on your dashboard after registering teams
Click on 'Teams verwalten' below 'Ich suche' to register additional teams you are looking for
See error (page says Ich biete in title and text is for Ich biete)
Enter a team and click on "abschließen"
Dashboard does not show the new team neither under "Ich suche" nor under "Ich biete"

Expected behavior
Page needs to say "Ich suche" in title and have respective text. Team needs to appear in my dashboard after I enter it
Screenshots

Click on "Teams verwalten" below "Ich suche"

Page I see incl. team I registered

Dashboard without new team

Device (please complete the following information):

Device: Kaptop
OS: Windows
Browser: Google Chrome

Additional context
Add any other context about the problem here.

Fixed by #182


mainsail: init at 2.4.1

Description of changes
This adds mainsail, a web interface for managing and controlling 3D printers with Klipper. I have tested it with moonraker and nginx.

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] 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/)
23.05 Release Notes (or backporting 22.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

[x] Fits CONTRIBUTING.md.

Thanks @lovesegfault was busy printing.


venial v0.6 plans

Some of the features I worked on last year are not yet on crates.io, e.g. traits.
There are also a few small things I'd like to add, like support for declarative macros.
A v0.6 release in January might be a good option to get back to it... What do you think?
Are there other smaller things people would like to contribute until then? I likely won't have the capacity for bigger things like #41 in the near future, and it doesn't look like there's overwhelming contributor interest right now😉

We'll do a new release. Sorry your features got lost in github limbo.
I could probably use this as an occasion to close #26, #40 and #46.
After that, make a 0.6 release for 6 months, and if nothing major changes by then (I'd be shocked) bump the version number to 1.0.

No worries, I could have pushed for it more as well 🙂
A bump to 1.0 would mean we can no longer change quite a few things, e.g. add fields to structs for not-yet-implemented syntax. At least if a subsequent 2.0 isn't planned soon. Are there enough users at the moment to have the confidence that the API is flexible enough for a while? Although you're right from the point that not that much has changed over quite some time. If you plan to go ahead with it, I'll try to intensify my usage over the next half a year to find missing features 😉
v0.6 might also be the chance to announce it somewhere, maybe get one or the other person to try it out.

I don't think there's a strong reason not to do that.

It makes them impossible to construct outside venial. Which can be quite limiting for testing and creating signatures programmatically, without first going through a parser. There are some ways around (e.g. Default and builder pattern), but those make it again easy to forget some fields or construct invalid objects.

I've addressed all the issues I wanted to address. Once you review the PRs (should be fast enough, but I'll merge on Feb 1 if you don't have the time to review), if you don't have something else you want to tweak, we can do a 0.6 release.

Would be cool if I could get macros done (#50 + a follow-up PR). Should be doable until end of the month.
Are there other commonly-used symbols venial doesn't support yet?

Don't think so.

The only ones missing after your PR are extern crates and extern blocks.

Not anymore 😎 #51

I think we're ready for a 0.6 version. Any other changes you'd like to push before that?

I'd like to update godot-rust to the current venial's master to see if there are any issues, other than that I could add the function you suggested in https://github.com/PoignardAzur/venial/issues/53.
Might also be a good opportunity to align some of the naming with official Rust terms. Mostly thinking of Declaration -> Item but I'll go through the other symbols as well.

From my side I'd be ready for a 0.6 release, what do you think?
If we find a lot of API-breaking changes, we can always consider a 0.7...

I'm ready. You have ownership rights on the crate, so you can make a release with cargo publish. Otherwise, I'll take care of it next week.

Done: https://crates.io/crates/venial/0.6.0


I want to implement feature of selected image can zoom with pinch gesture.

Hello,
Thanks for Implemented such a good library.
I want to implement feature of selected image can zoom with pinch gesture.
Is there any way,
Kindly, suggest me.

hi, you can use GPUImageCropFilte

@timelessg thanks for reply, but did you have any example or demo for this?


Error: Input required and not supplied: git_commit_sha

The documentation said that git_commit_sha is optional but I got an error when not supplying it.
My GitHub workflow is as follows:
name: Create git tag

on:
  workflow_call:
    inputs:
      tag:
        description: "Git tag"
        required: true
        type: string

jobs:
  push-git-tag:
    runs-on: ubuntu-latest
    steps:
      - name: Check out code
        uses: actions/checkout@v2

      # Push tag to GitHub if the version's tag is not tagged
      - name: push-version-to-git-tag
        uses: pkgdeps/git-tag-action@v2
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          github_repo: ${{ github.repository }}
          version: ${{ inputs.tag }}

Results:
Run pkgdeps/git-tag-action@v2
  with:
    github_token: ***
    github_repo: abc/xyz
    version: v.10-beta
Error: Input required and not supplied: git_commit_sha

Thanks for report.
The document is wrong.
The Implementation requires git_commit_sha.
https://github.com/pkgdeps/git-tag-action/blob/9aaf6c4b9adac3084f17e3a16cc8d7f7e86d98ed/src/main.ts#L15-L17


[New Port Request] gzip-hpp

Library name: gzip-hpp
Library description: Gzip header-only C++ library
Source repository URL: https://github.com/mapbox/gzip-hpp
Project homepage (if different from the source repository): None
Anything else that is useful to know when adding (such as optional features the library may have that should be included): None

Port exists.


[FormRecognizer] Support passing in continuation token for next page

Not yet. Agree that a test is needed. Though we would for live tests we would need to train enough number of models (34 or so) to get the second page as the service doesn't support specifying max page size.

I added some mock tests using sinon to cover the paging and continuation scenarios.

Related: #9345


chore: migrate lnd payments db via listpayments

Description
This PR adds a debug function to be run once in our prod environment. The function will use the getPayments method (listpayments api from lnd) to iterate over all our lnd payments and:

populate a new lnPayment object where an object didn't exist before for a given payment hash in the lnpayments collection
skip isCompleteRecord: true objects in lnpayments collection
skip existing objects in lnpayments that are still pending in lnd
update isCompleteRecord: false objects in lnpayments that are no longer pending in lnd

Handling db corruption
Our lnd payments db currently has corrupt payments that we can't query using the getPayments method (see https://github.com/lightningnetwork/lnd/issues/5658).
Our approach with this function is to hijack the getPayments pagination to paginate 1 payment at a time and to skip corrupt records by decrementing the pagination counter.
We insist on using this getPayments method instead of the trackpaymentsv2 api (getPayment method) for our first pass because we can also access path and failure details via the attempts property that is only available via this method.
We will populate the corrupted payments using trackpaymentsv2 in follow-up PR #1041

Open question, should I add telemetry for this function?

Converted to draft to sort out final commit (https://github.com/GaloyMoney/galoy/pull/1040/commits/ccaf2ac29606d8d147ea93ae72d6900a32101330)


Add rules for the Jazzer fuzzer

It appears that there are already BUILD rules for jazzer.  I wonder if it would make sense to integrate them into this repo for consistency.

After trying to use the jazzer BUILD rules, they do not seem to work as an external project (they add dependencies to internal targets without a package name), so they would need to be adapted.

I'm happy to make any changes to Jazzer required to get rules_fuzzing support. Since Jazzer is command-line compatible with libFuzzer and requires no instrumentation at compilation time, maybe all that's needed is to cleanly extract the language independent parts of the library.

I think it would be great to get java_fuzz_test() support. I would be happy to review PRs adding this functionality.
Note that the cc_fuzz_test implementation strived to keep the C++-specific functionality separate from the rest of the fuzzing decorations (e.g., corpus, dictionary support), in anticipation of adding new languages in a clean way, so I expect we'd be able to reuse many of the existing components.


(break): redo IA for docs

This PR starts to propose a new layout for the docs. Note that there are some feature requests that we'll need to prioritize in order to make the docs look visually appealing, but this takes a stab at putting the right content in the right hierarchy.
A preview URL is here
Goals

Professsional: Our docs look professional and reflect our engineering quality
Self-serve docs: We are increasingly seeing users that want to get started using the docs product on their own
Credit for SDK Features:  Our SDKs do a lot but most folks only understand the features once they schedule a call.

Features Required

Horizontal Tab Layout: https://docs.stripe.com/. The horizontal tabs will be SDKs, Docs, Configuration, and Changelog.
Section toggles are towards the end of the page: https://nextra.site/docs/docs-theme. This will allow sections that contain single pages and nested sections will be aligned which will feel more natural.
Emojis next to pages: https://linear.app/docs. This will make our docs jump out more 😅

Emojis next to pages: https://linear.app/docs. This will make our docs jump out more 😅
On the Linear docs, these look more like fontawesome icons than emojis. Flexible on the impl?

Emojis next to pages: https://linear.app/docs. This will make our docs jump out more 😅

On the Linear docs, these look more like fontawesome icons than emojis. Flexible on the impl?

Meant icons*, updated. Yup flexible on the impl

Horizontal Tab Layout: https://docs.stripe.com/. The horizontal tabs will be SDKs, Docs, Configuration, and Changelog.

Stripe has a home page for their dos. So does https://docs.cohere.com.
[Feature Request] Can we add a home page that uses a card explaining an overview of each section?

@abvthecity Linear does a good job showing a sample screenshot of each feature to highlight it. I think we could do this for each page within Writing Content, API References and Custom Components within the documentation for Fern Docs.

Horizontal Tab Layout: https://docs.stripe.com/. The horizontal tabs will be SDKs, Docs, Configuration, and Changelog.

Stripe has a home page for their docs. So does https://docs.cohere.com and https://linear.app/docs. Can we make Introduction -> Home and add it as a horizontal tab?

Yup this sounds good to me -- updated the PR description.


S3 storage doesn't use proxy environment when skipVerify=true

Hello,
I encountered this bug where proxy isn't used when s3 config's skipVerify is true.
Here is the line which is creating a custom http transport instead of forking the default transport which is using the Proxy field:
https://github.com/distribution/distribution/blob/main/registry/storage/driver/s3-aws/s3.go#L563
This is the last commit which is stating that skipVerify interferes with the aws sdk: https://github.com/distribution/distribution/commit/3117e2eb2f5598acd556d104fd8733453bd4b433
Thank you!

@peusebiu can you please explain what do you mean by "proxy environment"?

Should be fixed by https://github.com/distribution/distribution/pull/4190


Include URI and method in DirectAdminException when a text/html body is returned

Looks good, thanks!


Metrics

Codecov Report

Merging #23 into master will increase coverage by 0.32%.
The diff coverage is 37.93%.

@@            Coverage Diff             @@
##           master      #23      +/-   ##
==========================================
+ Coverage   35.71%   36.03%   +0.32%
==========================================
  Files           5        6       +1
  Lines         308      333      +25
==========================================
+ Hits          110      120      +10
- Misses        194      208      +14
- Partials        4        5       +1

Impacted Files
Coverage Δ

primaryHandler.go
47.44% <0%> (-2.95%)
:arrow_down:

main.go
8.54% <16.66%> (-0.23%)
:arrow_down:

metrics.go
71.42% <71.42%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 46af7e2...d8b94a6. Read the comment docs.


Select right .NET framework version for Windows natives

Some of our native modules on Windows uses .NET framework version 2.0.
Problem is that new Windows 10 doesn't shipped with .NET 2.0 and event 3.5 out of the box, so end-users will be prompted to install .NET 3.5 after first attempt to start our module.
On other hand, if we switch our modules to .NET 4.0, they will not work on Windows 7 out of the box, because it shipped with .NET 3.5.
So we need to choose which version of framework to use, or find a way to allow our .NET 2.0 code to be executed on .NET 4.0.

I believe that most of the Win7 users already upgraded to the 4.0, I mean it's 5 years old. Is there any statistics around the net like we have for browsers?

We can specify multiply supported framework versions by using  tag in app.config: https://msdn.microsoft.com/en-us/library/jj152935(v=vs.110).aspx?f=255&MSPPError=-2147217396

Nice, let's use it


(Feature) add back button to switch to previous step before deployment started

Problem:  A user has no supported ability to return to the previous step before deployment. Some use cases:

user decided to reserve more tokens at crowdsale setup step
user decided to change token ticker, name at crowdsale setup step

Solution:  Add back button on the left of continue button for second and third steps of wizard

@vbaranov Some thoughts on this.
As far as I know, the good practice here is to just use the browser history. Even when there are "back" buttons in the UI, I think they just call the window.history.back method. So I guess we can't avoid the issue of properly handling the browser history.
I know I said in another issue that a quick fix was to use react-router to avoid pushing the steps to the history stack, but that was a way of completely avoiding the possibility of going back. If we want that possibility, then taking advantage of the browser's history is the way to go.
There's a good chance that this will be easy to do: maybe just initializing the inputs with the values in the stores is enough. But I wouldn't be surprised if we found issues with the internal consistency of the app state.
If you are OK with this approach, I will give it a try.

Closed by #705. The follow-up issue is #717.


Awake

Microsoft PowerToys version
0.84.0
Installation method
Microsoft Store
Running as admin
Yes
Area(s) with issue?
Awake
Steps to reproduce

Awake icon doesn't show on the system tray most of the time even it is active.

When it is shown, clicking it wont open the option list.

✔ Expected Behavior
No response
❌ Actual Behavior

Awake icon doesn't show on the system tray most of the time even it is active.

When it is shown, clicking it wont open the option list.

Other Software
No response

Issue in Awake


Seaport 1.2

This PR marks the formal "code lock" (barring any unforeseen issues) for Seaport v1.2.

Codecov Report
Base: 100.00% // Head: 99.43% // Decreases project coverage by -0.57% :warning:

Coverage data is based on head (de4c646) compared to base (f402dac).
Patch coverage: 98.70% of modified lines in pull request are covered.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@             Coverage Diff             @@
##              main     #939      +/-   ##
===========================================
- Coverage   100.00%   99.43%   -0.57%
===========================================
  Files           45       47       +2
  Lines         1915     2662     +747
  Branches       321      392      +71
===========================================
+ Hits          1915     2647     +732
- Misses           0       14      +14
- Partials         0        1       +1

Flag
Coverage Δ

foundry
75.45% <83.92%> (?)

production
100.00% <100.00%> (ø)

reference
99.91% <98.61%> (-0.09%)
:arrow_down:

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

Impacted Files
Coverage Δ

contracts/Seaport.sol
100.00% <ø> (ø)

contracts/conduit/ConduitController.sol
100.00% <ø> (ø)

contracts/lib/AmountDeriver.sol
100.00% <ø> (ø)

contracts/lib/TokenTransferrer.sol
100.00% <ø> (ø)

reference/conduit/ReferenceConduitController.sol
100.00% <ø> (ø)

reference/lib/ReferenceAmountDeriver.sol
100.00% <ø> (ø)

reference/lib/ReferenceAssertions.sol
100.00% <ø> (ø)

reference/lib/ReferenceFulfillmentApplier.sol
100.00% <ø> (ø)

...ce/lib/ReferenceGenerateOrderReturndataDecoder.sol
100.00% <ø> (ø)

reference/lib/ReferenceGettersAndDerivers.sol
100.00% <ø> (ø)

... and 67 more

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

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


No Requirements.txt

C:\Email-Crawler-Lead-Generator>pip install -r requirements.txt
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
WARNING: You are using pip version 19.1.1, however version 19.3.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

I am so sorry i forgot to add it. I just added. Please do a git clone. or
pip install requests


feat(client): add "accoutType" to create_azure_storage_config

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.002%) to 86.758%

Totals

Change from base Build<PHONE_NUMBER>:
0.002%

Covered Lines:
6106

Relevant Lines:
7038

💛  - Coveralls