TypeScript refactor

Summary
This PR lays the groundwork for an incremental TypeScript refactor of Primer React components.
Impact
From https://github.com/primer/components/discussions/953:

Refactoring our codebase in TypeScript will make our library less bug-prone by enforcing type safety in the implementation of our components, reduce the number of issues we face with the manual maintenance of our index.d.ts file, and make upstreaming components from other projects at GitHub written in TS much much faster allowing us to greatly improve our contributor experience.

Technical details
Here are the infrastructure changes that were needed to support TypeScript:
Compilation (Babel)
I configured Babel to use the @babel/preset-typescript preset, which allows Babel to compile .ts and .tsx files.
Linting (ESLint)
I configured ESLint to used the @babel/eslint-parser parser, which allows ESLint to parse .ts and .tsx files.
Testing (Jest)
I installed Jest type declarations (@types/jest), which provides type annotations in the test files.
Documentation (Gatsby)
I configured the documentation site to use gatsby-plugin-typescript, which allows us to import .ts and .tsx files into documentation site files.
Type checking and type declarations
I added a yarn dist:types script to type check and generate type declaration files (.d.ts) for every TypeScript file.
How to migrate a component to TypeScript
The migration process for each component may vary, but it will likely follow these high-level steps:
1. Change the file extension from .js to .tsx
src/Box.js → src/Box.tsx

2. Add type annotations to the component file
Here are type annotations for the Box component:
  // src/Box.tsx
+ const Box = styled.div<CommonProps & FlexProps & LayoutProps & SxProps>`
    ${COMMON}
    ${FLEX}
    ${LAYOUT}
    ${sx}
  `
+ export type BoxProps = React.ComponentProps<typeof Box>
  export default Box

Most Primer React components will follow a similar pattern. Each component should export a ___Props type in addition to the default export.

ℹ Note: After doing some research on types vs interfaces, I propose we use types (instead of interfaces) for all component props. In addition to the reasons discussed in this article, types allow us to use React.ComponentProps<> to generate prop type definitions for styled components.

❓ Question: How can we programmatically enforce that every component exports a ___Props type?

3. Generate type declarations
Run the following command to generate type declaration files for every component:
yarn dist:types

After the script completes, you should see a types directory containing *.d.ts files:
types/
├─ ...
└─ Box.d.ts

4. Update index.d.ts
Replace the manually maintained type declarations in index.d.ts with references to the generated type declarations:
  // index.d.ts
+ import PrimerBox, { BoxProps as PrimerBoxProps } from './types/Box'

  declare module '@primer/components' {
    ...
-   export interface BoxProps extends BaseProps, CommonProps, LayoutProps, StyledSystem.FlexboxProps, Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> {}
-   export const Box: React.FunctionComponent<BoxProps>
+   export type BoxProps = PrimerBoxProps
+   export const Box: typeof PrimerBox
  }

Notice that the import renames Box to PrimerBox to avoid naming conflicts in the rest of index.d.ts.
5. Change the file extension of tests
src/__tests__/Box.js → src/__tests__/Box.tsx

Breaking changes

The Box and BoxProps type declarations are now being generated by TypeScript instead of manually maintained. These new type declarations may differ from the previous type declarations and cause breaking changes. If you experience any new TypeScript errors, feel free to reach out in Slack (#design-systems) or create an issue.
BoxProps is now a type instead of an interface.

Next steps
Short term

[ ] Rewrite all existing components in TypeScript

Long term (after TypeScript refactor is complete)

[ ] Remove propTypes
[ ] Generate prop documentation using react-docgen-typescript

@emplums and I found that the location of the Box import statement in index.d.ts was causing type errors in the Memex codebase. Specifically, importing before the module declaration was causing issues:

However, moving the import inside the module declaration causes an error in the Primer React components codebase:

@T-Hugs @dmarcey Any ideas about why this might be happening and how to fix it?

@emplums and I found that the location of the Box import statement in index.d.ts was causing type errors in the Memex codebase. Specifically, importing before the module declaration was causing issues:

However, moving the import inside the module declaration causes an error in the Primer React components codebase:

@T-Hugs @dmarcey Any ideas about why this might be happening and how to fix it?

My recommendation is to revert to shipping exclusively the manually-created index.d.ts until the full TypeScript conversion is complete, assuming that will be a relatively fast-follow.

My recommendation is to revert to shipping exclusively the manually-created index.d.ts until the full TypeScript conversion is complete, assuming that will be a relatively fast-follow.


Kudu stops working. 502 Bad gateway.

Hi guys, I have been experiencing issues with my kudu site. Sometimes when I add a new custom domain and a SSL binding, Kudu stops working. I tried restarting the  AppService, but isn't work. The website is working normally, just Kudu and related things (VS publish feature, Webjobs, Process explorer, etc) are down.
http://car-dealer.scm.azurewebsites.net/
I got the following error:
502 - Web server received an invalid response while acting as a gateway or proxy server.
There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server.
I have been experiencing this issues too often. The Kudu starts working again after a big time window, maybe hours. Could you help me to detect was going on?

Hi
If the problem persists and is related to running it on Azure App Service, please open a support incident in Azure:
https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request
This way we can better track and assist you on this case
Thanks,
Joaquin Vano
Azure App Service


Standard show the old error in the parser window when the issue has been fixed

Please see this attachment

I changed right quote to a double quote - then back to a single quote - it picked up the error but then persists in showing that there is an error even when fixed

StandardJS version?
12.0.1

VSCode version?
1.30.1 (1.30.1)

StandardJS configuration?
Default setup apart from
"standard.options": {
"globals": ["it","test", "expect", "describe"],
"parser": "babel-eslint"
},

What do you have in the OUTPUT panel?
Nothing

Is it still the case with newer versions ? @iwarner

Is it still the case with newer versions ? @iwarner

Yes it is.

Windows 10
StandardJS 17
VSCode 1.67.1
Node 16.14.1
Same issue. After it happens, standard is absolutely stuck. It doesn't detect anything else, auto fix on save is not working. The only way to unstuck it is to hover my mouse over the ghost "issue". After modal about the "error" is displayed, it disappears and standards fully re-activates.
It is stuck at false detections most of the time. E.g. half-typed variable in the middle of typing, or trailing spaces after new line, which aren't even there.

It looks like this, and happens very frequently. It is absolutely unusable. I guess I'm rolling back to standard 16 and Sam Chens 1.4.1 extension until this is fixed.


Add a fallback extension none os dylibs

Adds a fake extension for none os dynamic libraries to avoid a SwiftPM crash during build planning when cross compiling to none OS with a dylib product in the graph.
Fixes #7893

@swift-ci test

@swift-ci test

@swift-ci test windows


Selector improvement linked badge

Selector improvement, isolated from PR #27136
a.badge instead of .badge[href]

@MartijnCuppens: could you try if the Sass gem builds everything right too?

@XhmikosR I've run the command sass scss/bootstrap.scss:dist/css/bootstrap.css this also returns the expected result, was this what you wanted to be tested?

Yup, all good thanks!


Localhost with the port 3000 blocked

So, I installed this repo and ran it on the port 3000. Now every time I visit http://localhost:3000/ the application page load. I understand is the expected result because this is a offline-first React.js application but I cannot debug or hot-reload anything in that port even this example.

This is almost certainly a problem with your local setup.
Nevertheless, this "bug" is fixed on the v3.0.0 branch, and cannot happen there. Check it out!

Thank you very much. I used lastest v3.0.0 (with the commit where you moved AppCache to production env.), I think the problem are the cookies, however is weird because I hard reload and clear cache and I still have the problem until I delete the File Data in Settings.
I think Google Chrome is the problem, I don't have problems using other browser so you are right, it is my local setup.

That's very weird, did you use master beforehand?
That might be why hot reloading isn't working, because Chrome still uses the master branch version (from cache) which connects to your v3.0.0 code base, which is a too major change for hot reloading.

@amorino I solved this in Chrome. Go to "chrome://serviceworker-internals" and "unregister" the app.

:+1: thanks @foxhound87!


add Instituto Tecnologico Universitario Quito Metropolitano

por favor add Instituto Tecnologico Universitario Quito Metropolitano

@Jacobo-JCA First stage of verification passed, official domain is itsqmet.edu.ec as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@Jacobo-JCA Thank you for your patience while waiting for a review and processing your request. Pull request merged.


Selecting the network interface for the network plug-in

FEATURE REQUEST (or help wanted)
Environment:

Cloud provider or hardware configuration: baremetal

OS (printf "$(uname -srm)\n$(cat /etc/os-release)\n"): Debian stretch

Kubespray version (commit) (git rev-parse --short HEAD): da61b8e7
Network plugin used: calico
I have more than one network interface on the server. One for accessing the Internet, the other (internal via a physical switch) for Pod network. I want to configure calico to use the internal network (via a physical switch). I used to configure the parameter "ip"
CALICO_IP="{{ ip | default(ansible_default_ipv4.address) }}"

in the calico.env file. Now calico is Daemonset. How can I configure it now?

Now it's determined by which IP is used for kubelet:
            - name: IP
              valueFrom:
                fieldRef:
                  fieldPath: status.hostIP

Kubelet will bind to ip var if it is set. If not, it picks an address at random, to the best of my knowledge. You should not have any difference in deployment.

status.hostIP has an interface address that has a default gateway. In my case, I want to set up a specific interface that does not have a default gateway.

@mattymo  Hi, is it possible to add a new variable in inventory/group_vars/all.yml? like cni_network:<IP_ADDRESS>/24. If yes, I will pull my code to review.

I have error when deploying.
inventory.cfg
[kube-master]
node1

[all]
node1   ansible_ssh_host=<IP_ADDRESS> ansible_user=root ip=<IP_ADDRESS>
node2   ansible_ssh_host=<IP_ADDRESS> ansible_user=root ip=<IP_ADDRESS>
node3   ansible_ssh_host=<IP_ADDRESS> ansible_user=root ip=<IP_ADDRESS>

[k8s-cluster:children]
kube-node
kube-master

[kube-node]
node1
node2
node3

[etcd]
node1
node2
node3

Error:
RUNNING HANDLER [etcd : wait for etcd up] ************************************************************************************************************************************************************************************************************************************
FAILED - RETRYING: wait for etcd up (10 retries left).
FAILED - RETRYING: wait for etcd up (10 retries left).
FAILED - RETRYING: wait for etcd up (10 retries left).
FAILED - RETRYING: wait for etcd up (9 retries left).
FAILED - RETRYING: wait for etcd up (9 retries left).
FAILED - RETRYING: wait for etcd up (9 retries left).
FAILED - RETRYING: wait for etcd up (8 retries left).
FAILED - RETRYING: wait for etcd up (8 retries left).
FAILED - RETRYING: wait for etcd up (8 retries left).
FAILED - RETRYING: wait for etcd up (7 retries left).
FAILED - RETRYING: wait for etcd up (7 retries left).
FAILED - RETRYING: wait for etcd up (7 retries left).
FAILED - RETRYING: wait for etcd up (6 retries left).
FAILED - RETRYING: wait for etcd up (6 retries left).
FAILED - RETRYING: wait for etcd up (6 retries left).
FAILED - RETRYING: wait for etcd up (5 retries left).
FAILED - RETRYING: wait for etcd up (5 retries left).
FAILED - RETRYING: wait for etcd up (5 retries left).
FAILED - RETRYING: wait for etcd up (4 retries left).
FAILED - RETRYING: wait for etcd up (4 retries left).
FAILED - RETRYING: wait for etcd up (4 retries left).
FAILED - RETRYING: wait for etcd up (3 retries left).
FAILED - RETRYING: wait for etcd up (3 retries left).
FAILED - RETRYING: wait for etcd up (3 retries left).
FAILED - RETRYING: wait for etcd up (2 retries left).
FAILED - RETRYING: wait for etcd up (2 retries left).
FAILED - RETRYING: wait for etcd up (2 retries left).
FAILED - RETRYING: wait for etcd up (1 retries left).
FAILED - RETRYING: wait for etcd up (1 retries left).
FAILED - RETRYING: wait for etcd up (1 retries left).
fatal: [node2]: FAILED! => {"attempts": 10, "changed": false, "content": "", "failed": true, "msg": "Status code was not [200]: Request failed: <urlopen error ('_ssl.c:645: The handshake operation timed out',)>", "redirected": false, "status": -1, "url": "https://<IP_ADDRESS>:2379/health"}
fatal: [node1]: FAILED! => {"attempts": 10, "changed": false, "content": "", "failed": true, "msg": "Status code was not [200]: Request failed: <urlopen error ('_ssl.c:645: The handshake operation timed out',)>", "redirected": false, "status": -1, "url": "https://<IP_ADDRESS>:2379/health"}
fatal: [node3]: FAILED! => {"attempts": 10, "changed": false, "content": "", "failed": true, "msg": "Status code was not [200]: Request failed: <urlopen error ('_ssl.c:645: The handshake operation timed out',)>", "redirected": false, "status": -1, "url": "https://<IP_ADDRESS>:2379/health"}

# etcdctl cluster-health
cluster may be unhealthy: failed to list members
Error:  client: etcd cluster is unavailable or misconfigured; error #0: dial tcp <IP_ADDRESS>:4001: getsockopt: connection refused
; error #1: client: endpoint http://<IP_ADDRESS>:2379 exceeded header timeout

error #0: dial tcp <IP_ADDRESS>:4001: getsockopt: connection refused
error #1: client: endpoint http://<IP_ADDRESS>:2379 exceeded header timeout

# netstat -lntp
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 <IP_ADDRESS>:10250         <IP_ADDRESS>:*               LISTEN      3013/kubelet
tcp      129      0 <IP_ADDRESS>:2379          <IP_ADDRESS>:*               LISTEN      30451/etcd
tcp        1      0 <IP_ADDRESS>:2379          <IP_ADDRESS>:*               LISTEN      30451/etcd
tcp        0      0 <IP_ADDRESS>:2380          <IP_ADDRESS>:*               LISTEN      30451/etcd
tcp        0      0 <IP_ADDRESS>:10255         <IP_ADDRESS>:*               LISTEN      3013/kubelet
tcp        0      0 <IP_ADDRESS>:8080          <IP_ADDRESS>:*               LISTEN      4529/hyperkube
tcp        0      0 <IP_ADDRESS>:179             <IP_ADDRESS>:*               LISTEN      24987/bird
tcp        0      0 <IP_ADDRESS>:22              <IP_ADDRESS>:*               LISTEN      441/sshd
tcp        0      0 <IP_ADDRESS>:4194          <IP_ADDRESS>:*               LISTEN      3013/kubelet
tcp        0      0 <IP_ADDRESS>:10248         <IP_ADDRESS>:*               LISTEN      3013/kubelet
tcp        0      0 <IP_ADDRESS>:10249         <IP_ADDRESS>:*               LISTEN      3331/hyperkube
tcp6       0      0 :::6443                 :::*                    LISTEN      4529/hyperkube
tcp6       0      0 :::10251                :::*                    LISTEN      29267/hyperkube
tcp6       0      0 :::9099                 :::*                    LISTEN      24985/calico-felix
tcp6       0      0 :::10252                :::*                    LISTEN      29299/hyperkube
tcp6       0      0 :::10256                :::*                    LISTEN      3331/hyperkube
tcp6       0      0 :::22                   :::*                    LISTEN      441/sshd

@tetramin Please raise a separate issue with your problem.

etcd is up and listening but is having issues if it won't respond to health checks. Please run docker logs etcd1 on the host and see why it is not healthy.
You may want to reset your environment and try again.

I tried to clean up the old environment (/var/lib/docker, /etc/kubernetes and /usr/local/bin/kube*).
 docker logs etcd1:
2017-10-19 08:38:14.084981 I | raft: 147e37ea76d85cfa is starting a new election at term 1752
2017-10-19 08:38:14.086313 I | raft: 147e37ea76d85cfa became candidate at term 1753
2017-10-19 08:38:14.086611 I | raft: 147e37ea76d85cfa received MsgVoteResp from 147e37ea76d85cfa at term 1753
2017-10-19 08:38:14.087824 I | raft: 147e37ea76d85cfa [logterm: 1381, index: 164547] sent MsgVote request to 3dafe2b104f8980a at term 1753
2017-10-19 08:38:14.087892 I | raft: 147e37ea76d85cfa [logterm: 1381, index: 164547] sent MsgVote request to 57b8fd871fed148d at term 1753
2017-10-19 08:38:17.305761 W | rafthttp: health check for peer 3dafe2b104f8980a could not connect: dial tcp <IP_ADDRESS>:2380: getsockopt: connection refused
2017-10-19 08:38:17.310521 W | rafthttp: health check for peer 57b8fd871fed148d could not connect: dial tcp <IP_ADDRESS>:2380: getsockopt: connection refused

Where does he get this address: <IP_ADDRESS>?

@tetramin The value is in the etcd data store. It stores info about nodes that ever existed in the etcd cluster. Please use the reset.yml playbook to reset the environment. It will clear out /var/lib/etcd directory on all the etcd hosts.

@mattymo @xuhuilong Thank you! It's work fine.
It turns out that it is impossible to change the IP address of an operating cluster. Only with the initial deploy.

This is correct. It is because the etcd database and the certificates are bound to a particular IP. You can only work around this by resetting the specific node, change its inventory hostname, and deploy it again.


Add serde bounds to zebra-chain structures.

Closes #195

Blocked on #249 since we need to add serde bounds to ciphertext types.

LGTM modulo comments (but I can't be the reviewer since I opened the PR)

I want to see what automation does but when I run the build locally from zebra-chain it fails but when I run it from the root directory of the entire project zebra-chain compiles successfully along with the rest of the project. I don't necessarily think this is a problem, its probably just different features being enabled by default vs by zebrad, but if this compile error isn't caught by automation then we will want to fix that as well.


controller did not follow classic controller mode

refer:
https://github.com/kubernetes/sample-controller
key point:
should follow logic: event -> queue -> controller get actual state to desired state
Do not simply depend on event (add/update/delete), event is unreliable, for example: if controller restart, update/add/delete event loss ->  actual state may never become desired state.

maybe related: https://github.com/GoogleCloudPlatform/spark-on-k8s-operator/issues/199

maybe related: #199

Yes.


Improvement: Add optional Gradio UI

A user should be able to interact with the script and see the resulting summarization(s) displayed to them in their web browser, in order to lower the necessary technical level for use.

IT WORKS.


Add global variable for framework detection

Something like: window.litHtmlVersions which will be an array of the versions used in a page.

Out of curiosity, is this only necessary to detect the possible duplicate versions? That's unfortunate that ES module oriented library defines something in global namespace.
Can this be wrapped in development mode check so that code could be stripped out by minification tools in production, i.e. how some other existing libraries do?
BTW wondering whether this is also valid for LitElement? 🤔

Question: Given that window.litHtmlVersions is plural, I assume that one can safely run multiple instances/versions of lit-html on the same web page?
Is there anything one should be aware of when doing so?

@oyvindeh you actually can't safely run multiple interacting instances of lit-html together, because we use instanceof type checks in various places. if you send an object from one instance of lit-html to be rendered by another, you'll get bad output. You could however run multiple non-interacting instances of lit-html, because other than this change, we don't have any global state.
Tracking multiple versions will help diagnose problems with multiple instances.

@web-padawan we really don't want this stripped out in production, because then we couldn't detect that a page uses lit-html.


feat: add snake case

:tada: This issue has been resolved in version 1.3.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Feature request: Gun + pilot ability procs status effect on hit

Per discussion with BTA, a tweak that allows application of a status effect to a target unit on hit would be interested. Gated / specified by Gun level perhaps.
--- BEGIN ---
At certain tiers of Gun, when hitting arms/legs/head proc a status effect with a duration driven by Gun value would be pretty easy
Could this be done such that it is not enabled automatically by taking gunnery but is activated by taking a pilot ability? So that we could make a, say, Gunnery 10 pilot skill that activates this functionality?
Because I really like the idea of weapons fire causing debuffs but don't like the idea of it being on every pilot all the time.
That's something I'd want in a specific pilot skill so that it is a choice to be activated.
FrostRaptor — Today at 12:46 PM
From a vanilla standpoint - yes, I do that all the time in my mods. I check the skill + modify it if the pilot has a specific ability.
How that works with all the new ability stuff t-bone and Jamie added I can't speak to.
bloodydoves — Today at 12:47 PM
basically, could it be added to IRTweaks or whatever with a statname that "activates" it
and that without that statname it doesn't take effect
that's all I'd need
just a way to flag it on and off
FrostRaptor — Today at 12:47 PM
For example, here's how I calculate Tactics Mods for SBI, LowVis:
public static int GetTacticsModifier(Pilot pilot) {
return GetModifier(pilot, pilot.Tactics, "AbilityDefT5A", "AbilityDefT8A");
}
Oh yeah, statname? No problem.
bloodydoves — Today at 12:47 PM
so that I could make a pilot skill that turns it on for that pilot via statname
I'd also want configuration so I could set the various debuffs etc
legs/arms/torsos/head would probably be necessary locations
FrostRaptor — Today at 12:49 PM
Yeah, I think we'd be talking about a simple patch on AttackDirector.OnAttackSequenceEnd to check for a hit, if hit check attacker for enablement, then apply status effect to target
Famous last words but I think that'd be fairly straightforward.

Implemented


Make NavigationMeshGenerator independent from navigation module

Moves the NavigationMeshGenerator singleton out from (godot) "navigation" module to its own module.
This is an internal restructuring change to make other addons / modules / extensions and some further navigation developments possible.
The NavigationMeshGenerator is not only a singleton but also used across the engine for 3D (and soon 2D) while the "navigation" module is intended to be just one implementation for the NavigationServer that should be replaceable (soon) or open for gdextention in https://github.com/godotengine/godot/pull/69881.
The NavigationMeshGenerator as part of the module created odd dependency and init chains that required certain nodes like NavigationRegion3D to go through the NavigationServer API instead of working with the NavigationMeshGenerator directly e.g. for navigation mesh (re)baking. This was a roadblocker for other modules and extension that wanted to extend the navigation mesh baking system e.g. like Zylann's terrain module in https://github.com/godotengine/godot/pull/64682.

I haven't checked the changes in depth but this doesn't look good a priori. servers shouldn't depend on thirdparty code.

Superseded by https://github.com/godotengine/godot/pull/70724


Ive got an issue when i run python manage.py runserver <IP_ADDRESS>:8000  i get this long error. Someone please help

@NicholasDsouza1996  python manage.py runserver <your_ip>:8000
Change <your_ip> into this e:g: <IP_ADDRESS>
For the shapely.geometry import error;
I run this pip install Shapely==1.5.17

is there any file which i have to edit to change my ip?

i tried what uve said ive got a different error

1st check what is your local ip. e:g: ifconfig
python manage.py runserver 1 <your_local_ip>:8000
In the browser enter http://<your_local_ip>:8000
Not http://<IP_ADDRESS>:8000

@NicholasDsouza1996 please follow steps in docs to install cartoview


Azure DevOps pipeline template

This is providing a azure-devops.yaml definition to supper the proposed git workflow, leveraging the common backend scripts.

Thanks for adding the pipeline definition for Azure DevOps.
Since it's using the wazideploy-evidence.sh script from the Common-Backend-Scripts, it would make sense to also add this script (and the revised pipelineBackend.config file) too. It could be another PR.

We noticed that subsequent steps were executed - this need to be addressed.

One comment about a pipeline variable: should the variable sshZosKnownHost be renamed zosSSHKnownHost for consistency with the other variables?

FYI @M-DLB - Done.


Dropdown: Dynamic options are not populated correctly

Describe the bug
The options for a dropdown with dynamic options are not populated correctly. Previous entries are retained when the options list is updated.
Provide Code
This example has two dropdowns, the options in the second dropdown depend on the selected option in the first:

<goa-form-item label="Colors">
  <goa-dropdown name="parent" on:_change={itemSelected} value={selections.parent}>
    <goa-dropdown-item value="red" label="Red"></goa-dropdown-item>
    <goa-dropdown-item value="green" label="Green"></goa-dropdown-item>
    <goa-dropdown-item value="blue" label="Blue"></goa-dropdown-item>
  </goa-dropdown>
</goa-form-item>

{#if selections.parent}
  <goa-form-item label="Shades" style="display: block; margin-top: 1rem;">
    <goa-dropdown name="child" on:_change={itemSelected} value={selections.child}>
      {#each childItems[selections.parent] as child}
        <goa-dropdown-item value={child.value} label={child.label}></goa-dropdown-item>
      {/each}
    </goa-dropdown>
  </goa-form-item>
{/if}

To Reproduce
To reproduce (using the provided example):

Select an option from the first dropdown

the second dropdown appears with the correct options

Select another option from the first dropdown

the the second dropdown's options are updated, but incorrectly. The second dropdown should now have 5 options (which it does, but they are not correct). The new options list still has the previous 3 options, and the last 2 options from the new options list is added on top

dropdown-dynamic-options-2024-07-03_10.36.41.webm
Relevant console log output
No response
What browsers are you seeing the problem on?
Firefox, Chrome, Edge, Mobile Android, Mobile iOS
Additional context
Using @agbov/web-components v1.22.0

We're seeing similar issues with dropdown options being duplicated when generated dynamically:
"@abgov/angular-components": "^3.0.3",
"@abgov/design-tokens": "^1.2.0",
"@abgov/web-components": "^1.23.1",

import { Component } from '@angular/core';

@Component({
  selector: 'ui-test-dropdown',
  templateUrl: './test-dropdown.component.html',
  styleUrl: './test-dropdown.component.scss',
})
export class TestDropdownComponent {
  oneTwoThree = [
    { label: 'One', value: '1' },
    { label: 'Two', value: '2' },
    { label: 'Three', value: '3' },
  ];

  fourFiveSix = [
    { label: 'Four', value: '4' },
    { label: 'Five', value: '5' },
    { label: 'Six', value: '6' },
  ];

  ddOneOptions = [...this.oneTwoThree];

  ddTwoOptions = [...this.oneTwoThree];

  private switched = false;

  handleReverseClick() {
    this.ddTwoOptions = [...this.ddOneOptions.reverse()];
  }

  switchList() {
    this.ddTwoOptions = [...(this.switched ? this.oneTwoThree : this.fourFiveSix)];
    this.switched = !this.switched;
  }
}

    This one has static items
    <goa-dropdown>
      <goa-dropdown-item label="Item 1" value="1" />
      <goa-dropdown-item label="Item 2" value="2" />
      <goa-dropdown-item label="Item 3" value="3" />
    </goa-dropdown>

    This one is foreach from a static array
    <goa-dropdown>
      <goa-dropdown-item *ngFor="let o of ddOneOptions" [label]="o.label" [value]="o.value" />
    </goa-dropdown>

    This one has weird behaviour when changing the options dynamically
    <goa-dropdown>
      <goa-dropdown-item *ngFor="let o of ddTwoOptions" [label]="o.label" [value]="o.value" />
    </goa-dropdown>

    <goa-button (_click)="handleReverseClick()">Reverse</goa-button>
    <goa-button (_click)="switchList()">Switch</goa-button>

Label: {{ o.label }}, Value: {{ o.value }}

In this example, clicking reverse does not update the dropdown options though the ul will show properly.

Switching the list causes the options to be appended instead of replacing them.

Change detector doesn't seem to do anything.  As a workaround, we've added an ngIf to the dropdown and toggled it off and on withe a timeout after changing the options to force the re-render.
<goa-dropdown *ngIf="showTheDropdown" ...>

changeToNewDropdownOptions() {
  dropdownOptions = newOptions;
  showTheDropdown = false;
  setTimeout(() => {showTheDropdown = true}, 10);
}


Share Button Callback

I searched the component of Share Button and Share and I couldn't find the callback method after the link is shared.

PR will be welcome

Share and Feed components now support event like onResponse, onError and onReady

            {({ handleClick, loading,error,data }) => (
              Share
            )}

///////////
 handleResponse = (data) => {
    debugger
    alert('bog');
  }
when i click share success not call to handleResponse . Y can demo help me ?

onResponse, onError and onReady do not work with Share button.
Please help here, gotta make it work :/

handleClick = (caption) => {         var hours = 24; // Reset when storage is more than 24hours         var now = new Date().getTime();         var setupTime = localStorage.getItem('setupTime');         if ((now - setupTime > hours * 60 * 60 * 1000) || !setupTime) {             localStorage.removeItem('CURRENT_USER');             localStorage.removeItem('setupTime');             this.props.actShowLoginFb();         } else {             //SDK loaded, initialize it             window.FB.init({                 appId: AppConstants.FACEBOOK_APPID,                 xfbml: true,                 version: 'v2.6'             });             const props = this.props.item;             const th = this;             //JS SDK initialized, now you can use it             window.FB.ui({                 method: 'share',                 title: 'Title Goes here',                 description: '. ',                 href: caption,             },                 function (response) {                     if (response && !response.error_code) {                         th.props.actSharedSuccess(props.id).then(() => {                         });                     } else {                     }                 });             //load the JavaScript SDK             (function (d, s, id) {                 var js, fjs = d.getElementsByTagName(s)[0];                 if (d.getElementById(id)) { return; }                 js = d.createElement(s); js.id = id;                 js.src = "//connect.facebook.net/en_US/sdk.js";                 fjs.parentNode.insertBefore(js, fjs);             }(document, 'script', 'facebook-jssdk'));         }     }

this my code resolve this response from sharing but it doesn't display image and title share because my project is client side


Information class missing in docs

          GitHub Actions workflow [CI #9760](https://github.com/ansys/pymapdl/actions/runs/11453305845) failed.

Event: schedule
Branch: main
Commit: e8248a3f8dfa005967372febf8252147f25dafd8
Created by jayqi/failed-build-issue-action
Originally posted by @github-actions[bot] in https://github.com/ansys/pymapdl/issues/3314#issuecomment-2428248814
The doc build workflow is broken because I didn't update the docs with the new location of Information class.

No it is not...  https://mapdl.docs.pyansys.com/version/stable/api/mapdl.html#information-class-attributes
It is on the MAPDL page, it should have its own page. This makes me think I need to revamp the API page completely.
Related #3025


"corrupted compressed block contents" when opening Bedrock world

Description of Issue:
Loading my Bedrock world fails with the error "corrupted compressed block contents".
MCEdit Version:
git 568c01d0 (<IP_ADDRESS>)
Minecraft Version the world was last opened in:
Bedrock beta <IP_ADDRESS>
Operating System:
macOS 10.13.6
A screenshot or full text of the error from the console:
(master) MacBook-Pro:MCEdit-Unified coda$ python mcedit.py --debug-pe --debug-pe
Running in fixed mode. Support files are in your App Support Folder (Available from the main menu of MCEdit)
pygame 1.9.4
Hello from the pygame community. https://www.pygame.org/contribute.html
Splash load...
[ ****** ] ~~~~~~~~~~ Starting MCEdit-Unified v<IP_ADDRESS>
[   ERROR][          pymclevel.nbt.py:703]:Failed to import Cythonized nbt file. Running on (very slow) pure-python nbt fallback.
[   ERROR][          pymclevel.nbt.py:704]:(Did you forget to run 'setup.py build_ext --inplace'?)
[   ERROR][          pymclevel.nbt.py:705]:cannot import name TAG_Long_Array
Game Version: Unknown : Unknown
/var/folders/9c/qz7q1_lj73qbd9c9vbmk_xl00000gn/T
[ WARNING][            mcplatform.py:1260]:Initializing window management...
Minecraft_Server.jar storage initialized.
Each server is stored in a subdirectory of /Users/coda/Library/Application Support/pymclevel/ServerJarStorage named with the server's version number
Cached servers:  []
/Users/coda/MCEdit-Unified/toolicons/session_good.png
*** MCEDIT DEBUG: file_dialog: /Users/coda/MCEdit-Unified/albow/file_dialogs.pyc
*** MCEDIT DEBUG: directory: /Users/coda/MCEdit-Unified/albow
*** MCEDIT DEBUG: current directory: /Users/coda/MCEdit-Unified
[   ERROR][                  root.py:1332]:Wasn't able to open a file {file => /var/folders/9c/qz7q1_lj73qbd9c9vbmk_xl00000gn/T/mcworld_jmsXSX/level.dat}
Traceback (most recent call last):
  File "/Users/coda/MCEdit-Unified/leveleditor.py", line 1329, in loadFile
    level = pymclevel.fromFile(filename)
  File "/Users/coda/MCEdit-Unified/pymclevel/mclevel.py", line 226, in fromFile
    return PocketLeveldbWorld(filename)
  File "/Users/coda/MCEdit-Unified/pymclevel/leveldbpocket.py", line 886, in __init__
    self.worldFile = PocketLeveldbDatabase(filename, self, create=create, world_version=self.world_version, dat_world_version=self.dat_world_version)
  File "/Users/coda/MCEdit-Unified/pymclevel/leveldbpocket.py", line 303, in __init__
    it.SeekToFirst()
  File "/Users/coda/MCEdit-Unified/pymclevel/leveldb.py", line 327, in SeekToFirst
    self._impl.SeekToFirst()
  File "/Users/coda/MCEdit-Unified/pymclevel/leveldb.py", line 971, in SeekToFirst
    self._checkError()
  File "/Users/coda/MCEdit-Unified/pymclevel/leveldb.py", line 988, in _checkError
    _checkError(error)
  File "/Users/coda/MCEdit-Unified/pymclevel/leveldb.py", line 935, in _checkError
    raise _err(message)
ZipCompressionError: Corruption: corrupted compressed block contents

Contents of dump_pe.txt:
Binary world version: '\x08'; compressor: (4, 2)
Binary world version: '\x08'; compressor: (4,)
Binary world version: '\x08'; compressor: (2,)

How to reproduce:
I installed MCEdit-Unified from source and followed the instructions to copy the _nbt.so into place from the last binary distribution.
I exported my world from the Windows 10 version of Minecraft, copied the .mcworld file over to my Mac (since that's where my development stuff is), and attempted to load the file.
I don't mind uploading the world somewhere if needed, but it's 86MB.

See if you can reproduce this on a smaller world and send that. It might just be that we need to update the leveldb.dll

Same error here.
Running in fixed mode. Support files are in your Documents folder.
Splash load...
[ ****** ] ~~~~~~~~~~ Starting MCEdit-Unified v<IP_ADDRESS>
ERROR: The system was unable to find the specified registry key or value.
[ WARNING][            mcplatform.py:1276]:Initializing window management...
Minecraft_Server.jar storage initialized.
Each server is stored in a subdirectory of C:\Users\...\OneDrive\Documents\MCEdit\ServerJarStorage named with the server's version number
Cached servers:  []
[   ERROR][pymclevel.leveldbpocket.py:194]:Error while opening world database from C:\Users\...\Downloads\... (Corruption: corrupted compressed block contents)
[   ERROR][                  root.py:1190]:Wasn't able to open a file {file => C:\Users\...\Downloads\...\level.dat}
Traceback (most recent call last):
  File "leveleditor.py", line 1187, in loadFile
  File "pymclevel\mclevel.py", line 226, in fromFile
    return PocketLeveldbWorld(filename)
  File "pymclevel\leveldbpocket.py", line 447, in __init__
    self.worldFile = PocketLeveldbDatabase(filename, create=create)
  File "pymclevel\leveldbpocket.py", line 200, in __init__
    leveldb_mcpe.RepairWrapper(os.path.join(path, 'db'))
ArgumentError: Python argument types in
    RepairWrapper.__init__(RepairWrapper, unicode)
did not match C++ signature:
    __init__(struct _object * __ptr64, struct _object * __ptr64, struct _object * __ptr64)

MCEdit 1.5 is not compatible with Bedrock worlds. This is a different issue

I thought the whole thing with unified was that it was compatible... Am I missing something?

MCEdit 1.6 is but 1.5 was released before Bedrock existed

I see on the website that 1.5 is the latest. Is there a release for 1.6 somewhere else, or is it unreleased?

It is a beta on the website. Bottom right of the top box

It took a minute, but I see the download for MCEdit-Unified <IP_ADDRESS>-testing.
Thanks for the help!

That worked. It looks like it doesn't support some of the new blocks, but it is working and that's what I needed. Thanks again.


Feature: about page

A static about page where readers/visitors can learn more about the project.

Add tech stack, credits, demo video etc

Initial iteration: https://github.com/liyasthomas/ebb/commit/8cd876b2410420a918c1e4c8cd0d3e1cc7c18a20


Refactor folder structure

@Charles-Gagnon can you please provide a description on what the motivation behind the refactor is?
In addition, looks like the integration tests failed.


Avoid writing to Network.Spec in allocatePools

A NetworkSpec should never be updated by the core. Avoid updating it in even a
trivial manner by restructuring the creation of ipamConfigs. I also happen to
find the new logic easier to grok.
This is largely benign right now but never writing to Network.Spec will make
changes in #2108 easier to reason about.
Signed-off-by: Ian Campbell<EMAIL_ADDRESS>

LGTM. Thanks for noticing this.

Force pushed because I want to use this as the base for my #2108 refresh that I'm working on today and I want that to be up to date.

ping @aboch

looks good to me as well


Forcing test_mode=True for the DistEvalHook causes --validate to fail

When using --validate, the a DistEvalHook is added to the runner which creates a dataset with
test_mode=True here. This causes the datapoints to be created without 'ann_info' here since prepare_test_img is called and not prepare_train_img. But 'ann_info' is required for validation.

I had the same problem
2020-01-14 00:32:02,834 - INFO - Epoch [1][21/26]	lr: 0.00360, eta: 0:07:04, time: 0.655, data_time: 0.011, memory: 5679, loss_rpn_cls: 0.0267, loss_rpn_bbox: 0.0164, loss_cls: 0.1501, acc: 96.1182, loss_bbox: 0.0933, loss: 0.2865
2020-01-14 00:32:03,489 - INFO - Epoch [1][22/26]	lr: 0.00361, eta: 0:06:59, time: 0.656, data_time: 0.012, memory: 5679, loss_rpn_cls: 0.0247, loss_rpn_bbox: 0.0120, loss_cls: 0.1572, acc: 96.0449, loss_bbox: 0.1054, loss: 0.2992
2020-01-14 00:32:04,138 - INFO - Epoch [1][23/26]	lr: 0.00363, eta: 0:06:54, time: 0.648, data_time: 0.013, memory: 5679, loss_rpn_cls: 0.0193, loss_rpn_bbox: 0.0123, loss_cls: 0.1350, acc: 96.1914, loss_bbox: 0.0918, loss: 0.2584
2020-01-14 00:32:04,790 - INFO - Epoch [1][24/26]	lr: 0.00364, eta: 0:06:50, time: 0.652, data_time: 0.012, memory: 5679, loss_rpn_cls: 0.0221, loss_rpn_bbox: 0.0110, loss_cls: 0.1407, acc: 96.3379, loss_bbox: 0.0852, loss: 0.2591
2020-01-14 00:32:05,385 - INFO - Epoch [1][25/26]	lr: 0.00365, eta: 0:06:44, time: 0.595, data_time: 0.013, memory: 5679, loss_rpn_cls: 0.0225, loss_rpn_bbox: 0.0099, loss_cls: 0.1913, acc: 94.8242, loss_bbox: 0.1214, loss: 0.3451
2020-01-14 00:32:06,025 - INFO - Epoch [1][26/26]	lr: 0.00367, eta: 0:06:40, time: 0.640, data_time: 0.011, memory: 5679, loss_rpn_cls: 0.0421, loss_rpn_bbox: 0.0141, loss_cls: 0.1480, acc: 96.9238, loss_bbox: 0.0787, loss: 0.2829
Traceback (most recent call last):
  File "tools/train.py", line 124, in <module>
    main()
  File "tools/train.py", line 120, in main
    timestamp=timestamp)
  File "/media/fangxu/seagate/Linux-Proj/deep-slam/mmdetection/mmdet/apis/train.py", line 125, in train_detector
    timestamp=timestamp)
  File "/media/fangxu/seagate/Linux-Proj/deep-slam/mmdetection/mmdet/apis/train.py", line 272, in _dist_train
    runner.run(data_loaders, cfg.workflow, cfg.total_epochs)
  File "/home/fangxu/anaconda3/envs/det/lib/python3.6/site-packages/mmcv/runner/runner.py", line 364, in run
    epoch_runner(data_loaders[i], **kwargs)
  File "/home/fangxu/anaconda3/envs/det/lib/python3.6/site-packages/mmcv/runner/runner.py", line 278, in train
    self.call_hook('after_train_epoch')
  File "/home/fangxu/anaconda3/envs/det/lib/python3.6/site-packages/mmcv/runner/runner.py", line 231, in call_hook
    getattr(hook, fn_name)(self)
  File "/media/fangxu/seagate/Linux-Proj/deep-slam/mmdetection/mmdet/core/evaluation/eval_hooks.py", line 39, in after_train_epoch
    data = self.dataset[idx]
  File "/media/fangxu/seagate/Linux-Proj/deep-slam/mmdetection/mmdet/datasets/custom.py", line 129, in __getitem__
    return self.prepare_test_img(idx)
  File "/media/fangxu/seagate/Linux-Proj/deep-slam/mmdetection/mmdet/datasets/custom.py", line 152, in prepare_test_img
    return self.pipeline(results)
  File "/media/fangxu/seagate/Linux-Proj/deep-slam/mmdetection/mmdet/datasets/pipelines/compose.py", line 24, in __call__
    data = t(data)
  File "/media/fangxu/seagate/Linux-Proj/deep-slam/mmdetection/mmdet/datasets/pipelines/loading.py", line 99, in __call__
    results = self._load_bboxes(results)
  File "/media/fangxu/seagate/Linux-Proj/deep-slam/mmdetection/mmdet/datasets/pipelines/loading.py", line 52, in _load_bboxes
    ann_info = results['ann_info']
KeyError: 'ann_info'
[                                                  ] 0/606, elapsed: 0s, ETA:Traceback (most recent call last):
  File "tools/train.py", line 124, in <module>
    main()
  File "tools/train.py", line 120, in main
    timestamp=timestamp)
  File "/media/fangxu/seagate/Linux-Proj/deep-slam/mmdetection/mmdet/apis/train.py", line 125, in train_detector
    timestamp=timestamp)
  File "/media/fangxu/seagate/Linux-Proj/deep-slam/mmdetection/mmdet/apis/train.py", line 272, in _dist_train
    runner.run(data_loaders, cfg.workflow, cfg.total_epochs)
  File "/home/fangxu/anaconda3/envs/det/lib/python3.6/site-packages/mmcv/runner/runner.py", line 364, in run
    epoch_runner(data_loaders[i], **kwargs)
  File "/home/fangxu/anaconda3/envs/det/lib/python3.6/site-packages/mmcv/runner/runner.py", line 278, in train
    self.call_hook('after_train_epoch')
  File "/home/fangxu/anaconda3/envs/det/lib/python3.6/site-packages/mmcv/runner/runner.py", line 231, in call_hook
    getattr(hook, fn_name)(self)
  File "/media/fangxu/seagate/Linux-Proj/deep-slam/mmdetection/mmdet/core/evaluation/eval_hooks.py", line 39, in after_train_epoch
    data = self.dataset[idx]
  File "/media/fangxu/seagate/Linux-Proj/deep-slam/mmdetection/mmdet/datasets/custom.py", line 129, in __getitem__
    return self.prepare_test_img(idx)
  File "/media/fangxu/seagate/Linux-Proj/deep-slam/mmdetection/mmdet/datasets/custom.py", line 152, in prepare_test_img
    return self.pipeline(results)
  File "/media/fangxu/seagate/Linux-Proj/deep-slam/mmdetection/mmdet/datasets/pipelines/compose.py", line 24, in __call__
    data = t(data)
  File "/media/fangxu/seagate/Linux-Proj/deep-slam/mmdetection/mmdet/datasets/pipelines/loading.py", line 99, in __call__
    results = self._load_bboxes(results)
  File "/media/fangxu/seagate/Linux-Proj/deep-slam/mmdetection/mmdet/datasets/pipelines/loading.py", line 52, in _load_bboxes
    ann_info = results['ann_info']
KeyError: 'ann_info'
Traceback (most recent call last):
  File "/home/fangxu/anaconda3/envs/det/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/fangxu/anaconda3/envs/det/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/fangxu/anaconda3/envs/det/lib/python3.6/site-packages/torch/distributed/launch.py", line 253, in <module>
    main()
  File "/home/fangxu/anaconda3/envs/det/lib/python3.6/site-packages/torch/distributed/launch.py", line 249, in main
    cmd=cmd)
subprocess.CalledProcessError: Command '['/home/fangxu/anaconda3/envs/det/bin/python', '-u', 'tools/train.py', '--local_rank=1', 'sewer-det/configs/sewer_faster_rcnn_r50_fpn_1x.py', '--launcher', 'pytorch', '--validate']' returned non-zero exit status 1.

你到底说是为什么呀？

怎么解决的？

I had the same problem, how did you fix it? what's the 'ann_info'
@fangxu622 @haoran1062 @dmarnerides @hellock

guys,
any solutions yet?

Is there still a problem with the latest version now?

I got it, It's my problem.

So how to solve this problem?


chore(create): Update LICENSE year

chore: Updated year in LICENSE to 2020.

Maybe it would be better to get new Date().getFullYear() in there?

Updated changes to make year dynamic.


Add transitions

Fixes #32

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add language to schema

Add a language field to the Book schema and entity. This should be represented by an enum and should be a mandatory field.
For now, the following languages should be added (it needs to be kept in this alphabetical order)
Afrikaans
Albanian
Arabic
Armenian
Bengali
Bulgarian
Chinese
Czech
Danish
Dutch
English
Estonian
Finnish
French
German
Greek
Gujarati
Italian
Hawaiian
Hebrew
Hindi
Japanese
Korean
Latin
Polish
Portuguese
Punjabi
Russian
Sanskrit
Serbian
Sindhi
Spanish
Swahili
Swedish
Tamil
Telegu
Thai
Turkish
Urdu
Welsh

I could work on this.  Do you need a constructor similar to BookFormat?

@chetanchilhate Sure, I'll assign you to the issue. Thanks! Feel free to reach to us on Slack should you need anything

Do you need a constructor similar to BookFormat?

Yes, please

@knjk04 in constructor you want keep the full name or just initials for the language like en for English

@chetanchilhate Let's keep the full name

@knjk04 I am not able to join slack channel it says the link is no longer active
i am getting this output is this expected

My bad, here's an updated link: https://join.slack.com/t/teambookproject/shared_invite/zt-jcijyenp-JiKFGBv62FIPoFnvOW6Ubg
No, there could be an error on the server (backend) because it shouldn't say the 'server cannot be reached'. Are you getting an error in your IDE/terminal? Feel free to ask on the #help channel on Slack, so that we can help with this

@knjk04  i have commented maxQueryDepth and no longer getting 'server can not be reached' issue.  Also i am not getting any error in IDE as well

@chetanchilhate Could you create a PR for this so that I can take a look?

sure

You're right, the max query depth was exceeded. That's fine, though. I'll create a new issue for that to determine a better threshold


Form.Dropdown required attribute not working

Steps
<Form.Dropdown
  label="Circle"
  value={ circle.value }
  onChange={ this.handleChange }
  required
  options= { options }
  placeholder='Which of your circles' />

Expected Result
Form should not submit until this field has been filled
Actual Result
Form submits even if empty
Version
0.75.1
Testcase
https://codesandbox.io/s/oo0r17pj26

Hi,
I tested your CodeSandBox in my chrome and it's working as expected.
Browser: Version 63.0.3239.108 (Official Build) (64-bit)
OS: Linux Mint

Only the name field enforces the required attribute. The form submits even if the circle field which is required is empty

Duplicate, please refer to #1423#comment, there is workaround for this issue, too


tour: "go tool tour" doesn't seem to work now?

Context: https://tour.golang.org/welcome/3
$ go version
go version go1.7.4 darwin/amd64
$ go tool tour
go tool: no such tool "tour"

go version
go version go1.7.5 darwin/amd64
go tool tour
go tool: no such tool "tour"

Just try
gotour

Go tour install issues, duplicate of #8, probably this comment is what are you looking for.

Closing as a dup of #8.


compilation error

when I am trying to integrate mfast with my project, I am getting following error:
/usr/local/include/mfast/int_ref.h: In member function ‘void mfast::int_mref::as(T) const’:
/usr/local/include/mfast/int_ref.h:99:20: error: invalid use of ‘class std::set’
this->storage()->template set(v);
/usr/local/include/mfast/enum_ref.h: In member function ‘void mfast::enum_mref_ex<Derived, CRefType>::as(mfast::enum_mref_ex<Derived, CRefType>::element_type) const’:
/usr/local/include/mfast/enum_ref.h:159:22: error: invalid use of ‘class std::set’
this->storage()->template set<uint64_t>(v);
^

You must have used namespace std before you include mfast headers.
The solution is try include mfast headers at the very beginning of your cpp file.


act: 0.2.48 -> 0.2.49

Description of changes
change log: https://github.com/nektos/act/releases/tag/v0.2.49
diff: https://github.com/nektos/act/compare/v0.2.48...v0.2.49
This also fixes an issue experienced in act causing failures with the error failed to attach to exec: http: invalid Host header https://github.com/nektos/act/issues/1908 by updating the docker version of this release.

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

1 package built:

act


Update the sample "Metric Presets" Notebook

Description:
Update the sample notebook showing how to generate DataDriftPreset with "render": {"raw_data": True} option.
Context:
Evidently documentation includes a sample notebook that shows all Metric Presets for tabular data.
https://github.com/evidentlyai/evidently/blob/main/examples/sample_notebooks/evidently_metric_presets.ipynb
By default, all Evidently Reports show aggregated visuals. However, there is an option to include raw data in the Reports, generating different (non-aggregated) visualizations.
We want to add an example of using this functionality for the Data Drift report.
Implementation:
Edit the notebook, adding an example using the raw_data option for Data Drift. https://github.com/evidentlyai/evidently/blob/main/examples/data_stories/bicycle_demand_monitoring.ipynb.
Add a new header under "How to get a Python object with Report's main data?" - for example, "How to generate a Report with raw data visualizations?"
Follow the documentation on using the raw data option https://docs.evidentlyai.com/user-guide/customization/report-data-aggregation.

I'd like to work on this issue. Could you assign it to me?

Hi @anirudhsudhir, we do not assign the issues directly - feel free to send the PR, and we'll review them as they come.
I am afraid though there is already a submitted PR for this issue.


draft-js issues when webpack target set to node-webkit

Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When compile draft-js with default webpack target (web in this case) everything works. Issue starts when we set target to node-webkit. I am using NW.js and to get node modules work with it, i need to set target to node-webkit. Otherwise some native modules are not working. If I give web then Draft.js works but this time i lost access to native modules.
When I render Draftjs in React, I get this error immediately:
IndexSizeError: Failed to execute 'getRangeAt' on 'Selection': 0 is not a valid index.

http://localhost in addFocusToSelection at line 3004
http://localhost in setDraftEditorSelection at line 3004
http://localhost in DraftEditorLeaf._setSelection at line 3004
http://localhost in DraftEditorLeaf.componentDidMount at line 3004
http://localhost in commitLifeCycles at line 3004
http://localhost in commitAllLifeCycles at line 3004
http://localhost in HTMLUnknownElement.callCallback at line 3004
http://localhost in Object.invokeGuardedCallbackDev at line 3004

What is the expected behavior?
Draft.js should work when webpacker set to node-webkit
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?
0.11.0
See: https://github.com/facebook/draft-js/pull/1106. This works. However, there are more issues:
When apply this fix, I successfully get draft-js working on my end. However, writing is become very slow. With each state update, editor goes much more slower and cursor jumps to start. In the end (after few typings) i cannot type anymore. No issue with target: web.
Any suggestion?
Update: It not just slowness, its horrible. When I do Ctrl+A (select-all) and delete then type something. State keeps both data (previous deleted + new typed).

This looks similar to #194


Extension causes high cpu load

Issue Type: Performance
Extension Name: live-sass
Extension Version: 5.4.0
OS Version: Windows_NT x64 10.0.19044
VS Code version: 1.68.1

:warning: Make sure to attach this file from your home-directory:
:warning:file:///c%3A/Users/user/AppData/Local/Temp/glenn2223.live-sass-unresponsive.cpuprofile.txt
Find more details here: https://github.com/microsoft/vscode/wiki/Explain-extension-causes-high-cpu-load

⚠ Make sure to attach this file from your home-directory:
⚠file:///c%3A/Users/user/AppData/Local/Temp/glenn2223.live-sass-unresponsive.cpuprofile.txt

Please can you provide this file


[BugFix] support both inner and outer table column in one side of operator in correlated predicate

What type of PR is this：

[x] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #10815
Problem Summary(Required) ：

This pr helps to solve the problem when correlated predicate contains both inner table column and outer table column in one side of eq operator. For example, this sql select t1.a from t1 where t1.b < (select t2.d  from  t2 where t1.b+abs(t2.a) = t2.c), we should extract abs(t2.a), t2.c from the correlated predicate t1.b+abs(t2.a) = t2.c and add them into the inner table output.
To solve the bug, I did things as below:

add CorrelatedPredicateRewriter to rewrite the correlated predicate. In the rewrite, we only extract distinct expr which only contains inner table column and replace it with a new columnRef. This helps to avoid extract const value and duplicate expr which add extra cost to the child input process. In the future, we could enhance the ability of this rewriter to support more correlated predicate in subquery.
extract common logic from four subqueryToJoin rules to SubqueryUtils to simplify the code.
modify the check() method in  HashJoinImplementationRule and NestloopJoinImplementationRule . Only contains eq conditon and operands in each side of equal operator belongs to one child input  can implement to hash join.

Checklist:

[x] I have added test cases for my bug fix or my new feature
[ ] I have added user document for my new feature or new function

run starrocks_fe_unittest

run starrocks_clang-tidy

run starrocks_fe_unittest

[FE PR Coverage Check]
:disappointed: fail : 134 / 209 (64.11%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/sql/optimizer/operator/scalar/BetweenPredicateOperator.java
0
4
00.00%
[21, 22, 23, 24]

:large_blue_circle:
com/starrocks/sql/optimizer/operator/scalar/LikePredicateOperator.java
0
4
00.00%
[26, 27, 28, 29]

:large_blue_circle:
com/starrocks/sql/optimizer/rewrite/BaseScalarOperatorShuttle.java
31
87
35.63%
[35, 45, 50, 51, 52, 53, 55, 61, 62, 63, 64, 66, 71, 72, 73, 74, 76, 94, 99, 100, 101, 102, 104, 133, 134, 135, 136, 138, 144, 145, 146, 147, 149, 155, 156, 157, 158, 160, 166, 167, 168, 169, 171, 188, 189, 190, 191, 192, 194, 195, 197, 198, 201, 202, 204, 206]

:large_blue_circle:
com/starrocks/sql/optimizer/rule/transformation/PushDownApplyAggFilterRule.java
9
11
81.82%
[108, 114]

:large_blue_circle:
com/starrocks/sql/optimizer/rewrite/CorrelatedPredicateRewriter.java
31
38
81.58%
[51, 82, 84, 85, 88, 89, 92]

:large_blue_circle:
com/starrocks/sql/optimizer/rule/transformation/ExistentialApply2OuterJoinRule.java
10
11
90.91%
[241]

:large_blue_circle:
com/starrocks/sql/optimizer/rule/transformation/QuantifiedApply2OuterJoinRule.java
22
23
95.65%
[105]

:large_blue_circle:
com/starrocks/sql/optimizer/Optimizer.java
1
1
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/rule/implementation/MergeJoinImplementationRule.java
2
2
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/rule/transformation/ScalarApply2JoinRule.java
11
11
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/operator/scalar/CompoundPredicateOperator.java
4
4
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/SubqueryUtils.java
9
9
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/base/ColumnRefFactory.java
4
4
100.00%
[]

[FE PR Coverage Check]
:heart_eyes: pass : 173 / 211 (81.99%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/sql/optimizer/operator/scalar/BetweenPredicateOperator.java
0
4
00.00%
[21, 22, 23, 24]

:large_blue_circle:
com/starrocks/sql/optimizer/operator/scalar/LikePredicateOperator.java
0
4
00.00%
[26, 27, 28, 29]

:large_blue_circle:
com/starrocks/sql/optimizer/rewrite/BaseScalarOperatorShuttle.java
70
89
78.65%
[35, 53, 64, 74, 94, 102, 136, 147, 158, 169, 191, 192, 194, 195, 197, 198, 201, 202, 204]

:large_blue_circle:
com/starrocks/sql/optimizer/rule/transformation/PushDownApplyAggFilterRule.java
9
11
81.82%
[108, 114]

:large_blue_circle:
com/starrocks/sql/optimizer/rewrite/CorrelatedPredicateRewriter.java
31
38
81.58%
[51, 82, 84, 85, 88, 89, 92]

:large_blue_circle:
com/starrocks/sql/optimizer/rule/transformation/ExistentialApply2OuterJoinRule.java
10
11
90.91%
[241]

:large_blue_circle:
com/starrocks/sql/optimizer/rule/transformation/QuantifiedApply2OuterJoinRule.java
22
23
95.65%
[105]

:large_blue_circle:
com/starrocks/sql/optimizer/Optimizer.java
1
1
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/rule/implementation/MergeJoinImplementationRule.java
2
2
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/rule/transformation/ScalarApply2JoinRule.java
11
11
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/operator/scalar/CompoundPredicateOperator.java
4
4
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/SubqueryUtils.java
9
9
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/base/ColumnRefFactory.java
4
4
100.00%
[]

run starrocks_admit_test

run starrocks_admit_test


Update release workflow to not use set-output

The "Release" > "Create" workflow currently uses set-output (as echo "::set-output name=xxx::$yyy"), which is an GitHub Actions' feature that has been deprecated an may be disabled in the future.
To ensure the automated releases keep working, the workflow should be updated to not use set-output (or save-state) anymore.
Based on https://github.com/github/codeql-action/compare/v2.1.27...v2.1.28 it looks like changing the workflow as follows should work:
- echo "::set-output name=xxx::$yyy"
+ echo "xxx=$yyy" >> $GITHUB_OUTPUT

Hi, can I work on this?

Definitely @Vinitvh, I assigned you to it. Looking forward to your Pull Request 😄


Convert panics in deploy code to errors

Fix https://github.com/pachyderm/pachyderm/issues/1196

Yup all looks good!


A question bother me a long time: What is the difference between RL-for-text-generation and delete-0-reward-model-predictions?

For text gereration.
Thank you very much!

To many edit, go https://github.com/allenai/RL4LMs/issues/46


modify the UNIQUE KEY

How do I modify the UNIQUE KEY of the data table?

UNIQUE KEY does not support any modification

OK, thanks！


Minimize context swaps

This optimization helps to avoid unnecessary creation of new fibers when the workers aren't doing too much stealing. This change brought the number of fiber-swaps in the Fib(35) test down from over 14 million to just a few hundred.
This should give better performance in many cases, but it's still possible to create a scenario where you get a new fiber per finish scope.

This diff looks fine to me, thanks for the change Nick! I've got a performance regression suite on my branch, if I have time I'll try to merge this diff in and run the suite to see if any of the benchmarks see an appreciable speedup.


Airdrop poposal hangs in CI

not entirely sure what's happening here, but it causes CI runs to never finish correctly.

Resolved by #144


Deploy app

We should have a version deployed. I suggest the following steps:

Finish with issue #78.
Use Heroku or a similar cloud platform to deploy the app.

Currently the app relies on an elasticsearch database, and while testing it was only using a free trial. It should be enough for the demo as well I believe. Or should we set up our own database on the deployment?

Let's try to do the minimum changes. I propose to use it as it is already set up.

We should have a version deployed. I suggest the following steps:

Finish with issue Rename tests #78.
Use Heroku or a similar cloud platform to deploy the app.

Let's check our options for cloud platforms.

Ok sure, Ill double check that everything runs also


Favour class-based REPL wrappers, except for top-level classes/objects

@retronym I had a real go at trying to implement your idea of tacking on a "defining macro implementations is unsupported, restart the REPL w/ .. setting" error message, but to me it seemed like there wasn't any pre-existing place in the REPL where this should happen.  The closest is the class/companion object messaging, but that's on positive compilation.
So instead I approximated support for macros when using class-based REPL wrappers.  Do you find that too risky/unprincipled/low ROI?  Feedback welcome.

I've got a third option: we can teach the macro engine how to navigate the .INSTANCE.iw().iw() methods to get to the singleton instance of the owner of a macro implementation method or bundle class. WIP.
I think this is worth the extra effort to avoid the risk of the syntactic heuristic which could be triggered in a Spark REPL session that uses some other type named 'Context` in a method signature.

Well, that was simpler than I thought it would've been.
Tomorrow I'll get the test suite passing with it defaulted to true.
Obviously this is for landing the change in 2.13, not in 2.12.  Same goes with magic imports.

Next week I need to get those partest test cases not change like that...

GOTO #83


Updated the following docs as per new UI

Updated the following docs as per the new UI:
https://testsigma.com/docs/test-management/test-plans/cross-browser-testing/

https://testsigma.com/docs/test-cases/step-types/overview/

The content has been migrated along with other PR. So, Closing this PR


'tag', 'name' or 'metadata' operator for debugging and tracing (i.e. rxjs-spy)

Feature Request
We more and more use rxjs. Logic flow becomes very complex and hard to debug.
There is tool that ease debugging: https://www.npmjs.com/package/rxjs-spy
Inconvenience of this tool is that it has its own "tag" operator and you have to reference
that 3rd pary debugging lib even when you build in prod mode (removing all 'tag' operators and then adding them back for debug is not a good solution).
Having alike operator right in rxjs will avoid of having such inconvenience.

rxjs-spy will be be more or less deprecated when the DevTools for RxJS are done. And the tag operator will be a thing of the past. Adding something similar here would be a step backwards, IMO.

What are DevTools for RxJS? Is there any verion of it?

What are DevTools for RxJS?

A Chrome/Firefox DevTools extension for RxJS.

Is there any verion of it?

There is no released version. Yet.

Any way to try? Who is developing them? https://github.com/topics/devtools-extension ? Can you give repo url?

Any way to try?

No
I'm going to close this because regarding the "you have to reference that 3rd par[t]y debugging lib" point, rxjs-spy was written so that when tag is imported like this:
import { tag } from "rxjs-spy/operators/tag";

there are no references to any other parts of rxjs-spy - you get the operator and that's it.
If that is, for some reason, still a problem, you should open an issue in the rxjs-spy repo.


Add a default to currency handling

I needed it fast, so i have duplicated this repo.
Here is my proposal:
When I change the language, I would like to have a default currency used. Website using the USD will non stop have to pass the options.currency to the 'currency' function, but the fact is that I want to use a default currency in my app.
There is a fallback on the EURO currency, and the behavior is the same as it used to be, just the default is not only euro, but can be set at the change of the language (for example with the i18n vuejs plugin:
this.$basil.i18n.defaultCurrency = this.i18n.getNumberFormat(this.i18n.locale).currency.currency

I've added you as a collaborator, would be more practical. :)
Enjoy.


Empty line after last case in enum is removed

Bug report
When I run php cs fixer empty line after last case statement is removed. But it should not.

Code snippet that reproduces the problem
PHP: 8.1
Configuration:
    ->setRules(
        [
            '@PSR1' => true,
            '@PSR12' => true,
            '@Symfony' => true,
            '@Symfony:risky' => true,
            '@PHP81Migration' => true,
            '@PHP80Migration:risky' => true,
            'concat_space' => ['spacing' => 'one'],
            'global_namespace_import' => ['import_classes' => true],
            'native_function_invocation' => false,
        ]
    )
    ->setFinder($finder)
    ->setRiskyAllowed(true);

Package version:  "friendsofphp/php-cs-fixer": "^3.8",

Hi and thanks for opening this issue. I believe what you describe here is the same as this issue:
https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/6214
As such I recommend closing this issue as duplicate.
If it is not, please fill in the issue template to provide all details in text format, thanks!

Ok, thanks, it seems like the same issue.


portable-atomic-util: Rewrite Arc based on std::sync::Arc

When I reviewed https://github.com/taiki-e/portable-atomic/pull/41, I thought the differences in its implementation were fine, but in reality, we have missed several problems that would not have occurred if the implementation had been based on std::sync::Arc (#137, #139).
This will not necessarily be easy, since the standard library uses many unstable features.

When I was originally writing the Arc code, I tried to follow along with the standard library's version, but polyfilling bits and pieces in when unstable features were used.
It might be nice to bump the MSRV of portable-atomic-util higher than 1.34 so we gain access to some of these features, such as addr_of.

The draft implementation is in #142. addr_of_mut in as_ptr is not really important; the layout calculation is needed anyway to implement from_raw, and it can be used in as_ptr, so making the layout calculation work in the older version is the important point.

As a side effect of this work, I found UBs in std Arc/Rc.
https://github.com/rust-lang/rust/issues/119241


take photo

How can i take  a picture with backFotoapparat object

There is an example of how to use the Fotoapparat library in the equivalent project. This is the face detector project


Feature 1444 AVN

Compiled code for testing can be found on kiowa:
/d1/projects/MET/MET_pull_requests/met-9.1_beta4/feature_1444/MET-feature_1444_AVN_into_develop/met/bin

Thanks Kathryn. I just updated that warning message to read as follows:
WARNING: parse_conf_tc_model() -> Requesting tropical cyclone model name "AVNI" will yield no results since "AVN" is automatically replaced with "GFS" when reading ATCF inputs. Please use "GFS" in the "model" entry of the configuration file to read/process "AVN" entries.

The "model" is set in the configuration file, not on the command line with "-model". The kiowa build is recompiling now with that change:
/d1/projects/MET/MET_pull_requests/met-9.1_beta4/feature_1444/MET-feature_1444_AVN_into_develop/met


Loss not going down

Hi,
I started a training from scratch with train.py with VOC2012 data set. I downloaded the Augmented GTs and plugged in to the data set. Now the GTs are the augmented GTs and original jpg files from data set.
The loss is not going down, it is oscillating. Any clue on how to get it working?
Regards, Vijay

from scratch

Do you mean with randomly initialised model?

i used the deeplab_resnet_init.ckpt and tried to run the train.py file. The loss was oscillating and not coming down at all. I also tried the deeplab_resnet.ckpt same behaviour.

I used the JPEGimages from VOCdevkit and GTs were pointed to Augmented images i downloaded from this github. Thats correct right?

Same problem for a model which doesn't use the deeplab_resnet.ckpt file to init

what are the images in your tensorboard after few iterations?

i have  same  problem ，i use  my own datatset(3 classes )  to train.Loss value was oscillating and not coming down at all.  LOSS 1.2~1.3

@DrSleep there are no images being produced in tensorboard

2all: the hyperparameters (learning rate, batch size, momentum, etc.) have been chosen on Pascal VOC (for the procedure behind these choices, please refer to the original paper).
It is not the case that the same hyperparameters would be suitable for other datasets, thus it is your task finding an appropriate set of hyperparameters for your dataset.
This repository is a replication of an academic paper. Anything else besides that is a bonus (like an ability to train on your own datasets).

Okay. But the model is also not working for VOC dataset when not using the pretrained .ckpt file

It works on VOC with either pre-trained or not pre-trained files.
Make sure that your setup is correct.

I also meet this problem, I use VOC2012, and pretrained model..

I just meet a similar problem, loss goes down in a very slow speed

same here

In my case I used my own data set to do training. At first I took train.py then the loss went down very very very slowly (from 10 to 8 for 60000 steps), then I took another script train_msc.py and the loss began to go down very quickly , and I found that the second one did training better than the first since the loss was much smaller (about 3 instead of 8 in my case).

May I know the final loss for after running train.py for 20K iterations with deeplab_resnet_init.ckpt as a start? I used PASCAL dataset and the final loss was about 1.3.
It would be better if you could provide the graph of your training curve?

Same here. With the default configuration and PascalVOC the loss oscillates between 1.2-1.3. Could someone plot the training curve or tell which are the loss values after 20K iterations for example? Thanks!

Have someone show the loss after 20K? It is about 1.18 in my PC. Or who knows the reason?

my loss is always about 1.3 and the result predicted the images is black,nothing result.I use default hyperparameters and voc2012 dataset with deeplab_resnet.ckpt as a start.why doesn't work?

my loss is always about 1.3 and the result predicted the images is black,nothing result.I use default hyperparameters and voc2012 dataset with deeplab_resnet.ckpt as a start.why doesn't work?

Hi were you able to solve the issue.

Hi, My loss does not change. It has become stagnant. I have tried everything mentioned related to deeplabv3+ on every blog.
I am training to detect roads. My images are of 2000x2000.
My training data has 45k images.
I have created my image in the form of PASCAL VOC. I have three kinds of pixels.
background = [0,0,0]
Void class = [255,255,255]
road = [1,1,1]
so the number of classes = 3
I am using PASCAL VOC pre trained weights.
changes in train_util.py are :
1.
ignore_weight = 0
label0_weight =10
label1_weight = 15
not_ignore_mask =
tf.to_float(tf.equal(scaled_labels, 1)) * label0_weight

tf.to_float(tf.equal(scaled_labels, 2)) * label1_weight
tf.to_float(tf.equal(scaled_labels, ignore_label)) * ignore_weight

Variables that will not be restored.
exclude_list = ['global_step','logits']
if not initialize_last_layer:
exclude_list.extend(last_layers)
my train.py
nohup python deeplab/train.py
--logtostderr
--training_number_of_steps=65000
--train_split="train"
--model_variant="xception_65"
--atrous_rates=6
--atrous_rates=12
--atrous_rates=18
--output_stride=16
--decoder_output_stride=4
--train_batch_size=2
--initialize_last_layer=False
--last_layers_contain_logits_only=True
--dataset="pascal_voc_seg"
--tf_initial_checkpoint="/data/old_model/models/research/deeplabv3_pascal_trainval/model.ckpt"
--train_logdir="/data/old_model/models/research/deeplab/mycheckpoints"
--dataset_dir="/data/models/research/deeplab/datasets/tfrecord" > my_output.log &
Please help 👍
INFO:tensorflow:global step 700: loss = 0.1759 (0.449 sec/step)
INFO:tensorflow:global step 710: loss = 0.1695 (0.655 sec/step)
INFO:tensorflow:global step 720: loss = 0.1742 (0.689 sec/step)
INFO:tensorflow:global step 730: loss = 0.1710 (0.505 sec/step)
INFO:tensorflow:global step 740: loss = 0.1708 (0.868 sec/step)
INFO:tensorflow:global step 750: loss = 0.1683 (0.632 sec/step)
INFO:tensorflow:global step 760: loss = 0.1692 (0.442 sec/step)
INFO:tensorflow:global step 770: loss = 0.1693 (0.597 sec/step)
INFO:tensorflow:global step 780: loss = 0.1665 (0.441 sec/step)
INFO:tensorflow:global step 790: loss = 0.1680 (0.548 sec/step)
INFO:tensorflow:global step 800: loss = 0.1708 (0.372 sec/step)
INFO:tensorflow:global step 810: loss = 0.1674 (0.327 sec/step)
INFO:tensorflow:global step 820: loss = 0.1666 (0.951 sec/step)
INFO:tensorflow:global step 830: loss = 0.1651 (0.557 sec/step)
INFO:tensorflow:global step 840: loss = 0.1663 (0.506 sec/step)
INFO:tensorflow:global step 850: loss = 0.1646 (0.446 sec/step)
INFO:tensorflow:global step 860: loss = 0.1666 (0.424 sec/step)
INFO:tensorflow:global step 870: loss = 0.1654 (0.520 sec/step)
INFO:tensorflow:global step 880: loss = 0.1662 (0.675 sec/step)
INFO:tensorflow:global step 890: loss = 0.1673 (0.325 sec/step)
INFO:tensorflow:global step 900: loss = 0.1633 (0.548 sec/step)
INFO:tensorflow:global step 910: loss = 0.1659 (0.374 sec/step)
INFO:tensorflow:global step 920: loss = 0.1639 (0.663 sec/step)
INFO:tensorflow:global step 930: loss = 0.1658 (0.442 sec/step)
INFO:tensorflow:global step 940: loss = 0.1654 (0.568 sec/step)

@PallawiSinghal  Did u find a solution to your problem?


Configuration Threshold Heuristic

I think it would good if you can provide a brief description of this PR. It helps in the review.
Thanks.


(OUI Docs) Remove logos from Page title on /layout/page

[ ] Remove all logos from Page title sections in all examples (7 in total). Previously, I believe there may have been a bug which hid the logo placed originally by elastic. Regardless, we do not use logos or icons in our page titles so the logos in the examples should be removed.

@KrooshalUX Do we want a follow-up issue to actually remove/deprecate the <OuiPageHeader> iconType prop?

This PR is merged and closed, however I see an elastic logo on the page in 1.0 and 1.1 versions:

The necessary PR (https://github.com/opensearch-project/oui/pull/639) was not backported to 1.x (https://github.com/opensearch-project/oui/pull/851) so in 1.2 the changes have not been applied. @joshuarrrr, I see that we do not have backport 1.2 tag. To create it, do I need to take special steps to do so?


Documentation fix: #incr and #decr take a TTL but only apply it on new co

Documentation fix: #incr and #decr take a TTL but only apply it on new counters.

Why did you remove the first block?  Is it not true?

The first block is true, but describes #decr, not #incr.  The same text is present in #decr.  It looked like a copy-paste error to me.  Sorry, I should have done that in two separate commits.

Thanks!


fix: windows build

fixes a regression introduced in #365 with windows builds
Changes

mount the windows scripts instead of the ubuntu scripts
volume works with entire windows folder instead of individual script

Checklist

[x] Read the contribution guide and accept the code of conduct
[x] Readme (updated or not needed)
[x] Tests (added, updated or not needed)

Codecov Report

Merging #368 (d21f46d) into main (ca9d445) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #368   +/-   ##
=======================================
  Coverage   44.87%   44.87%
=======================================
  Files          51       51
  Lines        1482     1482
  Branches      230      230
=======================================
  Hits          665      665
  Misses        813      813
  Partials        4        4

Impacted Files
Coverage Δ

src/model/docker.ts
18.51% <ø> (ø)


Inline fold is causing infinite loading of Loading IntelliSense status when regex is complex?

situation & problem
Just happened today, when I was coding. I found that the IntelliSense stopped working & the indicator shows the language IntelliSense keeps loading infinitely.
I tried to turn off my extensions one by one & finally found Inline fold is causing it.

suspecting cause

this regex (?<=^ *\/\/)(?: @.*?: )?(?<main>.{200,})?? causes problem, though its valid;
if I change to something simple (?<=^ *\/\/)(?: @.*?: )?(?<main>.{200,}), problem fixed
too complex & heavy load performance problem?
bug happens when the regex group has no match? //dont_think_so

environment
Inline Fold v0.2.6
Vscode Version: 1.84.2 (user setup)
setting
  "inlineFold.regexGroup": "1",
  "inlineFold.regex": "(?<=^ *\\/\\/)(?: @.*?: )?(?<main>.{200,})??",
  "inlineFold.regexFlags": "gm",
  "inlineFold.supportedLanguages": [
    // "astro",
    // "vue",
    // "html",
    // "svelte",
    // "vue-html",
    // "php",
    // "blade",
    // "erb",
    // "twig",
    // "nunjucks",
    // "django-html",
    // "jinja-html",
    "javascript",
    "typescript",
    "javascriptreact",
    "typescriptreact",
    // "json"
  ],

Hey @Norlandz
Thanks for the detailed explanation.
I will have a look on this very soon

I remember when greedy regex is used it can lead to performance issues... (correct me if i'm wrong)... tried to replicate with no sucesss....
maybe this work?
(?<=^ *?\/\/)(?: @.*?: )?(?<main>.{200,})??

@Norlandz what is the regex for? Just curious 👀

@emedeirox
example usage
(?<=^ *\/\/)(?: @.*?: )?(?<main>.{200,})?

  // some simple comment, dont fold this
  // @fixthis[due to some problem]: dont fold this, cuz this is not long enough, blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla
  // @fixthis[due to some problem]: fold things after this point, cuz this is a very long sentence, blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla
  // fold things after this point, cuz this is a very long sentence, blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla

about ?? lazy match or not
(?<=^ *\/\/)(?: @.*?: )?(?<main>.{200,}) -- this works most of the time
(?<=^ *\/\/)(?: @.*?: )?(?<main>.{200,})? -- this works sometimes
(?<=^ *\/\/)(?: @.*?: )?(?<main>.{200,})?? -- this breaks (though I shouldnt use it, cuz it actually doesnt produce the match I want.)
^ *\/\/.{25}(.{200,}) -- for performance, this is what Im currently using

I actually should not use the lazy version (?<=^ *\/\/)(?: @.*?: )?(?<main>.{200,})??, it doesnt produce the match I want.
though, still, the regex is valid, its shouldnt cause the infinite loading
I think its some performance issue, dont think its related to lazy or not

for unable to reproduce
Maybe try to create a medium size project with like 20 files.
And some of the file contains some extremely long comment lines -- about 4000 characters (though this is long for human, this is shouldnt be long for regex)
Pay attention to the Loading IntelliSense status icon, should start keeps spinning, once you change the setting of the regex / or even after you reload vscode.

@moalamri  (Dont waste too much time on this yet. Now I have a feeling maybe its not inline fold's issue. I will keep an eye on vscode.)

@moalamri  @emedeirox
So, I have been trying to disable & enable extensions on and off for last days.
In short
Inline fold is not the main/only cause.
Its Typescript & Vscode intellisense.
Details
main cause -- Vscode & Typescript

Vscode 1.84.2
Typescript 5.2.2 + tsconfig.json
(without Inline fold)
(with very few extensions (~6), tried different group/combination of extensions)

-> Occasionally makes infinite loading of Loading IntelliSense status;
Happens in the midway when you are writing code.

This is the main cause.

No way to fix it, but just restart Vscode when it happens... (tried search online, no help)

Or maybe tune the tsconfig.ts
Or wait for a better Typescript version / Vscode intellisense version & hope its fixed

minor cause -- Inline fold & some weird regex

Vscode 1.84.2
Inline fold v0.2.6
regex (?<=^ *\/\/)(?: @.*?: )?(?<main>.{200,})??
(without any other extension)
(does project structure contribute to this? havent test)

-> Always (right after you set the weird regex / even reload) makes infinite loading of Loading IntelliSense status

To fix it, just dont use the weird regex.

Other que
This is unlikely to be caused by other extensions

For

Codeium
IntelliCode - Microsoft
Eslint
some refactor extensions
some code highlight/visualization enhance extensions

they are unlikely the cause.

Because I tried to disable some of them, but the problem just comes back & back again, no matter they present or not.
(Of couse I didnt disable & enable only one extension one by one, (I dont have the time for that);
I disable a group/combination of them, chosen kinda randomly, to exclude a group of potential cause)

Misc

This happened after a recent update of Vscode, not before.

I am closing this since this is not mainly caused by inline fold.
If you want to reopen this, feel free to do so.


multiple events not triggered when delimited by a space

although the docs/comments suggest it can be done, multiple events cannot be called when separated by a space.
trigger Triggers an event

/**
 * @param {String} event name (multiple events can be called when seperated by a space " ")
 * @param {Mixed} [attributes] Parameters that will be applied to event handler
*/
router.trigger('event otherevent', eventArg1, eventArg2);

The issue is that router.trigger wasn't initially meant to trigger more than 1 event. The reason this was believed was because the JavaDoc was copied from router.bind, but the functionality did not follow. So that's my fault. That's what I get for copying JavaDoc! :]
Thanks for bringing this up, it also made me realize that there was a typo in README.md.

you don't want to allow router.trigger to trigger multiple events? could be be nice

Generally, a developer should be binding to multiple, but triggering once. This prevents event emitters from getting out of hand. Barring firing multiple events for compatibility issues, the app only needs to be emitting events once per line. If you really need to, you can call it multiple times. router.trigger().trigger();

yep, that's how I'm doing it now - okay, no worries


[ProgressSteps] Tail overlaps the icon

If you look closely, you’ll see that the ProgressSteps tail overlaps the current step’s icon.

Expected Behavior
Would expect the tail to be under the icon, or to at least have no overlap.

[x] I have searched the issues of this repository and believe that this is not a duplicate.

https://github.com/uber-web/baseui/pull/1177

fixed in https://github.com/uber-web/baseui/commit/8fd990f68dadb2993062cec8fa7672e480706ee0


Allow colons in usernames and passwords of os-freeradius

See https://github.com/opnsense/plugins/issues/2933

Was there something missing to get this accepted?

Looks like maintainer and me didn't catch this. There is a spurious wireguard change in here so it needs to be rebased first.

Actually, I have never done that, can you, @fichtner? The changes themselves are trivial. The wireguard part was unrelated and has been adopted already (so the fixes were adopted in part.
What is left are only commits 4be28c4 and 709b0e1.


fix Fix non-standard code in tpch/tpcds dbgen tools

Proposed changes
Issue Number: close #xxx

removed some duplicated declares in TPCH's dbgen code
add flag '-fcommon' for TPCDS's dbgen tool's build

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


forceSync=true is not working.

Describe the bug
The docs for forceSync say it will automatically sync to the original textArea but I am not seeing that behavior.
To Reproduce
Steps to reproduce the behavior:
Reproducer:  https://stackblitz.com/edit/easymde-urbxmv?file=index.html

Start typing.  I can see that forceSync calls cm.save()`
View the HTML source and you will see the original textArea does not contain the new text.

Expected behavior
The textArea should contain the edited text

My bad its working.

My bad its working.

Did you have to make any changes to the code to make it work? It is also not working for me with just the forceSync option set to true.


Doesn't render functional components

When adding functional: true to a component, things seem to blow up.  My component looks like this:
<template>

Hello world

</template>

Nothing crazy. Just trying to get it to show up on the page.  I start to get the following errors:

When I remove functional: true, things work like they should. Any suggestions on what I may be doing wrong?
Note: this is the command that is being run to generate the code:
watchify src/app.js -t vueify -t babelify -p browserify-hmr -o public/app.bundle.js

I am running VueJS v2.0.0-alpha.8 and Vueify v9.1.0.

You cannot define functional components in *.vue files, because they don't use the template option - they can only use direct render functions. Functional components are mostly used for programmatic processing of the virtual dom.

@yyx990803 maybe this could be added to the documentation?


env folders are missed

Thanks for your excellent work! I am trying to use your code. However, I could not find any code that defines the env.TSPenv, which is required to run the train.py.  Maybe you forgot to upload this part of the code?

Thanks for letting me know, I uploaded the env folders and should work now!