date tick labels reverts to integer after changing size/angle etc

ggplot 0.11.5, python 2.7.12, Anaconda 4.2.0
The first ggplot shows correct x-label as year number
The second ggplot, after setting anything with theme(), makes the x-label an integer. Adding an extra scale_x_date doesn't help either
df=  pd.util.testing.makeTimeDataFrame(3000).reset_index()
dfl = pd.melt(df, 'index')
ggplot(dfl, aes(x = 'index', y = 'value', color = 'variable')) + geom_line()
ggplot(dfl, aes(x = 'index', y = 'value', color = 'variable')) + geom_line() + theme(axis_text_x = element_text(size = 10)) # + scale_x_date()

I have the same issue. Can we please move this up?

Such a roller coaster: coming from R, got hung up trying to use axis.text.x, then got excited when I found out it's simply axis_text_x via SO, but then all my labels turned into numbers, came here to post an issue, and found out this one is pushing a year :(

I really need rotated labels for a current project so I modified ggplot.py to get what I wanted.
Here's the example I'm working with:
from ggplot import *
import pandas

# Dataset
df = pandas.DataFrame({'xVals': ['a', 'b', 'c', 'd', 'e']*2,
                       'yVals': range(10)})

# Plot
g = ggplot(aes(x = 'xVals', y = 'yVals'), data = df) +\
    geom_point() +\
    theme(x_axis_text = element_text(angle=90))

g.show()

This gives x axis labels of [0,1,2,3,4] instead of ['a', 'b', 'c', 'd', 'e'].
It seems like the you should be able to specify the labels in scale_x_discrete(labels=['a', 'b', 'c', 'd', 'e']), but I couldn't get that to work.
Here's the existing ggplot code for setting the xaxis tick labels. Entirely reliant on matplotlib, so I'm guessing something changed in matplotlib that threw ggplot off.
if self.x_axis_text:
            for ax in self._iterate_subplots():
                xticks = format_ticks(ax.get_xticks())
                ax.set_xticklabels(xticks, **self.x_axis_text.kwargs)

Looking in to that, the xticks is just a list of the labels you want and for some reason comes up as [0,1,2,3,4]. So, all we need to do is provide a list of the labels we want. Using the existing text attribute of x_axis_text and a simple if/else statement we can modify the ggplot code to:
if self.x_axis_text:
            for ax in self._iterate_subplots():
                xticks = format_ticks(ax.get_xticks())
                if self.x_axis_text.args[2] == '':
                    ax.set_xticklabels(xticks, **self.x_axis_text.kwargs)
                else:
                    ax.set_xticklabels(self.x_axis_text.args[2], **self.x_axis_text.kwargs)

This generates a plot with rotated character axis labels.
# Plot
correct_Rotated_Labels = ggplot(aes(x = 'xVals', y = 'yVals'), data = df) +\
    geom_point() +\
    theme(x_axis_text = element_text(angle=90, text = ['a', 'b', 'c', 'd', 'e']))

correct_Rotated_Labels.show()

You can still use scale_x_discrete to modify the break points as well. And seeing as scale_x_discrete is just scale_x_continuous under a different name, it should work for continuous scales as well.
# Plot
correct_Rotated_Labels = ggplot(aes(x = 'xVals', y = 'yVals'), data = df) +\
    geom_point() +\
    scale_x_discrete(breaks=['a', 'c', 'd', 'e']) +\
    theme(x_axis_text = element_text(angle=90, text = ['a', 'c', 'd', 'e']))

correct_Rotated_Labels.show()

It's not the most robust solution, but it works for what I'm working on. Hopefully someone else finds it helpful as well!


An issue when I inherit OkHttp dependency from another module

https://github.com/ExerciseBook/okhttp-issue-in-kotlin
Description
Dependency Graph
    OkHttp -> Framework -> Project

In this case, we can assume that framework prepares some commonly used OkHttp operations for every module in the whole project.
What Happened
framework module
In module framework, we can run all the OkHttp operations successfully.
But we can't compile MediaType.parse("plain/text; charset=utf-8") in the main function, because the code of OkHttp blocked it.
    @JvmName("-deprecated_parse")
    @Deprecated(
        message = "moved to extension function",
        replaceWith = ReplaceWith(
            expression = "mediaType.toMediaTypeOrNull()",
            imports = ["okhttp3.MediaType.Companion.toMediaTypeOrNull"]),
        level = DeprecationLevel.ERROR)     // <------- this line
    fun parse(mediaType: String): MediaType? = mediaType.toMediaTypeOrNull()

project module
In module project, we can only run the OkHttp operation which is written by java in framework successfully.
But we can compile MediaType.parse("plain/text; charset=utf-8") in the main function.
Something I guess
In framework module, @Deprecated blocks this kind of usage, but @JvmStatic @JvmName let the function below visible to project.
    @JvmStatic
    @JvmName("parse")
    fun String.toMediaTypeOrNull(): MediaType? {
      return try {
        toMediaType()
      } catch (_: IllegalArgumentException) {
        null
      }
    }

We can use MediaType.parse("plain/text; charset=utf-8") in project module.
Because of the same reason. @JvmStatic @JvmName let okhttp3.MediaType.Companion.toMediaTypeOrNull become okhttp3.MediaType.parse.
We can see an Exception in thread "main" java.lang.NoSuchFieldError: Companion error when running main function of project module.
Conclusion
I am not sure what this issue blame to, but I prefer to change the DepreciationLevel to a lower level to resolve this issue temporary.

It seems that the version of okhttp is downgraded to 3.14.9 in the project module, and the okhttp version that the framework module depends on is 4.9.0, which causes different behaviors between the two modules.
Try this command and you can get the dependencies.
./gradlew project:dependencies
Follow the Gradle doc about version confilct:
https://docs.gradle.org/current/userguide/dependency_resolution.html#sec:version-conflict

Yeah if you use a consistent version of OkHttp you'll be fine.


Pinout doesn't work on a RPi 3B+ (Revision == a020d3)

Pinout gets
Revision           : a020d3
SoC                : BCM2837
RAM                : 1024Mb
Storage            : MicroSD
USB ports          : 4 (excluding power)
Ethernet ports     : 1
Wi-fi              : False
Bluetooth          : False
Camera ports (CSI) : 1
Display ports (DSI): 1

The 3B+ has on-board BT & 5Ghz WiFi.

The 3B+ was added when it was launched but we haven't done a release since then.
Here's the result on the current master branch:
(gpiozero-env) ben@marcy:~/Projects/rpi-distro/python-gpiozero (master) $ pinout -r a020d3
,--------------------------------.
| oooooooooooooooooooo J8     +====
| 1ooooooooooooooooooo        | USB
|                             +====
|      Pi Model 3B+ V1.3          |
|      +----+                 +====
| |D|  |SoC |                 | USB
| |S|  |    |                 +====
| |I|  +----+                    |
|                   |C|     +======
|                   |S|     |   Net
| pwr        |HDMI| |I||A|  +======
`-| |--------|    |----|V|-------'

Revision           : a020d3
SoC                : BCM2837
RAM                : 1024Mb
Storage            : MicroSD
USB ports          : 4 (excluding power)
Ethernet ports     : 1
Wi-fi              : True
Bluetooth          : True
Camera ports (CSI) : 1
Display ports (DSI): 1

J8:
   3V3  (1) (2)  5V
 GPIO2  (3) (4)  5V
 GPIO3  (5) (6)  GND
 GPIO4  (7) (8)  GPIO14
   GND  (9) (10) GPIO15
GPIO17 (11) (12) GPIO18
GPIO27 (13) (14) GND
GPIO22 (15) (16) GPIO23
   3V3 (17) (18) GPIO24
GPIO10 (19) (20) GND
 GPIO9 (21) (22) GPIO25
GPIO11 (23) (24) GPIO8
   GND (25) (26) GPIO7
 GPIO0 (27) (28) GPIO1
 GPIO5 (29) (30) GND
 GPIO6 (31) (32) GPIO12
GPIO13 (33) (34) GND
GPIO19 (35) (36) GPIO16
GPIO26 (37) (38) GPIO20
   GND (39) (40) GPIO21

For further information, please refer to https://pinout.xyz/


On hot reload: "VueCompilerError: Element is missing end tag."

Vue version
3.4.25
Link to minimal reproduction
https://play.vuejs.org/#eNqVVU1v2zAM/SucMCANkDiH7eSlBfoRbBmKdqjbmy+KzdjuZMmQZDdFkP8+yrEdJ/W6TjlEIh8fn0hG2bLLovCqEpnP5hbzQnCLF6EEWvM4qyAS3JjzkEWpVjlOV1q9GNTAI5tVGLIG2sGrabbu0I98FbJTBstX5ijub6kI+AZXY41QFiTP8d/YGp/lyRtdXpbzhPSDb3Q06HirZppFSg5LmjlNg1oLLoeonHyi2m7hkNnZYLcjMgo6LdCMKtQv9ul5oIAp8hj1ieD5p+kUllqjwIpLC6ZKILW5gOn0P+lXKn79UCOrDF8Kpa2rduvawigSyGXnHPkURoZfGp0Jdh/uPTXFoiT2i8E2vFe5dj+f9UafjibSWeGIcOO0QYxrXgoL232Yy+/D6LrO3wgeTfa+QqvC+C3Sra7BPtyvnjGyE5jNYAv1oPkQWJ3JZNKQ7k+7XnSvKEe0btnXgmKulHKgRkC7Gs0+rLkw2HPumn37HXPLz8Z9ao221PI0WamFDyGjz4Hq2zFVrkrqRXzMZtPMeBQM5/vtZ2OVRs9YKreXET7R3GZKelFJYyntsmcyqSqeHm6bNG5R6dZoo/QsZKm1VOrZLFEqEehFKg/Z2LMpyjNScH4BNBmGSuMJlRDcH5N7/M0xXN7cLO++w+OPZQC3y7sFXF8+BYuADAtYBsHT4nAtagWNVTsPoWQTZg0Rr7PEezZK0rtZ35XGUeVFJlDfF046vXFdu0LGhVAvP2ub1WXbDTfCGP0esD+bjbOFjDpPz617aTuf5TpBGnfnXgR3uKF958xVXApCv+N8QCpK6TTuYVeljEl2D1erXeZu9GkYH81iQz8w017KCXXIfdNDRn8e1+9c/SD3i/e1jqOist0f01jz5Q==
Steps to reproduce
npm run serve
uncomment the fetch line // NOTE: This isn't always required, but with this uncommented the error comes on every hot reload I do from this file.
save the file, to trigger a hot reload
What is expected?
A hot reload, followed by the website continuing to work.
What is actually happening?
"VueCompilerError: Element is missing end tag.", requiring me to recompile the project, after it works fine, until the next hot reload.
System Info
System:
    OS: Windows 11 10.0.22631
    CPU: (24) x64 13th Gen Intel(R) Core(TM) i7-13700K
    Memory: 6.19 GB / 31.77 GB
  Binaries:
    Node: 20.9.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.1.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (123.0.2420.97)
    Internet Explorer: 11.0.22621.3527
  npmPackages:
    vue: ^3.2.13 => 3.4.25

Any additional comments?
The code I linked, isn't at fault, this has happened everywhere in the project for weeks now. Some days everything works fine, but mostly it has the described behavior, of a hot reload causing the Element missing end tag error.
I did an "npm update" recently, which fixed it for a while, but now it's back.
Full error I get from the hot reload:
VueCompilerError:
VueCompilerError: Element is missing end tag.
at C:\Dev\ClientApp\src\components\Layout\ContentSpecificLayout\AppSettings\ChromePreview.vue:22:1
19 |
20 |
21 |
|    ^
22 |

UPDATE: It the Console Ninja extension in VS Code that produced the error, whenever I wrote a console.log.


[Gekidou] Update bottom sheet style for title and button

Summary
Update bottom sheet styles for title and button

Title: Heading 600 SemiBold
Button: Body 200 SemiBold

Ticket Link
https://mattermost.atlassian.net/browse/MM-42747
NONE

Building app in separate branch.

Artifact links:
https://output.circle-artifacts.com/output/job/efdf05c4-9964-4fa7-98d5-c6ea45285f91/artifacts/0/tmp/artifacts/Mattermost_Beta.ipa
https://output.circle-artifacts.com/output/job/df4a8176-f081-452c-a3a0-f285c9e6302b/artifacts/0/tmp/artifacts/Mattermost_Beta.apk

Looks good @enahum. Thanks for resolving this. Approving, but could you also add 12px of margin under the title so there is a little more separation between the title and content? I'm specifically noticing this on the servers bottom sheet under 'Your servers'

it currently has 4, do you mean set it to 12 or add 12 and make it 16 ?


Order (queue) inside all effect

Hello everyone.
I want the FIRST to always be executed first, and the rest all how usually. How can I do it?
 In documentation written about parallel execution, but I need to block everything else while the first not finished.

All executes all its effects in parallel - immediately. If u want FIRST to
finish before executing next effects then do this:
yield call(FIRST)
yield all([fork(notFirst), fork(notFirst)])
On Fri, 12 Oct 2018 at 18:08, nuam<EMAIL_ADDRESS>wrote:

Hello everyone.
I want the FIRST to always be executed first, and the rest all how
usually. How can I do it?
 In documentation written about parallel
execution, but I need to block everything else while the first not finished.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/redux-saga/redux-saga/issues/1634, or mute the thread
https://github.com/notifications/unsubscribe-auth/AJWMkq5zJgxzSU-bN0JJJv6VIikHKjs0ks5ukL5tgaJpZM4XZw0f
.

Closing it. If you have further questions, just re-open it.


Tweak the entry point format to match what console_scripts requires

Summary of changes

This is in line with the behaviour of how pip, distlib and other tooling handle scripts. See https://packaging.python.org/en/latest/specifications/entry-points/#use-for-scripts. See also https://github.com/pypa/pip/issues/8632 for context.
Pull Request Checklist

[ ] Changes have tests (not needed)
[ ] News fragment added in changelog.d/.
(See documentation for details)

Bah, this went to the wrong repo.


Overlapping features

fixes #337
Sequence features are now rendered with a notion of sub structure and a user may zoom in and out of said sub structure. See the file linked in issue for experimentation.

I tried this out, and I ran into several issues.  First, you should have add the composite indicator if there are features to zoom into.  You should also disallow zooming into Features that do not have any sub-features.  Right now you get just a dot when you do this.   Also, zooming out from that state throws an exception:
Exception in thread "AWT-EventQueue-0" java.util.EmptyStackException
at java.util.Stack.peek(Stack.java:102)
at edu.utah.ece.async.sboldesigner.sbol.editor.SBOLDesign.canFocusOut(SBOLDesign.java:555)
at edu.utah.ece.async.sboldesigner.sbol.editor.SBOLDesign.updateEnabledActions(SBOLDesign.java:1459)
at edu.utah.ece.async.sboldesigner.sbol.editor.SBOLDesign.fireSelectionChangedEvent(SBOLDesign.java:1447)
at edu.utah.ece.async.sboldesigner.sbol.editor.SBOLDesign.setSelectedElement(SBOLDesign.java:904)
Here are some additional GenBank files to try.
ysy017.zip
ysx004.zip
ysy014.zip
ysx005.zip
ysx007.zip

Hmm okay, I’ll come back to this in the morning before our meeting
tomorrow.
On Thu, Apr 4, 2019 at 4:50 PM cjmyers<EMAIL_ADDRESS>wrote:

I tried this out, and I ran into several issues. First, you should have
add the composite indicator if there are features to zoom into. You should
also disallow zooming into Features that do not have any sub-features.
Right now you get just a dot when you do this. Also, zooming out from that
state throws an exception:
Exception in thread "AWT-EventQueue-0" java.util.EmptyStackException
at java.util.Stack.peek(Stack.java:102)
at
edu.utah.ece.async.sboldesigner.sbol.editor.SBOLDesign.canFocusOut(SBOLDesign.java:555)
at
edu.utah.ece.async.sboldesigner.sbol.editor.SBOLDesign.updateEnabledActions(SBOLDesign.java:1459)
at
edu.utah.ece.async.sboldesigner.sbol.editor.SBOLDesign.fireSelectionChangedEvent(SBOLDesign.java:1447)
at
edu.utah.ece.async.sboldesigner.sbol.editor.SBOLDesign.setSelectedElement(SBOLDesign.java:904)
Here are some additional GenBank files to try.
ysy017.zip
https://github.com/SynBioDex/SBOLDesigner/files/3045728/ysy017.zip
ysx004.zip
https://github.com/SynBioDex/SBOLDesigner/files/3045729/ysx004.zip
ysy014.zip
https://github.com/SynBioDex/SBOLDesigner/files/3045730/ysy014.zip
ysx005.zip
https://github.com/SynBioDex/SBOLDesigner/files/3045731/ysx005.zip
ysx007.zip
https://github.com/SynBioDex/SBOLDesigner/files/3045732/ysx007.zip
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/SynBioDex/SBOLDesigner/pull/356#issuecomment-480091014,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AV89xVaQR_NH4oytuLQlY-QpHZTBK3drks5vdoGrgaJpZM4cWskv
.


Question: Parameters usage

Hello, this is actually a very cool plugin, awesome work.
While reading the readme carefully, i asked me two things regarding parameters:

how should handle the parameters thing. Should I really create parameter templates like kicad_value, kicad_footprint, .. because resistors have their value stored in a parameter template called resistance, capacitors in a parameter template capacitance, ...
how can I define custom footprints for custom components. Is it possible to have them stored in InvenTree too?

So generally some usage examples would be helpful to improve user experience. E.g. I asked me, how do I setup kicad libraries with resistors, there are already a bunch of symbols and foodprints in there, but how do I get them linked to InvenTree? Each resistor may have a different footprint.

Hi @wolflu05,
Thanks for your comments. They are really appreciated!

how should handle the parameters thing. Should I really create parameter templates like kicad_value, kicad_footprint, .. because resistors have their value stored in a parameter template called resistance, capacitors in a parameter template capacitance, ...

Let me get back to you on this one. I might have an idea how to make this more universal.
@SchrodingersGat What do you think about one-to-many rel here? It could look for either of them and use first() occurrence.

how can I define custom footprints for custom components. Is it possible to have them stored in InvenTree too?

HTTP libraries are metadata libraries only. This means you will need matching symbol on footprint libraries. At the moment you would have to manually add it. However, I am already looking at pushing data from KiCad to Inventree. Idea here is: you select a Resistor or so from InvenTree and edit it's properties such footprints, datasheet etc. Then you just hit update or so and it will magically send it to InvenTree.

So generally some usage examples would be helpful to improve user experience. E.g. I asked me, how do I setup kicad libraries with resistors, there are already a bunch of symbols and footprints in there, but how do I get them linked to InvenTree? Each resistor may have a different footprint.

As for now, this would be done manually. I will add some notes to the readme file.

With regards to the "value" field - what if we add a field to the "KiCad Category" table called "value parameter" - which is a link to a specific parameter to use for the "value" field for that category.
For example, you have a category "capacitors", and the "value" parameter is "Capacitance".
So, for a particular part, the order of priority for generating the "value" is:

Look for a parameter value field from the KiCad Catagory table (new field)
Look at the global "value field" (this is a setting against the plugin itself)
Finally, fall back to the part name

@wolflu05 there is now a variable you can set inside the admin. This will allow you set a default template such as Inductance for that category.

Addressed in: https://github.com/afkiwers/inventree_kicad/pull/23

Thanks for that quick reply and implemenration. That is a very good idea to link them to kicad categories.
Will it be possible from the kicad side sometime to use foodprints provided by a http lib then? Or do I need to put custom libraries onto a NAS and connect them on every pc kicad is installed on?

Not with the current HTTP lib implementation; that would be something entirely different, unfortunately. The way I implemented the HTTP lib in KiCad really only supports metadata and relies on physical symbol and footprint libs.
What I would recommend is to add a global library of some sort to KiCad and using git or similar as source control. This way you can share libs very easily.

Ok. Thanks for clarification. Makes sense now.


SEO: get the word "Provider" into our different provider's page listing

As suggested by 97thFloor we should have the word provider in the page titles of our provider doc pages. To do this we will have to add "display titles" to the front matter of our provider content pages.

Is this still something we want to do?  What exactly is the suggestion?

@lukehoban The suggestion from 97th floor is the get the word "Provider" into the page titles of the provider docs landing pages. For example, the page title for the OpenStack provider is OpenStack | Pulumi and the suggestion is that it should be OpenStack Provider | Pulumi. This issue at hand is that we use the title value from the front matter in multiple places, i.e. we define the text value for the page title and the text that appears on the right-hand nav from the same field. To just update the page title we need to add an additional field to the front matter so that the page title and the text displayed on the page can diverge. Hopefully, that makes sense, otherwise, we can jump on a quick call and I can show you what I'm talking about.

For example, the page title for the OpenStack provider is OpenStack | Pulumi and the suggestion is that it should be OpenStack Provider | Pulumi.

Got it.  That seems fine then. I assume there is some relatively easy way to make that happen.


Allow wildcards inside of strings

Let's say that a template needs to match a string that starts with foo, and then has a number. We could model the template using wildcards like this:
"property": "foo [[number]]"

This allows us to go from wet to dry, but not from dry to wet, since there is nothing to replace [[number]] with.

This raises an interesting question: should we support "named" wildcards? For example:
"property": "foo [[number:bar]]"

This means that the content of the wildcard maps to the "bar" property. This notation also simplifies:
{
  "network_config": {
    "type": "ini",
    "location": {
      "parent": "config_json",
      "property": [ "files", "network/network.config" ]
    },
    "properties": [
      {
        "definition": {
          "network": {
            "ssid": {
              "type": [ "string" ],
              "mapping": [
                [ "service_home_wifi", "Name" ]
              ]
            },
            "key": {
              "type": [ "string" ],
              "mapping": [
                [ "service_home_wifi", "Passphrase" ]
              ]
            },
            "type": {
              "mapping": [
                {
                  "value": "ethernet",
                  "template": {
                    "service_home_ethernet": {
                      "Type": "ethernet",
                      "Nameservers": "<IP_ADDRESS>,<IP_ADDRESS>"
                    }
                  }
                },
                {
                  "value": "wifi",
                  "template": {
                    "service_home_ethernet": {
                      "Type": "ethernet",
                      "Nameservers": "<IP_ADDRESS>,<IP_ADDRESS>"
                    },
                    "service_home_wifi": {
                      "Hidden": true,
                      "Type": "wifi",
                      "Name": "[[string]]",
                      "Passphrase": "[[string]]",
                      "Nameservers": "<IP_ADDRESS>,<IP_ADDRESS>"
                    }
                  }
                }
              ]
            }
          }
        }
      }
    ]
  },
}

to:
{
  "network_config": {
    "type": "ini",
    "location": {
      "parent": "config_json",
      "property": [ "files", "network/network.config" ]
    },
    "properties": [
      {
        "definition": {
          "network": {
            "type": {
              "mapping": [
                {
                  "value": "ethernet",
                  "template": {
                    "service_home_ethernet": {
                      "Type": "ethernet",
                      "Nameservers": "<IP_ADDRESS>,<IP_ADDRESS>"
                    }
                  }
                },
                {
                  "value": "wifi",
                  "template": {
                    "service_home_ethernet": {
                      "Type": "ethernet",
                      "Nameservers": "<IP_ADDRESS>,<IP_ADDRESS>"
                    },
                    "service_home_wifi": {
                      "Hidden": true,
                      "Type": "wifi",
                      "Name": "[[string:network.ssid]]",
                      "Passphrase": "[[string.network.key]]",
                      "Nameservers": "<IP_ADDRESS>,<IP_ADDRESS>"
                    }
                  }
                }
              ]
            }
          }
        }
      }
    ]
  },
}

Even though now we have the same "period-in-string" issue, where in:
"Name": "[[string:network.ssid]]",

the period could be part of the name of a property instead of a delimiter.

Hm, although in this very particular case, we have control over how the dry properties should be called, so we can safely assume that periods are property separators.

Closing as obsolote.


Giving error: "Symbol is undefined" at line "throw _iteratorError3" in Internet Explorer.

I am using IE 11.

for (let tag of tags) { this.output.push('<${tag}${attrString}>');  } in stateToHTML.js on line 270,273
is compiled into :
var _iteratorNormalCompletion3 = true;
      var _didIteratorError3 = false;
      var _iteratorError3 = undefined;

      try {
        for (var _iterator3 = tags[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
          var tag = _step3.value;

          this.output.push('<' + tag + attrString + '>');
        }
      } catch (err) {
        _didIteratorError3 = true;
        _iteratorError3 = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion3 && _iterator3.return) {
            _iterator3.return();
          }
        } finally {
          if (_didIteratorError3) {
            throw _iteratorError3;
          }
        }
      }

where tags[Symbol.iterator](), is not supported by IE

Hi @janvanhelvoort. Thanks for the detailed description of the problem.
This project is written using ES6 which includes some newer runtime features which not all browsers support. In order to use this in older browsers you can include a polyfill such as core-js.


Revert "[ruby] disable ruby fork tests (#34443)"

This reverts commit 74048f118b36bcdf0e680be7ddc28bcad02a71bf.
Looks like https://github.com/grpc/grpc/issues/34442 has been fixed by https://github.com/grpc/grpc/pull/33733
FYI @casperisfine

🎉

Test failures revealed https://github.com/grpc/grpc/issues/34442 is not completely fixed. Leaving this open.


Bilstm_attention model got bad performance on published evaluation tasks about classification

Hi all,
I have evaluated all the classification models of deepavlov on published evaluation dataset. Bilstm_attention and Bigru_attention model got very bad performance (f1 score less than 20%) compared with other models.
Anyone encountered same problem? Please help me if you met the same problem with me.
Thanks so much !
Bests,
Connie Tong

Hi dilyararimovna,
Thanks for the quick reply. The evaluation dataset I used is NLPCC News Headline Categorization dataset (The conference on Natural Language Processing and Chinese Computing).  The training set is about 16,000, the dev set is about 30,000 and the test set is 5,000.
Did you try to tune network parameters? -> Yes, I tuned network parameters.
Bests,
Connie

Hi dilyararimovna,
There is another issue. Firstly, when I trained these two models, model can not saved during training procedure. I fixed it by modifying keras_classifier_model.py file:
checkpoint = callbacks.ModelCheckpoint(file_name, monitor=score_name, mode='max', save_best_only=True, save_weights_only=True, verbose=1)
The save model problem was solved. Then I met the bad performance of classification.

I supposed there should not be a problem in saving model if other network configurations were saved successfully.
What was the error when saving model in the beginnning?

Epoch 1/100
2433/2433 [==============================] - 16615s 7s/step - loss: 1.4374 - multilabel_f1: nan - val_loss: 0.9758 - val_multilabel_f1: 0.6808
Epoch 00001: val_multilabel_f1 improved from -inf to 0.68078, saving model to /home/tongyu/vnf_evaluation/vivo_nlp_framework/models/classifiers/ch_anti_cls_bilstm_attention_tencent_char_test/model-01-nan-0.6808.h5
Traceback (most recent call last):
File "main_bilstm_attention.py", line 195, in
main()
File "main_bilstm_attention.py", line 97, in main
start_epoch_num=start_epoch_num)
File "/home/tongyu/vnf_evaluation/vivo_nlp_framework/vnf/core/commands/train.py", line 310, in train_evaluate_model_from_config
model = fit_chainer(config, iterator, debug=debug, debugger_port=debugger_port)
File "/home/tongyu/vnf_evaluation/vivo_nlp_framework/vnf/core/commands/train.py", line 143, in fit_chainer
component.fit_batches(data_train, data_valid, config['train'])
File "/home/tongyu/vnf_evaluation/vivo_nlp_framework/deeppavlov/core/models/tf_backend.py", line 39, in _wrapped
return func(*args, **kwargs)
File "/home/tongyu/vnf_evaluation/vivo_nlp_framework/vnf/models/classifiers/keras_classifier_model.py", line 260, in fit_batches
self.fit_model(self.model, data, args)
File "/home/tongyu/vnf_evaluation/vivo_nlp_framework/deeppavlov/core/models/tf_backend.py", line 39, in _wrapped
return func(*args, **kwargs)
File "/home/tongyu/vnf_evaluation/vivo_nlp_framework/vnf/models/classifiers/keras_classifier_model.py", line 286, in fit_model
callbacks=self.gen_callbacks(args['batch_size'], args["validation_patience"], id))
File "/home/tongyu/.local/lib/python3.6/site-packages/keras/legacy/interfaces.py", line 91, in wrapper
return func(*args, **kwargs)
File "/home/tongyu/.local/lib/python3.6/site-packages/keras/engine/training.py", line 1426, in fit_generator
initial_epoch=initial_epoch)
File "/home/tongyu/.local/lib/python3.6/site-packages/keras/engine/training_generator.py", line 229, in fit_generator
callbacks.on_epoch_end(epoch, epoch_logs)
File "/home/tongyu/.local/lib/python3.6/site-packages/keras/callbacks.py", line 77, in on_epoch_end
callback.on_epoch_end(epoch, logs)
File "/home/tongyu/.local/lib/python3.6/site-packages/keras/callbacks.py", line 444, in on_epoch_end
self.model.save(filepath, overwrite=True)
File "/home/tongyu/.local/lib/python3.6/site-packages/keras/engine/network.py", line 1104, in save
save_model(self, filepath, overwrite, include_optimizer)
File "/home/tongyu/.local/lib/python3.6/site-packages/keras/engine/saving.py", line 117, in save_model
'config': model.get_config()
File "/home/tongyu/.local/lib/python3.6/site-packages/keras/engine/network.py", line 942, in get_config
return copy.deepcopy(config)
File "/usr/bin/anaconda3/envs/py36/lib/python3.6/copy.py", line 150, in deepcopy
y = copier(x, memo)
File "/usr/bin/anaconda3/envs/py36/lib/python3.6/copy.py", line 240, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/usr/bin/anaconda3/envs/py36/lib/python3.6/copy.py", line 150, in deepcopy
y = copier(x, memo)
File "/usr/bin/anaconda3/envs/py36/lib/python3.6/copy.py", line 215, in _deepcopy_list
append(deepcopy(a, memo))
File "/usr/bin/anaconda3/envs/py36/lib/python3.6/copy.py", line 150, in deepcopy
y = copier(x, memo)
File "/usr/bin/anaconda3/envs/py36/lib/python3.6/copy.py", line 240, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/usr/bin/anaconda3/envs/py36/lib/python3.6/copy.py", line 150, in deepcopy
y = copier(x, memo)
File "/usr/bin/anaconda3/envs/py36/lib/python3.6/copy.py", line 240, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/usr/bin/anaconda3/envs/py36/lib/python3.6/copy.py", line 150, in deepcopy
y = copier(x, memo)
File "/usr/bin/anaconda3/envs/py36/lib/python3.6/copy.py", line 220, in _deepcopy_tuple
y = [deepcopy(a, memo) for a in x]
File "/usr/bin/anaconda3/envs/py36/lib/python3.6/copy.py", line 220, in
y = [deepcopy(a, memo) for a in x]
File "/usr/bin/anaconda3/envs/py36/lib/python3.6/copy.py", line 150, in deepcopy
y = copier(x, memo)
File "/usr/bin/anaconda3/envs/py36/lib/python3.6/copy.py", line 220, in _deepcopy_tuple
y = [deepcopy(a, memo) for a in x]
File "/usr/bin/anaconda3/envs/py36/lib/python3.6/copy.py", line 220, in
y = [deepcopy(a, memo) for a in x]
File "/usr/bin/anaconda3/envs/py36/lib/python3.6/copy.py", line 180, in deepcopy
y = _reconstruct(x, memo, *rv)
File "/usr/bin/anaconda3/envs/py36/lib/python3.6/copy.py", line 280, in _reconstruct
state = deepcopy(state, memo)
File "/usr/bin/anaconda3/envs/py36/lib/python3.6/copy.py", line 150, in deepcopy
y = copier(x, memo)
File "/usr/bin/anaconda3/envs/py36/lib/python3.6/copy.py", line 240, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/usr/bin/anaconda3/envs/py36/lib/python3.6/copy.py", line 180, in deepcopy
y = _reconstruct(x, memo, *rv)
File "/usr/bin/anaconda3/envs/py36/lib/python3.6/copy.py", line 280, in _reconstruct
state = deepcopy(state, memo)
File "/usr/bin/anaconda3/envs/py36/lib/python3.6/copy.py", line 150, in deepcopy
y = copier(x, memo)
File "/usr/bin/anaconda3/envs/py36/lib/python3.6/copy.py", line 240, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/usr/bin/anaconda3/envs/py36/lib/python3.6/copy.py", line 180, in deepcopy
y = _reconstruct(x, memo, *rv)
File "/usr/bin/anaconda3/envs/py36/lib/python3.6/copy.py", line 280, in _reconstruct
state = deepcopy(state, memo)
File "/usr/bin/anaconda3/envs/py36/lib/python3.6/copy.py", line 150, in deepcopy
y = copier(x, memo)
File "/usr/bin/anaconda3/envs/py36/lib/python3.6/copy.py", line 240, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/usr/bin/anaconda3/envs/py36/lib/python3.6/copy.py", line 169, in deepcopy
rv = reductor(4)
TypeError: can't pickle _thread.RLock objects
(py36)

Hi dilyararimovna,
When the first epoch stops, I meet the save model problem as follows:
The error is "TypeError: can't pickle _thread.RLock objects"

hi dilyararimovna,
Thanks so much. Yes, I also noticed that this error was caused by modifying the code.  Thanks again for your time.

Connie, you are welcome!


access token is no longer supported

switch to API key instead

(Jove Github Bot) added it to the current sprint.

(Jove Github Bot) moved this ticket out of the GitHub project(up to 1200 tickets for one project).


Gentype: Bring back shims documentation

This is based on the old shims docs but with code examples directly put into the docs.

@cometkim do you think it's ok to merge?

Yep! LGTM


There is a page overwriting problem in paging, and the page does not automatically change

Describe the bug
I ran into the same problem with vue.2.7.14, where the previous page exceeded the part hidden behind the next page.
github：https://github.com/1738736002/vue2-demo
Corresponding to page 7 after the project started.
I have another question, why does my 'Hellowrod' component actually have a lot of content, but only render a page of content, and not automatically create a new page.

Hi!
Thanks for your interest on the library.
I can't install your template project, because it needs Python configured to build some dependency, and I don't have time to get into this... Please make a minimal example for me, if possible compiled to run directly on the browser. The best way to do this would be to fork my project and just change the document content in Demo.vue by the one which causes issues, then run npm run build to compile in the docs folder and configure Github Pages to run inside the docs folder.
For your second question, the answer is this library doesn't support multiple pages split on Vue.js templates, simply because I can't modify the content managed dynamically by Vue, otherwise it brakes it. So you have to choose between plain HTML content which splits between multiple pages, or single template pages managed by Vue.js.
I hope it is clearer for you.
Please reopen this issue if you make me a simple demo that I can run without install.


Style improvements

Hi! I finally found your extension here on GitHub after searching a bit.
I'd like to send a couple style improvements and add minor functionality (for example a small button to have more information about an extension). Would you be open to PRs? Can you push the latest version to GitHub?

sure, thank you very much

The latest version is already here


Fixes semantic api not looking up within on fail clause env

Purpose

Fixes showing suggestions within on fail clause

Fixes #28189
Approach

Describe how you are implementing the solutions along with the design details.

Samples

Provide high-level details about the samples related to this feature.

Remarks

List any other known issues, related PRs, TODO items, or any other notes related to the PR.

Check List

[x] Read the Contributing Guide
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[x] Added necessary tests

[x] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

@pcnfernando The commit messages and PR heading is not according to the best practices. Please correct them.

[1] https://github.com/ballerina-platform/ballerina-lang/blob/master/CONTRIBUTING.md#submit-your-contribution


Added support for Nginx

added override on getallheaders() to support non apache use cases.

Thanks a lot for your contribution! I'll merge it now.

Forgot that I needed to merge it before closing, sorry!


[BUG] Password Special Character Processing Error

Before submitting a bug report...

[X] This bug wasn't already reported.
(I have checked every bug report on GitHub)

Title

[X] The title is no longer "[BUG] Title" and I edited it with the right error name.

Describe the bug
The following line is currently incorrect.
https://github.com/klept0/MS-Rewards-Farmer/blob/859f6f10fe5a735d7c708407aaaeb9a4854c703d/src/login.py#L104
My password contains \ and \\ is placed in the password field due to the special character handling described above, causing a login failure. In my case, the \ replacement needs to be removed, not sure about " though.
Copy and paste your error
NA
Screenshots
NA
Value of dashboard variable
NA

Confirmed that " also introduces an extra character in the password field, and that the string length is 1 longer than expected.
Line 104 should be removed, I think.
https://github.com/klept0/MS-Rewards-Farmer/blob/859f6f10fe5a735d7c708407aaaeb9a4854c703d/src/login.py#L104

Thanks, works well in my branch.


Add Gold price prediction

Dataset Link
Dataset
Description
Prediction of Gold Price based on various factors.

Can I work on this issue

I would like pick up this issue, can you assign it me? 😄

Sure 👍

@deephunt3r Hi, I tried doing this task, but I guess there's more for me to learn before proceeding with it. Therefore, I unassigned myself. Thanks for the opportunity though.

I would like pick up this issue, can you assign it me again? 😄

Just a few more tests and I'm almost finished 😬


cleanup(build): check targets instead of USE_BUNDLED_foo

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area API-version

/area build

/area CI

/area driver-kmod

/area driver-bpf

/area driver-modern-bpf

/area libscap-engine-bpf

/area libscap-engine-gvisor

/area libscap-engine-kmod

/area libscap-engine-modern-bpf

/area libscap-engine-nodriver

/area libscap-engine-noop

/area libscap-engine-source-plugin

/area libscap-engine-savefile

/area libscap-engine-udig

/area libscap

/area libpman

/area libsinsp

/area tests

/area proposals

Does this PR require a change in the driver versions?

/version driver-API-version-major

/version driver-API-version-minor

/version driver-API-version-patch

/version driver-SCHEMA-version-major

/version driver-SCHEMA-version-minor

/version driver-SCHEMA-version-patch

What this PR does / why we need it:
Whenever we add dependencies to cmake targets coming from bundled dependencies, the USE_BUNDLED_foo check (with potential extra conditions) is a proxy for what we really need, i.e. "is target foo defined in cmake" (we can't depend on it otherwise in any case), so I believe directly checking for cmake targets conveys the idea better.
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
I did not touch all the dependencies on zlib (even though the vast majority of our sublibraries don't care about it) because we include scap_zlib.h (which then includes zlib.h) in scap-int.h. This means effectively everything depends on zlib and should be cleaned up sooner or later.
Does this PR introduce a user-facing change?:

NONE

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: gnosek
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [gnosek]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: FedeDP, gnosek
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [FedeDP,gnosek]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

LGTM label has been added.  Git tree hash: 87ebaf810575f4e377cd6bf0938669b77cc7ab3b

/milestone 0.11.0

This is a good point! what about a solution like that? https://github.com/falcosecurity/libs/pull/791
In this way, we could remove all if(USE_BUNDLED_foo ) at all

Or even better after each Cmake file, we can put something like:
if(NOT TARGET foo)
   add_custom_target(libelf)
endif()

WDYT?

New changes are detected. LGTM label has been removed.

There are some changes that will break when zlib headers/libs cannot be found on the system:
Needed to avoid:

In file included from /libs/userspace/libscap/scap_savefile_api.h:24,
from /libs/userspace/libscap/scap.h:21,
from /libs/userspace/libscap/scap_engine_util.c:20:
/libs/userspace/libscap/scap_zlib.h:23:10: fatal error: zlib.h: No such file or directory
23 | #include <zlib.h>
|          ^~~~~~~~
compilation terminated.
make[3]: *** [libscap/CMakeFiles/scap_engine_util.dir/build.make:76: libscap/CMakeFiles/scap_engine_util.dir/scap_engine_util.c.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from /libs/userspace/libscap/scap_savefile_api.h:24,
from /libs/userspace/libscap/scap.h:21,
from /libs/userspace/libscap/engine/noop/noop.c:29:
/libs/userspace/libscap/scap_zlib.h:23:10: fatal error: zlib.h: No such file or directory
23 | #include <zlib.h>
|          ^~~~~~~~
compilation terminated.
make[3]: *** [libscap/engine/noop/CMakeFiles/scap_engine_noop.dir/build.make:76: libscap/engine/noop/CMakeFiles/scap_engine_noop.dir/noop.c.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:1322: libscap/engine/noop/CMakeFiles/scap_engine_noop.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
In file included from /libs/userspace/libscap/scap_savefile_api.h:24,
from /libs/userspace/libscap/scap.h:21,
from /libs/userspace/libscap/ringbuffer/ringbuffer.c:23:
/libs/userspace/libscap/scap_zlib.h:23:10: fatal error: zlib.h: No such file or directory
23 | #include <zlib.h>
|          ^~~~~~~~
compilation terminated.
make[3]: *** [libscap/CMakeFiles/scap_engine_util.dir/build.make:104: libscap/CMakeFiles/scap_engine_util.dir/ringbuffer/ringbuffer.c.o] Error 1
In file included from /libs/userspace/libscap/ringbuffer/../scap_savefile_api.h:24,
from /libs/userspace/libscap/ringbuffer/../scap.h:21,
from /libs/userspace/libscap/ringbuffer/devset.c:8:
/libs/userspace/libscap/ringbuffer/../scap_zlib.h:23:10: fatal error: zlib.h: No such file or directory
23 | #include <zlib.h>
|          ^~~~~~~~
compilation terminated.
Errors.

To quickly repro, just spawn an ubuntu:22.04 container, install build-essential cmake git, fetch this branch and try a make scap-open -j8.

Ugh. 🤦 I forgot scap.h includes scap_savefile_api.h :<
@FedeDP, since you apparently have infinite patience for me breaking this over and over, it's your call. Do we:

stop including scap_savefile_api.h in scap.h (let the consumers include it explicitly), or
just give up and keep everything depending on zlib

stop including scap_savefile_api.h in scap.h (let the consumers include it explicitly), or

Might be a good idea, indeed! The less we include in scap.h the less inter-deps thus quicker compilation!

It's working now, thank you!

LGTM label has been added.  Git tree hash: 5828945bf8d34ac542c07f96eca69556c43224b9

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: FedeDP, gnosek
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [FedeDP,gnosek]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

New changes are detected. LGTM label has been removed.

I still rebased on top of the arm64 fix ;)

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: FedeDP, gnosek
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [FedeDP,gnosek]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

LGTM label has been added.  Git tree hash: e4a26cffbb7fb23df5a58a93577171a7cb3ebca4

/hold

New changes are detected. LGTM label has been removed.

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: FedeDP, gnosek
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [FedeDP,gnosek]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: Andreagit97, FedeDP, gnosek
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [Andreagit97,FedeDP,gnosek]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/unhold


vaadin-sso-kit 1.0.0

The provided license key does not allow usage of vaadin-sso-kit 1.0.0. Check that the license has not expired and that the product you are trying to use does not require another type of subscription.

Validating license for vaadin-sso-kit 1.0.0
2023-06-08 16:12:54.907  INFO 43957 --- [           main] c.v.pro.licensechecker.LicenseChecker    : vaadin-sso-kit:1.0.0 is a ultimate-products-202210 or sso-kit component and you have a Legacy Trial subscription.
Go to https://vaadin.com/pricing for information about upgrading your subscription or contact<EMAIL_ADDRESS>to discuss your options in person.


TypeError in sqldata.py", line 885, in : None > 0

I often run coverage on cpython test files in branches of main before merging.  Today I upgraded from an old version.
A. Install coverage-6.2-cp311-cp311-win_amd64.whl into 3.11.0a4.  (Thanks for 3.11 version!)
B. Copy site-packages/coverage next to my local repository.
I have run the following .bat commands for years:
setlocal
set py=f:\dev\3x\pcbuild\amd64\python_d.exe
set src=idlelib.%1
if "%2" EQU "" set tst=f:/dev/3x/Lib/idlelib/idle_test/test_%1.py
if "%2" NEQ "" set tst=f:/dev/3x/Lib/idlelib/idle_test/test_%2.py

%py% -m coverage run --pylib --source=%src% %tst%
%py% -m coverage report --show-missing
%py% -m coverage html
start htmlcov\3x_Lib_idlelib_%1_py.html

Today, with Python 3.11.0a4+ (main, Jan 23 2022, 22:42:32) [MSC v.1900 64 bit (AMD64)], all 5idlelib/idle_test/test_xyz files I tried, such as test_run on main branch, still run and pass, but coverage html (as determined by commenting out lines) results in the following:
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "F:\dev\coverage\__main__.py", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "F:\dev\coverage\cmdline.py", line 881, in main
    status = CoverageScript().command_line(argv)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "F:\dev\coverage\cmdline.py", line 627, in command_line
    total = self.coverage.report(
            ^^^^^^^^^^^^^^^^^^^^^
  File "f:\dev\3x\Lib\contextlib.py", line 155, in __exit__
    self.gen.throw(typ, value, traceback)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "F:\dev\coverage\control.py", line 58, in override_config
    yield
    ^^^^^
  File "F:\dev\coverage\control.py", line 934, in report
    return reporter.report(morfs, outfile=file)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "F:\dev\coverage\summary.py", line 43, in report
    for fr, analysis in get_analysis_to_report(self.coverage, morfs):
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "F:\dev\coverage\report.py", line 72, in get_analysis_to_report
    analysis = coverage._analyze(fr)
               ^^^^^^^^^^^^^^^^^^^^^
  File "F:\dev\coverage\control.py", line 829, in _analyze
    return Analysis(data, self.config.precision, it, self._file_mapper)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "F:\dev\coverage\results.py", line 24, in __init__
    executed = self.data.lines(self.filename) or []
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "F:\dev\coverage\sqldata.py", line 885, in lines
    return list({l for l in all_lines if l > 0})
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "F:\dev\coverage\sqldata.py", line 885, in <setcomp>
    return list({l for l in all_lines if l > 0})
                                         ^^^^^
TypeError: '>' not supported between instances of 'NoneType' and 'int'

You'll need to use the latest code from GitHub if you want the latest 3.11 support.  A few things have changed since alpha-3 and 6.2.


[feature] report messages to admin notification room

would be helpful to allow community members to report messages to community administrators. there's already a notification room configuration in the plugin for member join events, it could be leveraged for report notifications.
initial thinking is emoji reaction to report messages, and then the notification would include a link to the message event for admins to follow and make judgement about. this avoids using server reports, which is a clunky system, and enables community admins regardless of what server they're on.
could allow for a bot command for deleting the reported message, but could be clunky going back and forth between rooms... would need to consider how to make that easier. maybe another emoji, restricted to admins, that triggers a message deletion by the bot. but need to think about it. in theory, if rooms are created with the createroom command, admins should already have the appropriate power level to delete messages.

realizing this can be easily accomplished with another plugin (https://github.com/ajkessel/reacjibot/tree/main). no strong need to implement in this plugin at this time.


Add some more doc about pySpelling installation

As a pull request owner and reviewers, I checked that:

[X] Appropriate documentation exists and/or is up-to-date

recheck


Add some unit tests to S3AFileSystem

What changes are proposed in this pull request?
Add some unit test to S3AFileSystem. The 2 files are under the directory "alluxio/underfs/s3a/src/test" and named S3AInputStreamTest and S3AUnderFileSystemFactoryTest.
Why are the changes needed?
Added unit test can improve the test coverage of this part of code
Does this PR introduce any user facing changes?
No, it is unit test and it will not change the features.

alluxio-bot, merge this please


Translation de-DE

Please let Stefan proofread  because of typos & expression. Thx, Alen

These translations have been used. Thank you Alen!


Up/Down navigation should be blocked when navigation is set to horizontal

Changing slides to new/previous should be blocked on scrolling up/down when navigation is set to "horizontal".

You can just use the option navigateOnScroll. Set it to 0 or false to disable it: https://github.com/webslides/WebSlides/wiki/Core-API#options


fix up the signup modal for voting

What's this PR do?

Added the voter reg form copy into the signup modal when it displays the voter reg form
Put the share info below the voter reg form copy, but above the form on this modal (just like in the regular voter reg one)
On the competitions signup modal, put the share info at the bottom

How should this be reviewed?
Make sure everything is in the order listed above.
Relevant tickets
Fixes #6937
Checklist

[ ] Tested on staging.

cc: @ngjo


Getting train, eval, dev, working so long as file columns fully overlap with task names

This would take some space to fully explain and more to replicate but I had an issue, that when I tried to run prediction on a file that had a Conmod column, for a model that had been trained for Conmod, that the new file confused the huggingface eval_loop due to it containing a new column that I added.  Running it with --no_cuda in particular seemed to cause an issue with computing loss.
I can maybe look into this more next week, but I think so long as the arguments provided to task_name are in the relevant files (along with the text column) for training, evaluation, or prediction, I think the other columns need not overlap.
If this ends up being really tough to do though in a pinch I think I can get away with using cut in bash to do column reorg, but sometimes that requires padding by randomly filling new columns

On additional examination, this might be something I did incorrectly in dev-error-analysis.  If it's there will try to fix before final PR

Checked this a while ago but forgot to update, it's a separate issue, will look more into it given the time

if you rediscover this issue just create a new one, will close this one out for clarity.


Docs WG Agenda/Minutes -- February 2022

Fixes: #15
Note: I know this'll be hard for some of us, but I think it's not worth it to spend too much energy on formatting/proofreading the meeting notes. There are much better ways to spend time & energy :)

Thanks for the reviews!


Swap to use pympler asizeof over objsize due to license issue (fixes #23096)

objsize is GPL v3 while pympler is ASF licensed.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

R: @tvalentyn
CC: @lostluck

CC: @ryanthompson591

Run Python PreCommit

Run Python PreCommit


How to Enable the QGIS Official Plugin Repository in the 3.4.1 Version?

I am using QGIS version 3.4.1.
Recently, I cannot install new plugins. I have looked in the plugin setting. It seems that the link is blocked. The address is "https://plugins.qgis.org/plugins/plugins.xml" and it is directed to the QGIS Python Plugins website.
In the log Messages I have this warning "WARNING: Failed to load C:/PROGRA~1/QGIS3~1.4/apps/qgis/plugins/grassplugin7.dll (Reason: Cannot load library C".
I have a proxy from my university, disabling the automatic configuration script did not solve the problem.

I'm not sure that the two parts of your report are related, i mean I don't think that the grass plugin is provided through the plugin repository.
For the first part of your report, here's what my settings look like (needed nothing particular to do) and it works:

Anyway, may be better to raise your issue(s) in the qgis-user list or the qgis bug tracker. This repository concerns issues about QGIS website.

Thanks
ניצן מתן
0547879411
On Sat, 24 Nov 2018 at 19:45, Harrissou Sant-anna<EMAIL_ADDRESS>wrote:

I'm not sure that the two parts of your report are related, i mean I don't
think that the grass plugin is provided through the plugin repository.
For the first part of your report, here's what my settings look like
(needed nothing particular to do) and it works:
[image: image]
https://user-images.githubusercontent.com/7983394/48971316-1a8b0580-f018-11e8-96a6-74e28b7bc5fc.png
Anyway, may be better to raise your issue(s) in the qgis-user list or the qgis
bug tracker https://issues.qgis.org. This repository concerns issues
about QGIS website https://qgis.org.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/qgis/QGIS-Website/issues/585#issuecomment-441383945,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APNCyLs0JCANNYZFpSPh8MwgVm8WV7prks5uyYWkgaJpZM4YvKvY
.


Distance to Empty : Unable to adjust value

The "Distance to Empty" entity does not display the correct value and cannot be adjusted using the "odometerMultiplier" parameter.
For example, the real value should be 40km, but "Distance to Empty" shows me 40000km.
I therefore need to set "odometerMultiplier" to 0.001 to obtain 40km (40000 x 0.001 = 40).
Problem : It seems impossible to set a comma value in VolvoToMqtt configuration.
odometerMultiplier: 0**.001  or odometerMultiplier: 0,**001
Thank you

As said before, please enable debug and provide some logs!

Volvo optimized their API. Would you please check if this issue persists @jesuisla91 ?


How to use together with other token validation middleware?

Hi,
I'm sorry for the dumb question. I'm trying to make my API valid the token issued by IdentityServer3(provided by 3rd party) and the JWT from Azure AD, and the token from MSA, and the token issued by the API's own simple OAuth Authorization Server. So I'm like
app.UseOAuthAuthorizationServer(...)
app.UseMicrosoftAccountAuthentication(...)
app.UseWindowsAzureActiveDirectoryBearerAuthentication(...)
app.UseIdentityServerBearerTokenAuthentication(...)
The token validation was working until I added the last line above. It looks like the Authorization part in http request header is always caught by the IdentityServer3.AccessTokenValidation MW .
The token issued by local AS is no longer valid. I got the error 500 with following message when I provide the bearer token issued by local AS:
   InvalidOperationException: Sequence contains more than one element]
   System.Linq.Enumerable.SingleOrDefault(IEnumerable`1 source) +516
   Microsoft.Owin.Security.<AuthenticateAsync>d__8.MoveNext() +279
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +181
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +69
   IdentityServer3.AccessTokenValidation.<Invoke>d__0.MoveNext() in c:\local\identity\server3\AccessTokenValidation\source\AccessTokenValidation\Plumbing\ScopeRequirementMiddleware.cs:60
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +181
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +69
   Microsoft.Owin.Security.Infrastructure.<Invoke>d__0.MoveNext() +774
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +181
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +69
   IdentityServer3.AccessTokenValidation.<Invoke>d__8.MoveNext() in c:\local\identity\server3\AccessTokenValidation\source\AccessTokenValidation\IdentityServerBearerTokenValidationMiddleware.cs:123
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +181
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +69
   Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.<RunApp>d__5.MoveNext() +203
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +181
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +69
   Microsoft.Owin.Security.Infrastructure.<Invoke>d__0.MoveNext() +774
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +181
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +69
   Microsoft.Owin.Security.Infrastructure.<Invoke>d__0.MoveNext() +774
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +181
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +69
   Microsoft.Owin.Security.Infrastructure.<Invoke>d__0.MoveNext() +774
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +181
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +69
   Microsoft.Owin.Security.Infrastructure.<Invoke>d__0.MoveNext() +774
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +181
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +69
   Microsoft.Owin.Security.Infrastructure.<Invoke>d__0.MoveNext() +774
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +181
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +69
   Microsoft.AspNet.Identity.Owin.<Invoke>d__0.MoveNext() +450
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +181
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +69
   Microsoft.AspNet.Identity.Owin.<Invoke>d__0.MoveNext() +450
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +181
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +69
   Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.<RunApp>d__5.MoveNext() +203
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +181
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +69
   Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.<DoFinalWork>d__2.MoveNext() +193
   Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.StageAsyncResult.End(IAsyncResult ar) +96
   System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +509
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +146

And if I provide the token from Azure AD, I will get error 403 with cookie:
WWW-Authenticate: Bearer error="insufficient_scope"
Could you please tell me how to make all validation methods work together? Thanks!

I'd remove the required scopes property on our middleware and see if that changes anything.

Hi @leastprivilege , thank you for replying. After I commented out the required scope line, the AAD JWT is valid but the request with token issued from local simple auth server still return error 500, with a little different error:
ExceptionMessage=Sequence contains more than one element
ExceptionType=System.InvalidOperationException
Message=An error has occurred.
StackTrace=
   at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source)
   at Microsoft.Owin.Security.AuthenticationManager.<AuthenticateAsync>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.HostAuthenticationFilter.<AuthenticateAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Web.Http.Controllers.AuthenticationFilterResult.<ExecuteAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()

Please help...

did you set the authentication type to a unique value on each MW? That's an OWIN requirement.

Ah! It works! Thank you very much @leastprivilege !!!

@leastprivilege Sorry but I need reopen this issue. I can use multiple MW now with unique AuthenticationType name. But the "insufficient_scope" issue is not resolved... Now the AAD is working with AccessTokenValidation MW, but the local auth server is still not working.
As a workaround I added "scope" claim with same required value when I issue token from local auth server. Then when I bring the token to the api, 2 identical identities are added. I believe one is from "UseOAuthBearerAuthentication", one is from "UseIdentityServerBearerTokenAuthentication"
Is there anything wrong when I build my own ApplicationOAuthProvider? or it's a issue of AccessTokenValidation MW?

Are you sure that each middleware has a unique authentication type?

When I stop the pipeline by breaking at next.Invoke(); I see the authentication type is different.. So I think it's different? Here is what I set in the ConfigureAuth
app.UseOAuthAuthorizationServer(
    new OAuthAuthorizationServerOptions
    {
        AllowInsecureHttp = false,
        TokenEndpointPath = new PathString("/Token"),
        AccessTokenExpireTimeSpan = TimeSpan.FromDays(7),
        Provider = new ApplicationOAuthProvider("self"),
        AuthenticationType = "LocalBearer",
    });
app.UseOAuthBearerAuthentication(
    new OAuthBearerAuthenticationOptions
    {
        AuthenticationType = "LocalBearer"
    });

app.UseIdentityServerBearerTokenAuthentication(new IdentityServerBearerTokenAuthenticationOptions
    {
        Authority = "https://login.3rdpartyIS3server.fake/",
        AuthenticationType = "IS3Bearer",
        RequiredScopes = new[] { "test-scope" },
        ClientId = ConfigurationManager.AppSettings["IS3:ClientId"],
        ClientSecret = ConfigurationManager.AppSettings["IS3:ClientSecret"],
        NameClaimType = "sub",
    });

Please help..

The scope validation should only kick in if the IS3Bearer middleware produces a result. I think there is even a test for it in the solution. This confuses me.

This is weird.. When I bring the token issue by my own ApplicationOAuthProvider("self") I still get the result at line 60 in ScopeRequirementMiddleware.cs
var result = await context.Authentication.AuthenticateAsync(_options.AuthenticationType);
Any clue to debug this? Something wrong in my ApplicationOAuthProvider?

does the problem only exist for your own oauth provider - or also for AAD tokens?

The problem only exists for my own oauth provider... But when I check the token got from AAD, the AuthenticationType is "JWT" but not the value "AADBearer" I set in the middleware... I'm wondering if it's related?

did you ever resolve that?

No I haven't.... Not sure if it's my ApplicationOAuthProvider issue. Would you like to take a look?
    public class ApplicationOAuthProvider : OAuthAuthorizationServerProvider
    {
        private readonly string _publicClientId;

        public ApplicationOAuthProvider(string publicClientId)
        {
            if (publicClientId == null)
            {
                throw new ArgumentNullException("publicClientId");
            }

            _publicClientId = publicClientId;
        }

        public override async Task GrantResourceOwnerCredentials(OAuthGrantResourceOwnerCredentialsContext context)
        {
            var userManager = context.OwinContext.GetUserManager<ApplicationUserManager>();

            ApplicationUser user = await userManager.FindAsync(context.UserName, context.Password);

            if (user == null)
            {
                context.SetError("invalid_grant", "The user name or password is incorrect.");
                return;
            }

            ClaimsIdentity oAuthIdentity = await user.GenerateUserIdentityAsync(userManager, context.Scope[0], "LocalBearer");
            ClaimsIdentity cookiesIdentity = await user.GenerateUserIdentityAsync(userManager, context.Scope[0], CookieAuthenticationDefaults.AuthenticationType);

            AuthenticationProperties properties = CreateProperties(user.UserName);
            AuthenticationTicket ticket = new AuthenticationTicket(oAuthIdentity, properties);
            context.Validated(ticket);
            context.Request.Context.Authentication.SignIn(cookiesIdentity);
        }

        public override Task TokenEndpoint(OAuthTokenEndpointContext context)
        {
            foreach (KeyValuePair<string, string> property in context.Properties.Dictionary)
            {
                context.AdditionalResponseParameters.Add(property.Key, property.Value);
            }

            return Task.FromResult<object>(null);
        }

        public override Task ValidateClientAuthentication(OAuthValidateClientAuthenticationContext context)
        {
            // Resource owner password credentials does not provide a client ID.
            if (context.ClientId == null)
            {
                context.Validated();
            }

            return Task.FromResult<object>(null);
        }

        public override Task ValidateClientRedirectUri(OAuthValidateClientRedirectUriContext context)
        {
            if (context.ClientId == _publicClientId)
            {
                Uri expectedRootUri = new Uri(context.Request.Uri, "/");

                if (expectedRootUri.AbsoluteUri == context.RedirectUri)
                {
                    context.Validated();
                }
            }

            return Task.FromResult<object>(null);
        }

        public static AuthenticationProperties CreateProperties(string userName)
        {
            IDictionary<string, string> data = new Dictionary<string, string>
            {
                { "userName", userName }
            };
            return new AuthenticationProperties(data);
        }
    }

anything you want to add? Or can I close this?

I didn't resolve this... Now I disabled my own OAuth provider to bypass this issue...

There are two lines in the configuration that say:
AuthenticationType = "LocalBearer"


Fix 23.08 build on Databricks 12.2

Closes https://github.com/NVIDIA/spark-rapids/issues/8493
I verified the fix manually on Databricks 12.2

build


Bug fix & minor improvements

Fix bugs in ACM & MSM
Update model to gpt-3.5-turbo according to https://github.com/flynnoct/chatgpt-telegram-bot/issues/33

Finished


[3.x] Fix Dummy audio driver initialization issue on WASAPI output device initialization failure

Backport of #87010.

Fixes https://github.com/godotengine/godot/issues/71640

Oh I misread the conflict diff when trying to cherrypick, I see now it was actually the same pattern with a different method name.

Thanks!

Cherry-picked for 3.5.4.


ParseURL not called on every back or forward button click

🐛 Bug description
parseURL is not called on every back or forward button click.
🔍 Bug reproduction
Steps to reproduce the behavior:

Go to https://codesandbox.io/s/algolia-bad-behaviour-b5ed6
Select HP
Select Samsung
Hit Back button
Hit Forward button
See in the console that parseURL is not called at each back or forward button blick

Live reproduction:
In this sandbox, the url path is mapped to selected brands through parseURL, createURL, stateToRoute and routeToState.
https://codesandbox.io/s/algolia-bad-behaviour-b5ed6
💭 Expected behavior
I was expecting, as described in your documentation, that parseURL is called on every back or forward button click.
Environment

OS: Linux, MacOS Windows
Browser: Chrome, Safari at least
Version: latest

Additional context
Originally thought it was a problem of interactions with turbolinks (#2998).

I may have found something:
https://github.com/algolia/instantsearch.js/blob/9296022fecadfbf82f15e837c215a1356eac4bc5/src/lib/routers/history.ts#L153
The callback onPopState uses event.state to know if it should read the URL or not.
The thing is I don't know where state comes from but in my case, hitting back button to a previous search gives routeState = {}, that is a truthy value but I am not sure that it is the behaviour we should expect from it?

Well, I figured out that our createURL function was deleting items of routeState after supposedly copying the object into another one, storing in history an incomplete routeState.
Sorry for the inconvenience and I hope that it will be useful to someone else in the future: don't touch routeState in places you shouldn't be.

No worries, glad you found this on your own!


Fix multi-line docs issue and add a test

Purpose

Fixed multi-line docs issue [1] which happened due to deprecation doc changes.

[1] https://github.com/ballerina-platform/ballerina-lang/issues/19616
Approach

Describe how you are implementing the solutions along with the design details.

Samples

Provide high-level details about the samples related to this feature.

Remarks

List any other known issues, related PRs, TODO items, or any other notes related to the PR.

Check List

[ ] Read the Contributing Guide
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[ ] Added necessary tests

[x] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

Codecov Report

Merging #23190 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #23190   +/-   ##
=======================================
  Coverage   14.59%   14.59%
=======================================
  Files          51       51
  Lines        1411     1411
  Branches      219      219
=======================================
  Hits          206      206
  Misses       1189     1189
  Partials       16       16

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 4335ea3...2c9c1cb. Read the comment docs.


Indexing fails with ollama:nomic-embed-text

Before submitting your bug report

[X] I believe this is a bug. I'll try to join the Continue Discord for questions
[X] I'm not able to find an open issue that reports the same bug
[X] I've seen the troubleshooting guide on the Continue Docs

Relevant environment info
- OS: macOS 14.5
- Continue: 0.8.24 - 2024-04-12
- IDE: VSCode 1.90.0

Description
Indexing freezes at 25% for a while (popup displays "Completed indexing chunks) then fails with the error message:
Error updating the vectordb::nomic-embed-text index: Error: Invalid argument error: Values length 0 is less than the length (768) multiplied by the value size (768) for FixedSizeList(Field { name: "item", data_type: Float32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, 768)

Config:
{
  "models": [
    {
      "title": "Codestral",
      "provider": "ollama",
      "model": "codestral"
    },
    {
      "title": "Ollama",
      "provider": "ollama",
      "model": "AUTODETECT"
    }
  ],
  "customCommands": [
    {
      "name": "test",
      "prompt": "{{{ input }}}\n\nWrite a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.",
      "description": "Write unit tests for highlighted code"
    }
  ],
  "tabAutocompleteModel": {
    "title": "Codestral",
    "provider": "ollama",
    "model": "codestral"
  },
  "allowAnonymousTelemetry": true,
  "embeddingsProvider": {
    "provider": "ollama",
    "model": "nomic-embed-text"
  }
}

To reproduce

Install Codestral
Pull the ollama models
Shut down the VSCode
Remove files except the config from ~/.continue directory for a fresh start
Open the VSCode with code . from the project's directory

Log output
Error updating the vectordb::nomic-embed-text index: Error: Invalid argument error: Values length 0 is less than the length (768) multiplied by the value size (768) for FixedSizeList(Field { name: "item", data_type: Float32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, 768)

I've got a similar error with mxbai-embed-large:
Error updating the vectordb::mxbai-embed-large index: Error: Invalid argument error: Values length 0 is less than the length (1024) multiplied by the value size (1024) for FixedSizeList(Field { name: "item", data_type: Float32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, 1024)

@hoblin thanks for sharing this. I've seen it from others too, it looks like Ollama embeddings in general are failing. I'll have an update soon

Experiecing this also today, was working fine 1 hour ago.

It's not just Ollama with nomic-embed-text fails,  OpenAI embeddings also fail.

I can confirm it fails with nomic-embed-text too.

The PR looks to have solved it, but I'll wait for confirmation. This is going to be released in the next pre-release version (0.9.160)


Make RoundRobinLB thread safe

Current RoundRobinLB is not thread-safe, it could cause unbalanced requests hit on solr cloud in the highly-concurrent environment.  Fixed it with AtomicInteger with overflow checking

Thanks for the PR, LGTM!
Let's fix the travis issue first before merging. If you can have a look at it that would be awesome, otherwise I'll try to find time for that soon.

This might help - could you try that?
https://travis-ci.community/t/solved-oraclejdk8-installation-failing-still-again/3428

I just fixed the travis build with #70 - can you please rebase your change on top of master?

Done, I also fixed the index start with 1 since old index start from 1


Fix minL bug

@stevenmburns @parijatm
Hi all,
I updated our code to fix the minL bug. Please review the code.
If any problem, please let me know.
Yaguang

I think we can merge in #162 after I get a review.
We can also cherry-pick this into #162 and fix up the collateral files. I can do it tomorrow but am busy today.
From: Parijat Mukherjee<EMAIL_ADDRESS>Sent: Tuesday, September 17, 2019 5:10 PM
To: ALIGN-analoglayout/ALIGN-public<EMAIL_ADDRESS>Cc: Burns, Steven M<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [ALIGN-analoglayout/ALIGN-public] Fix minL bug (#170)
@parijatm commented on this pull request.
Looks conceptually correct. Need capabilities in #162https://github.com/ALIGN-analoglayout/ALIGN-public/pull/162 to test.
@stevenmburnshttps://github.com/stevenmburns should we just merge this change into #162https://github.com/ALIGN-analoglayout/ALIGN-public/pull/162? Will need new telescopic_ota-freeze.json, switched_capacitor_combination-freeze.json and switched_capacitor_filter-freeze.json to be generated for PnrPython/tests.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/ALIGN-analoglayout/ALIGN-public/pull/170?email_source=notifications&email_token=AALRI7QZZPRFBZALFSVAT6LQKFWWBA5CNFSM4IXWJUR2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCFBR4RA#pullrequestreview-289611332, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AALRI7UFN2VXHMMS2MXS2KTQKFWWBANCNFSM4IXWJURQ.

I think we can merge in #162 after I get a review. We can also cherry-pick this into #162 and fix up the collateral files. I can do it tomorrow but am busy today.

Hey Steve. #162 looks great so I went ahead & approved it anyway. Up to you if you want to roll this commit in as well or I can take care of it after you have merged. Only reason to do it pre-merge would be to also include DRC checks as part of circleci.

This is merged into #162 so we don't need this PR anymore.


add support for power8/power9 in Travis CI

It appears numpy already supports ppc64 architecture via Travis CI:
https://github.com/numpy/numpy/pull/12709

Also scipy is working on powerpc support:
https://github.com/scipy/scipy/pull/9684

Thank you for raising an issue. Unfortunately Travis does not support GPU, so we cannot run tests on it; currently we use Travis only to verify that it can be compiled. To declare that CuPy supports POWER architecture, we need some CI infrastructure to run full CuPy unit tests.
Do you have specific use-case to use CuPy on POWER?

Actually my use case just cancelled, because cupy only supports limited subset of zoom method from scipy.ndimage.
I had issues with compiling cupy in PowerAI, but this resolved by switching to default compilers.


Newman option "iteration-count" doesn't have any affect on Portman test

Having issues increasing the number of iterations during Newman execution. By default, there is only 1 iteration. Config changes using a command line and portman cli file have the same problem. Other Newman options like "insecure" do work but not "iteration-count".

hi @bpogrebi
Can you share your Newman config?
On the discussion board, there is an item on Newman CLI options, which might also be helpfull:
https://github.com/apideck-libraries/portman/discussions/289

Hi @thim81,
my newman settings:
{   "iteration-count": 10,   "suppress-exit-code": false,   "abortOnFailure": false,   "ignore-redirects": true,   "insecure": true }
As you can see I tried all options listed in the thread you pointed out. Same result. I get only 1 iteration even during a successful run. I assume that I don't need to have newmanIterationData to be able to run same test multiple times.
Thanks.

hi @bpogrebi
Thanks for the update, I'll have to give it a spin to figure out what is going wrong.

hi @bpogrebi,
We found the cause and a PR is being reviewed.
Cause: The Newman CLI expects options as param-cased, while when using Newman as a NodeJS module the options as camelCase. We have foreseen that Portman automatically transforms the casing to the correct format.

Thanks @thim81!

@bpogrebi The fix will be part of the next Portman release.

@thim81 I just tested the latest version and it's still not working. Our build process runs: npm install -g @apideck/portman on a new container every time. Can you confirm that change was merged?

hi @bpogrebi , The issue was closed due to another tool.
There is not a new release, I'm waiting for some input on another issue to release a new version of Portman.

hi @bpogrebi, We just released Portman v1.18.1, which includes the Newman fix.

@thim81 Thanks for getting this fixed! It works for me now.


/etc/hosts  being recreated each time I restart.

Hi
I want to add the names of my machines and ip addr to the hosts file  in /etc but after a reboot the file is recreated thus wiping the changes I added.
I tried adding the IP addr and names to the windows hosts file in windows/system32/drivers/etc/hosts
But it doesn't then pick up the IP addr in the bash shell.
Is this possible as I don't want to have to keep typing in the ip addr to use ssh?
Thanks

i-frost, doesn't it get provided by the C:\Windows\System32\etc\hosts file?

I tried adding the details to the Windows hosts file but bash does not pick
them up.
On May 19, 2016 6:22 PM, "fpqc"<EMAIL_ADDRESS>wrote:
i-frost, doesn't it get provided by the C:\Windows\System32\etc\hosts file?
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/Microsoft/BashOnWindows/issues/398#issuecomment-220393416

Could you do the following workaround until they fix it: Add the line to .bashrc sudo echo $hostslineyouwantedtoadd >> /etc/hosts

Hey
I tried adding it to .bashrc  but I just get permission denied when i start
the bash shell.
I then tried adding my user name to sudoers and setting NOPASSWD but this
cant get it to write it into the hosts file.
I thought this would save my bacon as I cannot get this laptop to work with
its track-pad in Linux but can in windows:-(
Thanks
On Thu, May 19, 2016 at 6:27 PM, fpqc<EMAIL_ADDRESS>wrote:

Could you do the following workaround until they fix it: Add the line to
.bashrc sudo echo $hostslineyouwantedtoadd >> /etc/hosts
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/Microsoft/BashOnWindows/issues/398#issuecomment-220394846

You tried the original thing I wrote (which was wrong), or the corrected one?
The thing I think will work in bash.rc is actually echo $hostslineyouwantedtoadd | sudo tee -a /etc/hosts.  piping to tee -a does the same thing as >> but it is a linux program and so you can run it with sudo (instead of running all of bash with privileges). The original thing I wrote was wrong.

I'm taking a look at a way to work around this.  My current thinking is to add a header to the top of /etc/hosts that says something like:
# This file was automatically generated by WSL. To prevent the contents of this file from being overwritten, remove this line.
That way if you don't want WSL to automatically generate this file you'll be able to remove the header.  If you want WSL to regenerate the file you can either delete the file or add back the header.
@i-frost @fpqc Does this sound like a decent solution to you?

Sounds good to me:-)
Thanks Ben!

@benhillis I guess!  Wouldn't a good solution also be to have it just read the Windows HOSTS file as a device called like /dev/hosts (or a process called /proc/hosts) and then make /etc/hosts a symlink?
That's how you guys are doing it for outputting memory management info, at least.

@fpqc - I'm not sure that will work because the hosts files are different formats.  Linux host files are tab separated and Windows are space separated, for example.

@benhillis I don't doubt the abilities of you guys at Microsoft to parse and reformat the HOSTS file =), but it's up to you!

On Fri, May 20, 2016 at 11:09 AM, Ben Hillis<EMAIL_ADDRESS>wrote:

I'm taking a look at a way to work around this. My current thinking is to
add a header to the top of /etc/hosts that says something like:
This file was automatically generated by WSL. To prevent the contents of
this file from being overwritten, remove this line.
That way if you don't want WSL to automatically generate this file you'll
be able to remove the header. If you want WSL to regenerate the file you
can either delete the file or add back the header.
@i-frost https://github.com/i-frost @fpqc https://github.com/fpqc
Does this sound like a decent solution to you?

It is half the answer.
Once the file has been modified there needs a way to allow WSL to
install a fresh one.
Better to have a line with instructions to change Yes (default) to No:
WSL Update etc/hosts Yes
WSL Update etc/hosts No
Deletion of the comment defaults to Yes.
Comments are almost free.
In an ideal world the old file should be renamed to /etc/hosts.old
and a new version not installed be /etc/hosts.new
The hosts file is one way to abuse internet connections.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/Microsoft/BashOnWindows/issues/398#issuecomment-220678512

--
T o m    M i t c h e l l

@niftyhacking If the /etc/hosts file is delete, a new one will be auto-generated (with the comment).  I've checked in a fix for this and it will be making its way to the Windows Insider fast ring in a future build (a few weeks out likely).

@niftyhacking https://github.com/niftyhacking If the /etc/hosts file is
delete, a new one will be auto-generated (with the comment). I've checked
in a fix for this and it will be making its way to the Windows Insider fast
ring in a future build (a few weeks out likely).

Thank you.
--
T o m    M i t c h e l l

Ben's fix made it into build 14361.

Thank you so much:-)
On Jun 8, 2016 9:36 PM, "Russ Alexander"<EMAIL_ADDRESS>wrote:

Ben's fix made it into build 14361
https://msdn.microsoft.com/en-us/commandline/wsl/release_notes.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/BashOnWindows/issues/398#issuecomment-224719143,
or mute the thread
https://github.com/notifications/unsubscribe/AQGoWK3GHmB0n0qPjqY3NZltQNmp6QKUks5qJyergaJpZM4IiRT6
.

@benhillis , this solutions feels wrong to me.  It seems that if you add something to your hosts file, you would want it to work both Windows side, and in WSL.  I often use localhost IP's over ssh tunnels and prefer having aliases for each.  I have this in my hosts:
<IP_ADDRESS>  myserver.home
<IP_ADDRESS>  myotherserver.home

Then have an ssh tunnel:
ssh mybastion.my.domain -n -N -C \
    -L myserver.home:13389:myserver.home:3389 \
    -L myserver.home:13389:myserver.home:3389 \
    &

Allowing me to access remote desktop to myserver.home:13389 and myotherserver.home:13389.  Your approach would require i come up with a way to synchronize the 2 hosts files to make this work...
Am I missing something?  Perhaps you could add a second option to use windows hosts?
Currently using:
PS C:\Users\ltheisen> [System.Environment]::OSVersion.Version

Major  Minor  Build  Revision
-----  -----  -----  --------
10     0      14393  0
PS C:\Users\ltheisen> (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").ReleaseId
1607

Looks like #2059 states:

The functionality of adding windows hosts to /etc/hosts is currently only available in Insider builds

Hello,
I'm running build 16299 and the comment I have in /etc/hosts is diferent:
cat /etc/hosts
# This file is automatically generated by WSL based on the Windows hosts file:
# %WINDIR%\System32\drivers\etc\hosts. Modifications to this file will be overwritten.
<IP_ADDRESS>	localhost
[...]

In my use case, I don't want to modify Windows's hosts file, just the WSL one ! So adding the entries in Windows's hosts file is not an option for me !
Ideally a "diff" mechanism between Windows and WSL whould be IMHO the best approach..
Regards,

This is configurable via the wsl.conf setting 'generateHosts'.


⚠ ClamAV has degraded performance

In 325d268, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 181 ms

Resolved: ClamAV performance has improved in 8efdf95.


Unable to access constructor value in interactive mode

Pull Request Description

close #7184
Changelog:

update: the registration of user-defined types in runtime
update: invalidate cached nodes that became a resolution error after applying the edit

Important Notes

Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:

[x] The documentation has been updated, if necessary.
[x] All code follows the
Scala,
Java,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
All code has been tested:

[x] Unit tests have been written where possible.

Re-using the type in the compiler scope fixed the issue with method resolution. Now the fun part is to invalidate the scope (and the context caches) properly when the type is edited.

I just realized that the update of cache invalidation logic will also fix the scenario when an import got changed making some of the symbols in the program invalid (unresolved). I remember that we have discussed this issue earlier but I was not able to find an open ticket for it.


Compilation error in commit 1b77bd4a7289f59e8ea4bf72ab530972a1fcf32c

I'm having the following compilation error when building on Windows platform:
"D:\ML\caffe2\build\ALL_BUILD.vcxproj" (default target) (1) ->
"D:\ML\caffe2\build\caffe2\Caffe2_GPU.vcxproj" (default target) (7) ->
(CustomBuild target) ->
  D:/ML/caffe2\caffe2/operators/top_k_radix_selection.cuh(359): error : a value of type "caffe2::TIndex *" cannot be used to initialize an entity of type "long *" [D:\ML\caffe2\build\caffe2\Caffe2_GPU.vcxproj]
    814 Warning(s)     1 Error(s)
I'm pulling from the latest commit
commit 1b77bd4a7289f59e8ea4bf72ab530972a1fcf32c (HEAD -> master, origin/master, origin/HEAD)
Author: Aaron Markham<EMAIL_ADDRESS>Date:   Mon Jun 26 13:24:35 2017 -0700
    reapplying #836 changes on binary locations
    Summary: Closes https://github.com/caffe2/caffe2/pull/870
    Differential Revision: D5322956
    Pulled By: JoelMarcey
    fbshipit-source-id: 0dc4c27b9188e1a63b12912c5268f03c6178f6d9
Anyone facing the same problem?

Yes.
https://github.com/caffe2/caffe2/issues/875


Sim2net python3

I keep running into a syntax error on the print statement after running the sim2net -i. I have realized that this is due to sim2net being written in python 2 and I am using python 3. Is there a python3 version of sim2net?

Back when I used sim2net i was using python 2.
I doubt there is a version for python 3.
On Sat, May 2, 2020 at 7:36 PM amitneil<EMAIL_ADDRESS>wrote:

I keep running into a syntax error on the print statement after running
the sim2net -i. I have realized that this is due to sim2net being written
in python 2 and I am using python 3. Is there a python3 version of sim2net?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mkalewski/sim2net/issues/2, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AI2SVJ4MLPMNHA23PBU4AFDRPRDZ5ANCNFSM4MXX62GA
.

--
Fatima Al-Haj, BSc, MSc Information SystemsPhD Student @ Computer
Science University of Jordan, Amman


Feature 2178 implement history provider for IEX

Description
Implemented IHistoryProvider interface in class IEXDataQueueHandler,
to make it usable for history requests as well as real-time data feed.
Note that due to IEX implementation, only daily resolution history
requests are supported, up to a maximum of 5 years look back.
Implemented tests related to history requests.
To demonstrate how to use it, modified config.json to propose a
working environment using IEX as a history provider, and as a live
data feed.
Related Issue
https://github.com/QuantConnect/Lean/issues/2178
Motivation and Context
Allows history requests with IEX
How Has This Been Tested?

Unit testing
Tested by deploying and trading live

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Non-functional change (xml comments/documentation/etc)

Checklist:

[X] My code follows the code style of this project.
[X] I have read the CONTRIBUTING document.
[X] I have added tests to cover my changes.
[X] All new and existing tests passed.
[X] My branch follows the naming convention bug-<issue#>-<description or feature-<issue#>-<description>

Could we potentially use the data from the historical dumps to get other resolutions? It might be a little heavy but it would mean a complete dataset. https://iextrading.com/trading/market-data/#hist-download


Add swap claims to TransactionPlannerRequest

Is your feature request related to a problem? Please describe.
The TransactionPlannerRequest allows planning transactions with swaps, but doesn't allow planning swap claims.  Swap claims are designed so that they can be submitted autonomously with no user interaction, but we might not want to assume that the view server is the part of the software stack that does so. In any case, it seems useful to allow planning of swap claims, too.
Describe the solution you'd like

[x] Add swap claims to the planner request
[ ] Test that it works by adding a network integration test to pclientd that makes a swap and then claims the outputs, using only GRPC methods and not any of the Rust libraries.

Looks like I filed a duplicate issue in #2891. I didn't take the time to add an integration test, as specified here.

It looks like the actual view service implementation of swaps and swap claims in transaction planner request handling wasn't implemented yet either.


Add redtext.biz

I'm not sure 100% what to class this site as but it fakes being a google recaptcha site to get you to allow notifications on your pc.
https://pasteboard.co/IhTrjWs.png <- screen snip
It adds number ranges from 0 -> unknown to try get around blocks in the front of the hostname

Found another one: https://clickjump.biz/?p=mmzdkyrxme5gi3bpge4dg&sub1=Coltin&sub2=demo.v4&a=a#

https://yellowfakeagent.top/j6Kc3y?se_referrer=https%3A%2F%2Fwww.google.com%2F&default_keyword=Flow Control Valves – Ultra Control Valves | Total Valve Solutions&&frm=script&_cid=871ce1de-2202-5cc8-f641-3ffefc549b6d

Seems a website was hacked and set to redirect these urls
So maybe malware?

Hi Mitchell @mrinc  – thanks for this input.
We're mostly an aggregator of hosts files from active and reputable curators of hosts files, and we package these amalgamated hosts files in various ways.
Please submit this request to one of our curated sources.
Closing.

Hey
Steven Black's ad-hoc list | Additional sketch domains as I come across them. | link | raw | occasionally | MIT | issues
That links to here :)
Should I pushed a merge req for your sketch list instead?

Hi Mitchell @mrinc – no, please submit this request, and its full explanation, to one of our curators.  This is what they do.


Fix disable_duplicative_biases when the input is a skip layer

In my implementation of the RepVGG network family, I was getting a compile error when running disable_duplicative_biases.
The case where a normalization layer has a skip layer as an input was not handled.

Thanks for the fix :)


Tree: Allow preserving preexisting element collapse state

fixes #176505

Flaky test: 1) verifies that "hot exit" works for dirty files (with delay)


[ABW-3767] Lock Screen bug fixes

Description
This PR is heavily based on Jakub's work for Lock Scree, because overall it works fine.
The main change here is that now the wallet relies on the onStop lifecycle event to lock the app and not on the onPause. This way the apps doesn't get locked when the Google's login dialog shows up.
⚠ Android devices with Android 12 and above won't show the security overlay screen when moving the app in recent apps. This is the expected behavior, but when you swipe to a new element in recent apps or navigate to home then the secure overlay screen is visible.
I decided to respect this behavior and not mess with workarounds because I was not confident with any of them.
How to test

If you have several (actual) devices then please test it with all of them if possible :)

PR submission checklist

[X] I have tested lock screen with several android devices

Same here, seems to work 💪