customFetch configuration option doesn't appear to work with Next.js 15

Which packages are impacted by your issue?
@graphql-codegen/cli
Describe the bug
I'm following the documentation to use a custom fetch function, as I need to add authentication for accessing my GraphQL endpoint. I'm using the following codegen.ts file:
import type { CodegenConfig } from "@graphql-codegen/cli";

const config: CodegenConfig = {
  schema: "https://swapi-graphql.netlify.app/.netlify/functions/index",
  documents: ["src/**/*.tsx"],
  customFetch: "myFetch",
  generates: {
    "./src/gql/": {
      preset: "client",
    },
  },
};
export default config;

and have a file called myFetch.ts in the same directory as the codegen.ts file that contains:
const myFetch = async (
  uri: RequestInfo | URL,
  options: RequestInit | undefined
): Promise<Response> => {
  return fetch(uri, {
    ...options,
  });
};

export default myFetch;

Whenever I try and run the command:
npx graphql-codegen --config codegen.ts
I get the error:
✔ Parse Configuration
❯ Generate outputs
  ❯ Generate to ./src/gql/
    ⠋ Load GraphQL schemas
    ◼ Load GraphQL documents
    ◼ Generate
node:internal/modules/cjs/loader:1048
  const err = new Error(message);
              ^

Error: Cannot find module 'myFetch'
Require stack:
-<EMAIL_ADDRESS>-<EMAIL_ADDRESS>-<EMAIL_ADDRESS>-<EMAIL_ADDRESS>-<EMAIL_ADDRESS>-<EMAIL_ADDRESS>    at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)
    at Module._load (node:internal/modules/cjs/loader:901:27)
    at Module.require (node:internal/modules/cjs/loader:1115:19)
    at require (node:internal/modules/helpers:130:18)
    at /private/tmp/my-app/node_modules/@graphql-tools/url-loader/cjs/index.js:15:106 {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>  ]
}

Node.js v20.9.0

This happens regardless of where I put the myFetch.ts file or how I organise the imports.
Your Example Website or App
https://github.com/linucks/gqlcodegen-customfetch
Steps to Reproduce the Bug or Issue

Clone repository and cd into it.
Run npx graphql-codegen --config codegen.ts

Expected behavior
I expected the myFetch.ts file to be found and the function imported and used or all fetches by graphql-codgen.
Screenshots or Videos
No response
Platform

OS: macOS 15.0.1
NodeJS: v20.9.0
@graphql-codegen/* version(s): 5.0.3

Codegen Config File
import type { CodegenConfig } from "@graphql-codegen/cli";
const config: CodegenConfig = {
schema: "https://swapi-graphql.netlify.app/.netlify/functions/index",
documents: ["src/**/*.tsx"],
customFetch: "myFetch",
generates: {
"./src/gql/": {
preset: "client",
},
},
};
export default config;
Additional context
No response

Hello @linucks,
If you are already using codegen.ts, it could be easier to load your function directly:
import type { CodegenConfig } from "@graphql-codegen/cli";
import myFetch from './myFetch'

const config: CodegenConfig = {
  schema: "https://swapi-graphql.netlify.app/.netlify/functions/index",
  documents: ["src/**/*.tsx"],
  customFetch: myFetch as any, // Note: CodegenConfig's type doesn't have a function as a possible type. This can be fixed soon.
  generates: {
    "./src/gql/": {
      preset: "client",
    },
  },
};
export default config;


Fix get_result(wait=True)

get_result(wait=True) will still error out after some time. Thi PR proposes a fix using a combination of API and SDK improvements.
The previous GET /dispatches/{dispatch_id} endpoint was trying to do too much. Its responsibilities are now separated into two endpoints:

GET /dispatches: bulk query dispatch summaries (including status) with options to filter by dispatch_id, sort chronologically, and also limit the output to status only.

GET /dispatches/{dispatch_id}: download manifest

To achieve the desired behavior of get_result(id, wait=True), the client

Polls the dispatch status by querying the first endpoint.

Downloads the manifest after the dispatch has reached a final status.

The server no longer returns 503 errors when the dispatch is not yet "ready". A 503 status code is not appropriate here because it is intended to convey temporary service unavailablity resulting from server overload or rate limiting. However, the fact that the workflow is still running does not indicate any fault of the server.
These changes will allow get_result(dispatch_id, wait=True) to wait as long as required instead of erroring out after some time.
Fixes https://github.com/AgnostiqHQ/covalent/issues/1539

[x] I have added the tests to cover my changes.
[ ] I have updated the documentation and CHANGELOG accordingly.
[ ] I have read the CONTRIBUTING document.

@cjao can you see if you make this true in a way for other waits as well like env and deployment ?


Vulnerability tags

I saw there is the possibility to add tags to vulnerabilities.

There is also the tags fields on the JSON export.
But tags are not displayed on the vulnerability view, nor are in the vulnerability list of a project or the the global one, they are not taking into account for the search either.

So there are tags but I don't see them used anywhere.

Hi @noraj ; You might be running an old version of the web client. On recent versions the tags are displayed on the vulnerability list page, and on the vulnerability details page as well.

For now they are mostly informational. They can show user added info or command related info. (eg the nmap tag is added to vulnerabilities found using the name command)
In the future we'll use this to show related info. Eg, a linux tag on target will be presented with a list of commands that can run on linux. This is just an example of many I can think of.
Regards
Regards

Hi @noraj ; You might be running an old version of the web client. On recent versions the tags are displayed on the vulnerability list page, and on the vulnerability details page as well.

You are right, I missed them, they are indeed displayed.

In the future we'll use this to show related info. Eg, a linux tag on target will be presented with a list of commands that can run on linux. This is just an example of many I can think of.

Cool idea. They could also be used for search as keywords, and maybe creating some tags index so when you click on the tag badge a list of all vulnerabilities with the same tag is displayed. So if columns on the vulnerability list could be sortable and filterable (like for categories in #49) it means we could be able to filter/sort the vulnerability list by tag and so the tags index would just have to be the vulnerability list with a tag filter per-applied.

I just pushed an update to make all tags clickable. When you click on a tag, it goes to the search page and shows results for commands or vulnerabilities matching that tag.
Thanks!

Amazing as always. It works well.


eclipselsp not working

Information
VIM version
NVIM v0.3.5
Build type: Release
Operating System:
Arch Linux
Linux miniarch 5.0.10-arch1-1-ARCH #1 SMP PREEMPT Sat Apr 27 20:06:45 UTC 2019 x86_64 GNU/Linux
What went wrong
I ran all the steps to get eclipselsp set up but it just silently fails.
Reproducing the bug

Ran all the steps from: https://github.com/eclipse/eclipse.jdt.ls
Added this to my config:

let g:ale_completion_enabled = 1

let g:ale_java_eclipselsp_path = "/home/risto/eclipse.jdt.ls/org.eclipse.jdt.ls.product/target/repository"

let g:ale_linters = {
\   'java': ['eclipselsp'],
\}

Created a new java project with a HelloWorld class
cded to the project root and opened the class file

$ java -version
openjdk version "11.0.3" 2019-04-16
OpenJDK Runtime Environment (build 11.0.3+4)
OpenJDK 64-Bit Server VM (build 11.0.3+4, mixed mode)

Also tried java 8 but I still get the same issue.
:ALEInfo
Current Filetype: java
Available Linters: ['checkstyle', 'eclipselsp', 'javac', 'javalsp', 'pmd']
  Enabled Linters: ['eclipselsp']
 Suggested Fixers:
  'google_java_format' - Fix Java files with google-java-format.
  'remove_trailing_lines' - Remove all blank lines at the end of a file.
  'trim_whitespace' - Remove all trailing whitespace characters at the end of every line.
  'uncrustify' - Fix C, C++, C#, ObjectiveC, ObjectiveC++, D, Java, Pawn, and VALA files with uncrustify.
 Linter Variables:

let g:ale_java_eclipselsp_executable = 'java'
let g:ale_java_eclipselsp_path = '/home/risto/eclipse.jdt.ls/org.eclipse.jdt.ls.product/target/repository'
 Global Variables:

let g:ale_cache_executable_check_failures = v:null
let g:ale_change_sign_column_color = 0
let g:ale_command_wrapper = v:null
let g:ale_completion_delay = 100
let g:ale_completion_enabled = 1
let g:ale_completion_max_suggestions = 50
let g:ale_echo_cursor = 1
let g:ale_echo_msg_error_str = 'Error'
let g:ale_echo_msg_format = '%code: %%s'
let g:ale_echo_msg_info_str = 'Info'
let g:ale_echo_msg_warning_str = 'Warning'
let g:ale_enabled = 1
let g:ale_fix_on_save = 0
let g:ale_fixers = {}
let g:ale_history_enabled = 1
let g:ale_history_log_output = 1
let g:ale_keep_list_window_open = 0
let g:ale_lint_delay = 200
let g:ale_lint_on_enter = 1
let g:ale_lint_on_filetype_changed = 1
let g:ale_lint_on_insert_leave = 0
let g:ale_lint_on_save = 1
let g:ale_lint_on_text_changed = 'always'
let g:ale_linter_aliases = {}
let g:ale_linters = {'java': ['eclipselsp']}
let g:ale_linters_explicit = 0
let g:ale_list_vertical = 0
let g:ale_list_window_size = 10
let g:ale_loclist_msg_format = '%code: %%s'
let g:ale_lsp_root = {}
let g:ale_max_buffer_history_size = v:null
let g:ale_max_signs = -1
let g:ale_maximum_file_size = v:null
let g:ale_open_list = 0
let g:ale_pattern_options = v:null
let g:ale_pattern_options_enabled = v:null
let g:ale_set_balloons = 0
let g:ale_set_highlights = 1
let g:ale_set_loclist = 1
let g:ale_set_quickfix = 0
let g:ale_set_signs = 1
let g:ale_sign_column_always = 0
let g:ale_sign_error = '>>'
let g:ale_sign_info = '--'
let g:ale_sign_offset = 1000000
let g:ale_sign_style_error = '>>'
let g:ale_sign_style_warning = '--'
let g:ale_sign_warning = '--'
let g:ale_statusline_format = v:null
let g:ale_type_map = {}
let g:ale_use_global_executables = v:null
let g:ale_virtualtext_cursor = 0
let g:ale_warn_about_trailing_blank_lines = 1
let g:ale_warn_about_trailing_whitespace = 1
  Command History

I'm not sure how to debug this or where this is failing. Is the generated executable wrong? Is Ale trying the eclipselsp linter at all? Starting the lsp server manually works fine:
java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=1044 -Declipse.application=org.eclipse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Dlog.level=ALL -noverify -Xmx1G -jar ./plugins/org.eclipse.equinox.launcher_1.5.300.v20190213-1655.jar  -configuration ./config_linux -data ~/eclipse-workspace/foobar/ --add-modules=ALL-SYSTEM --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED

cc @hsanson

What's the output of :echo ale#java#FindProjectRoot(bufnr('')) in the buffer you are editing? Maybe ALE can't detect the root of your project. It should work if your project contains either a gradle or Maven project file.

Yeah it looks like it couldn't find the project root, I added an empty build.gradle at the root and it detected it.  Now it's showing this error:

 Current Filetype: java
Available Linters: ['checkstyle', 'eclipselsp', 'javac', 'javalsp', 'pmd']
  Enabled Linters: ['eclipselsp']
 Suggested Fixers:
  'google_java_format' - Fix Java files with google-java-format.
  'remove_trailing_lines' - Remove all blank lines at the end of a file.
  'trim_whitespace' - Remove all trailing whitespace characters at the end of every line.
  'uncrustify' - Fix C, C++, C#, ObjectiveC, ObjectiveC++, D, Java, Pawn, and VALA files with uncrustify.
 Linter Variables:

let g:ale_java_eclipselsp_executable = 'java'
let g:ale_java_eclipselsp_path = '/home/risto/eclipse.jdt.ls/org.eclipse.jdt.ls.product/target/repository'
 Global Variables:

let g:ale_cache_executable_check_failures = v:null
let g:ale_change_sign_column_color = 0
let g:ale_command_wrapper = ''
let g:ale_completion_delay = 100
let g:ale_completion_enabled = 1
let g:ale_completion_max_suggestions = 50
let g:ale_echo_cursor = 1
let g:ale_echo_msg_error_str = 'Error'
let g:ale_echo_msg_format = '%code: %%s'
let g:ale_echo_msg_info_str = 'Info'
let g:ale_echo_msg_warning_str = 'Warning'
let g:ale_enabled = 1
let g:ale_fix_on_save = 0
let g:ale_fixers = {}
let g:ale_history_enabled = 1
let g:ale_history_log_output = 1
let g:ale_keep_list_window_open = 0
let g:ale_lint_delay = 200
let g:ale_lint_on_enter = 1
let g:ale_lint_on_filetype_changed = 1
let g:ale_lint_on_insert_leave = 0
let g:ale_lint_on_save = 1
let g:ale_lint_on_text_changed = 'always'
let g:ale_linter_aliases = {}
let g:ale_linters = {'java': ['eclipselsp']}
let g:ale_linters_explicit = 0
let g:ale_list_vertical = 0
let g:ale_list_window_size = 10
let g:ale_loclist_msg_format = '%code: %%s'
let g:ale_lsp_root = {}
let g:ale_max_buffer_history_size = 20
let g:ale_max_signs = -1
let g:ale_maximum_file_size = v:null
let g:ale_open_list = 0
let g:ale_pattern_options = v:null
let g:ale_pattern_options_enabled = v:null
let g:ale_set_balloons = 0
let g:ale_set_highlights = 1
let g:ale_set_loclist = 1
let g:ale_set_quickfix = 0
let g:ale_set_signs = 1
let g:ale_sign_column_always = 0
let g:ale_sign_error = '>>'
let g:ale_sign_info = '--'
let g:ale_sign_offset = 1000000
let g:ale_sign_style_error = '>>'
let g:ale_sign_style_warning = '--'
let g:ale_sign_warning = '--'
let g:ale_statusline_format = v:null
let g:ale_type_map = {}
let g:ale_use_global_executables = v:null
let g:ale_virtualtext_cursor = 0
let g:ale_warn_about_trailing_blank_lines = 1
let g:ale_warn_about_trailing_whitespace = 1
  Command History:

(executable check - success) java
(finished - exit code 0) ['/bin/bash', '-c', '''java'' -version']

<<<NO OUTPUT RETURNED>>>

(finished - exit code 0) ['/bin/bash', '-c', '''java'' -version']

<<<NO OUTPUT RETURNED>>>

(finished - exit code 0) ['/bin/bash', '-c', '''java'' -version']

<<<NO OUTPUT RETURNED>>>

(finished - exit code 0) ['/bin/bash', '-c', '''java'' -version']

<<<NO OUTPUT RETURNED>>>

(finished - exit code 0) ['/bin/bash', '-c', '''java'' -version']

<<<NO OUTPUT RETURNED>>>

(finished - exit code 0) ['/bin/bash', '-c', '''java'' -version']

<<<NO OUTPUT RETURNED>>>

(finished - exit code 0) ['/bin/bash', '-c', '''java'' -version']

<<<NO OUTPUT RETURNED>>>

(finished - exit code 0) ['/bin/bash', '-c', '''java'' -version']

<<<NO OUTPUT RETURNED>>>

Which error? I don't see any.

Oh nvm I guess that's not an error. It's just silently failing

Try using it in Vim so you can figure out what it's doing with call ch_logfile(expand('~/channel.log'), 'w'). There is no such equivalent for debugging in NeoVim.

I get this:
==== start log session ====
  4.139614 : Starting job: /bin/bash  -c  'java' -version
  4.139757 on 2: Created channel
  4.142484 : looking for messages on channels
  4.280575 RECV on 2(err): 'openjdk version "11.0.3" 2019-04-16'
  4.280617 RECV on 2(err): '
'
  4.280721 RECV on 2(err): 'OpenJDK Runtime Environment (build 11.0.3+4)'
  4.280757 RECV on 2(err): '
'
  4.280815 RECV on 2(err): 'OpenJDK 64-Bit Server VM (build 11.0.3+4, mixed mode)'
  4.280840 RECV on 2(err): '
'
  4.285445 on 2: channel_select_check(): Read EOF from ch_part[1], closing
  4.285494 on 2: channel_select_check(): Read EOF from ch_part[2], closing
  4.285510 : looking for messages on channels
  4.285516 on 2: Closing channel because all readable fds are closed
  4.285521 on 2: Closing channel
  4.285529 on 2: Invoking callbacks and flushing buffers before closing
  4.285535 on 2: Invoking close callback <SNR>48_VimCloseCallback
  4.285715 on 2: Job exited with 0
  4.285727 on 2: Invoking exit callback <SNR>48_VimExitCallback
  4.288351 : Starting job: /bin/bash  -c  'java' -Declipse.application=org.eclipse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Dlog.level=ALL -noverify -Xmx1G -jar  -configuration /home/risto/eclipse.jdt.ls/org.eclipse.jdt.ls.product/target/repository/org.eclipse.jdt.ls.product/target/repository/config_linux -data /home/risto/eclipse-workspace/foobar
  4.288384 on 3: Created channel
  4.289777 SEND on 3(in): 'Content-Length: 226

{"method":"initialize","jsonrpc":"2.0","id":2,"params":{"initializationOptions":{},"rootUri":"file:///home/risto/eclipse-workspace/foobar","capabilities":{},"rootPath":"/home/risto/eclipse-workspace/foobar","processId":31287}}'
  4.290012 on 2: Dropping message 'openjdk version "11.0.3" 2019-04-16'
  4.290022 on 2: Dropping message '
'
  4.290028 on 2: Dropping message 'OpenJDK Runtime Environment (build 11.0.3+4)'
  4.290032 on 2: Dropping message '
'
  4.290037 on 2: Dropping message 'OpenJDK 64-Bit Server VM (build 11.0.3+4, mixed mode)'
  4.290041 on 2: Dropping message '
'
  4.297390 RECV on 3(err): 'Error: Unable to access jarfile /home/risto/eclipse.jdt.ls/org.eclipse.jdt.ls.product/target/repository/org.eclipse.jdt.ls.product/target/repository/config_linux
'
  4.297403 : looking for messages on channels
  4.297430 on 3: Dropping message 'Error: Unable to access jarfile /home/risto/eclipse.jdt.ls/org.eclipse.jdt.ls.product/target/repository/org.eclipse.jdt.ls.product/target/repository/config_linux
'
  4.297472 on 3: channel_select_check(): Read EOF from ch_part[1], closing
  4.297497 on 3: channel_select_check(): Read EOF from ch_part[2], closing
  4.297511 : looking for messages on channels
  4.297530 on 3: Closing channel because all readable fds are closed
  4.297537 on 3: Closing channel
  4.297571 on 3: Job ended
  4.297581 : looking for messages on channels

Error: Unable to access jarfile /home/risto/eclipse.jdt.ls/org.eclipse.jdt.ls.product/target/repository/org.eclipse.jdt.ls.product/target/repository/config_linux

That's the error. For some reason the jar file can't be loaded. You might want to update the path, or check if the server has been installed correctly.

How do I update that path? there's no configuration option for it. The server should be installed correctly AFAICT

Shouldn't the code be setting it to:
/home/risto/eclipse.jdt.ls/org.eclipse.jdt.ls.product/target/repository/config_linux

instead of what it currently is? it looks like it's appending /org.eclipse.jdt.ls.product/target/repository/ twice to the path

Ahhh I figured it out. g:ale_java_eclipselsp_path is supposed to point to the root of the eclipse.jdt.ls project, not the org.eclipse.jdt.ls.product/target/repository path. The docs are incorrect:
After build completes the files required to run the language server will be
located inside the folder `org.eclipse.jdt.ls.product/target/repository`.
Ensure to set |g:ale_java_eclipselsp_path| to the absolute path of that folder.

My bad, submitted a MR to fix the docs.

Closing this


IceRpc:Tests:Transports:QuicTransportSslAuthenticationTests:Quic_server_connection_connect_fails_when_client_provides_untrusted_certificate failure

This test failed again with a GitHub open PR action:
  Failed IceRpc:Tests:Transports:QuicTransportSslAuthenticationTests:Quic_server_connection_connect_fails_when_client_provides_untrusted_certificate [8 s]
  Stack Trace:

See https://github.com/icerpc/icerpc-csharp/actions/runs/6536122863/job/17747111160


Normalize error messages

The error message given by the Display representation of an error type should be lowercase without trailing punctuation and typically concise.

Examples of error messages
"unexpected end of file"
"provided string was not true or false"
"invalid IP address syntax"
"second time provided was later than self"
"invalid UTF-8 sequence of {} bytes from index {}"
"environment variable was not valid unicode: {:?}"

As per Rust API Guidelines, this will reduce noise during code reviews.

We should update our code style doc with that too.


Scrollable or swipable tabs heads

Hi,
I was trying the tabs. When you have a lot of tabs that does not fit into the page they wrap down to the next like. Instead of this can the tab heads be made scrollable like the tabs of a browser or swipable on mobile.
Thx.

Hi, the way UIkit deals with it is combining the Tabs into a dropdown. That seems doable, will check it out.

Drop down is good. But if it is swipable on mobile then I think it will be cool as it seems more natural and then there won't be the additional screen that comes on when you touch the drop down.

To limit the amount of custom CSS we must keep with UIkit approach. Meaning, this last suggestion should be addressed to UIkit instead :)


Feature request: findings deduplication

Is your feature request related to a problem? Please describe.
We have recently introduced automatic secrets scanning with Gitleaks as part of our CI pipelines. Our developers are instructed to remove and rotate any secrets that the Gitleaks CI job finds, and to then add all Gitleaks fingerprints to the .gitleaksignore file.
One thing we noticed is that the findings overview that Gitleaks outputs when running gitleaks detect -v contains duplicate secrets. The commit hash, date and often commit author differ, but the secrets themselves are identical. Most of these commits are merge commits.
Describe the solution you'd like
It would be great if gitleaks detect -v could deduplicate the findings (possibly enabled with a flag or config option), showing one finding per unique secret. I would prefer to only see the oldest commit so I can easily see how long the secret has been compromised.
Bonus points if this works nicely with the .gitleaksignore file, as in you only have to add one fingerprint for each unique secret and Gitleaks will ignore the other ones as well.
Describe alternatives you've considered
We now manually copy over all fingerprints to our .gitleaksignore files, and deduplicate them during our ISO27001 incident handling sessions.
cc @zricethezav

I find myself wanting this feature as well. The most straightforward way of implementing this, in my opinion, would be to generate a hash of the secret using something like blake3 or sha256. That way you can easily find all occurrences of a secret across rules and files.
Of course, this would only work if the rules and capture groups are properly made.

Hi,
Is there any update on this?


Update to .NET 9.0

Pull Request Test Coverage Report for Build<PHONE_NUMBER>4
Details

5 of 5 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-1.5%) to 67.123%

Totals

Change from base Build<PHONE_NUMBER>0:
-1.5%

Covered Lines:
43

Relevant Lines:
61

💛  - Coveralls


How I can customize the content of the role to give him a background setting？

to give your NPC background information, manually add one element to your ChatLog array of type "system" and set the message to whatever you want the NPC to do. (i.e. you are a friendly NPC tasked with helping the player learn about x).

I'm sorry for this new issue,I don't know if you can still see it in the closed issue, so I open this new issue.
I tried to add it manually, but the AI answer seems to be the default setting? Where did I go wrong?

Originally posted by @Sissidark in https://github.com/KellanM/OpenAI-Api-Unreal/issues/31#issuecomment-1510025439

Did OpenAI officially prohibit this modification method?


Fix Dummy template formatting

When the webhook injects the default/dummy configuration, we get:
oslo_config.cfg.ConfigFileParseError: Failed to parse
This patch fixes that error providing proper formatting to the dummy string.

I think we should add a test for it?
Done

/test glance-operator-build-deploy-tempest


[Feature Request]: expose prove_shares and data_root_inclusion_proof in node API

Implementation ideas
These two methods are important for integrations/blobstream:
https://github.com/celestiaorg/celestia-app/issues/3421#issuecomment-2091191736
First step could be to expose these two methods in app and simply proxy them in the node API. Then, they could be moved to node entirely.

Eventually, proxying will be replaced by the work @rach-id is doing which will compute these proofs  solely relying on DA node functionality.

Yes, agreed. that's why the OP mentions two steps: 1) proxying and 2) fold/move that functionality entirely into node.

This will not make it to v0.14.0, but may be a part of v0.15.0

@liamsi @Bidon15
I don't think this feature will be ready in time to land in v0.14.0 but that means it would have to be a part of v0.15.0 which may be a couple months out.
Please confirm that this is alright.

@liamsi @Bidon15
I don't think this feature will be ready in time to land in v0.14.0 but that means it would have to be a part of v0.15.0 which may be a couple months out.
Please confirm that this is alright.

Totally fine for me and thanks for the heads-up 🙏 👑

If it is fine for Viet, than it is fine for me.

it would have to be a part of v0.15.0 which may be a couple months out.

Ideally, we would have an RC including these endpoints that can already be used earlier.

@liamsi an RC will always come before the release :)

I know. Is a RC with the above also months away though?

related: https://github.com/celestiaorg/celestia-node/issues/3473


Docs: Clarification Raw Cell Options

I've used IPython for a couple years, but hadn't realized the raw cells had other formats.  It took some time for me to find in it IPython 3.  I suggest clarifying after selecting a cell:

First select Raw NBConvert
Then next to Cell Toolbar: select Raw Cell Format
Choose one of the format options
...

These options may differ for Jupyer (IPython 4+).  BTW, this is a great extension.  Finding it this week has been most fortunate.

Thanks for the report!
I guess you are talking about http://nbsphinx.readthedocs.org/en/0.2.2/example.html#Raw-Cells, right?
Can you please make a suggestion for concrete changes in wording?
You can also make a PR for that, if you like.
Are you actually using raw cells in combination with nbsphinx?
I implemented this just for completeness' sake, I'd be interested if anyone is actually using this for something meaningful.

Yes, that link is what I am referring to.
I thought I gave a specific suggestion.  What else are looking you looking for exactly?  I'm happy to help.
Yes indeed, I am using the raw cells to inject rst code or sphinx messages into my docs, i.e. such as notes, important and see also.  I not sure how else to do it.  The following examples illustrate converting rst code in Jupyter Notebooks to html using nbsphinx 0.2.2:
Normal rst code
.. note::

	Example - Note

.. important::

	Example - Important

.. seealso::

	Example - See Also

Code in IPython/Juypyter Notebook

HTML Result: post make html

I meant something like "change the sentence 'blah blah whatever' to 'blah blah something else'".
Anyway, I think it would be best if you suggest your changes with a pull request.
I just split example.ipynb into three parts, so you should make your suggested changes to the file https://github.com/spatialaudio/nbsphinx/blob/master/doc/raw-cells.ipynb.
It would be great if you could include your Jupyter screenshot there.
Thanks for describing you use case. I think it would be best if the Jupyter Notebook would allow elements like "Note" and "See Also" directly in Markdown, but AFAIK, that's (currently) not possible (except probably with extensions or local CSS manipulations).
So indeed raw reST cells are the solution here, but sadly, this makes the notebook files less nice to look at in Jupyter itself.

Pull request https://github.com/spatialaudio/nbsphinx/pull/13 submitted.

Closed by #13.


Fix s3 user tagging

what

Fixes s3 user tagging by upgrading the module reference

why

To fix s3 user tagging

references

Closes https://github.com/cloudposse/terraform-aws-s3-bucket/issues/7
Depends on https://github.com/cloudposse/terraform-aws-iam-s3-user/pull/14 merged and a new release 0.6.0 before merging this

@osterman is this another case where we can ignore the failing codefresh test/readme ?

/test all

/rebuild-readme

/test all

/test all

@osterman this PR depends on this PR https://github.com/cloudposse/terraform-aws-iam-s3-user/pull/14

/test all

/rebuild-readme

/test test/readme

/test all


Fix batch-delete behaviour for non-existing files

Description
The commit also contains some auto-cleanups like adding finals and so on, so please don't merge before #90 in case you come across that one to avoid more conflicts there.
Related Issue
Fixes #92
Tasks

[x] I have signed the CLA.
[x] I have written tests and verified that they fail without my change.

@timoe rebased and ready to go... 🌴


Create SIG_regulatory_July2024.md

@netlify /events/2024/SIG_regulatory_July2024

@nf-core-bot fix linting

From my end, ok 👍🏻

Superseded by #2594


node: provide DAGService

Context
For BlockFetching and DASing to work we need a DAGService from IPFS. This small PR provides it to the Node.
Refs
Based on #94 and requires it merged into main together with #86.

Rebased on master.
Pls reapprove


[Feature Request] Authentication (Optional)

Hi,
it would be great if there was a feature, that you could authenticate yourself in Spliit.
Authentication could be optional and if you authenticate you could link all your existing Groups to your account, define which user you are and then the correct id would be referenced in the corresponding groups.
This would help to reduce the amount of record in the Participant table and would also bring the feature kind of a "Sync" on every device.
I could login and would have all my groups directly available.
A simple and I think the best solution would be to use Auth.js (NextAuth).
In addition there could be a new ENV var to disable public group creation and enable/disable signup so you could just use your self hosted version for yourself.
I think I will start to develop on that feature.

Hi @sebiweise, we can collaborate if you need another helping hand.

group based authentication is enough ig, on a screen of who are you, we can ask who are you and enter passCode for group, thats it. :)


aaa ...

second try ...

The code looks correct, but I can't make it show "aa" or "aaa", it always shows "a"

there is always a trailing space added to the string to be displayed ... so you should start seeing "a ", then "aa " .... and so on. The more you shake, the longer is the "aaaa" stream

@morlandi I see, but it doesn't behave as expected: I always see "a", never "aa" nor "aaa" etc...

I do believe you missed my point ... at the beginning, you should see a blinking "a" .. then the more you shake, the more blinking slows down.
Never mind, thank you very much for the nice talk !


chore: Update code style to 2021 edition

Signed-off-by: Xuanwo<EMAIL_ADDRESS>This PR intends to update our coding style to the 2021 edition.

Thanks! Keep in mind that this will be merged into the master branch which is tracking the 2.0 release. This will require an MSRV bump to 1.56, but I was planning on making that bump for 2.0 anyway.


[Suggestion] Check for Cloudflare Proxy on a Website

Description
Some website doesn't use cloudflare IP but it's uses Cloudflare Proxy. The target: Add an ability to make url (that has Cloudflare Proxy) part of -cf or cloudflare group.
Example
URL : bt21club.com
IP : <IP_ADDRESS>
It has Cloudflare Proxy turned on and can be used as normal Remote Proxy.

Hi @MC874, thanks for your feedback!
I believe that this should be fixed properly, please upgrade to the last version.


Detect PACKER_ACTIVE_INTERFACE by "ip" instead of "route" command

Issue #, if available:
Description of changes:
While running setup_packer_configs.sh with Ubuntu OS, user might have route command not found issue while checking with $(route |awk '/^default/{print $NF}'). Consider not all OS variant comes with route command, it could be replaced with the ip instead, which is used in elsewhere in the same script.
Furthermore, PR #2219 was initially aim to support Ubuntu 22.04 ( see #2219 ), but it also unblock all the Ubuntu versions. If the script is aim to support all Ubuntu versions, it would better to have ens5 supported.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

It might be a little bit off-topic, could be discussed in separated issue/PR.
I think the Ubuntu version check could be done with regrex easier?
Here the test output with Ubuntu 22.04.3 LTS
ubuntu@ip-172-31-42-28:~$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

Extract the info we need
ubuntu@ip-172-31-42-28:~$ cat /etc/os-release | awk -F'"' '/PRETTY_NAME/{print$2}'
Ubuntu 22.04.3 LTS

As EKS-A supported versions are clearly to be "LTS", we could leverage regex to detect easier
ubuntu@ip-172-31-42-28:~$ cat /etc/os-release | awk -F'"' '/PRETTY_NAME/{print$2}' | grep -E 'Ubuntu 2[02]\.04.* LTS' # detect for Ubuntu 20.04 LTS or Ubuntu 22.04 LTS only
Ubuntu 22.04.3 LTS

Pitfalls need to take care of ...

Ubuntu 22.04 LTS (initial release)
Ubuntu 22.04.3 LTS (security update releases)

Does EKS-A need to take ESM into consideration?

https://ubuntu.com/about/release-cycle
https://ubuntu.com/security/esm

I'm not sure I am following the Ubuntu version part? Where does, or would, this come into play?

I'm not sure I am following the Ubuntu version part? Where does, or would, this come into play?

It's about the code block I mentioned at the description of the PR initially.

ah ok. that code is kind of a different case since those are the params for the type of node image we are building vs what the host OS is. So the 2004/ubuntu/rhel is all passed into that script, effectively hardcoded in our CI builds.

/ok-to-test

Looks like all tests on Prow passed 🎉
Let me know if there's anything need to be revised. Happy to continue on it if required.

Looks like all tests on Prow passed 🎉
Let me know if there's anything need to be revised. Happy to continue on it if required.
Nit: Originally the PR was aim to replace route with ip but it's not for now. The branch name for the PR still replace-route-with-ip 😆 ... if it required a new PR, it's totally, just let me know.

Thanks for the contribution @guessi! No issues with the branch name, happy to merge it as is.
/lgtm
/approve


Incorrect Temperature

Describe the bug
My latitude and longitude are entered correctly but the current temperature is incorrect. It is now currently 18 degrees celsius according to numerous weather sources but PirateWeather is reporting the temperature as 15.7 degrees celsius which is incorrect.
Expected behavior
For the temperature to be correct.
Actual behavior
An incorrect temperature is shown.
Home Assistant version
2024.4.2
Integration version
<IP_ADDRESS>
Other details
No response
Troubleshooting steps

[X] I have updated my Home Assistant installation to the latest version.
[X] I have updated the Pirate Weather Integration to the latest version.
[X] I have gone through the documentation, parameter documentation and sensor documentation before opening this issue.
[X] I have searched this repository and Pirate Weather Repository to see if the issue has already been reported.
[X] I have restarted my Home Assistant installation.
[X] I have checked to see if the issue is not an API issue.
[X] I have written an informative title.

Hi, thanks for using this service, and apologies for the issue here. Do you mind sharing your approximate location, since that will help me dial in the issue

Hey - thanks for putting the service together. I'm in the South of England. Having enabled the apparent temperature sensors, these seem to give a more consistent temperature compared to the other weather services.

Thanks for the info! The apparent temperature might line up closer to what other sources say, since they often default to that. The other possibility is depending on how close to the ocean you area, it'll sometimes be swayed by that, but only if you're within a couple km

No worries. As an aside, can I ask what the difference is between the 0h and the 'normal' sensor. For example, my sensor.pirateweather_wind_speed sensor states 11.03mph but the sensor.pirateweather_wind_speed_0h states 10.25mph? Thanks for your help.

Good question, and something I should improve in the docs. 0h is the top of the hour, while the other sensor is the current condition. Behind the scenes it's just a linear interpolation, between hours 0 and 1, so you should see values between those two numbers

I might be running into this. Since I updated my Hass and all associated addons (PirateWeather) a few days ago it seems like the weather is out of sync with PW's hourly forecast. rn it's showing 66F which isn't supposed to happen for 3 hours. I think this is my first time Hass has been on PW 2.x but I'm not sure.

This is weather.com which generally feels right to me:

My ecobee thermostat shows 70F from whatever cloud service it's pulling from.
I have PW updating every 15 minutes. I would expect the current temperature to be between the current hour's forecasted temp and the next hour's forecasted temp. (Fun wrinkle: I think my PW hourly forecast and some other info do not update in lockstep, so for example it will show 10pm on the hourly forecast when it's 11:06. But nothing in my data should be older than 15 minutes.)

The reason why you're seeing the current temperature below the forecasted hourly temperature is due to the fact that the current temp and the hourly temp come from different models. The current temp is coming from HRRR whereas the hourly temp is coming from NBM.
This is something that @alexander0042 should improve in the docs as they haven't fully been updated for version 2.0.


Feature/nav structure

[x] Use React documentation
[x] Use React components
[x] Use React props
[x] Use React Router
[x] Connect React and Redux
[x] Handle events in a React app
[x] Write unit tests with React Testing Library
[x] Use styles in a React app
[x] Use React hooks
[x] Apply React best practices and language style guides in code
[x] Use store, actions and reducers in React
[x] Perform a code review for a team member

Hi @gdvl777 , @EvansSnave and @fmanimashaun ,
While you made a great effort in this project, unfortunately, I cannot proceed to review your code.
Invalid Code Review Request
You have submitted a project, that didn't follow the didn't follow the correct Git flow. In this project, you are expected to create a PR from the dev branch to the main branch once you have merged all the changes to your dev branch.  Pleas refer this link  for how to create a PR for request a review for this project.
Your Code Review Request will be marked as invalid in your Dashboard, so please submit a new one once you are ready 🙏
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.
Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.

Invalid Code Review Request does not count into the code reviews limit.

Hi @gdvl777 , @EvansSnave and @fmanimashaun ,
While you made a great effort in this project, unfortunately, I cannot proceed to review your code.
Invalid Code Review Request
You have submitted a project, that didn't follow the didn't follow the correct Git flow. In this project, you are expected to create a PR from the dev branch to the main branch once you have merged all the changes to your dev branch.  Pleas refer this link  for how to create a PR for request a review for this project.
Your Code Review Request will be marked as invalid in your Dashboard, so please submit a new one once you are ready 🙏
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.
Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.

Invalid Code Review Request does not count into the code reviews limit.


Support for dynamical pages

Is there a plan to support google oauth for dynamical pages? I want to add oauth to comments and the return url is different for each item where comments are created. And in that case, google refuse this dynamicaly generated return url.

Maybe it is possible to pass some parameters to google and retrieve them afterwards, see http://stackoverflow.com/a/7722099/1102219
That should make possible to pass the backlink hash (from presenter storeRequest()) throughout the login process, without storing it in a session.


Bump the min supported sdk to version 19 (kitkat)

The currently supported version (18) is no longer supported by Google Play Services and only add an additional 0.3% of device coverage: 98.4% -> 98.1%.

@godotengine/android I don't think this should be cherrypicked for 3.3.x since you could argue this is a breaking change, but happy include it if we don't think that's a valid concern.

Closing this PR as I'll be updating the min sdk along the update to the max sdk after fixing the scoped storage issue.


I'm trying to sort all the tweets of a user by the number of likes/retweets. How can I find the number of likes and retweets on a tweet? And how do I avoid hitting the api limits?

Hi there! I got stuck again and I'm looking for a bit of help.
My goal is to fetch all the tweets from a single account, and sort them in order of the number of retweets (or likes) they have.
I fetch the tweets like so:
const foundUsers = await client.v1.searchUsers('david_perell')
const user = foundUsers._realData[0]
const userTimeline = await client.v2.userTimeline(user.id_str, { exclude: 'replies' })
for await (const tweet of userTimeline) {
  console.log(tweet)
}

I'm getting results that look like this:
{
  id: '1441024227554086912',
  text: 'Wild that we invest so heavily in education for the first two decades of people’s lives, and then just… stop and say: “Okay, no more school for the rest of your life.”'
}

My questions are:

How can I get the number of retweets and likes on a single tweet? And do I need to make a separate request for each tweet, or can I just tell the timeline to include this information along with the id and the text fields?
Some of the users I'm interested in have tens of thousands of tweets. I have an elevated developer account (not academic). What's the best way for me to fetch all the tweets in the profile without hitting the api limits? Is there some smart/automatic way to add delays between requests, or continue fetching after the api limit has been hit?

Ah, I see, here's the list of all the fields available on twitter, and I can just go:
for await (const tweet of userTimeline) {
  const { id_str, full_text, in_reply_to_status_id_str, retweet_count, favorite_count } = tweet
  console.log({ id_str, full_text, in_reply_to_status_id_str, retweet_count, favorite_count } )
}

It wasn't obvious because just doing console.log(tweet) printed out only two fields. Fantastic, the first question is resolved!


Doesn't copy the value

Hello,
First, thanks for the workflow! Almost working without issue.
I needed to edit the workflow to add a sed to run keepassxc-cli to copy an attribute. I noticed that all entries listed have a prefix (ss/ on my case).
The first command become q=$(echo "$ITEM_PATH" | iconv -f UTF-8-MAC -t UTF-8 | sed 's/ss\///') instead of q=$(echo "$ITEM_PATH" | iconv -f UTF-8-MAC -t UTF-8).
よろしくお願いします。

Hi tete2soja, Thanks for the comment!
Looks like the problem you encountered may be dependent on .kdbx file, but does the problem look like the attached image?

Yes. All entries are prefixed with ss. My file has a different name than ss.kdbx if it matters.


Movable settings window

It would be great if the settings window could optionally be converted to a standalone window to allow easier configuration - especially when the settings window is over where your raid frames are positioned.

As you can tell I haven't done any work to this. It's unlikely that I'll personally implement this as I'm quite happy with the GUI as is, and this overhead would just be extra code to maintain. Patches welcome


Remove Javadocs parameters without a description

I often see Javadocs like:

/**
     * @param a
     * @param b
     * @param b
     * @param c
     * @return
     * @throws c
     */

Where the javadoc simply list the parameters without any description.
As this does not add any value to the code, I'd prefer to simply remove all of them in bulk

Related to #2247 (working in opposite directions).


sever vulnerability

hello,
I think I have found a vulnerability for which I currently don't have a fix.
The grade is severe because create the probability for the pool to not pay the master node reward.
Is there any bug reward program or procedure to follow in this case. and have responsible disclosure.
Waiting for a kind reply from a core team leader,
cheers,
LP

You can contact me through<EMAIL_ADDRESS>We have a bug bounty program and if the vulnerability can be confirmed, I'll get you in contact with the one who manages the bounties.

After some email exchanges with Luca, it turned out that chainparams were not correctly setup and thus payments were never enforced. This does not apply to Dash.

@codablock can you name the fork?


feat(resource): optimize resource instance form (DSP-1256)

resolves DSP-1256

I made a small fix by providing the canDelete input to the app-display-edit component as well as adding the deleteValueIsAllowed method to the properties component. Can I push my changes? Otherwise it looks good! There is a weird css issue in the add-value component but that can be handled in another PR.

Thank you @mdelez
Yes, I will fix the css issue in a separate PR this afternoon. It will be part of the first refactoring. If it's okay I will merge this PR first...


V0.4.2 release

Merge back into dev

I am confused between #24 and #25, what are the differences?


Error in path-join

Thanks for ueforth! I've been enjoying it immensely!  I ran into an issue and would like to share my findings.
I was unable to include one file from another using full paths. For example, if file1.fs contains: "include /sd/file2.fs", entering "include /sd/file1.fs" will fail.
I found the cause in common/including.fs, in the word path-join.
The third line determines if the file name is a full path, and if so zeros the directory name length. However, the combined string length has already been calculated and is not corrected. This results in the correct string being returned, but with an excessive length, resulting in a file not found error.
I found that simply moving the third line of path-join to the beginning of the word fixes the problem.  There are a few other very minor issues in this word; slightly too much memory is allocated from the heap for paths that begin with ./ and ../ .
I would be happy to prepare a pull request if you like.

Hi,

Version <IP_ADDRESS> resolves this issue, better than my suggestion above. Thank you.


Failed to tokenize text with pybo 0.6.1

Hi, after I've upgrade pybo to 0.6.3, it seems that the tokenizer does not work anymore.
>>> import pybo
>>> tok = pybo.WordTokenizer('POS')
Traceback (most recent call last):
  File "<pyshell#2>", line 1, in <module>
    tok = pybo.WordTokenizer('POS')
  File "D:\Python\lib\site-packages\pybo\tokenizers\wordtokenizer.py", line 33, in __init__
    main, custom = config.get_tok_data_paths(profile, modifs=modifs, mode=mode)
  File "D:\Python\lib\site-packages\pybo\config.py", line 86, in get_tok_data_paths
    files = self.config['tokenizers']['profiles'][profile]
KeyError: 'tokenizers'

I've also noticed that there are some API changes, it is okay for me to just change BoTokenizer to WordTokenizer?
Also, I'm quite interested in the new Tibetan sentence and paragraph tokenizer (isn't every single line of text a paragraph in Tibetan?).

I don't seem to get this issue. See bolow for what I get.
It looks like it is related to Windows? How could I help you solve that, since I don't have Windows?
The names of the Token attributes should look more natural. I have added an entries attribute that contains all existing words that share the same spelling (surface form/inflected form).
For example, the Token of ཏུ་ has three possible interpretations, from the data included in pybo:
pos: ADP, affixed: False, lemma: ཏུ་ |
pos: SCONJ, affixed: False, lemma: ཏུ་ |
lemma: ལ་, pos: PART, affixed: False |

Changing BoTokenizer to WordTokenizer should be fine
searching for pybo refs in Wordless, I found this line where you will want to change token.content to token.text.
As for the sentence and paragraph tokenizers, They are the code we were talking about in the other issue, but adapted for the new release and integrated in what I called Text objects.
What you'll want to know is that tokenizing in sentences is more expensive than tokenizing in words since sentence_tokenizer() operates on a list of tokens generated by WordTokenizer.
See here for how you could use them. Both of their outputs is a list of tuples each containing (<len of sent or par>, <list of tokens>).
If you want to have an idea of how it does it, check this. You can't really rely on it 100%, but that's a good start. I would say it's a beta functionality. Sometimes, the sentences are split, sometimes two sentences end up in one block, but it makes for a good start and I am not aware of anything better for the moment. Better results will be acheived when the heuristics implemented will be improved and refined.
drupchen@drupchen-Inspiron-5558:~$ python3
Python 3.6.8 (default, Jan 14 2019, 11:02:34)
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pybo
>>> tok = pybo.WordTokenizer('POS')
Building Trie... (...)
(18 s.)
>>> tokens = tok.tokenize('བཀྲ་ཤིས་བདེ་ལེགས་ཕུན་སུམ་ཚོགས། །རྟག་ཏུ་བདེ་བ་ཐོབ་པར་ཤོག')

>>> print([t.text for t in tokens])
['བཀྲ་ཤིས་', 'བདེ་ལེགས་', 'ཕུན་སུམ་', 'ཚོགས', '། །', 'རྟག་', 'ཏུ་', 'བདེ་བ་', 'ཐོབ་པ', 'ར་', 'ཤོག']

>>> tokens
[text: "བཀྲ་ཤིས་"
text_cleaned: "བཀྲ་ཤིས་"
text_unaffixed: "བཀྲ་ཤིས་"
syls: ["བཀྲ", "ཤིས"]
pos: NOUN
lemma: བཀྲ་ཤིས་
entries: | pos: NOUN, affixed: False, lemma: བཀྲ་ཤིས་ |
char_types: |CONS|CONS|SUB_CONS|TSEK|CONS|VOW|CONS|TSEK|
chunk_type: TEXT
syls_idx: [[0, 1, 2], [4, 5, 6]]
start: 0
len: 8

, text: "བདེ་ལེགས་"
text_cleaned: "བདེ་ལེགས་"
text_unaffixed: "བདེ་ལེགས་"
syls: ["བདེ", "ལེགས"]
pos: NOUN
lemma: བདེ་ལེགས་
entries: | pos: NOUN, affixed: False, lemma: བདེ་ལེགས་ |
char_types: |CONS|CONS|VOW|TSEK|CONS|VOW|CONS|CONS|TSEK|
chunk_type: TEXT
syls_idx: [[0, 1, 2], [4, 5, 6, 7]]
start: 8
len: 9

, text: "ཕུན་སུམ་"
text_cleaned: "ཕུན་སུམ་"
text_unaffixed: "ཕུན་སུམ་"
syls: ["ཕུན", "སུམ"]
pos: OTHER
lemma: ཕུན་སུམ་
entries: | pos: OTHER, affixed: False, lemma: ཕུན་སུམ་ |
char_types: |CONS|VOW|CONS|TSEK|CONS|VOW|CONS|TSEK|
chunk_type: TEXT
syls_idx: [[0, 1, 2], [4, 5, 6]]
start: 17
len: 8

, text: "ཚོགས"
text_cleaned: "ཚོགས་"
text_unaffixed: "ཚོགས་"
syls: ["ཚོགས"]
pos: NOUN
lemma: ཚོགས་
entries: | pos: NOUN, affixed: False, lemma: ཚོགས་ |
char_types: |CONS|VOW|CONS|CONS|
chunk_type: TEXT
syls_idx: [[0, 1, 2, 3]]
start: 25
len: 4

, text: "། །"
char_types: |NORMAL_PUNCT|TRANSPARENT|NORMAL_PUNCT|
chunk_type: PUNCT
start: 29
len: 3

, text: "རྟག་"
text_cleaned: "རྟག་"
text_unaffixed: "རྟག་"
syls: ["རྟག"]
pos: VERB
lemma: རྟག་
entries: | pos: VERB, affixed: False, lemma: རྟག་ |
char_types: |CONS|SUB_CONS|CONS|TSEK|
chunk_type: TEXT
syls_idx: [[0, 1, 2]]
start: 32
len: 4

, text: "ཏུ་"
text_cleaned: "ཏུ་"
text_unaffixed: "ཏུ་"
syls: ["ཏུ"]
pos: ADP
lemma: ཏུ་
entries: | pos: ADP, affixed: False, lemma: ཏུ་ | pos: SCONJ, affixed: False, lemma: ཏུ་ | lemma: ལ་, pos: PART, affixed: False |
char_types: |CONS|VOW|TSEK|
chunk_type: TEXT
syls_idx: [[0, 1]]
start: 36
len: 3

, text: "བདེ་བ་"
text_cleaned: "བདེ་བ་"
text_unaffixed: "བདེ་བ་"
syls: ["བདེ", "བ"]
pos: VERB
lemma: བདེ་བ་
entries: | pos: VERB, affixed: False, lemma: བདེ་བ་ |
char_types: |CONS|CONS|VOW|TSEK|CONS|TSEK|
chunk_type: TEXT
syls_idx: [[0, 1, 2], [4]]
start: 39
len: 6

, text: "ཐོབ་པ"
text_cleaned: "ཐོབ་པ"
text_unaffixed: "ཐོབ་པ"
syls: ["ཐོབ", "པ"]
pos: VERB
lemma: ཐོབ་པ་
entries: | pos: VERB, affixed: True, lemma: ཐོབ་པ་ |
char_types: |CONS|VOW|CONS|TSEK|CONS|
chunk_type: TEXT
affix_host: True
syls_idx: [[0, 1, 2], [4]]
start: 45
len: 5

, text: "ར་"
text_cleaned: "ར་"
text_unaffixed: "ར་"
syls: ["ར"]
pos: PART
lemma: ལ་
entries: | lemma: ལ་ |
char_types: |CONS|TSEK|
chunk_type: TEXT
affix: True
syls_idx: [[0]]
start: 50
len: 2

, text: "ཤོག"
text_cleaned: "ཤོག་"
text_unaffixed: "ཤོག་"
syls: ["ཤོག"]
pos: VERB
lemma: ཤོག་
entries: | pos: VERB, affixed: False, lemma: ཤོག་ |
char_types: |CONS|VOW|CONS|
chunk_type: TEXT
syls_idx: [[0, 1, 2]]
start: 52
len: 3

]
>>>

where (...) is lots of unwanted prints, but that's a bug I am trying to solve.

OK, I found where the problem lies. There's an older version of the file "pybo.yaml", removing this file and letting pybo create a new one solved the problem

I wonder how this didn't come to my mind... It always happens to me. Great
that it is solved!!!
Le Jeu 15 Aoû 2019 15:30, BLKSerene<EMAIL_ADDRESS>a écrit :

OK, I found where the problem lies. There's an older version of the file
"pybo.yaml", removing this file and letting pybo create a new one solved
the problem
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Esukhia/pybo/issues/54?email_source=notifications&email_token=ADGBUJESRX3TFPABFYRH5NLQEVK67A5CNFSM4IL22HXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4LZ2BA#issuecomment-521641220,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADGBUJEKPPKMMFJ7RZQWH5TQEVK67ANCNFSM4IL22HXA
.


Adds action for re-executing a cell in the spreadsheet

This is useful for workflows accessing changing data such as status information.
Also useful for returning to an un-modified cell.

Looks good!


CuDNNConvolution Crash

when i use Convolution with CuDNNConvolution, kernel=(3,100),nv driver is crash,some times system is down.
when i set kernel=(3,10).it work fine.
my driver is titan x with 362.00 and 368.39 and cudnnv4 and v5 is all crash.
i am use network is cnn_text_classification

You mean the system level nvidia driver crashes? This sounds like a cuda/cudnn bug. Let's confirm and report to them.

yes, nvidia driver crashes

ok .fixed in cudnn 5.1. it now work fine.


Access denied

Hi,
I'm always getting access denied although the credentials are correct since I've tested the same credentials with https://github.com/beardon/mws-api and the MWS Scratchpad
My Code:
const { MWS } = require("../config/dev.js");

const account = "XXXXXX"
const amazonMws = new MwsApi();

amazonMws.setApiKey(
  process.env.AWS_ACCESS_KEY_ID,
  process.env.AWS_SECRET_ACCESS_KEY
);

amazonMws.orders.search(
  {
    Version: "2013-09-01",
    Action: "ListOrders",
    SellerId: MWS.merchantId[account], //"SELLER_ID",
    MWSAuthToken: MWS.authToken, //"MWS_AUTH_TOKEN",
    "MarketplaceId.Id.1": MWS.MarketplaceId.de, //"MARKET_PLEACE_ID_1",
    LastUpdatedAfter: new Date(2018, 09, 24)
  },
  function(error, response) {
    if (error) {
      console.log("error ", error);
      return;
    }
    console.log("response", response);
  }
);

error products { Type: 'Sender',
  Code: 'AccessDenied',
  Message: 'Access denied',
  Headers:
   { 'x-mws-quota-max': 'unknown',
     'x-mws-quota-remaining': 'unknown',
     'x-mws-quota-resetson': 'unknown',
     'x-mws-timestamp': '2018-10-06T14:09:38.212Z',
     'content-type': 'text/xml',
     'content-charset': 'unknown',
     'content-length': '294',
     'content-md5': 'unknown',
     date: 'Sat, 06 Oct 2018 14:09:38 GMT' },
  StatusCode: 401,
  RequestId: '4ef544f5-810c-4a98-8654-2682f131b007' }

@Raidus Possibly your AccessKey and SecretKey are wrong.

@bhushankumarl thanks for you feedback but as I've told you, I've tested the same credentials (AccessKey and SecretKey) with another module and with the MWS Scratchpad. Both worked.

solution was setting the correct marketplace:
amazonMws.setHost("mws.amazonservices.de");

solution was setting the correct marketplace:
amazonMws.setHost("mws.amazonservices.de");
``wow it is so niiiiiiiiiiiice`


view_unread() is returning empty list (Just sometimes)

Sometimes it do!
Sometimes just doesn't !
Somebody know why?, Thanks

Fixed in the latest release, please check and confirm
pip install --upgrade webwhatsapi


@dynatrace/backstage-plugin-dql@unknown can't be resolved to a satisfying range

Summary

I am trying to use this plugin within my backstage following the README installation instructions and I am not able to install @dynatrace/backstage-plugin-dql
Expected Behavior

I would expect the package to be added to my project with no issue.
Current Behavior

when I run yarn --cwd packages/app add @dynatrace/backstage-plugin-dql I get a 404.

Steps to Reproduce

run yarn --cwd packages/app add @dynatrace/backstage-plugin-dql

Your Environment

@dynatrace/backstage-plugin-dql-backend version: N/A
@dynatrace/backstage-plugin-dql version: N/A

We do not publish the packages to NPM yet but only on Github https://github.com/orgs/Dynatrace/packages?repo_name=backstage-plugin.
The feature is in our backlog and will be addresses soonish.

Perfect, thanks for the info!

As far as I can see you are trying to install a repository with this comand but using the release overview instead of the actual repository path.
The actual installation works the following way:
With yarn 2+ you have a .yarnrc.yml file instead of using the npmrc one, where you set the registry, which should look like the following
npmScopes:
  dynatrace:
     npmAlwaysAuth: true
     npmAuthToken: "${YOUR_TOKEN}"
     npmRegistryServer: "https://npm.pkg.github.com"

The token can be generated in your account settings with read-packages permission.
Does this work for you?

@Kirdock Thanks for the info. I'll give it a try.


Update main.py

Added a couple of more words so that people can understand Bionic even well.

Hey @shajin-sha Does it look good or do I need to make a couple of edits?

@shajin-sha review this plz

@shajin-sha review this plz

i have changed that full main.py now you may make it better with new mian.py file see the readme.md


Scriptblock exceptions are not returned

The following yields no output:
Start-ThreadJob {throw "foo"} | Receive-Job -Wait
If you use Start-Job instead the exception is returned as a non-terminating error. Is there any way Start-ThreadJob could do the same?

I get an error running this, do you see the same?
Start-ThreadJob {"Ok"} | Receive-Job -Wait -AutoRemoveJob

Yep, I see the same thing.  Looks like a problem with Job2 behavior.  I originally chose Job1 since its simplest and ThreadJob didn't need to support any Job2 behavior.  But I'll have to look at it more closely.

FWIW, I am starting to like the second option more (deriving from Job1 and adding the exception as an error). It keeps things simple and IMHO actually improves on the Start-Job behavior:

An exception will be reflected in the HasMoreData property
Using Receive-Job more than once does not return the same error repeatedly

Well, it is certainly an easier solution.  I haven't had time to debug the job2 derivation problems yet.  The only downside is that it is not immediately apparent what the job terminating error is.  OTOH it should be the last error in the error stream so that may be a good enough indicator.

Hi Paul, just curious if this project is still alive - haven't seen any activity in the last few months.
Just need to know if I should keep using this or look at alternatives.
Thanks!

I have been pretty busy and haven't had time to work on this lately.  However, feel free to make changes and submit PRs.  My intention was to let others make changes and write tests.

@ajansveld  I found some time and implemented Using keyword and fixed the terminating error by deriving from Job2:
https://github.com/PaulHigin/PSThreadJob/pull/12
Let me know if you see an issues.

I was able to fix this by using Job2 and implementing JobSourceAdapter.


Running make docker on Mac OSX fails.

Starting djangocmsdemo_data_1
/usr/local/lib/python2.7/site-packages/reversion/models.py:6: RemovedInDjango19Warning: django.contrib.contenttypes.generic is deprecated and will be removed in Django 1.9. Its contents have been moved to the fields, forms, and admin submodules of django.contrib.contenttypes.
from django.contrib.contenttypes import generic
/usr/local/lib/python2.7/site-packages/django/contrib/admin/util.py:7: RemovedInDjango19Warning: The django.contrib.admin.util module has been renamed. Use django.contrib.admin.utils instead.
"Use django.contrib.admin.utils instead.", RemovedInDjango19Warning)
/usr/local/lib/python2.7/site-packages/aldryn_jobs/models.py:18: RemovedInDjango19Warning: django.utils.importlib will be removed in Django 1.9.
from django.utils.importlib import import_module
Traceback (most recent call last):
File "manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/site-packages/django/core/management/init.py", line 354, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/site-packages/django/core/management/init.py", line 328, in execute
django.setup()
File "/usr/local/lib/python2.7/site-packages/django/init.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate
app_config.import_models(all_models)
File "/usr/local/lib/python2.7/site-packages/django/apps/config.py", line 198, in import_models
self.models_module = import_module(models_module_name)
File "/usr/local/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/usr/local/lib/python2.7/site-packages/aldryn_locations/models.py", line 21, in
MARKER_CONTENT_FORMAT = unicode(settings.ALDRYN_LOCATIONS_MARKER_CONTENT_FORMAT)
File "/usr/local/lib/python2.7/site-packages/django/conf/init.py", line 49, in getattr
return getattr(self._wrapped, name)
AttributeError: 'Settings' object has no attribute 'ALDRYN_LOCATIONS_MARKER_CONTENT_FORMAT'
make[1]: *** [docker_database] Error 1
make: *** [docker] Error 2

Hi, did you solve the issue?
I also have the same issue. Please let me know if you solve this.
Thanks.

Exact same thing on Linux, so it's not host specific.

fixes have been pushed with additional information to master 👍


Allow chaining off Promises

I liked the look of the API before Promises. Don't get me wrong, I like Promises.
I made the Promise API able to chain more like the old one. Hopefully you think it is nice too...

I liked the look of the API before Promises.

I always thought the same thing too. Can't wait to try this! Awesome!

@awlayton I was looking at your changes. This appears to keep things backwards compatible so that @johntitus wouldn't have to make this a major revision. In other words it can stay at v2. Is that correct?

Very cool. Thanks @awlayton! I definitely plan to pull & release a new version with this, but probably won't get time to get into it until next week. If everything looks good, I'll rewrite the readme to make this the default way of using the API.

Yes @bchr02, the changes should be backwards compatible because the actions still return real Promises.

That's awsome! thanks @awlayton I'm sure a lot of other people will also appreciate this. This should also make it more backward compatible with v1 code.

Thanks again @awlayton for this great pull request.  I've merged it and updated the readme & examples to make use of it.  I'll get around to rewriting the tests to use it eventually.


fix(typings): add sensitivity prop to ModeOption \n\n\n Closes #2433

Checklist

[x] npm test passes
[x] tests and/or benchmarks are included
[x] commit message follows commit guidelines

Description of change
Added sensitivity property to ModeOption interface as it was missing, but mentioned in Official Documentation for zoom-canvas built-in behavior.
Also added a test suite, that covers that property.

Thanks for your pull request


Added Darwin Core Terms vocab

Source file was downloaded from http://rs.tdwg.org/dwc/rdf/dwcterms.rdf
and converted to UTF-8 encoding, which fixes #35.
The config file now permits source to be a file path relative to the
new sources/ directory in the root of the project.
/cc @jhallida @acoburn

If this is merged the config file comments should be updated to reflect the relative file path option for source.  Also, there isn't a spec test.

Thanks! I had no idea I would open this particular can of worms but I'm happy to see it getting resolved so quickly.

@acoburn submitted a patch to the DWC folks which was accepted, although we don't know when they will release it as a replacement of the current file. Meanwhile, we could release this version and update it when DWC publishes the fixed version.

I'm +1 to merging this PR.
The current DWC vocabulary was published Nov 8, 2014, and the previous version was published Oct 22, 2013. I doubt that removing three invisible bytes from a file will lead them to publish a new version anytime soon.

@acoburn In the spirit of not merging one's own requests, please merge. :smile:


Demag GUI display of interpretation type options

This view in Demag GUI doesn't allow a user to actually read what option they are choosing:

In the past I've tried to solve a similar problem by having a mouseover event cause the full text to pop up:  https://wiki.wxpython.org/MouseOvers.  The problem is, this solution seemed to overload wxPython and make everything go slowly or crash.  That might have been a product of using an old version of wx on Windows at the time that I was originally attempting this, so the above solution may work.
I can try to implement a UI solution when I've finished a few other things, or if someone else wants to take it that's fine too.

I haven't looked at the code yet, but mouse over events sometimes cause rapid event fire which locks up the GUI event handler. In short term I'll just put abbreviations and edit the in context documentation (https://www.wxpython.org/docs/api/wx.ContextHelp-class.html) so that the curious can just check what they mean. I'm also pushing changes to the cookbook soon that expose to the user that there is in context help so it's not so obscure to find. Later I'll see if I can crack the mouse over idea so it's easier.


Performance test mobile a11y: round 3

I found a couple places where performance could be improved for mobile VO in https://github.com/phetsims/scenery/issues/852.
@KatieWoe can you please check this version of gravity-and-orbits to see how the sim is behaving now on devices where performance was previously terrible?
https://phet-dev.colorado.edu/html/gravity-and-orbits/1.2.0-pdomTransform.4/phet/gravity-and-orbits_en_phet.html?accessibility&mobileA11yTest

[x] Windows 7 Chrome
[ ] iOS10
[x] Chrome OS
[x] Mac OS 10.14 Chrome

Like last time, if the sim outright crashes no need to test any further.

@ariel-phet for priority

@jessegreenberg just did the Mac 10.14 and it still runs a bit slow but it is much, much better.

iOS 10 is still crashing before reaching the home screen

OK thanks @KatieWoe. Since this seemed promising on  Mac 10.14 could you please check the other two platforms? The crash is strange because I also tested on iOS 9.3 before creating this issue.

Chrome OS looks ok

Win 7 looks ok
@jessegreenberg QA is done

Thanks @KatieWoe. Could you please confirm that this sim (without a11y and new PDOM positioning) is not crashing on iOS 10?
https://phet-dev.colorado.edu/html/gravity-and-orbits/1.2.0-pdomTransform.4/phet/gravity-and-orbits_en_phet.html
while this version is?
https://phet-dev.colorado.edu/html/gravity-and-orbits/1.2.0-pdomTransform.4/phet/gravity-and-orbits_en_phet.html?accessibility&mobileA11yTest

@jessegreenberg the first link you gave me just now is also crashing the sim.  This seems very odd.  I checked the published version and it, at least, seems fine on iOS 10.

Thanks @KatieWoe, can you try the complied version on phettest?

@jessegreenberg built version from phettest looks ok

Thanks! OK, closing this issue, I may have access to iOS10 (or later) and will see if it is crashing there, otherwise I might return for assistance to check on what could be causing the crashing.


add parenthesis to Usage example

Example could not be compiled.

Thanks for the PR!

nichts zu danken


Ros2 Rolling + starting refactor

Fully deals with dependencies
Fixed an issue blocking use of tf2_geometry_msgs.hpp to remove a build warning and linking issue
Changes API for current in ROS 2 Rolling (WeakPtr for node; change speed callback although not implemented)
De-templated the controller, optimizer, state, and control sequence still needs critics
Changed final to override so other people can use this as a base class
Shuffling files from templates into src now that they aren't template implementations
Moved path publisher into the trajectory visualization class
Remove unused on_activate/deactivate/cleanup functions and replace the configuration with an initialization() which is more in line with how you use it anyhow without other lifecycle transitions implemented
Collapsed utilities for getting parameters + geometry into a single utilities file
Collapsed visualization utilities into the trajectory visualizer, the only place they are used to remove 1 more subdirectory making the project topography much more easily navigable

Tomorrow, I'll plan on working on the use of smart pointers "properly" and finish (hopefully) the reorg on files so that we won't have to touch the directory topology again. I'm taking a top down approach so I'm starting with the controller file and working my way down.
I did all of the de-templating except for the critics / scorer so that might be another good thing to address also so we can finish up that item. That seemed a little harder for me to do so I left that for you.

Wow. That looks amazing! I generally agreed with all the points. I will start untemplating critics today or tomorrow


RecursionError: maximum recursion depth exceeded in instancecheck

The bug
I am trying to generate a text between 106 and 141 characters but run in to this error:
RecursionError: maximum recursion depth exceeded in __instancecheck__
To Reproduce
Give a full working code snippet that can be pasted into a notebook cell or python file. Make sure to include the LLM load step so we know which model you are using.
import torch
from transformers import AutoTokenizer, BitsAndBytesConfig
from tokenizers import pre_tokenizers
tokenizer = AutoTokenizer.from_pretrained(
    "meta-llama/Meta-Llama-3-70B-Instruct",
    padding_side="left",
    trust_remote_code=True,  # token=hf_token
    use_fast=False
)

byte_decoder = {}
alphabet = pre_tokenizers.ByteLevel(False, False).alphabet()
known_vals = set([])

for j in range(256):
    for k in range(256):
        for l in range(256):
            if len(byte_decoder.keys()) < 256:
                b = b""
                vals = [j,k,l]
                if not set(vals).issubset(known_vals):
                    for d in range(3):
                        b = b + vals[d].to_bytes(1, 'little', signed=False)
                    try:
                        c = b.decode()
                        t = pre_tokenizers.ByteLevel(False,False).pre_tokenize_str(c)[0][0]
                        for m in range(3):
                            if t[m] not in byte_decoder.keys():
                                byte_decoder[t[m]] = vals[m]
                                known_vals.add(vals[m])
                    except UnicodeDecodeError:
                        pass

print(len(byte_decoder))

byte_decoder['À'] = 192
byte_decoder['Á'] = 193

byte_decoder['ð'] = 240
byte_decoder['ñ'] = 241
byte_decoder['ò'] = 242
byte_decoder['ó'] = 243
byte_decoder['ô'] = 244
byte_decoder['õ'] = 245
byte_decoder['ö'] = 246
byte_decoder['÷'] = 247
byte_decoder['ø'] = 248
byte_decoder['ù'] = 249
byte_decoder['ú'] = 250
byte_decoder['û'] = 251
byte_decoder['ü'] = 252
byte_decoder['ý'] = 253
byte_decoder['þ'] = 254
byte_decoder['ÿ'] = 255

import guidance
tokenizer.byte_decoder = byte_decoder
bnb_config = BitsAndBytesConfig(load_in_4bit=True, bnb_4bit_quant_type="nf4", bnb_4bit_compute_dtype=torch.float16, bnb_4bit_use_double_quant=True, llm_int8_enable_fp32_cpu_offload=False)
device_map = [
    # Assign initial layers to GPU 0
    ('model.embed_tokens', 0),
    ('model.layers.0', 0),
    ('model.layers.1', 0),
    ('model.layers.2', 0),
    ('model.layers.3', 0),
    ('model.layers.4', 0),
    ('model.layers.5', 0),
    ('model.layers.6', 0),
    ('model.layers.7', 0),
    ('model.layers.8', 0),
    ('model.layers.9', 0),
    ('model.layers.10', 0),
    ('model.layers.11', 0),
    ('model.layers.12', 0),
    ('model.layers.13', 0),
    ('model.layers.14', 0),
    ('model.layers.15', 0),
    ('model.layers.16', 0),
    ('model.layers.17', 0),
    ('model.layers.18', 0),
    ('model.layers.19', 0),
    ('model.layers.20', 0),
    ('model.layers.21', 0),
    ('model.layers.22', 0),
    ('model.layers.23', 0),
    ('model.layers.24', 0),
    ('model.layers.25', 0),
    ('model.layers.26', 0),
    ('model.layers.27', 0),
    ('model.layers.28', 0),
    ('model.layers.29', 0),

    # Assign middle layers to GPU 1
    ('model.layers.30', 1),
    ('model.layers.31', 1),
    ('model.layers.32', 1),
    ('model.layers.33', 1),
    ('model.layers.34', 1),
    ('model.layers.35', 1),
    ('model.layers.36', 1),
    ('model.layers.37', 1),
    ('model.layers.38', 1),
    ('model.layers.39', 1),
    ('model.layers.40', 1),
    ('model.layers.41', 1),
    ('model.layers.42', 1),
    ('model.layers.43', 1),
    ('model.layers.44', 1),
    ('model.layers.45', 1),
    ('model.layers.46', 1),
    ('model.layers.47', 1),
    ('model.layers.48', 1),
    ('model.layers.49', 1),
    ('model.layers.50', 1),
    ('model.layers.51', 1),
    ('model.layers.52', 1),
    ('model.layers.53', 1),
    ('model.layers.54', 1),
    ('model.layers.55', 1),
    ('model.layers.56', 1),
    ('model.layers.57', 1),
    ('model.layers.58', 1),
    ('model.layers.59', 1),
    ('model.layers.60', 1),
    ('model.layers.61', 1),
    ('model.layers.62', 1),
    ('model.layers.63', 1),
    ('model.layers.64', 1),
    ('model.layers.65', 1),

    # Assign final layers to GPU 2
    ('model.layers.66', 2),
    ('model.layers.67', 2),
    ('model.layers.68', 2),
    ('model.layers.69', 2),
    ('model.layers.70', 2),
    ('model.layers.71', 2),
    ('model.layers.72', 2),
    ('model.layers.73', 2),
    ('model.layers.74', 2),
    ('model.layers.75', 2),
    ('model.layers.76', 2),
    ('model.layers.77', 2),
    ('model.layers.78', 2),
    ('model.layers.79', 2),
    ('model.norm', 2),
    ('lm_head', 2)
]

# Convert to dictionary
device_map_dict = {
    key: value for key, value in device_map
}
lm = guidance.models.Transformers("meta-llama/Meta-Llama-3-70B-Instruct", tokenizer=tokenizer, device_map=device_map_dict, quantization_config=bnb_config,echo=False)

lm += 'Here\'s a joke. It is between 106 and 141 characters long.\n'
lm += 'Answer: ' + guidance.gen(regex='.{106,141}')
print(lm)

System info (please complete the following information):

OS (e.g. Ubuntu, Windows 11, Mac OS, etc.): Ubuntu 22.04
Guidance Version (guidance.__version__): 0.1.15

part of error (full was to long):
  File "/home/sw/anaconda3/envs/llama/lib/python3.10/site-packages/pyformlang/regular_expression/regex_reader.py", line 170, in _process_sub_regex
    return self.from_string(sub_regex)
  File "/home/sw/anaconda3/envs/llama/lib/python3.10/site-packages/pyformlang/regular_expression/regex.py", line 516, in from_string
    return Regex(regex_str)
  File "/home/sw/anaconda3/envs/llama/lib/python3.10/site-packages/pyformlang/regular_expression/regex.py", line 91, in __init__
    super().__init__(regex)
  File "/home/sw/anaconda3/envs/llama/lib/python3.10/site-packages/pyformlang/regular_expression/regex_reader.py", line 32, in __init__
    self._setup_from_regex_componants()
  File "/home/sw/anaconda3/envs/llama/lib/python3.10/site-packages/pyformlang/regular_expression/regex_reader.py", line 166, in _setup_from_regex_componants
    self._setup_non_trivial_regex()
  File "/home/sw/anaconda3/envs/llama/lib/python3.10/site-packages/pyformlang/regular_expression/regex_reader.py", line 149, in _setup_non_trivial_regex
    self.sons.append(self._process_sub_regex(begin_second_group,
  File "/home/sw/anaconda3/envs/llama/lib/python3.10/site-packages/pyformlang/regular_expression/regex_reader.py", line 170, in _process_sub_regex
    return self.from_string(sub_regex)
  File "/home/sw/anaconda3/envs/llama/lib/python3.10/site-packages/pyformlang/regular_expression/regex.py", line 516, in from_string
    return Regex(regex_str)
  File "/home/sw/anaconda3/envs/llama/lib/python3.10/site-packages/pyformlang/regular_expression/regex.py", line 91, in __init__
    super().__init__(regex)
  File "/home/sw/anaconda3/envs/llama/lib/python3.10/site-packages/pyformlang/regular_expression/regex_reader.py", line 32, in __init__
    self._setup_from_regex_componants()
  File "/home/sw/anaconda3/envs/llama/lib/python3.10/site-packages/pyformlang/regular_expression/regex_reader.py", line 166, in _setup_from_regex_componants
    self._setup_non_trivial_regex()
  File "/home/sw/anaconda3/envs/llama/lib/python3.10/site-packages/pyformlang/regular_expression/regex_reader.py", line 148, in _setup_non_trivial_regex
    self._process_sub_regex(0, self._end_current_group))
  File "/home/sw/anaconda3/envs/llama/lib/python3.10/site-packages/pyformlang/regular_expression/regex_reader.py", line 170, in _process_sub_regex
    return self.from_string(sub_regex)
  File "/home/sw/anaconda3/envs/llama/lib/python3.10/site-packages/pyformlang/regular_expression/regex.py", line 516, in from_string
    return Regex(regex_str)
  File "/home/sw/anaconda3/envs/llama/lib/python3.10/site-packages/pyformlang/regular_expression/regex.py", line 91, in __init__
    super().__init__(regex)
  File "/home/sw/anaconda3/envs/llama/lib/python3.10/site-packages/pyformlang/regular_expression/regex_reader.py", line 27, in __init__
    regex = _pre_process_regex(regex)
  File "/home/sw/anaconda3/envs/llama/lib/python3.10/site-packages/pyformlang/regular_expression/regex_reader.py", line 215, in _pre_process_regex
    regex = re.sub(r" +", " ", regex)
  File "/home/sw/anaconda3/envs/llama/lib/python3.10/re.py", line 209, in sub
    return _compile(pattern, flags).sub(repl, string, count)
  File "/home/sw/anaconda3/envs/llama/lib/python3.10/re.py", line 290, in _compile
    if isinstance(flags, RegexFlag):
RecursionError: maximum recursion depth exceeded in __instancecheck__

Can you reproduce the error more minimally, e.g. with just
guidance.gen(regex='.{106,141}')

Also, what version of pyformlang do you have installed?

You want me to just run that gen command without any extra input?
Pyformlang version: 1.0.10

Does it occur only after adding the gen call to an lm, or does this snippet alone reproduce it?
import guidance
guidance.gen(regex='.{106,141}')

Actually that snippet only, also crashes ):

Ok, gotcha!
This seems to be due to how pyformlang is parsing the regular expressions, leading to a really deep recursion. I'm working on a refactor of how guidance handles regular expressions, but I can't promise that the PR will be completed soon.
I actually wasn't able to reproduce on my system, likely due to a difference in platform. What's the value of
import sys
sys.getrecursionlimit()

for you?
A temporary (and potentially unsafe -- don't take this as a recommendation) solution for you may be to increase your maximum recursion depth by calling sys.setrecursionlimit(number). Warning: may cause a stack overflow.

Ahh right.
The output is:

import sys
sys.getrecursionlimit()
1000

I just wanna create answers with an answer character length between 106,141. Is there another approach?
And to what should I increase the limit?

I'm away from my computer and can't check my limit atm, but you may have to experiment a bit. I'll try to get back to you tomorrow :)
Alternatively if you're not so particular about this bound (although your very specific numbers suggest you are, you can wrap a naked gen call in token_limit:
from guidance import gen, token_limit
...
lm += token_limit(gen(), max_tokens=some number)

The issue is that when i use normal transformers and say like max_new_tokens=141 it always cuts off the response, like you get a half sentence at the end.
I get this using your code:
Traceback (most recent call last):
  File "/home/sw/guidance_llama.py", line 164, in <module>
    lm += 'Answer: ' +  guidance.token_limit(guidance.gen(), max_tokens=141)
  File "/home/sw/anaconda3/envs/llama/lib/python3.10/site-packages/guidance/_grammar.py", line 916, in token_limit
    _rec_token_limit(value, max_tokens)
  File "/home/sw/anaconda3/envs/llama/lib/python3.10/site-packages/guidance/_grammar.py", line 933, in _rec_token_limit
    _rec_token_limit(g, max_tokens)
  File "/home/sw/anaconda3/envs/llama/lib/python3.10/site-packages/guidance/_grammar.py", line 933, in _rec_token_limit
    _rec_token_limit(g, max_tokens)
  File "/home/sw/anaconda3/envs/llama/lib/python3.10/site-packages/guidance/_grammar.py", line 933, in _rec_token_limit
    _rec_token_limit(g, max_tokens)
  File "/home/sw/anaconda3/envs/llama/lib/python3.10/site-packages/guidance/_grammar.py", line 921, in _rec_token_limit
    if grammar.max_tokens > max_tokens and not isinstance(grammar, Terminal):
AttributeError: 'ModelVariable' object has no attribute 'max_tokens'


[FLINK-5727] [table] Unify some API of batch and stream TableEnvironment

This PR contains 3 changes:

move sql to base class
unify scan and ingest to scan, and move to base class
move registerTableSource to base class and change the parameter type from specific BatchTableSource or StreamTableSource to their base class: TableSource

Hi @KurtYoung,
thanks for the refactoring. Moving sql() and scan() to TableEnvironment makes sense.
However, I'd like to keep registerTableSource at the BatchTableEnvironment and StreamTableEnvironment because this separation ensures that a BatchTableSource is not registered at a StreamTableEnvironment and vice versa.
What do you think?
Best, Fabian

Hi @fhueske , thanks for your reviewing and comments, it makes sense to me. The motivation behind this refactoring is we want to eliminate most differences between batch and stream execution environment, and use TableEnvironment only when they writing programs.
How about we still keep registerTableSource in TableEnvironment and leave the implementation to the specific env, and do some type validation before registration.

Thanks for the update @KurtYoung.
+1 to merge

merging


Names for ids in the report

The abacus report returns aggregated and rated usage by the ids. Shouldn't we include names with ids for the the entities in the report?
Can we enhance the reporting api to do a name-to-id look up before the returning the response?

I thought about this today and my advice would be to keep these names out of the Abacus APIs for a number of reasons:

they're not in the usage data submitted by the resource providers in the first place;

storing the names of the entities referenced by usage data (and potentially other info like descriptions etc) with each usage doc would use a lot of space, and wouldn't be of a great value as the referenced entities can potentially be renamed after usage submission anyway;

any cloud management UI obviously needs names for all the entities it displays, but that really doesn't have anything to do with metering and Abacus (e.g. a development tool UI, a management console, etc would need the names of an org, a space, an app as well);

the good news is that CF already provides nice APIs to get the names of all the CF entities (and additional info as well, pretty much everything you'd like to display along these entities)... so I'm not sure why we'd duplicate that capability in Abacus.

That being said, if somebody can think of a way to improve the current Abacus APIs to make them easier to use without introducing significant problems (e.g. new requirements on resource providers to send the names, significant performance issues, or inconsistencies with -- or duplication of -- the existing CF APIs) and can volunteer to implement these improvements, I'll be happy to review any pull requests.

No code change required at this point and the question has been addressed.

Can we hook up the reporter api to fetch names for ids from a naming service(which could be using cf itself) and augment the report with the names?

I'm not sure I understand what you meant by 'hook up the report API to fetch names for ids'. Can you elaborate a bit on what you have in mind?

Upon further discussion, it seems abacus is not the right place to store the names or other details.
It should be the service to just produce the usage and cost numbers and a directory service which maintains all the relevant information for each entity would be the correct approach.
We will look into exploring that option of getting the report from abacus and augmenting it with names on the client side.

OK looks like a reasonable resolution.


AspNetCore Optional Route Parameters not supported?

Hi.
According to: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/routing?view=aspnetcore-2.2#route-template-reference
A ? appended to the end of a parameter, as in:
        [HttpGet]
        [Route("state/{name?}")]
        public ActionResult<IEnumerable<MonitorState>> GetMonitorState([FromRoute] string name)

Should result in an optional parameter. When I create a swagger doc from this using services.AddSwaggerDocument(...) the parameter is marked as required, however.
Are optional parameters not supported?

Route parameters cannot be optional in OpenAPI/Swagger

I see, sorry was not aware.

Mind to share the reason for that? It's a real deal breaker not being able to use optional parameters on an API route because my Swagger generation tool will not support. That influences my product's design.

Route parameters cannot be optional in OpenAPI/Swagger

Mind to share the reason for that? It's a real deal breaker not being able to use optional parameters on an API route because my Swagger generation tool will not support. That influences my product's design.

Rico said it was not about the tool, it is about the OpenApi specification.
You can complain there if you want.

I read some other topics and I understand the mess it is to properly flag an optional segment.
I know I just arrived to the party and for sure I'm oversimplifying things, but I guessing the problem is that the API Explorer returns required: true even for a parameter marked with the optional question mark. Is that correct? /api/users/{id?}

As I understand it that per the specification it's not possible, but then shouldn't the following example be possible while following the specs:
[HttpPut("{id}")] [HttpPut("{id}/{lang}")] public async Task<Uri> Update(Guid id, CancellationToken cancellationToken, string lang = null) { // my code }
It's two routes, no optional parameters in the route template for a single action. It's very important because we don't want to duplicate the action.
It generate two endpoint in the swagger but then

In the API definition UI the endpoint that didn't have the 'lang' in the route have a 'lang' required parameter. This doesn't match the route.

The netcore client generator generate two methods: 'Update' and 'Update2' both with nullable 'lang' parameter.

To me that seems to be an odd way to generate from the route information. Personally I would expect the following:

Generate two endpoint definition. 1 per route.
The endpoint definition without 'lang' in the template shouldn't have a 'lang' parameter.
The netcore client generator should generate two methods both named 'Update' one where 'lang' is required, the second where 'lang' is not part of the parameters that you pass to the method.

Wouldn't that respect the OpenAPI definition while simultaneously allowing us to do what we want to do?


HTTP Host Availability

The problem I have after executing the flutter doctor command.
flutter doctor
Checking Dart SDK version...
Downloading Dart SDK from Flutter engine ...
Expanding downloaded archive...
Building flutter tool...
Running pub upgrade...
Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
Downloading Material fonts...                                      392ms
Downloading Gradle Wrapper...                                       21ms
Downloading package sky_engine...                                  105ms
Downloading flutter_patched_sdk tools...                           241ms
Downloading flutter_patched_sdk_product tools...                   213ms
Downloading windows-x64 tools...                                 1,201ms
Downloading windows-x64/font-subset tools...                        97ms
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.10.4, on Microsoft Windows [Version 10.0.19044.1645], locale zh-CN)
[√] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.11)
[√] Android Studio (version 2021.1)
[√] IntelliJ IDEA Ultimate Edition (version 2021.3)
[√] Connected device (2 available)
[☠] HTTP Host Availability (the doctor check crashed)
    X Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know
      about this issue at https://github.com/flutter/flutter/issues.
    X HandshakeException: Connection terminated during handshake

! Doctor found issues in 1 category.

Hi @yuzhuosun, can you provide the complete output of flutter doctor -v?
Thank you

of course,thank you!
flutter doctor -v
Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
[√] Flutter (Channel stable, 2.10.4, on Microsoft Windows [Version 10.0.19044.1645], locale zh-CN)
• Flutter version 2.10.4 at D:\src\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision c860cba910 (4 weeks ago), 2022-03-25 00:23:12 -0500
• Engine revision 57d3bac3dd
• Dart version 2.16.2
• DevTools version 2.9.2
• Pub download mirror https://pub.flutter-io.cn
• Flutter download mirror https://storage.flutter-io.cn
[√] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
• Android SDK at E:\AndroidTools\AndroidSDK
• Platform android-32, build-tools 32.1.0-rc1
• Java binary at: E:\AndroidTools\AndroidStudio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.11)
• Visual Studio at D:\Program Files (x86)\Microsoft Visual Studio\2019\Community
• Visual Studio Community 2019 version 16.11.32228.343
• Windows 10 SDK version 10.0.19041.0
[√] Android Studio (version 2021.1)
• Android Studio at E:\AndroidTools\AndroidStudio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
[√] IntelliJ IDEA Ultimate Edition (version 2021.3)
• IntelliJ at D:\Program Files\JetBrains\IntelliJ IDEA 2021.3.1
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
[√] Connected device (2 available)
• Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19044.1645]
• Chrome (web)      • chrome  • web-javascript • Google Chrome 97.0.4692.71
[☠] HTTP Host Availability (the doctor check crashed)
X Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about this issue at
https://github.com/flutter/flutter/issues.
X HandshakeException: Connection terminated during handshake
•
! Doctor found issues in 1 category.

I have same problem now, can you respond me when you find answer, thank you!

Hi @yuzhuosun @galymzhan91, are either of you using a VPN or any such software?

hi, no I don't, we have proxy, at work

Hi @yuzhuosun @galymzhan91, are either of you using a VPN or any such software?
I found the solution here :  https://stackoverflow.com/questions/71063780/how-is-http-host-availability-in-flutter-2-10
or you have to delete "cache" folder in bin folder of flutter directory. then run "flutter cache repair" and after "flutter doctor".

Hi @yuzhuosun, kindly check out the comment in https://github.com/flutter/flutter/issues/99628#issuecomment-1072910852 to see if it helps. Closing as duplicate of #99628
If that comment doesn't help, kindly leave a comment below and I will reopen.
Thank you


Support instanced pipelines with the concourse-slack-alert-resource

Support instanced pipelines with the concourse-slack-alert-resource
Somewhere around this section
https://github.com/arbourd/concourse-slack-alert-resource/blob/main/concourse/build.go#L51-L59
Need to do the following

Pull in '$BUILD_PIPELINE_INSTANCE_VARS' env var
If case on that, if not null, build the URL with those added on to the end.
Otherwise build it like it currently is

Currently we get: https://cicd-qa.odl.mit.edu/teams/ocw/pipelines/draft/jobs/build-ocw-site/builds/81
Should really be: https://cicd-qa.odl.mit.edu/teams/ocw/pipelines/draft/jobs/build-ocw-site/builds/81?vars.site=%22alice-test-4%22
Helpful information: https://concourse-ci.org/implementing-resource-types.html#resource-metadata
Then need to make a build and publish pipeline -> docker hub, update the pipelines to use this new resource.

I'm not sure what I was trying to say here but I did manage to get something that resembles a working alert with actionable information in it in the linked PR so I'm going to close for now.


[dv/doc] security verification in cip_lib

Add a section - security verification in cip_lib in cip_lib doc to
describes the steps to enabling tests for countermeasures
Will add following items soon

Security Verification for MUBI type CSRs/ports
methodology docs of security verification for common countermeasure
primitives

Signed-off-by: Weicai Yang<EMAIL_ADDRESS>

Thanks @matutem and @cindychip's review. Updated as you suggested.


Implemented typing animation on the chat page

Implemented typing animation on the chat page.
https://github.com/user-attachments/assets/4c557339-0faf-4023-8e21-02188aaa17a1

check this new sonar issue


[Question] Support for Minecraft Barrel

Hi, great mod! Is there any way to add support for barrels? It would be nice, if you can also add color to a barrel.

Already working on that

Any update on that? @kalucky0 😄

Ah, sorry. I'm very busy with university projects right now. I will try to do this ASAP though

Sounds great!


Added theme mdsuper

Added theme mdsuper
tobylai-toby/hexo-theme-mdsuper
A hexo blog theme using mdui-v2 with Material You (Material Design 3). Supports twikoo comment system and Prismjs highlight.
Check List
Please read and check followings before submitting a PR.

[X] I want to publish my theme on Hexo official website.

[x] I have read the theme publishing doc.
[X] name is unique.
[X] link URL is correct.
[X] preview URL is correct.
[X] preview URL web site is rendered correctly.
[x] Add a screenshot to source/themes/screenshots.
[X] Screenshot filename is same as value of name.
[X] Screenshot size is 800 * 500.
[X] Screenshot file format is png.

[ ] I want to publish my plugin on Hexo official website.

[ ] I have read the plugin publishing doc.
[ ] name is unique.
[ ] link URL is correct.

[ ] Others (Update, fix, translation, etc...)

Languages:
[ ] en English
[ ] ru Russian
[ ] zh-cn simplified Chinese
[ ] zh-tw traditional Chinese

Note
No need to translate ko, pt-br, th languages if you submit a PR for documentation.

Warning
ko, pt-br, th languages document are inactive. Please, submit issue if you want to continuous contribution to them.

might pass the hexo-theme-unit-test with prismjs enabled


clarify whether label is a required field for entities

currently, the label field on entity search results is optional - the only "required" field is id - is label.default (and kind) guaranteed to be populated?

similar question for EntityEventRelation.entity and EntityEventRelation.role

yes, left that optional for the testing phase (to prevent validation errors), but I guess labels and ids should be required in general.

leaving that for the time being open. in case that is a problem for the interfaces create from the API specs, please comment on the issue