Any help needed?

Absolutely. Are there particular areas you’re interested in contributing to?
The #1 need right now is to switch. The data source from scraping Worldometers to the Johns Hopkins data repository they’re now publishing on GitHub and updating daily.
That will allow us to support any country publishing numbers: not just the few that Worldometers supports on their website (which are the ones currently on the site).
Would you be interested in taking that on?

 I'm thinking we should be scraping from https://github.com/CSSEGISandData/COVID-19/tree/master/csse_covid_19_data/csse_covid_19_daily_reports.

@zachlatta Ok perfect, ill have a look and let you know my thoughts :)

Thank you. Would greatly appreciate if you could step in here. Sorely needed.
--
Zach Latta
https://zachlatta.com ( http://zachlatta.com )
@zachlatta ( https://twitter.com/zachlatta ) / fb ( https://www.facebook.com/crynix ) / github ( https://github.com/zachlatta )
On Fri, Mar 20, 2020 at 3:14 PM, William Luke <<EMAIL_ADDRESS>> wrote:

@ zachlatta ( https://github.com/zachlatta ) Ok perfect, ill have a look
and let you know my thoughts :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub (
https://github.com/lachlanjc/covid19/issues/3#issuecomment-601869067 ) , or
unsubscribe (
https://github.com/notifications/unsubscribe-auth/AAHSH6FZNEMBGRO7PPQOVDTRIO6BVANCNFSM4LO24WQQ
).

Thoughts

Query csse_covid_19_data/csse_covid_19_daily_reports to get all the files

interface File {
  name: string;
  path: string;
  sha: string;
  size: string;
  url: string;
  html_url: string;
  git_url: string;
  download_url: string;
  type: string;
  _links: {
    self: string;
    git: string;
    html: string;
  }
}
async function fetchFiles(){
  const response = await fetch("https://api.github.com/repos/CSSEGISandData/COVID-19/contents/csse_covid_19_data/csse_covid_19_daily_reports")
  const files: File[] = await response.json();
  const csvFiles = files.filter(file => file.name.includes(".csv"))
  console.log(csvFiles);
}

Once we have the files then get the dates from the file names  name: '03-13-2020.csv'

Very quick and hacky, let me know your thoughts

Hi, I would like to contribute to include India in the dashboard. We have a billion people here and we need prediction for people to start taking precaution now!

@williamluke4: High-level, logic makes sense, but can you please adapt it for the schema we currently have going? You can see it at https://github.com/lachlanjc/covid19/blob/master/api/prisma/schema.prisma.
If you can do that and are up for the task, a pull request would be greatly appreciate and I would be happy to prioritize and merge. This would also enable support for India, which would meet @kn-neeraj's need (which I think would be a fantastic addition).

@kn-neeraj: Please see the above comment. A pull request to switch out data source from scraping Worldometers to importing from https://github.com/CSSEGISandData/COVID-19 would enable India support (and would be a very welcome update, as it would enable support for every other country too).
@williamluke4 / @kn-neeraj: The file that needs to be rewritten to pull from this new source is https://github.com/lachlanjc/covid19/blob/master/api/src/functions/scrape.js. Once that is rewritten, I will set up a separate service to call that function every hour so the site is constantly updated.

@zachlatta trying to figure this out. Comfortable with Python more than javascript. But let me figure out how to help.
@williamluke4 good work on the above script. Are you working on adapting it to schema? Let me know if you need any help

@zachlatta - Wasn't able to figure out how exactly data is stored, but I built a simple endpoint for the Johns Hopkins data repository that follows the same schema this project currently does.
For countries with multiple regions, all the regions data is aggregated into one.
Just GET with the country's ISO code. Eg:
https://covid-data--jajoosam.repl.co/iso/in gives
{
  "country": "India",
  "lastUpdated": "Sat, 21 Mar 2020 09:34:39 GMT",
  "data": [{
      "date": "3/18/20",
      "totalCases": 156,
      "newCases": 14,
      "totalDeaths": 3,
      "newDeaths": 0,
      "currentInfected": 150
    },
    {
      "date": "3/19/20",
      "totalCases": 194,
      "newCases": 38,
      "totalDeaths": 4,
      "newDeaths": 1,
      "currentInfected": 186
    },
    {
      "date": "3/20/20",
      "totalCases": 244,
      "newCases": 50,
      "totalDeaths": 5,
      "newDeaths": 1,
      "currentInfected": 234
    }]
}

I'm pretty swamped atm, so if someone else could take over that would be great. Great work @jajoosam

Are there any tasks to tackle? I'd love to help out!

@lachlanjc, can provide guidance here as I know you have some WIP work?
--
Zach Latta
https://zachlatta.com ( http://zachlatta.com )
@zachlatta ( https://twitter.com/zachlatta ) / fb ( https://www.facebook.com/crynix ) / github ( https://github.com/zachlatta )
On Sun, Mar 22, 2020 at 3:57 PM, Rishi Kothari <<EMAIL_ADDRESS>> wrote:

Are there any tasks to tackle? I'd love to help out!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub (
https://github.com/lachlanjc/covid19/issues/3#issuecomment-602263513 ) , or
unsubscribe (
https://github.com/notifications/unsubscribe-auth/AAHSH6H2KCLD32JNWJWOWULRIZUTHANCNFSM4LO24WQQ
).

@rishiosaur Check out #4, where I've adapted what @jajoosam started. It has some remaining issues (UK & Netherlands data primarily, haven't investigated why those seem broken), then the primary task is wiring up the data being fetched to saving to the database.

@lachlanjc line 68 of new scrape.js should be
let dates = Object.keys(agg).filter(, newscrape.js should work then - without it there'd be an issue with every country with multiple COVID-19 documented regions :)


acroform error message update

Updated error text document.initForms() to document.initForm() as correct method name is initForm()

What kind of change does this PR introduce?
Typo fix in error text

Checklist:

[ ] Unit Tests N/A
[ ] Documentation N/A
[ ] Update CHANGELOG.md N/A
[x] Ready to be merged

Thanks.


fix bug which causes arguments not getting properly parsed with slash commands

About this pull request
fixes bug which causes slash commands not properly parse arguments
Changes
changed one line to properly parse slash command arguments.
Checklist

[ ] I've run the pre_push.py script to format and lint code.
[x] I've checked this pull request runs on Python 3.6.X.
[ ] This fixes something in Issues.

Issue:

[x] This adds something new.
[ ] There is/are breaking change(s).
[ ] (If required) Relevant documentation has been updated/added.
[x] This is not a code change. (README, docs, etc.)

I dont see what this fixed? This lib has intentionally decided to dropped support for positional arguments. It is must more reliable to go with keyword arguments.

I dont see what this fixed? This lib has intentionally decided to dropped support for positional arguments. It was concluded that much more reliable to go with keyword arguments.

well i didnt know that my project required positional arguments so i though it was bug but if its not i will just close this repo and make my own fork for my own usage.


codec_derive should allow encoded_as configuration

so that you can do:
trait HasCompact {
  type Type: Encode + Decode + From<Self> + Into<Self>;
}

impl HasCompact for u32 {
  type Type = Compact<u32>;  // already implemented in parity_codec
}

#[derive(Encode, Decode)]
struct Something<Foo: HasCompact> {
  #[codec(encoded_as = "<Foo as HasCompact>::Type")]
  bar: Foo,
}

The derived code would essentially be <Compact<Foo>>::from(bar).encode() instead of the usual bar.encode() and <Compact<Foo>>::decode().into() instead of Foo::decode().
This is a prerequisite for #847

For compacts it would be nice to have an additional shortcut for convinience:
#[derive(Encode, Decode)]
struct Something {
   #[codec_compact]
   bar: u64,
}


Added new Feature component (Download App Links)

Also added a baseUrl and paths in tsconfig.json so we can import our components using @components/... instead of ../../../../components/...
Here's how the new component looks like:

@hauptrolle check this out. I've added a new component, but also made some changes in the imports. I've added path aliases so we can import our components easily like @/components/ResizableFrame instead of jumping to it ../../../components/ResizableFrame. Also added a jest.config.json file to hook everything up. Check it out!

@hauptrolle check this out. I've added a new component, but also made some changes in the imports. I've added path aliases so we can import our components easily like @/components/ResizableFrame instead of jumping to it ../../../components/ResizableFrame. Also added a jest.config.json file to hook everything up. Check it out!

One more thing. I would categorize the new component inside hero instead of features.

One more thing. I would categorize the new component inside hero instead of features.

One more thing. I would categorize the new component inside hero instead of features.

You think so? I was imaging it being used as a feature, below the fold. I'd redesign it if it's being used as a hero. Actually, I can make a hero version of it and then we'd have two 😄

One more thing. I would categorize the new component inside hero instead of features.

You think so? I was imaging it being used as a feature, below the fold. I'd redesign it if it's being used as a hero. Actually, I can make a hero version of it and then we'd have two 😄

I just merged #17  😁  So some of the files need to be changed.

I'll check that out tomorrow 🙌

I just merged #17  😁  So some of the files need to be changed.

I'll check that out tomorrow 🙌

One more thing. I would categorize the new component inside hero instead of features.

You think so? I was imaging it being used as a feature, below the fold. I'd redesign it if it's being used as a hero. Actually, I can make a hero version of it and then we'd have two 😄

Sounds good to me! Than we have 2! 😂

One more thing. I would categorize the new component inside hero instead of features.

You think so? I was imaging it being used as a feature, below the fold. I'd redesign it if it's being used as a hero. Actually, I can make a hero version of it and then we'd have two 😄

Sounds good to me! Than we have 2! 😂

@hauptrolle check out my latest changes now. I've moved the Jest config into its own file, I guess it's more predictable that way. Also I left the new component in the Features category, but I'll create a new version of it more suitable for Hero placement.

@hauptrolle check out my latest changes now. I've moved the Jest config into its own file, I guess it's more predictable that way. Also I left the new component in the Features category, but I'll create a new version of it more suitable for Hero placement.


Set up package, including development and CI envs

Todo:

[x] create python package, e.g., py-mmd-tools

[x] create folder for scripts

[ ] CI with unit and coverage testing with github actions (as in https://github.com/metno/mmd)

~- [ ] vagrant vm with a docker container for development (as in https://github.com/metno/S-ENDA-csw-catalog-service)~
Please setup a separate branch for this to allow easy review.

I don't think it is necessary to do the last point above - that is handled through the vm and containers in https://github.com/metno/S-ENDA-csw-catalog-service.


[Admin] Publish

Docs Build status updates of commit a0471dd:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/outlook/get-set-or-add-recipients.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


feat: support dashboard systemd service unit

ping @nic-chen

@bzp2010  need test cases for start and stop by systemctl

@bzp2010 need test cases for start and stop by systemctl

Hi, @nic-chen.
I've read the code. The current test environment is based on docker, but it's not easy to use systemd in the container. At the same time, I haven't seen the relevant test code of APISIX. Are there any cases for reference?

@bzp2010

I've read the code. The current test environment is based on docker, but it's not easy to use systemd in the container.
could we replace this line to systemctl start apisix-dashboard?

At the same time, I haven't seen the relevant test code of APISIX. Are there any cases for reference?

APISIX is very different from the dashboard. Even without systemd, APISIX can be started or stopped under any path, but dashboard has path dependency.

@nic-chen

could we replace this line to systemctl start apisix-dashboard?

We're afraid we can't do that, systemd may not be available in Docker containers, or there may be high requirements for the environment. I will think of some other ways.

Hi, @nic-chen. I have added tests for systemd that use this approach. I used the systemd mode of the RedHat Podman container program and started a CentOS7 container in which to run the tests. PTAL, thanks.

ping @imjoey @gxthrj APISIX Dashboard version 2.10 release depends on this PR build RPM package, please help to review it, thanks.


ARROW-3772: [C++][Parquet] Write Parquet dictionary indices directly to DictionaryBuilder rather than routing through dense form

I sort of ran into a hill of fire ants with this. There is too
much to do in a single patch so I'm going to list out some of the
things here and the follow up items that will have to be dealt
with expediently in follow up patches:

Adds APIs to DictionaryBuilder to be able to insert dictionary memo values
(InsertMemoValues) and indices (AppendIndices as int64_t*) separately
Adds GetBatchSpaced to RleDecoder
When setting "read_dictionary" for an Arrow column, now
dictionary indices are appended directly to DictionaryBuilder
rather than being fully decoded to dense, then rehashed. So
this will both save memory and improve performance by skipping
hashing
Dictionary fallback is no problem now because subsequent non-encoded pages
will be appended to the existing dictionary
Each time a new dictionary page is encountered, the DictionaryBuilder is
"flushed" since the order of the dictionary is changed. Note that this is
only possible now due to ARROW-3144
Now that each row group can yield a different dictionary, they can possibly
have different dictionary index types. This is a bug. Rather than explode the
size of this patch I opened ARROW-6042 to add an exclusively int32-index
dictionary builder so we can fix this as follow up
The handling of dictionaries in parquet/arrow/reader.cc is a mess -- the
structure of the column readers with respect to nested data is very messy,
and as a result it's not possible to do direct dictionary decoding inside a
nested subfield. We will have to fix this in the course of refactoring for
improved nested data support

There is much follow up work to do here, so I will get busy with with the other things while this is being reviewed.

cc @hatemhelal @xhochy

I haven't run benchmarks yet, will post before/after numbers for a representative data set (with a lot of dictionary compression) when I can

Gave this a rough review and it looks good to me.

This should be pretty close... I'm going to merge this once I get the build passing so I am not stacking patches

Travis CI build: https://travis-ci.org/wesm/arrow/builds/564234236


Adds nth-prime generator and exercise

Hi, this PR is to add a new exercise for nth-prime, here is a link to the problem-specifications
I'm still learning Crystal, so feel free to point out anything that needs to be change or improved.
Thanks!

@mhelmetag this should be all set now, thanks!

Config with config.json has been fixed.

@amscotti , a bit of a pain but since the readme has been updated could you regen the readme? Should be doable using https://github.com/exercism/configlet#generate.


Global setting of workflowEnvironmentScript hampers multi-analysis project XMLs

Users have a single project XML for multiple plugins and workflows but there is only a single workflowEnvironmenScript[_$toolName] variable. Allow setting workflow-specific scripts in global namespace.
E.g.
[$workflowName_]EnviromentScript[_$toolName]
Questions:

How to deal with workflow names containing upper-case letters and the tool name conversion mechanism?

No new workflows will be implemented (or their implementation be supported by us). Therefore, this bug seems irrelevant.


Move CCard tests to CreditCardTransactionUTest

Move CCard tests to CreditCardTransactionUTest and remove accountHolder constructor.

Coverage decreased (-6.8%) to 93.237% when pulling 49557164b887f6b1640b935f764d82d125e5c6aa on Trimnosh:90-paypal into 94ebb95af5025ad1d5bf94a2e1e3abe33e0170a5 on wirecard:90-paypal.

Coverage remained the same at 100.0% when pulling 54169dd1ed80b5499875878b91cc76d8544ebe13 on Trimnosh:90-paypal into 94ebb95af5025ad1d5bf94a2e1e3abe33e0170a5 on wirecard:90-paypal.


[BrokenLinksH2]

Docs Build status updates of commit 9a13dd5:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-edge/devtools-guide-chromium/sources/index.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


UI improvement: on item form: cancel and delete buttons may overlap

Describe the bug
Cf title
To Reproduce
Steps to reproduce the behavior:

As usual user, go to this item form
Scroll down to the bottom of the page
See error

Expected behavior
There should padding at the bottom of the page to give room to fixed buttons "Save" and "Cancel changes"
Screenshots

The delete buttons should now have been moved to the left.


Sudo Tasks Hang on Asking for Password

I have the following capistrano 3 task:
desc 'Add root scheduled tasks'
task :root_schedules do
  on roles(:all) do
    within release_path do
      execute :sudo, :bundle, 'exec whenever -w config/root_schedule.rb -u root'
    end
  end
end

I need this task to run with sudo privileges because I need the scheduled tasks to run with higher privileges. These are backend scheduled server tasks. Problem is that everytime I run this command I get following:
DEBUG [46d3800c] 	[sudo] password for [user]

After I type my password and hit enter, it never completes anything. No response at all. Any answers out there?
And before anyone asks, yes pty is set to true like:
set :pty, true

Closing because I’m not sure this is an issue, if you are convinced that this is really a bug, please feel free to re-open the issue and add more information (your versions (Ruby, Cap, etc), your Capfile, your logs, and relevant sections out of your Gemfile)
Otherwise support is done via the mailing list (https://groups.google.com/forum/#!forum/capistrano) or at StackOverflow (http://stackoverflow.com/questions/tagged/capistrano) with questions tagged capistrano.

This fixed the problem (which is an issue) for me: https://github.com/kentaroi/sshkit-sudo

Thanks for the input, I'm going to check it out.

OK - great, thanks. I'm not sure if this helps, but here is my setup:

Ruby 2.0.0-p598
capistrano (3.4.0)
capistrano-bundler (1.1.4)
capistrano-rails (1.1.2)
sshkit (1.7.1)
net-scp (1.2.1)
net-ssh (2.9.2)

Server is a new Ubuntu Trusty (14.04) LTS box

They do not "hang" they are waiting for input which you cannot provide since this is a non-interactive session. http://capistranorb.com/documentation/advanced-features/ptys/

OK, I'm confused here. My understanding from that article you linked to, (which I had read before), was by setting :pty to true, this should make the session 'interactive', and allow me to provide the input. This was the OPs understanding too:

And before anyone asks, yes pty is set to true like:
set :pty, true

Is this your understanding? Or would you still expect this not to work even if after calling set :pty, true?
To be clear, this doesn't work. The password I type is echoed on screen, but it doesn't get passed to the server, and the execution doesn't continue.
The gem I linked to fixes this issue and allows the password to be captured, and execution continues as expected.
Others with this issue:

http://stackoverflow.com/questions/19948809/capistrano-3-sudo-task
http://stackoverflow.com/questions/28598799/capistrano-3-sudo-password-hangs
http://stackoverflow.com/questions/23781619/sudo-command-for-restart-in-rails-4-capistrano

@zquintana Hello,
I am also facing the same issue ,
DEBUG [46d3800c]    [sudo] password for [user]
Have you find the solution for this? I have tried https://github.com/kentaroi/sshkit-sudo but no use

This issue is closed, if you read the history you will see why. sudo is badly behaved and is prompting for a password when Capistrano does not advertise the system facility to answer it. You might read https://github.com/capistrano/sshkit#interactive-commands


Open in current folder

Could you add a setting to open terminal in the folder of the current file

Sorry, didn't see that there already is one.


Functionality question

New to Meteor here. When I place "var excel = new Excel('xlsx'); " into a excel.js file in either a client or server folder, when I run the code, I get:
Uncaught TypeError: undefined is not a function
So where should I be putting that file for it to work?

You should use new Excel(..) only on the server since that it exists only there. Have you added the meteor excel package with meteor add netanelgilad:excel? if you did, then maybe you can share your code, and i'll see where the problem is.

That was added as the first step. I have since placed the excel.js file into the server folder. To test the functionality, once a file has been uploaded, I have an Info button that should console log out the contents of cell A1 and pop up an alert that states the file name and size. But alas, I get the following:
Uncaught ReferenceError: excel is not defined
Here is my repo: https://github.com/jsonify/meteor-upload

I could not find exactly the part in your package where you are using the excel object, but any way, in your excel.js file you are doing var excel = new Excel(...) and that means that the excel variable will not be exposed to any other file. Try doing excel = new Excel(...).

My apologies for not giving a better description as to where I have my code. Here is how I'm using it:
/client/templates/home.js
...

Template.uploadedInfo.events({
  'click .deleteUpload':function() {
    if (confirm('Are you sure you want to delete ' + this.name)) {
      Meteor.call('deleteFile', this._id);
    }
  },
  'click .getInfo': function () {
    var workbook = excel.readFile( this.url + this.path);
    var yourSheetsName = workbook.SheetNames;
    console.log("Get Some Cell from it: " + workbook.Sheets[yourSheetsName[0]]['A1'].v );
    alert('File: '+ this.name + " is " + (this.size)/1000000 + 'MB and is located: ' + this.url+this.path);
  }
})

I have also removed the var from the declaration, and still no luck.

OK I got it now.
You are trying to use the excel object in the client when the excel,js file is in the server, and objects declared on server files are not defined for files on the client.
But before you tried to put the excel.js file in the client. That didn't work because the Excel object (notice the Uppercase E) is only available on the server.
So what you need to do is handle your excel files only on the server side and expose that using a Meteor.Method so the client can call it.
Hope that helps...

So, you're saying I should have the .xlsx files be stored in the /server rather than the /client and that will give me access to it via a Meteor.Method from the client? I think that makes sense.

Well, after some changes I think I'm getting closer, but still not there. Probably due to my lack of knowing what I'm doing completely. Now the Info button calls the correct Method, but it says the file doesn't exist:
Exception while invoking method 'getFileInfo' Error: ENOENT, no such file or directory '/server/uploads/test-schedule.xlsx'
Is it that I'm just not calling it correctly?

Hey @jsonify,
you should put your files in the /private folder and then used the assets api. Have a look here: http://docs.meteor.com/#/full/assets


[auto-merge] branch-22.06 to branch-22.08 [skip ci] [bot]

auto-merge triggered by github actions on branch-22.06 to create a PR keeping branch-22.08 up-to-date. If this PR is unable to be merged due to conflicts, it will remain open until manually fix.

FAILURE - Unable to auto-merge. Manual operation is required.
{'message': 'Pull Request is not mergeable', 'documentation_url': 'https://docs.github.com/rest/reference/pulls#merge-a-pull-request'}

Please use the following steps to fix the merge conflicts manually:
# Assume upstream is NVIDIA/spark-rapids remote
git fetch upstream branch-22.06 branch-22.08
git checkout -b fix-auto-merge-conflict-5709 upstream/branch-22.08
git merge upstream/branch-22.06
# Fix any merge conflicts caused by this merge
git commit -am "Merge branch-22.06 into branch-22.08"
git push <personal fork> fix-auto-merge-conflict-5709
# Open a PR targets NVIDIA/spark-rapids branch-22.08

IMPORTANT: Before merging this PR, be sure to change the merging strategy to Create a merge commit (repo admin only).
Once this PR is merged, the auto-merge PR should automatically be closed since it contains the same commit hashes

https://github.com/NVIDIA/spark-rapids/pull/5710


Rotate Thumps up effect

Describe the project you want to add with tech stack

This project contains a button which can be used in some websites.Upon hovering it changes the thumps up color.Can you assign this task to me?
Expected behavior

Screenshots (optional)

Additional context (optional )

@MohitGupta121 ,
@TusharKesarwani Can you assign this task to me?

@MohitGupta121 ,@TusharKesarwani Can you Please assign this task to me?As Gssoc contribution period is going to end..this issues can level me up ..Please assign this issue to me...Please.


Cache SSE permissions are missing

Since the change to using the module managed KMS key for cache bucket SSE, the runner doesn't have the required permissions to create/read the cache.
Solution could be to add another policy document to the -docker-machine-cache policy, something like:
data "aws_iam_policy_document" "runner_kms" {
  statement {
    actions = [
      "kms:Decrypt",
      "kms:GenerateDataKey"
    ]

    resources = [
      data.aws_kms_key.runner_kms.arn
    ]
  }
}

I remember that I deployed the module into my accunt to make sure that the new infrastructure is working.
May be I have a "*" permission somewherevin my roles. Have to check that.

Checked the variable descriptions. I think the caller has to make sure that the key is accessible.
We have a similar variable in the root module to encrypt the Cloudwatch logs kms_key_id. And the description says: Ensure proper access.
So I propose to amend the variable description in the cache module and close the issue.
@jonmcewen @npalm What do you think?


Strumline Stuff

What is your question?
Just looking for a way to make either the opponents/players/both strumline(s) invisible?

Opponent:
noteTweenAlpha('0', 0, 0, duration, 'linear');
noteTweenAlpha('1', 1, 0, duration, 'linear');
noteTweenAlpha('2', 2, 0, duration, 'linear');
noteTweenAlpha('3', 3, 0, duration, 'linear');

Player:
noteTweenAlpha('4', 4, 0, duration, 'linear');
noteTweenAlpha('5', 5, 0, duration, 'linear');
noteTweenAlpha('6', 6, 0, duration, 'linear');
noteTweenAlpha('7', 7, 0, duration, 'linear');

Combine them for both

i tried that but it doesn't seem to work
here's the code i'm using
**

function onStepHit()
if curStep >= 0 and curStep <= 120 then
noteTweenAlpha('0', 0, 0, duration, 'linear');
noteTweenAlpha('1', 1, 0, duration, 'linear');
noteTweenAlpha('2', 2, 0, duration, 'linear');
noteTweenAlpha('3', 3, 0, duration, 'linear');
noteTweenAlpha('4', 4, 0, duration, 'linear');
noteTweenAlpha('5', 5, 0, duration, 'linear');
noteTweenAlpha('6', 6, 0, duration, 'linear');
noteTweenAlpha('7', 7, 0, duration, 'linear');
end
end

**

replace 'duration' with a number, it's measured in seconds

oh ok

how would i make it visible again then?

and btw, it's still not working

function onStepHit()
if curStep >= 0 and curStep <= 120 then
noteTweenAlpha('0', 0, 0, 0, 'linear');
noteTweenAlpha('1', 1, 0, 0, 'linear');
noteTweenAlpha('2', 2, 0, 0, 'linear');
noteTweenAlpha('3', 3, 0, 0, 'linear');
noteTweenAlpha('4', 4, 0, 0, 'linear');
noteTweenAlpha('5', 5, 0, 0, 'linear');
noteTweenAlpha('6', 6, 0, 0, 'linear');
noteTweenAlpha('7', 7, 0, 0, 'linear');
end
end

noteTweenAlpha('0', 0, 0, 0, 'linear'); noteTweenAlpha('1', 1, 0, 0, 'linear'); noteTweenAlpha('2', 2, 0, 0, 'linear'); noteTweenAlpha('3', 3, 0, 0, 'linear'); noteTweenAlpha('4', 4, 0, 0, 'linear'); noteTweenAlpha('5', 5, 0, 0, 'linear'); noteTweenAlpha('6', 6, 0, 0, 'linear'); noteTweenAlpha('7', 7, 0, 0, 'linear');
to
noteTweenAlpha('noteAlpha1', 0, 1, 0.1, 'linear');
noteTweenAlpha('noteAlpha2', 1, 1, 0.1, 'linear');
noteTweenAlpha('noteAlpha3', 2, 1, 0.1, 'linear');
noteTweenAlpha('noteAlpha4', 3, 1, 0.1, 'linear');
noteTweenAlpha('noteAlpha5', 4, 1, 0.1, 'linear');
noteTweenAlpha('noteAlpha6', 5, 1, 0.1, 'linear');
noteTweenAlpha('noteAlpha7', 6, 1, 0.1, 'linear');
noteTweenAlpha('noteAlpha8', 7, 1, 0.1, 'linear');

it still doesn't wanna work and besides i wanna make the notes appear and dissapear instantly

may be remove ; , if i doesn't  work then idk

it still doesn't wanna work and besides i wanna make the notes appear and dissapear instantly

The duration needs to be 0.001 for that to work, I don't know why it has to be that specific

ok, it worked thanks


[tool_crash] ArgumentError: Invalid argument(s): Cannot find executable for /Users/rishuroy/Developer/flutter/bin/cache/artifacts/engine/android-arm64-release/darwin-x64/gen_snapshot.

Command
flutter --quiet assemble --depfile /Users/rishuroy/Documents/LAB/note_keeper/build/app/intermediates/flutter/release/flutter_build.d --output /Users/rishuroy/Documents/LAB/note_keeper/build/app/intermediates/flutter/release -dTargetFile=lib/main.dart -dTargetPlatform=android -dBuildMode=release -dTrackWidgetCreation=true -dTreeShakeIcons=true android_aot_bundle_release_android-arm android_aot_bundle_release_android-arm64 android_aot_bundle_release_android-x64

Steps to Reproduce

...
...
...

Logs
ArgumentError: Invalid argument(s): Cannot find executable for /Users/rishuroy/Developer/flutter/bin/cache/artifacts/engine/android-arm64-release/darwin-x64/gen_snapshot.
#0      _getExecutable (package:process/src/interface/local_process_manager.dart:127:5)
#1      LocalProcessManager.start (package:process/src/interface/local_process_manager.dart:43:30)
#2      _DefaultProcessUtils.start (package:flutter_tools/src/base/process.dart:466:28)
#3      _DefaultProcessUtils.stream (package:flutter_tools/src/base/process.dart:484:35)
#4      GenSnapshot.run (package:flutter_tools/src/base/build.dart:74:26)
#5      AOTSnapshotter.build (package:flutter_tools/src/base/build.dart:198:56)
#6      AndroidAot.build (package:flutter_tools/src/build_system/targets/android.dart:235:52)
#7      _BuildInstance._invokeInternal (package:flutter_tools/src/build_system/build_system.dart:795:27)
<asynchronous suspension>
#8      _BuildInstance.invokeTarget.<anonymous closure> (package:flutter_tools/src/build_system/build_system.dart:738:35)
#9      new Future.sync (dart:async/future.dart:223:31)
#10     AsyncMemoizer.runOnce (package:async/src/async_memoizer.dart:43:45)
#11     _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:738:21)
<asynchronous suspension>
<asynchronous suspension>
#12     MappedListIterable.elementAt (dart:_internal/iterable.dart:417:31)
#13     ListIterator.moveNext (dart:_internal/iterable.dart:343:26)
#14     Future.wait (dart:async/future.dart:402:26)
#15     _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:733:45)
#16     FlutterBuildSystem.build (package:flutter_tools/src/build_system/build_system.dart:560:36)
#17     AssembleCommand.runCommand (package:flutter_tools/src/commands/assemble.dart:221:58)
#18     FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:860:18)
#19     _rootRunUnary (dart:async/zone.dart:1198:47)
#20     _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#21     _FutureListener.handleValue (dart:async/future_impl.dart:143:18)

[✓] Flutter (Channel stable, 1.20.1, on Mac OS X 10.15.6 19G73, locale en-IN)
    • Flutter version 1.20.1 at /Users/rishuroy/Developer/flutter
    • Framework revision 2ae34518b8 (5 days ago), 2020-08-05 19:53:19 -0700
    • Engine revision c8e3b94853
    • Dart version 2.9.0

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    • Android SDK at /Users/rishuroy/Library/Android/sdk
    • Platform android-30, build-tools 30.0.1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.6, Build version 11E708
    • CocoaPods version 1.9.3

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 48.0.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.47.3)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.13.2

[!] Connected device
    ! No devices available

! Doctor found issues in 1 category.

Flutter Application Metadata
Type: app
Version: 1.0.0+1
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: stable
Creation framework version: 2ae34518b87dd891355ed6c6ea8cb68c4d52bb9d
Plugins
path_provider-1.6.11
path_provider_linux-0.0.1+2
path_provider_macos-0.0.4+3
sqflite-1.3.1

Hi @imrishuroy,
Can you try this solution and see if it works for you ?
Thanks.

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.


Add tutorial for StaticTransformer

one example given on slack would be recoding: x -> replace(uppercase(x), " "=>"")

I guess you mean adding docs for subtyping Static (which supersedes this StaticTransformer).
There is some documentation, buried under "Composing Models" section of manual (search for Averager but agree this is not the obvious place to find it. Perhaps under "Simple User Defined Models" with links from "Adding Models for General Use", and the existing entry.

Basically written, no?
https://github.com/alan-turing-institute/MLJ.jl/issues/307#issuecomment-594897959
Maybe change the function used example to simplify /  improve readability?
Maybe drop use of DataFrames to make more generic?

cc @vollmersj

There is now an entry in the user manual that also could be used.
https://alan-turing-institute.github.io/MLJ.jl/dev/transformers/#Static-transformers-1

On reconsideration, we should just use a standard pipeline, and not a learning network as these are more advanced.


Clickable account icons

On the "Accounts" page, it looks like we can no longer click the user icon to visit an account's twitter/facebook page. I think that Fil had asked you to make the text no longer look like a hyperlink when we added the "Unfollow" button but I would still like to be able to click the icon to visit. So we would be able to visit both ways, via the unfollow button but also the icon. Can you please add that functionality back in when you get a chance?
Thanks!

Sorry for my misunderstanding in there. I corrected it!

Looks great. thank you!


Run pre-commit hooks before prompting for commit message

Currently I'll go to commit, enter my message, then unexpectedly fail to actually save the commit if there's an error code returned by the pre-commit hook.
Committing from the command line doesn't have this problem since it runs the pre-commit hooks prior to opening the default text editor.

This would relate to #409 as if we asked git first we'd hit the error first.

Any pointers on how to create a PR for this? We've recently decided to use git lint as a pre commit hook, but that currently means I can't use SublimeGit for committing, as I'll lose my message when the hook fails... 😐


Create libpostal.php

stub for php-postal https://github.com/openvenues/php-postal
Please let me know if I need to change anything...

Thank you for contribution! libpostal is not a standard extension and not PECL extension, it would be better to create a separate plugin with these stubs. Here is an example: https://github.com/artspb/phpstorm-library-plugin


issue/317-add-web-ui-section-to-config-file-iso5

Description

Move ui related options from inmanta-core to inmanta-ui
Log a deprecation warning when the web-console or the dashboard sections are used

part of #317
Self Check:
Strike through any lines that are not applicable (~~line~~) then check the box

[x] Attached issue to pull request
[x] Changelog entry
[ ] Type annotations are present
[ ] Code is clear and sufficiently documented
[ ] No (preventable) type errors (check using make mypy or make mypy-diff)
[ ] Sufficient test cases (reproduces the bug/tests the requested feature)
[ ] Correct, in line with design
[ ] End user documentation is included or an issue is created for end-user documentation (add ref to issue here: )

Reviewer Checklist:

[ ] Sufficient test cases (reproduces the bug/tests the requested feature)
[ ] Code is clear and sufficiently documented
[ ] Correct, in line with design

Processing this pull request


Package request: TriliumNext-server and TriliumNext-desktop

TriliumNext Notes is an open-source, cross-platform hierarchical note taking application with focus on building large personal knowledge bases.
Metadata

source URL: https://github.com/TriliumNext/Notes
license: AGPL-3,0
platforms: linux, windows, mac

TriliumNext is the successor of Trilium which is in maintenance mode now (https://github.com/zadam/trilium/issues/4620). I've already posted a request to update for the original Trilium package (https://github.com/NixOS/nixpkgs/issues/339039) but it's seems to be a possible solution not to silently update the package to a fork but providing a separate package for TriliumNext.
The fork seems to be in active and well maintained. I already use TriliumNext on my arch-based client and would like to migrate my nix-based server instance to TriliumNext.

Any updates on this? i think a user called @eliandoran was going to upload the package. I can take care of it if necessary tho.

Any updates on this? i think a user called @eliandoran was going to upload the package. I can take care of it if necessary tho.

@fabian-mv , I've made the package available: https://github.com/NixOS/nixpkgs/pull/348144

Is there any update on that? TriliumNext sync became incompatible to trilium a some days ago, so it got more important now.

sadly this wont be coming out in 24.11, since branch out was 4 days ago. this is very bad, as trilium next is now more important as sync became incompatible.
this means that trilium next won't be in nixpkgs until mid-2025 (since releases are very 6months). pretty sad if you ask me
@eliandoran i can help if you need


fix ui

https://github.com/buildsafedev/bsf/issues/14

This is for selecting the development and update via enter and not space right ?

its for selecting updates based on (enter) not the dev envirounment as user can selct multiple dev env (so space neede for selecting both)


Attempt to improve visual test stability

On GitHub Actions the tests do not always pass. I've noticed sometimes for some test it finds 2 pixel differences, and sometimes 17 pixel differences with the same source PDFs.
I've tried increasing the resolution, and increasing the tolerance but to no avail. Perhaps other libraries might give a better result?

I think it actually turned out to be slight differences in the actual font perhaps? The tests failed on my local machine now as well.


How to reproduce

I reproduce the DialoFlow base in DailyDialog，
the evaluation results are:
NIST: [2.9148, 3.3919, 3.5077, 3.5375]
BLEU: [0.4535, 0.2323, 0.1367, 0.086]
METEOR: 0.1479778034868275
Entropy: [6.250107671407306, 8.663223223839859, 9.603956363262926, 9.959120587252972]
Distinct: [0.08599954617653732, 0.32188216456202917]
avg_len: 9.154005934718102
The results are lower than the results shown in paper.
Can you show the detail of fine-tune in DailyDialog？
My setting is:
Training:
Batch_size 16 (4 GPU , per_gpu_batch_size=4)
gradient_accumulation_steps 1
epoch 50
The best Validation loss is 7.5168, at epoch 34.
generate:
The Config parameters is default，and I set the beam_size=5.
And I did not use the Apex.

My setting is
Training:
Batch size 64. You can use gradient_accumulation.
epoch 50
You can select the checkpoint with the best response generation loss.
In the paper, we select the model with about 2.30 validation loss.
And you can check the format of your prediction and the reference.
If you have any problems, please feel free to ask.

Thanks.
I train the DialogFlow base again, with the batch size = 64, epoch = 50.
And select the checkpoint with the best response generation loss = 2.29, obtained in the epoch 50.
I also use the Apex.
The results are:
NIST-2:    3.2396
NIST-4:    3.3602
BLEU-2:    0.2197
BLEU-4:    0.0743
METEOR:    0.13976661322123995
Entropy-4:    9.867206665075539
Dist-1:    0.07665375927718619
Dist-2:    0.29163649529326574
avg_len:    9.195845697329377
The results are also lower than the results shown in paper.
I construct the test file from the multirefeval-master.   EOS some what ?  EOS some what ? EOS weed ! you know ? pot , ganja , mary jane some chronic !  EOS some what ? EOS weed ! you know ? pot , ganja , mary jane some chronic ! EOS oh , umm , no thanks .  EOS some what ? EOS weed ! you know ? pot , ganja , mary jane some chronic ! EOS oh , umm , no thanks . EOS i also have blow if you prefer to do a few lines . EOS no , i am ok , really .
hey man , you wanna buy some weed ? EOS some what ? EOS weed ! you know ? pot , ganja , mary jane some chronic ! EOS oh , umm , no thanks . EOS i also have blow if you prefer to do a few lines . EOS no , i am ok , really .  EOS some what ? EOS weed ! you know ? pot , ganja , mary jane some chronic ! EOS oh , umm , no thanks . EOS i also have blow if you prefer to do a few lines . EOS no , i am ok , really .  EOS do you really have all of these drugs ? where do you get them from ?
hey man , you wanna buy some weed ? EOS some what ? EOS weed ! you know ? pot , ganja , mary jane some chronic ! EOS oh , umm , no thanks . EOS i also have blow if you prefer to do a few lines . EOS no , i am ok , really .  EOS do you really have all of these drugs ? where do you get them from ?  EOS some what ? EOS weed ! you know ? pot , ganja , mary jane some chronic ! EOS oh , umm , no thanks . EOS i also have blow if you prefer to do a few lines . EOS no , i am ok , really .  EOS do you really have all of these drugs ? where do you get them from ? EOS i got my connections ! just tell me what you want and i ' ll even give you one ounce for free .  EOS some what ? EOS weed ! you know ? pot , ganja , mary jane some chronic ! EOS oh , umm , no thanks . EOS i also have blow if you prefer to do a few lines . EOS no , i am ok , really .  EOS do you really have all of these drugs ? where do you get them from ? EOS i got my connections ! just tell me what you want and i ' ll even give you one ounce for free . EOS sounds good ! let ' s see , i want . EOS yeah ?
the taxi drivers are on strike again .
the taxi drivers are on strike again . EOS what for ?
the taxi drivers are on strike again . EOS what for ? EOS they want the government to reduce the price of the gasoline .
The predicitons from the DialoFlow generate.py are:
sure, what do you want to buy? I'm not sure yet.
you know, I've never smoked before, but I've been thinking about it.
that sounds like a good idea. What do you think of it?
what do you want to get? I can give you some.
how much do you want me to pay for it?
how much do you want to spend? I can give you a discount.
that sounds like fun. What do you want to get?
well, i got them from a friend of mine.
really? that's great! i'll take it!
do you want to try some of my new stuff?
how much do you want to get for a gram?
are you kidding? The taxi drivers are working overtime.
the government is trying to clamp down on the competition.
that's stupid. They should do something about it.
And I also write the references from multirefeval-master to five files.
Could you find some errors?

What about the reference file? You can see that there is a space before the punctuation in the reference but there is no space in your prediction file.

Thanks.
I set the clean_up_tokenization_spaces=False in GPT2Tokenizer.decoder and predict again.
The predicitons are:
sure , what do you want to buy ? I'm not sure yet .
you know , I've never smoked before , but I've been thinking about it .
that sounds like a good idea . What do you think of it ?
what do you want to get ?  I can give you a discount .
that sounds like fun . What do you want to get ?
well , i got them from a friend of mine .
really ? that ' s great ! i ' ll take it !
do you want to try some of my new stuff ?
how much do you want to get for a gram ?
are you kidding ?  They should do something about it .
Then the results also has the space in my prediction file. but I found some abbreviations also has not space, such as "I'm", "I've" in line1 and line2. But in line "really ? that ' s great ! i ' ll take it !", the "that ' s" and "i ' ll" are splited as 3 words.
Could you tell me how you generate, or how to add the space.
I run the generate.py for generation, and transformers=3.0.2
The evaluation results are:
NIST-2:    3.1878
NIST-4:    3.304
BLEU-2:    0.2164
BLEU-4:    0.0721
METEOR:    0.14717688674636875
Entropy-4:    9.872796155919488
Dist-1:    0.037200750563552334
Dist-2:    0.1993201866046486
avg_len:    11.781454005934718
The references in ref_0.txt are:
some what ?
weed ! you know ? pot , ganja , mary jane some chronic !
oh , umm , no thanks .
i also have blow if you prefer to do a few lines .
no , i am ok , really .
come on man ! i even got dope and acid ! try some !
do you really have all of these drugs ? where do you get them from ?
i got my connections ! just tell me what you want and i 'll even give you one ounce for free .
sounds good ! let 's see , i want .
yeah ?
i want you to put your hands behind your head ! you are under arrest !
what for ?
they want the government to reduce the price of the gasoline .
it is really a hot potato .

You can use nltk.word_tokenize() to tokenize the sentence and then concatenate the tokens.

What is your evaluation scripts?

Thanks.
I will try the nltk tokenizer.
My evaluation scripts almost are same as the dstc eval in DialoGPT.
Copyright (c) Microsoft Corporation.
Licensed under the MIT license.
import re
from collections import defaultdict
import argparse
from pathlib import Path
import os, time, subprocess, io, sys, re, argparse
import numpy as np
py_version = sys.version.split('.')[0]
if py_version == '2':
open = io.open
else:
unicode = str
def makedirs(fld):
if not os.path.exists(fld):
os.makedirs(fld)
cur_dir = str(Path(file).parent)
def str2bool(s):
# to avoid issue like this: https://stackoverflow.com/questions/15008758/parsing-boolean-values-with-argparse
if s.lower() in ['t','true','1','y']:
return True
elif s.lower() in ['f','false','0','n']:
return False
else:
raise ValueError
def calc_nist_bleu(path_refs, path_hyp, fld_out='temp', n_lines=None):
# call mteval-v14c.pl
# ftp://jaguar.ncsl.nist.gov/mt/resources/mteval-v14c.pl
# you may need to cpan install XML:Twig Sort:Naturally String:Util
makedirs(fld_out)

if n_lines is None:
    n_lines = len(open(path_refs[0], encoding='utf-8').readlines())
# import pdb; pdb.set_trace()
_write_xml([''], fld_out + '/src.xml', 'src', n_lines=n_lines)
_write_xml([path_hyp], fld_out + '/hyp.xml', 'hyp')#, n_lines=n_lines)
_write_xml(path_refs, fld_out + '/ref.xml', 'ref')#, n_lines=n_lines)

time.sleep(1)
cmd = [
    'perl',f'{cur_dir}/3rdparty/mteval-v14c-20190801/mteval-v14c.pl',
    '-s', '%s/src.xml'%fld_out,
    '-t', '%s/hyp.xml'%fld_out,
    '-r', '%s/ref.xml'%fld_out,
    ]
process = subprocess.Popen(cmd, stdout=subprocess.PIPE)
# import pdb; pdb.set_trace()
output, error = process.communicate()

lines = output.decode().split('\n')

try:
    nist = lines[-6].strip('\r').split()[1:5]
    bleu = lines[-4].strip('\r').split()[1:5]
    return [float(x) for x in nist], [float(x) for x in bleu]

except Exception:
    print('mteval-v14c.pl returns unexpected message')
    print('cmd = '+str(cmd))
    print(output.decode())
    print(error.decode())
    return [-1]*4, [-1]*4

def calc_cum_bleu(path_refs, path_hyp):
# call multi-bleu.pl
# https://github.com/moses-smt/mosesdecoder/blob/master/scripts/generic/multi-bleu.perl
# the 4-gram cum BLEU returned by this one should be very close to calc_nist_bleu
# however multi-bleu.pl doesn't return cum BLEU of lower rank, so in nlp_metrics we preferr calc_nist_bleu
# NOTE: this func doesn't support n_lines argument and output is not parsed yet
process = subprocess.Popen(
        ['perl', f'{cur_dir}/multi-bleu.perl'] + path_refs,
        stdout=subprocess.PIPE,
        stdin=subprocess.PIPE
        )
with open(path_hyp, encoding='utf-8') as f:
    lines = f.readlines()
for line in lines:
    process.stdin.write(line.encode())
output, error = process.communicate()
return output.decode()

def calc_meteor(path_refs, path_hyp, fld_out='temp', n_lines=None, pretokenized=True):
# Call METEOR code.
# http://www.cs.cmu.edu/~alavie/METEOR/index.html
makedirs(fld_out)
path_merged_refs = fld_out + '/refs_merged.txt'
_write_merged_refs(path_refs, path_merged_refs)
cmd = [
        'java', '-Xmx1g',    # heapsize of 1G to avoid OutOfMemoryError
        '-jar', f'{cur_dir}/3rdparty/meteor-1.5/meteor-1.5.jar',
        path_hyp, path_merged_refs,
        '-r', '%i'%len(path_refs),     # refCount
        '-l', 'en', '-norm'     # also supports language: cz de es fr ar
        ]
# print(cmd)
process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
output, error = process.communicate()
for line in output.decode().split('\n'):
    if "Final score:" in line:
        return float(line.split()[-1])

print('meteor-1.5.jar returns unexpected message')
print("cmd = " + " ".join(cmd))
print(output.decode())
print(error.decode())
return -1

def calc_entropy(path_hyp, n_lines=None):
# based on Yizhe Zhang's code
etp_score = [0.0,0.0,0.0,0.0]
counter = [defaultdict(int),defaultdict(int),defaultdict(int),defaultdict(int)]
i = 0
for line in open(path_hyp, encoding='utf-8'):
i += 1
words = line.strip('\n').split()
for n in range(4):
for idx in range(len(words)-n):
ngram = ' '.join(words[idx:idx+n+1])
counter[n][ngram] += 1
if i == n_lines:
break
for n in range(4):
    total = sum(counter[n].values())
    for v in counter[n].values():
        etp_score[n] += - v /total * (np.log(v) - np.log(total))

return etp_score

def calc_len(path, n_lines):
l = []
for line in open(path, encoding='utf8'):
l.append(len(line.strip('\n').split()))
if len(l) == n_lines:
break
return np.mean(l)
def calc_diversity(path_hyp):
tokens = [0.0,0.0]
types = [defaultdict(int),defaultdict(int)]
for line in open(path_hyp, encoding='utf-8'):
words = line.strip('\n').split()
for n in range(2):
for idx in range(len(words)-n):
ngram = ' '.join(words[idx:idx+n+1])
types[n][ngram] = 1
tokens[n] += 1
div1 = len(types[0].keys())/tokens[0]
div2 = len(types[1].keys())/tokens[1]
return [div1, div2]
def nlp_metrics(path_refs, path_hyp, fld_out='temp',  n_lines=None):
nist, bleu = calc_nist_bleu(path_refs, path_hyp, fld_out, n_lines)
meteor = calc_meteor(path_refs, path_hyp, fld_out, n_lines)
entropy = calc_entropy(path_hyp, n_lines)
div = calc_diversity(path_hyp)
avg_len = calc_len(path_hyp, n_lines)
return nist, bleu, meteor, entropy, div, avg_len
def _write_merged_refs(paths_in, path_out, n_lines=None):
# prepare merged ref file for meteor-1.5.jar (calc_meteor)
# lines[i][j] is the ref from i-th ref set for the j-th query
lines = []
for path_in in paths_in:
    lines.append([line.strip('\n') for line in open(path_in, encoding='utf-8')])

with open(path_out, 'w', encoding='utf-8') as f:
    for j in range(len(lines[0])):
        for i in range(len(paths_in)):
            f.write(unicode(lines[i][j]) + "\n")

def _write_xml(paths_in, path_out, role, n_lines=None):
# prepare .xml files for mteval-v14c.pl (calc_nist_bleu)
# role = 'src', 'hyp' or 'ref'
lines = [
    '<?xml version="1.0" encoding="UTF-8"?>',
    '<!DOCTYPE mteval SYSTEM "">',
    '',
    ''%paths_in,
    '',
    '<mteval>',
    ]

for i_in, path_in in enumerate(paths_in):

    # header ----

    if role == 'src':
        lines.append('<srcset setid="unnamed" srclang="src">')
        set_ending = '</srcset>'
    elif role == 'hyp':
        lines.append('<tstset setid="unnamed" srclang="src" trglang="tgt" sysid="unnamed">')
        set_ending = '</tstset>'
    elif role == 'ref':
        lines.append('<refset setid="unnamed" srclang="src" trglang="tgt" refid="ref%i">'%i_in)
        set_ending = '</refset>'

    lines.append('<doc docid="unnamed" genre="unnamed">')

    # body -----

    if role == 'src':
        body = ['__src__'] * n_lines
    else:
        with open(path_in, 'r', encoding='utf-8') as f:
            body = f.readlines()
        if n_lines is not None:
            body = body[:n_lines]
    #for i in range(len(body)):
    i = 0
    for b in body:
        line = b.strip('\n')
        line = line.replace('&',' ').replace('<',' ')        # remove illegal xml char
        # if len(line) > 0:
        lines.append('
<seg id="%i"> %s </seg>
'%(i + 1, line))
        i += 1

    # ending -----

    lines.append('</doc>')
    if role == 'src':
        lines.append('</srcset>')
    elif role == 'hyp':
        lines.append('</tstset>')
    elif role == 'ref':
        lines.append('</refset>')

lines.append('</mteval>')
with open(path_out, 'w', encoding='utf-8') as f:
    f.write(unicode('\n'.join(lines)))

def dialogue_evaluation(hyp_file, ref_file, fld_out):
nist, bleu, meteor, entropy, div, avg_len = nlp_metrics(ref_file, hyp_file, fld_out)
results = {
'NIST-2': nist[1],
'NIST-4': nist[3],
'BLEU-2': bleu[1],
'BLEU-4': bleu[3],
'METEOR': meteor,
'Entropy-4': entropy[3],
'Dist-1': div[0],
'Dist-2': div[1],
'avg_len': avg_len
}
return results
def write_metrics(metric_results, output_path):
with open(output_path, 'w') as output:
output.write('filename ')
output.write(output_path + '\n')
    for metric_name, metric in metric_results.items():
        # Write the metric to file.
        m = metric_name + ':    ' + str(metric)
        output.write(m + '\n')
    output.write('\n')

def main():
parser = argparse.ArgumentParser()
parser.add_argument('--refs_dir', default='multirefs')
parser.add_argument('--ref_file', default=None)
parser.add_argument('--hyp_file', default='DialoFlow_DialyDialog_generated.txt', required=False)
parser.add_argument('--fld_out',default='temp_DialoFlow', required=False)
args = parser.parse_args()
if args.ref_file is not None:
    refs_files = [args.ref_file]
else:
    refs_files = list(map(str, Path(args.refs_dir).glob('ref_*.txt')))
print("references: ", refs_files)

metric_results = dialogue_evaluation(args.hyp_file, refs_files, args.fld_out)
write_metrics(metric_results=metric_results, output_path=os.path.join(args.fld_out, 'metric_results_v3.txt'))

if name == "main":
main()

Thanks a lot.
I solve the problem by the nltk tokenizer.


Feature Request: Can you add google to it

Can you add google to it.. Please ?

I'm building Safari at the moment, so yeah, it will be there :)

I'm building Safari at the moment, so yeah, it will be there :)

NIce but when will it come ??

No guarantees on that. Quite busy here.
You can add that yourself if you want with a PR though

No guarantees on that. Quite busy here.
You can add that yourself if you want with a PR though

Yes please tell me
like how can i add more apps in this ??

Question- How will you manage the CORS policies? That seems to be the biggest issue with having a "browser in a browser"

CORS can sort of be managed with https://github.com/niutech/x-frame-bypass. I've tested it and youtube loads fine but from a different country. This may be a solution


feat(cli): add more convenient SocketAddr argument parsing

Solves: https://github.com/paradigmxyz/reth/issues/730
This PR adds custom parsing for the metrics CLI option. This enables domain name resolving, with a default of "localhost" in case of specifying only the port (both :8080 and 8080 are translated to localhost:8080).

I used a function for the parsing, although i'm not sure if using TypedValueParser has any advantages. @mattsse What do you think?
Also, should we add some default port? For example, in case of something like this:
$ reth node --metrics localhost:

Codecov Report

Merging #757 (a3c60d2) into main (1d2e052) will decrease coverage by 0.10%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #757      +/-   ##
==========================================
- Coverage   73.06%   72.96%   -0.11%
==========================================
  Files         268      268
  Lines       27737    27747      +10
==========================================
- Hits        20267    20246      -21
- Misses       7470     7501      +31

Flag
Coverage Δ

unit-tests
72.96% <0.00%> (-0.11%)
:arrow_down:

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

Impacted Files
Coverage Δ

bin/reth/src/node/mod.rs
0.00% <ø> (ø)

bin/reth/src/util/mod.rs
0.00% <0.00%> (ø)

crates/transaction-pool/src/test_utils/mock.rs
53.11% <0.00%> (-6.60%)
:arrow_down:

crates/transaction-pool/src/pool/txpool.rs
58.52% <0.00%> (-0.52%)
:arrow_down:

crates/net/eth-wire/src/ethstream.rs
84.66% <0.00%> (+0.31%)
:arrow_up:

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

Also, should we add some default port?

great idea, but I'm not sure what the default port should be @onbjerg ?

Tests added! Also implemented the default port with a value of 9000 (the default for the prometheus endpoint) for now.


Update opentelemetry-sdk-testing to 1.16.0

Updates io.opentelemetry:opentelemetry-sdk-testing from 1.11.0 to 1.16.0.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "io.opentelemetry", artifactId = "opentelemetry-sdk-testing" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "@monthly" },
  dependency = { groupId = "io.opentelemetry", artifactId = "opentelemetry-sdk-testing" }
}]

labels: test-library-update, early-semver-minor, semver-spec-minor, commit-count:1

Superseded by #529.


[UI] [LB] On a LB, if I click 'Edit' nothing happens.

Version: Build from master (4/7/15)
Steps to Reproduce:

Create a LB.
Click on the dropdown in the upper right corner.
Click on 'Edit'

Result: Nothing happens.
Expected Result: Taken to the Edit page for the LB.

Edit screen added (for name & description, the rest is on other screens)

v0.16.0
Verified Fixed


Jadx generated invalid statement

Hi,
Open com.paypal.android.p2pmobile.navigation.engine.NavigationManager, method parseHttpsDeepLink and you will notice code
            if (!android.text.TextUtils.isEmpty(path)) {
                ? r7v4; // <<
                com.paypal.android.p2pmobile.navigation.graph.BaseVertex baseVertex = null;
                if (map != null) {
                    for (? r3v2 : map.keySet()) { // <<

APK: https://drive.google.com/file/d/1JcFelgZosEpQc6F3oJFsQF-AxIJNh4r4/view?usp=sharing

@sergey-wowwow type inference failed here, thanks for the report!

@skylot
Please also check
com.paypal.android.p2pmobile.wallet.banksandcards.fragments.EnterCardFragment
    private boolean<EMAIL_ADDRESS>com.paypal.android.foundation.wallet.model.MutableCredebitCard mutableCredebitCard) {
        //...
        ? dateStringParser = new com.paypal.android.p2pmobile.common.utils.DateStringParser( // ......

APK: https://drive.google.com/open?id=1pdmRyrp6rDEoYsTJn5RLhv39xXRq5Ksh

@sergey-wowwow last case also fixed in latest type-inference-wip branch.
Short description of changes made in latest commits:

Additional type inference algorithm which will start only if the first one is failed. It can be time consuming for big methods but must solve most cases. If that algorithm is executed to method will be added comment with result and time:
JADX DEBUG: Multi-variable type inference result: success, time: 23 ms
Fully redone variable declaration visitor. Known issue: some variables declared at method start instead near variable use.
Finally extraction also redone: more safe now, don't break CFG. Known issue: sometimes leave some parts of complex expression like empty if or loops


webpack omits rmwc css in production mode due to "sideEffects: false"

What RMWC Version are you using [major.minor.patch]: 5.7.2

Name your build system [Webpack, Rollup...]: Webpack

Describe the bug with as much detail as possible:

For the life of me I couldn't figure out why my rmwc css was working in dev but not getting bundled via webpack in production.
Finally learned that it was being tree shaken out because webpack thought it wasn't actually needed!!
Googling this is clearly an area for improvement in webpack however they say by putting (as rmwc does):
  "sideEffects": false,

in the package.json files webpack interprets a css import e.g.
import<EMAIL_ADDRESS>
as having no side effects and therefore the entire contents of tooltip.css is tree shaken away!!!
atm I've worked around the issue by doing this:
import tooltipCss from<EMAIL_ADDRESS>// eslint-disable-next-line no-unused-vars
const seeAsUsed = tooltipCss

however there are various suggestions that this is what the package.json(s) really should have:
  "sideEffects": [ "*.css" ],

What happened:  rmwc components broken in production cause of missing css!

And what was supposed to happen: rmwc widgets looking nice with css found in the bundle!! :)

References:
The current issue with "sideEffects: false" pops up in various repos (though it's webpack's fault :):
https://github.com/facebook/create-react-app/issues/5140#issuecomment-425268743
https://github.com/webpack-contrib/mini-css-extract-plugin/issues/118#issuecomment-399738756

Note the warning they've added at the bottom here:
https://vue-loader.vuejs.org/guide/#manual-setup
Open issue asking to make webpack smarter about this:
https://github.com/webpack/webpack/issues/6571

This isn’t a bug, maybe just a lack of documentation. RMWC itself doesn’t include or specify how you should include the CSS. In your own package.json you are correct to put *.css in side effects If you are including the CSS with webpack imports.

Hi James thanks for your comments so fwiw I just tried what you said I added the:
  "sideEffects": [ "*.css" ],

In my package.json but that made no difference webpack still didn't bundle the rmwc css files.
My understanding (and I'm not pretending to be an expert but fwiw) was that in putting "sideEffects": false in your (e.g.) tooltip/package.json you are asserting that none of the files (whether javascript or css) within that tooltip package cause side effects.
At least this is what I read how webpack has chosen to interpret that and their explanation for why they consider it fair for their tree shaking to omit that css from the final bundle.
Let me google again and see if there's something (maybe something I can add in my webpack.config.js?) to override your setting without the rmwc side changing.  I thought there wasn't but let me look again and confirm.

You very well may be right on this one. I'll get a patch out that adds *.css into the RMWC sideffects package.json

so I found where I am able to do this in my webpack.config.js to override your sideEffects: false setting:
  module: {
    rules: [
      {
        test: /.jsx?$/,
        exclude: /node_modules/,
        use: 'babel-loader',
      },
      {
        test: /.css$/,
        sideEffects: true,
        use: [
          MiniCssExtractPlugin.loader,
          'css-loader',
        ],
      },
    ],
  },

I guess my thoughts are still (unless there's a downside I'm not aware of) that it does seem nicer for your rmwc users that use webpack if you changed your package.json files to include it

Fixed in 6.0.0


Fix issue with links to already translated documents

Closes #23997
Update the following documents contain the document links which are already translated into Korean:

[x] content/ko/docs/concepts/services-networking/dual-stack.md
[x] content/ko/docs/contribute/participate/roles-and-responsibilities.md
[x] content/ko/docs/reference/_index.md
[x] content/ko/docs/reference/command-line-tools-reference/feature-gates.md
[x] content/ko/docs/setup/production-environment/windows/user-guide-windows-containers.md
[x] content/ko/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade.md
[x] content/ko/docs/tutorials/stateful-application/mysql-wordpress-persistent-volume.md

/assign @jmyung

@pjhwa It seems @jmyung is working on other contributions ! :)
Let me handle this PR.
By the way,
/lgtm
;)

감사합니다! ^^
/approve


ETA for BMS

Hey was just wondering if there is a ETA on https://cloud.ibm.com/apidocs/vpc?code=python#list-bare-metal-server-profiles. I don't seem to see it in ibm-vpc=0.9.0.
Keep up the good work!

Thanks for opening the issue. Bare metal support was available in v0.10.0


Does this dataset contain rgb images?

I know it contains infrared images, does this dataset contain RGB images? I want to study fusion

Sorry, it does not contain RGB images because infrared images output directly by the camera.


Down-level logging in the WasiPreview1 module

https://github.com/dylibso/chicory/blob/b69237737c6f05f74d4c3fafbb1e32a350953e9a/wasi/src/main/java/com/dylibso/chicory/wasi/WasiPreview1.java#L161
I think it would be appropriate to set the log level on all of these to trace or at most debug. It can be quite noisy for the average user.

I agree, trace sounds appropriate to me.


chore: fix base gas limit test

Motivation

base raised the gas limit, using >= as it will subsequently change in next weeks

Solution

fixing clippy


Add an environment variable that enables assertions in release builds

SwiftSyntax’s assertions catch a lot of internal inconsistencies but are disabled in Release builds. Add the SWIFT_SYNTAX_FORCE_ENABLE_ASSERTIONS environment variable which dynamically enables these checks in Release builds to verify that no SwiftSyntax invariants are violated.
I couldn’t detect a performance difference between the old assert and the new swiftSyntaxAssert in release builds without the SWIFT_SYNTAX_FORCE_ENABLE_ASSERTIONS environment variable set.
rdar://81469278

For performance checking did you try both creating and walking a large tree?

I checked all performance tests we have in the repo and none of them changed. Also I wouldn’t have expected that a simple new if statement would have made a significant performance impact.

ParsingPerformanceTests.testParsingPerformance
VisitorPerformanceTests.testEmptyVisitorPerformance
VisitorPerformanceTests.testEmptyRewriterPerformance
VisitorPerformanceTests.testEmptyAnyVistorPerformance

@swift-ci Please test

Is this swift?
sorry i dont yet

@swift-ci Please test

Hmm. Looking at the numbers again, it looks like SyntaxClassifierPerformanceTests.swift regresses by 50% (from 0.020s to 0.030s) due to this change. No idea why I missed it when looking at the numbers last time.


Saleor Pop Up Newsletter / Sign Up

What I'm trying to achieve
Popup a message to visitor to join our newsletter, add discount in it too...
Describe a proposed solution
Can be Implement through saleor extention?

Check out mailchimp - they have ready to use snippets for popups.


react 16 Deprecated React.PropTypes

"react": "^16.2.0",
"react-native": "^0.51.0",

Have you installed using npm command?
I had the same problem because it isn't the last version instead use the last github repository version that resolve the proptypes deprecation.

yes, i installed using npm command

I'm getting this error (when using Player component)

Cannot read property 'string' of undefined

this is from
Player.propTypes = {
    url: React.PropTypes.string.isRequired
};

download prop-types package from node package manager and then import PropTypes from 'prop-types' and change React.PropTypes.string.isRequired to PropTypes.string.isRequired


create the db specified by DB_NAME if it does not exist

sending POSTGRES_DB to postgres only creates a db with that name if no other databases exist. this would allow shynet to run on databases that are running with other apps already.

Hmm, I'm not sure I understand. In general, creating a database isn't something we want to do; you should probably do that yourself to make sure everything is setup the way you want. I run my Shynet instance on a Postgres database that also houses other apps and it works well.
I'm going to close this for now, but feel free to follow up if I'm misunderstanding.


Create profile for docker-compose

It is creating some .save files after building.

Please submit all templates to: https://github.com/dvcs/gitignore


vxlan: add SerializeTo method

signed

Travis seems to think the code needs to be formatted... could you run 'go fmt'?
https://travis-ci.org/google/gopacket/builds/214010279


Humidity value should be divided by 100

Hello
Thank you first of all for this plugin, really useful! :)
I noticed that humidity is sent to signalk as for example value = 46.254 and unit = ratio
I think that's wrong because the true value is actually 46.254 percent
To be in unit "ratio", the value should be 0.46254
The problem becomes apparent on the KIP instrument panel, showing values with unit "ratio" always as percentage, multiplying it by 100. For me it shows right now 4625%, which is 100 times what it should be.

I modified it on my branch and pulled a request.

Fixed by romton843. Thanks


Prisma 2 Admin - Schema design using GUI/Prisma.schema

The prisma admin UI could also be used to create schema by either designing it via GUI (and it can create the tables and other resources and also generate the *.prisma file).
And it should also be able to take the *.prisma file if supplied and run the relevant queries against the DB to create the schema like what happens when you use lift via CLI
This will make the admin UI not just a tool to query the already created schema but also create new ones if needed.
You can also take inspiration from websites like https://graphqleditor.com/ if you want, where they provide options to do this for designing GraphQL Schema.
@schickling @pantharshit00 @madebysid @timsuchanek

This is definitely something we're thinking about and have created a few mockups. It's a non-trivial topic since layouting a graph properly is a very challenging topic.
Here are a few of our internal mockups:

The biggest problem is how to visually layout the graph properly for big schemas. (GraphQL Voyager faces some of the same challenges.) It's clear we'll need to come up with some kind of tradeoffs (e.g. not showing the entire graph at once and let the user expand parts step by step).
We'll need to experiment a lot with different concepts/prototypes in order to find the right set of tradeoffs. Let's use this thread to brainstorm together! Ideas welcome!  💡

@schickling WOW! That's an awesome looking UI - Happy to know that your team had indeed thought about it. Completely agree with you. Its indeed a huge way ahead. Maybe, to start off (initial iteration) we can avoid the GUI and just provide users an option to provide a prisma schema file (or provide an editor like what you have done for GraphQL query) which gets run in the DB to generate the relevant schema.
As you had rightly said, considering the scale at which people operate databases in production, it may not be feasible to show the entire graph at once. We need to provide an option to load one type at a time.
We can also see if we can export migrations by doing an introspection directly from the Prisma 2 Admin UI (it can interact with Lift behind the scenes).

Have you guys dug into Airtable's UI/UX? They obviously don't let you surface a view of the entire schema like you've shown here—but what they have done is create a schema modeler that just about anyone can get up and running with in very little time with very little skill. Might be worth doing a remix of?


Using "harmony-reflect" aka Proxy() in main.js?  *How to enable --harmony_proxies flag?

I've tried the following:
var v8 = require('v8')
v8.setFlagsFromString('--harmony_proxies');

app.commandLine.appendSwitch('js-flags', '--harmony_proxies');

app.on('ready', function() {
	app.commandLine.appendSwitch('js-flags', '--harmony_proxies');
}

and starting electron with:
electron . --js-flags="--harmony_proxies"
electron . --harmony_proxies
None of these seem to work and it's failing inside require('harmony-reflect') when checking for Proxy.
How can I enable ES6 Proxies?
Using:
Node.js v4.1.1
Electron 0.34.1.

More version info:
ares: "1.10.1-DEV"
atom-shell: "0.34.1"
chrome: "45.0.2454.85"
electron: "0.34.1"
http_parser: "2.5.0"
modules: "46"
node: "4.1.1"
openssl: "1.0.2d"
uv: "1.7.4"
v8: "<IP_ADDRESS>"
zlib: "1.2.8"

Not sure if it makes a difference but try --harmony-proxies instead?

@OlsonDev No difference, I'm able to get it working in the render view with the previous mention, but not in the main thread.

This flag has to be setup before the JavaScript context is created, so v8.setFlagsFromString won't work. We should probably add support for --js-flags command line switch.

That would be ideal, in the meantime I have tried changing the default flags for v8 in flag-definitions.h with no success (clean, compile, run) and proxies still aren't enabled.  Any suggestions?
Could my existing electron install be interfering?
I'm compiling another build w/ more harmony flags enabled to see if this makes a difference.

I've made numerous changes and build attempts to both files for Atom, Node, and V8.  None of my changes have successfully enabled proxies.  I've also found the vendor source for Node is not the same as the actual source for Node v4.1.1, what is the reason for this?  Due to this inconsistency I'm unable to build the same sources for Node nor am I able to replace the vendor Node with the official Node sources.

I can force enable harmony proxies in the official Node v4.1.1 and it works.
The Electron vendor of Node is different that the official Node v4.1.1 and does not compile standalone.
I have made changes to Electron, Node, and V8 - none of which seem to work for enabling harmony proxies.

That said, are Harmony features broken in Electron's version of Node?

Closed with #3412.


v2 release

Includes the permission default options - not in a rush to see this role out as can just user 1.25.3 till it is out so if you see anything there is no rush to get it fixed. vnumber is already bumped to 2 in this pr.
The logo and the docs theme as also been updated

ok i'm happy with this from my perspective - to check on a project by npm install from github, post install cd to the folder, npm i, npm run build and for me i had to change the cli file to include from require('../build/src/cli.js') to require('../build/cli.js')

bug found with the permission config

bug above fixed

2.0.0-rc1.0 released to npm

Looks fine from an overview - later today I'll pull it down and run some tests and whatnot.
Still have not looked at the new docs but ill take a look then, and I would love to see travis passing for 2.0 so I'll take a whack at it

Tests still pass so that's great -
What about ripping off the bandaid for 2.0 and adding a format step - "format": "prettier --write '**/*.(ts|json)'"?
I have a local config, and I think your editor has one as well, so it might be cool to have this automated.
{
  "bracketSpacing": true,
  "endOfLine": "auto",
  "semi": true,
  "printWidth": 120,
  "singleQuote": true,
  "quoteProps": "consistent"
}

why not.. i think you might know that setup better than me though if you fancy putting it together?
been running this v2 release all day and so far no issues.. but yea if we could get travis sorted that would be nice. If any of the new github features include a test runner ci tool that could be better..

Ah true - if I strike out with travis I'll take a look at actions and toss in a prettier.


Add WordPress Sustainability Handbook

Insert URLs to the project here: https://github.com/WordPress/sustainability

[x] The projects is active, documented, open source licensed, shows usage from external parties and is directly targeting environmental sustainability. Find more details in the Contribution Guide.

All issues labeled as Good First Issue of the project listed on OpenSustain.tech will be visible on ClimateTriage.com. This is a great way to welcome new community members to your project.
All projects listed will be posted on our Mastodon channel

@CeliGaroe @LittleBigThing @YellowlimeNL


Rack name aliases

Would it be possible to allow rack name aliases?
We often refer to racks internally by their purpose (hosting, VPS, cloud, backup, demarc, etc) or by the colo customers name/company who is occupying the rack.

You could also base the primary key and slug on netbox assigned IDs.  That way naming can overlap if needed.  It allows flexibility.  I'm not a huge fan, but it's an option.

Would be nice, I have multiple colo customers with multiple racks

Would this be addressed by a combination of #132 (tagging) and #16 (multitenancy)?

Potentially universal search would - not sure on multi-tenancy
Would depend on implementation I suppose

After some discussion, we'd like to implement roles for racks, similar to the roles we have for prefixes and VLANs. These will be user-defineable and optional.
Roles could be combined with multitenancy to cover the customer/colocation aspect.


Lazy load sidebar header

Lazy loads the sidebar header because discord started to lazy load their settings layers including the components for it.
Closes #1529

Does this work equivalent to the original? If so why not just use custom component all the time?

Does this work equivalent to the original? If so why not just use custom component all the time?

It does, I just want to maintain the original component to maintain the class names etc for themes compatibility. If you want me to class names instead, let me know.

How do I install this? I am confused on how to use this code to fix my problem. I would appreciate it a lot if someone was to help me. Thanks!

How do I install this? I am confused on how to use this code to fix my problem. I would appreciate it a lot if someone was to help me. Thanks!

Same! I have no idea where those codes go or how to access that location. Any help will be appreciated.

How do I install this? I am confused on how to use this code to fix my problem. I would appreciate it a lot if someone was to help me. Thanks!

Same! I have no idea where those codes go or how to access that location. Any help will be appreciated.

The fixes .exe is not released yet, be patient.


Hotspot Name
faithful-mauve-goat
Hotspot b58 Address
11rS7ixqgCC5gtCf5KRafiDozJDNUaKem1EwBxz5Fzs7LF1UVcn
Discord Handle
panmeng2021#6258
Hotspot Manufacturer
PantherX
Removal Reason
Some-one just banned my wallet without any proof, we are telecom provider
Modifications
No
Extra forwarders
No
Extra antennas
Yes
Additional Information
External 1.2dbi omni, 0m
Great site, but all telecom towers with good earning did end up the denylist.
So i have todo this 50+ times ?
More info via discord.
Regards
A 20 telecom tower owner.

We have taken into account this removal request in the next iteration of the denylist. It may take some time before it's processed. This is an automated comment due to the volume of addition and removal requests. A future tool is in the works to provide more insight into the analysis approach made by the Helium team and community members that maintain this list.


backend-app-api: move over logger and config implementations from backend-common

Hey, I just made a Pull Request!
Work towards #13083. This moves over everything needed for the config and logging services. I moved both of these at once since they're very intertwined.
Most of the logging service implementation is wrapped up in the WinstonLogger class, which implements the RootLoggerService, and has static methods for creation and various winston log formats.
For config the loadBackendConfig method has been moved over with the same options, but it now returns an object with a config property, as that was a pain point of the old implementation. The secret extraction needed for the log redactions has been wrapped up in a createConfigSecretEnumerator helper that loads the config schema and can then be used to scan config instances for secrets.
In order to implement redactions I added a new addRedactions method to the RootLoggerService interface, since there would otherwise be a circular dependency. This does mean we won't be able to configure the logging through config without additional mutating methods or the like, but perhaps that's alright. Flipping it around would also be quite awkward, since the config loading wants to log events related to remote configuration loading, although it might be worth considering? I'll probably give it a shot before we merge this to see what it feels like.
:heavy_check_mark: Checklist

[x] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[x] All your commits have a Signed-off-by line in the message. (more info)

Tried flipping around the config/logger dependency in https://github.com/backstage/backstage/pull/15688/commits/a419d2d9b991afee92a68c7d721578719ede772d, gotta say it seems a lot nicer to be able to configure logging through config, and not add the extra method to the root logger service interface. Had to resort to some console to make it work, but I think that's alright.

One note - doesn't backend-test-utils need a changeset also?

@benjdlambert skipped it to piggyback on the existing one


ADD: Add Lin's atmospheric science python course

Add Johnny Lin's resource to the gallery
Closes #305

Are there any concerns with this being a paid resource?

There is a free version listed here
https://www.johnny-lin.com/pyintro/ed01/free_pdfs/front.pdf

Summarizing a few discussion points about this from today's EWG meeting:

This is a historically important book for our field; many of us learned from it. However the material is very clearly out of date (e.g. predates Python 3 and key parts of the Pangeo-data stack, such as netcdf4 and xarray libraries)
We might need to develop a policy regarding listing paid resources on our gallery, since there are vast numbers of paid data science learning resources out there.


Add from() method to HashSet

This commit adds a from() constructor to HashSet. It takes an array
of values as an argument, and adds the values to the
HashSet. Duplicate values in the array are ignored, which is
consistent with calling set() with a duplicate value.

Looks good to me, but I'll leave some time before merging in case anyone else wants to comment.

Can you explain why you want a constructor instead of using union?
let set = Set[String].union(["hi", "there", "Andy"].values())

Is "ignorance and stupidity" an good explanation? :)
I think union is sufficient for accomplishing what I want. I'll pay more attention to the exiting API in the future.


Improve CSS

Improve overall look of the website, you can remove picocss link from index.html if you want.

can you please assign this to me

Sure!

@gaurav-iitb hey, it's been 2 weeks, are you working on it or should i assing someone else?

Hey,
Please assign this issue to me.


Add Automated Greeting Workflow

I propose to create a Github workflow named "Greetings". This workflow will automatically greet users who create new issues or pull requests in this repository. The Greetings will look like "Hi there! Thanks for opening this issue. We appreciate your contribution to this open - source project. We aim to respond or assign your issue as soon as possible.
Hey @maniyaom I can work on this.

@harish08102004 any update?

Will close it today.

for Issue use this message:
Thank you for raising this issue!
We appreciate your contribution to this project and will review the details shortly. We will get back to you soon.
Thank you for your patience!
for PR use this message:
Thank you for your Pull Request!
We appreciate your contribution. We will review the changes and provide feedback or merge the PR soon. Please stay tuned for updates.
Thank you for your efforts in improving the project!


Twig extension loading configuration

Bundle provides (undocumented) twig extension. Loading it slow downs TwigService initialization in container (as it initialize heavy guzzle client). We should have option to decide if it should be loaded in application (if we want to use it).
Proposed solution:

add option to enable it in configuration (default enable for keeping BC).
load it only when config is set to true.

Tell me what do You think about this.

Pull request is here: https://github.com/willdurand/BazingaHateoasBundle/pull/75 (it fails in travis on SF 4.0 without my changes).


Starting the runtime from a Jupyter Notebook broken in v0.1.12

I'm using the following code to start a runtime from a Jupyter Notebook:
from sglang import function, gen, set_default_backend, Runtime, RuntimeEndpoint

model_name = "TheBloke/deepseek-coder-6.7B-instruct-AWQ"

runtime = Runtime(model_path=model_name, mem_fraction_static=0.8)
set_default_backend(runtime)

This used to work in v0.1.11 and previous versions. Since upgrading to v0.1.12 I get this error:

RuntimeError: There is no current event loop in thread 'Thread-4 (_launch_server)'.
/miniconda3/envs/sglang/lib/python3.10/threading.py:1011: RuntimeWarning: coroutine 'Server.serve' was never awaited

Starting the runtime with python -m sglang.launch_server --model-path meta-llama/Llama-2-7b-chat-hf --port 30000 works as usual.

Fixed by #186


How to support persistent nav?

Is it possible with this lib to have a persistent bottom-bar, or side menu, that does not animate when the route changes?
In other words, a non-fullscreen route change?
Currently I can only get behavior like this, where the animation always fades over top of my "persistent" menu. What I want is just the content area to animate:

GlobalKey<VRouterState> navKey = GlobalKey();
void main() {
  timeDilation = 5;
  runApp(MaterialApp(
    home: Column(
      children: [
        Expanded(
          child: VRouter(
            key: navKey,
            initialUrl: HomePage.path,
            routes: [
              VWidget(path: HomePage.path, widget: HomePage()),
              VWidget(path: SettingsPage.path, widget: SettingsPage()),
            ],
          ),
        ),
        _BottomMenu(),
      ],
    ),
  ));
}

class _BottomMenu extends StatelessWidget {
  const _BottomMenu({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return SizedBox(
      height: 100,
      child: Row(
        children: [
          Expanded(
            child: TextButton(
              child: Text("Home"),
              onPressed: () => navKey.currentState!.push(HomePage.path),
            ),
          ),
          Expanded(
            child: TextButton(
              child: Text("Settings"),
              onPressed: () => navKey.currentState!.push(SettingsPage.path),
            ),
          ),
          Expanded(
            child: TextButton(child: Text("<< Back"), onPressed: () => navKey.currentState!.pop()),
          ),
        ],
      ),
    );
  }
}

class HomePage extends StatelessWidget {
  static const path = "/home";
  @override
  Widget build(BuildContext context) {
    return Container(
      color: Colors.yellow.shade100,
      child: Text("HOME"),
    );
  }
}

class SettingsPage extends StatelessWidget {
  static const path = "/settings";
  @override
  Widget build(BuildContext context) {
    return Container(
      color: Colors.blue.shade100,
      child: Text("SETTINGS"),
    );
  }
}

Please check https://vrouter.dev/guide/Examples/Nesting

Btw do not use MaterialApp with VRouter, use VMaterialAppinstead of you have to. But generally since VRouter act as MaterialApp you can pass it directly the properties you want if any.

Did you find what you were looking for? If so please coïncider closing this issue! 😊

Yep! I was confused because I could see the page animated on top of my menu, but that's just because of the order of rendering in the Column, and the Transform.translate that the MaterialPageRoute is going. If I wrap my content area in a ClipRect, it actuals exactly as I'd expect.


fix bug (#2910)

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.fcbai seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Support embedding scripts into terms (!)

Lean has a cool feature where not only can you embed terms into scripts in the usual way (analogous to our exact tactic), but you can also start scripting in the middle of a term.
For a long time, I thought that this wouldn't be possible, but now I see a way to do it. It may be a little tricky to get it just right with respect to binding, though.
Another thing I have been considering that may make it easier to do what I am describing is to get rid of the distinction between hypotheses qua names and hypotheses qua variables. I originally thought that this was crucial, but now I think that there may be a way to use only variables here without it getting too bad.

I am envisioning a mode-of-use where you can write scripts like this:
   `(lam [x] ,{let <a,b> = x. `(pair b a)})

In the above example, the backtick means "switch to term mode", and the comma means "switch to tactic/refinement mode". These can be interleaved as much as you want.
The idea is that when proving a well-formedness judgment M in A, if M is an "antiquoted" tactic expression, then we will have a rule that switches to proving A true using that tactic. The behavior of the backtick would remain the same as it is now.
This way we can get the best of both worlds between refinement and explicit term writing. And this will also allow us to put holes in terms!
(This is predicated on #301)

Actually, this might not work as-designed. The issue is that we don't want these scripts to be in the realizers that are extracted. So, somehow we would have to have the membership judgments spit out extracts too, which represent the 'elaborated'/extracted form of their inputs. This is related to #208.


Use internalization key instead of hardcode

This patch originally came from @Valeran86 to HiromuHota/pentaho-kettle as HiromuHota/pentaho-kettle#121 but I think it should be merged to the upstream.

Hello, This is an automated comment from our build system. Since this pull request originated from a user  not in the Pentaho organization, we will not proceed  with automatic validation of the pull request.  However, rest assured that it will be reviewed manually as soon  as we get the chance. Thanks for your contribution!

@HiromuHota - thank-you so much for the contribution. Please file a defect at https://jira.pentaho.com and update the PR description to include the fixed JIRA case. That way we can process the PR. Thanks!!

I filed a defect at the JIRA, then updated the PR description and the commit message.
Please let me know if there are any other things that need editing.


Update bower dependencies and test with PS 7

Updates bower dependencies, removes unnecessary imports, and verifies tests pass with purescript <IP_ADDRESS>.

Sorry, I wasn't watching this repo and didn't realise PRs were outstanding.
I think these changes have been incorporated now?


Update to the latest version of cld2 sources

Tests are passing when running rake spec locally.

cc @aledalgrande @ alessandrobanjo

@907th sorry, I don't have access to the repo any more!


Added my C++ implementation of the Barnsley Fern

Using C++ and GLUT libraries. Compilation/execution instructions are in the README of the linked repository.

Nice work ❤


Index didn't generate for files in nested directories

I noticed that the tutorials in nested directories (like Tutorials/Topics/Understanding-ROS2-Topics) didn't have the auto-generated index on the left side of the page and also didn't have the title of the tutorial in the tab (it just said "ROS 2 Overview"). So taking them out of their nested dirs should fix that.
Signed-off-by: maryaB-osr<EMAIL_ADDRESS>

Hmm, that's a bug there.

Hmm, that's a bug there.

I'm ok with just moving things around for now, seems to work fine.
I can open an issue on /rosindex to keep track.

bug in question addressed here


System crashes while running on AWS UBUNTU host

Issue Type: Bug
Extension Name: typescript-language-features
Extension Version: 1.0.0
OS Version: Windows_NT x64 10.0.19044
VS Code version: 1.66.2

when i click on a .js file the code intelligence starts automatically and then the system gets no response from the remote connection. the remote connection doesn't react like it's in an infinite loop and I have to kill the intance in aws.
I wish I could get a picture of it but when the website crashes I'm scared and immediately disable the "vscode.typescript-language-features" plugin. :( please have a clue of deleting this.

Can you share a project that causes this issue?
Also does it happen if you open the same project locally?

I use the vscode remote connection tool to integrate the strapi project into the server.
and the connection is successful. all features are working.
but
if i enter a .js .ts .vue or .d.ts file the javascript/typescript code intelligence works. (I think it recognizes the codes and tries to fix it)
When this happens, the instance freezes if I don't close vscode right away.
I enter aws and wait for 10 minutes with the force close option. (processes do not stop inside)
Worst case scenario, I need to terminate instance. which makes me lose 10 hours in 1 day.
and now i have only one solution room is to disable all plugins and vscode features and make remote connection.

Did you get a change to test locally too? AlsocCan you try sharing a project that causes this issue?

when i run locally the aws instance works fine. whenever i make a remote connection with vscode there is no problem at first but when i open a remote file with vscode the aws instance crashes (freezes).
If I can learn to debug vscode maybe I can find a solution to this problem myself. But then this came to my mind:
if I run 'npm install' on an aws instance that I'm connected to via vscode, the aws instance starts downloading the packages.
1 - ram may be full before download is complete
2 - vscode remote connection plugin may have entered an infinite loop
3 - the aws instance may have run out of cpu limit.
4 - typescript and javascript intelligence might be killing ssh (no idea how)
I can't share a project sample because it's covered by a commercial confidentiality agreement.
Thanks for your interest, I will try deploy with docker instead of remote connection. We can close these issues.

Ok, closing based on this feedback
If you are still running into issues, please try putting together a minimal project that demonstrates that issue so we can investigate this


Test capy function

We may need this to test contracts that operate on capys

Hey @asonnino, the latest suifrens (capy + bullshark) is actually open sourced on this repo:
https://github.com/MystenLabs/apps/tree/main/suifrens
The code here is pretty outdated!

oh I see, why do we keep this code?