How can I implement Rasa NLU new update related to project structure

rasa NLU version (e.g. 0.7.3): 0.10.0a4
Used backend / pipeline (mitie, spacy_sklearn, ...):["nlp_spacy", "tokenizer_spacy", "intent_featurizer_spacy",
"ner_crf", "ner_synonyms", "intent_classifier_sklearn"]
Operating system (windows, osx, ...): windows
Issue: I found recently Rasa introduced new update of project structure.
I am trying to implement the same in my current version of Rasa.
I have changed my model folder structure as Rasa mentioned in website related to project structure.
But I am not able to understand how the config_spacy.json file format.
Please let me know how can I implement this new update of Rasa.
Content of configuration file (if used & relevant):
{

"name": "People",
"pipeline" : ["nlp_spacy", "tokenizer_spacy", "intent_featurizer_spacy",
              "ner_crf", "ner_synonyms", "intent_classifier_sklearn"],

"path" : "./models",

"data" : "./data/examples/rasa/demo-rasa.json"

}

The only difference is that there is no more server_model_dirs parameter in the configuration file. You should change the value of your path parameter from ./models to ./projects to avoid confusion. If you want to reuse already trained models you may have, just create a project folder under your path like my_project and move all the models you want to use under this folder. Rename the models folders to something like model_YYYYMMDD-HHMMSS if it is not already the case.

@RachaRatan let us know if that didn't answer your questions.


Migration to PHPUnit 9 compliance

This is based on the excellent PR by @petemcfarlane to bring track to conform with the expectations of PHPUnit 9.
Several things done here:

exercise file renamed to pascal-case
exercise test file renamed to pascal-case
exercise test file test class renamed to match pascal-case filename
update bash testing script

@ErikSchierboom / @iHiD / @petemcfarlane / @djjohnsongeek
I think this brings the track up to PHPUnit 9 standards.  A look over / feedback would be appreciated! Thanks!

Looks sane to me at a quick once over. Thanks @neenjaw 💙


Unit test failure using Mocha : Error: Assertion Failed: (subclass of DS.ModelFragment) does not appear to be an ember-data model

Using Ember-cli setup with mocha/chai as my test runner and assertions lib (using ember-cli-mocha), I have a simple model class looking like this :
models/Address.js
import DS from "ember-data";

export default DS.ModelFragment.extend({
    civicNumber: DS.attr('number'),
    streetName: DS.attr('string'),
    city: DS.attr('string'),
    provinceOrState: DS.attr('string'),
    country: DS.attr('string'),
    postalZipCode: DS.attr('string'),
    building: DS.belongsTo('building', {embedded: 'always'})
});

With the following test code :
/* jshint expr:true */
import { expect } from 'chai';
import {
  describeModel,
  it
} from 'ember-mocha';

describeModel(
  'address',
  'Address',
  {
    // Specify the other units that are required for this test.
      needs: []
  },
  function() {
    // Replace this with your real tests.
    it('exists', function() {
      var model = this.subject();
      // var store = this.store();
      expect(model).to.be.ok;
    });
  }
);

Which fails with the following error :
not ok 14 PhantomJS 1.9 - Address exists
---
message: >
Assertion Failed: (subclass of DS.ModelFragment) does not appear to be an ember-data model
stack: >
Error: Assertion Failed: (subclass of DS.ModelFragment) does not appear to be an ember-data model
at http://localhost:7357/assets/vendor.js:14489
at http://localhost:7357/assets/vendor.js:74951
at http://localhost:7357/assets/vendor.js:73546
at http://localhost:7357/assets/test-support.js:2092
at http://localhost:7357/assets/vendor.js:10749
at run (http://localhost:7357/assets/vendor.js:27187)
at http://localhost:7357/assets/test-support.js:2093
at http://localhost:7357/assets/test-support.js:2299
at http://localhost:7357/assets/frontend.js:1104
at http://localhost:7357/assets/test-support.js:1686
at invoke (http://localhost:7357/assets/test-support.js:13702)
at http://localhost:7357/assets/test-support.js:13767
at http://localhost:7357/assets/test-support.js:7004
at http://localhost:7357/assets/test-support.js:7423
at http://localhost:7357/assets/test-support.js:7514
at next (http://localhost:7357/assets/test-support.js:7348)
at http://localhost:7357/assets/test-support.js:7358
at next (http://localhost:7357/assets/test-support.js:7297)
at http://localhost:7357/assets/test-support.js:7320
at done (http://localhost:7357/assets/test-support.js:6983)
at http://localhost:7357/assets/test-support.js:7003
at complete (http://localhost:7357/assets/test-support.js:13729)
at http://localhost:7357/assets/test-support.js:13707
at tryCatch (http://localhost:7357/assets/vendor.js:60990)
at invokeCallback (http://localhost:7357/assets/vendor.js:61002)
at publish (http://localhost:7357/assets/vendor.js:60973)
at http://localhost:7357/assets/vendor.js:39112
at http://localhost:7357/assets/vendor.js:11403
at http://localhost:7357/assets/vendor.js:11468
at http://localhost:7357/assets/vendor.js:11273
at http://localhost:7357/assets/vendor.js:10698
at http://localhost:7357/assets/vendor.js:11101
Log: >
...
Am I missing something or it's a real issue?
Any help will be highly appreciated!
Thanks

This is likely due to isolatedContainer issues as described in #80. It would be useful to know what version of ED you are using. A small ember-cli repo reproducing the issue would be even more useful :wink:
Also keep in mind that relationships to models are not currently supported.

Thanks for you answer! I'm using ED 1.0.0-beta.16.

This doesn't seem to have been resolved by #80 - I have the same error using ember-qunit's moduleForModel('address').
It looks like this.subject() is calling store.createRecord('address') instead of store.createFragment('address').
 I must confess, I don't unit test model fragments in our app; we are rely heavily on acceptance testing. I'm not sure what the right answer is here, but for now the easiest thing to do is to call store.createFragment() directly instead of using this.subject(). At some point perhaps I'll try to monkey patch moduleForModel, or perhaps create a moduleForFragment method, although neither of those options sits well with me.


State of AngelScript bindings

Currently U3D has AngelScript in the same state as it was in Urho3D 1.8 -- half refactored, half WIP.
1vanK did quite a lot of work on binding generator and this work spanned years.
Since U3D forked from the middle of this work, AS is in weird state here. Bindings are not manual, but they use unfinished generator.
So I think U3D should either abandon AS at some point, rollback AS binding generator and restore manual AS bindings, or cherry-pick AS binding generator updates from Urho3D 1.8-1.9

I favor the 3rd option, cherry picking the binding generator from Urho3D. However, I am not likely to have time in the near future to do it myself - maybe I will get to it in the next year or so. So if others wish to do something else, or do it themselves, I wouldn't mind.


Capture Screenshot. Issue with multiple device with different os version

When I open two devices syncronized but with different os versions:
Iphone 6Plus iOS 8.0
Iphone 6Plus iOS 8.1

When I take a screenshot, there's only one screenshot. It's necessary to append the OS version to the capture ;)

Tracked https://github.com/AdaptiveMe/adaptive-tools-nibble/issues/5


[Docs]The updation of shields is needed in README.md

Current State:
Small updation of shields in README.md

Desired State:
This is how it should look like

Contributor Resources

Meshery documentation site
Meshery documentation source
Instructions for contributing to documentation

Kindly Assign this task to me

@Swapnil-Bhabal Thank you.  Feel free do a PR and related to this issue.


chore: upgrade rules_lint

Changes are visible to end-users: no
Test plan

Covered by existing test cases

This fixes the rules_lint error currently on main: https://github.com/aspect-build/rules_js/actions/runs/11263682260/job/31382146232

Moving all to https://github.com/aspect-build/rules_js/pull/1970


Add Score Percentage's Features

Due to the recent beatmap refactor done by the devs (1.34.4), the logic needed for Score Percentage to get the data is very similar to what SPH is already doing. It is not ideal to do the same work multiple times and since both mods are for showing the player's skill progression, it makes sense to merge Score Percentage into SPH.

Still need to add the config options but all the features are here

I think I can also add support to this https://github.com/Idlebawb/ScorePercentage/issues/1


Add support for getting PID parameters from loaded parameters

Hello!
The issue https://github.com/ros-controls/gazebo_ros2_control/issues/369 will be fixed once this is merged. It seems that for our Humanoids we will be needing this PID feature to make it work using position.
This PR:

adds a way to get the PIDs from the loaded parameters as well as the URDF
If the parameters are found in the URDF, it doesn't check for the parameters in the loaded parameters
This PR add a way for the PIDs to work also for the position interface, because having the position_pid interface doesn't help to use many standard ros2 controllers, as many controllers tend to check if they belong to a subset (https://github.com/ros-controls/ros2_controllers/blob/master/joint_trajectory_controller/src/joint_trajectory_controller_parameters.yaml#L20-L29)
The proposal to add it from the loaded parameters is due to the fact it it overcomplicates the declaration in the URDF. In our case, we have macros for defining the ros2_control tag information(for example: https://github.com/pal-robotics/talos_robot/blob/5848d42f15340e35d672e323d61079d72b2fb13d/talos_description/urdf/arm/arm.ros2_control.xacro#L22-L30). If we have to define for each joint, we can't make use of the macros.

I hope this helps someone. If this PR changes look fine. I will open the following PR in the gz_ros2_control
   <gazebo>
      <plugin filename="libgazebo_ros2_control.so" name="gazebo_ros2_control">
        <ros>
          <argument>--ros-args</argument>
          <argument>--params-file</argument>
          <argument>$(find talos_description)/config/gazebo_controller_manager_cfg.yaml</argument>
        </ros>
        <hold_joints>false</hold_joints>
        <parameters>$(find talos_description)/config/gazebo_controller_manager_cfg.yaml</parameters>
      </plugin>
    </gazebo>

Defining it like this should work
gazebo_ros2_control:
  ros__parameters:
    pid_gains:
      position:
        leg_left_1_joint: {kp:  5000.0, kd: 20.0, ki:  5.0, max_integral_error: 10000.0}
        leg_left_2_joint: {kp:  5000.0, kd: 20.0, ki:  5.0, max_integral_error: 10000.0}
        leg_left_3_joint: {kp:  5000.0, kd: 20.0, ki:  5.0, max_integral_error: 10000.0}
        leg_left_4_joint: {kp:  5000.0, kd: 20.0, ki:  5.0, max_integral_error: 10000.0}
        leg_left_5_joint: {kp:  5000, kd: 20.0, ki:  5.0, max_integral_error: 10000.0}
        leg_left_6_joint: {kp:  5000.0, kd: 20.0, ki:  5.0, max_integral_error: 10000.0}

Do you mind to add an example and document how to set up the pid values ?

@ahcorde I've just added it an example, let me know how it looks
If this https://github.com/ros-simulation/gazebo_ros_pkgs/pull/1546 is merged, we can have parameters tag as how we had in gazebo_ros2_control currently and we can make changes in such a way, we declare once and both same the params file

https://github.com/Mergifyio backport humble iron


Update README for CPE enrichment changes

This PR is to update the README to reflect the changes in CPE enrichment going forward.

Landing this!
This change clarifies that the CISA ADP will no longer be providing CPE strings when they were missing from CVE records.
The feedback we’ve received since April 2024 is that the CPE data we have been providing is not as operationally valuable to stakeholders as the SSVC decision points, KEV status, CVSS vectors, and CWE IDs.

@amanion-cisa I believe the flowcharts need to be updated as well to remove the CPE bits. I'll open an issue at you for that.


XML does generally not work

Is XML supported?
If yes shouldn't the demo be able to run it?

Hi @OnSive , thanks for your message and sorry for the late response.
Using XML was already possible previously, but this functionality was not really transparent in the example.
To make these things easier, we now restructured this repo, and the XML examples you are looking for are can be found here:
https://github.com/fiskaltrust/middleware-demo-dotnet/tree/master/src/fiskaltrust.Middleware.Demo.Http
Just start the example with the argument --communication-type Xml. The requests will still be loaded from the .json files, but XML requests will be sent via HTTP. I hope this helps :)


Define "reify" somewhere

These two sentences documenting Array.clone uses a form of "reify" several times. Various discussions outside of the docs throw it around freely.

However, note that the reifier is shared between the two Arrays, so both Arrays will have the same elements even when each is randomly-generated on reification and each element will be reified just once, regardless of whether the reification was done by the clone or the original Array. Note: just as reifying an Array from multiple threads is not safe, so is, for example, reifying the clone from one thread while reifying the original from another thread is not safe.

As far as I can tell, the term is only used twice anywhere else in the docs. Once in control.pod6 and once in traps.pod6. It does not show up where it matters: Seq and Range.
There's a definition in S99, but it's a bit of a tarbaby for the beginner programmer who doesn't know the additional formal terms presented in that definition.

Fwiw, http://stackoverflow.com/a/31876747/1077672 begins with "Reification is the process of taking an abstract thing and creating a concrete thing.".

The more I think about it, the more I think "reify" shouldn't show up in user docs. It's only in three places.
In the Perl 6 docs, it's more important that the user know what is happening than the jargon used to describe it. Array.clone might say "If there are lazy lists in the array, the original and clone may share them and their future values" or something like that.

Thanks. Fixed in https://github.com/perl6/doc/commit/8472cde81cda620222429e23bfe2758622b2b6c5

The more I think about it, the more I think "reify" shouldn't show up in user docs. It's only in three places.

It's only in three places because the docs are incomplete. The concept of reification is pretty important in Perl 6, both to know how to avoid it (e.g. huge lists) when you don't need it and to know how to cause it (e.g. when working with file handles and other resources that get closed/go away).

I am going to reopen this issue. We need to unify the definition of reify, which actually means two things:

"Vivification" or computation of elements in a lazy list
Itemization of elements in an array, turning the slot occupied for a container into its value.
Unifying concept is "turning a potential element into its computed value". And FWIW, I don't think a glossary entry is enough. Either its own page or something in the context page (item context, for instance).

Additionally, maybe it should just be called itemization.

The reification concept is now all over the documentation. I guess it's much better to explain what we mean in the glossary than changing everything. Anyway, where it's not clear what it could mean, I'll change it to "itemize" or "vivify"


java.lang.AssertionError: Dart test failed

Steps to reproduce

Actual results
https://github.com/leancodepl/patrol/assets/30290012/7f51e927-47e9-4cb4-9f2a-315c588fa10e
Logs

Logs

Task :app:connectedStagingDebugAndroidTest
: Starting 1 tests on SM-S901E - 13
:
: com.bambinifashion.bambinifashion.MainActivityTest > runDartTest[patrol_test][SM-S901E - 13] FAILED
:       java.lang.AssertionError: Dart test failed: patrol_test
:       ══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞═════════════════
: Tests on SM-S901E - 13 failed: There was 1 failure(s).

Patrol version
^2.0.1
Patrol Doctor output

Patrol Doctor output
Patrol CLI version: 2.0.4
Program adb found in /Users/rus/Library/Android/sdk/platform-tools/adb
Env var $ANDROID_HOME set to /Users/rus/Library/Android/sdk
Program xcodebuild found in /usr/bin/xcodebuild
Program ideviceinstaller not found (install with brew install ideviceinstaller)

Flutter Doctor output

Flutter Doctor output
[✓] Flutter (Channel stable, 3.10.6, on macOS 13.4 22F66 darwin-arm64, locale ru-TR)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.1)
[✓] IntelliJ IDEA Community Edition (version 2022.2.1)
[✓] Connected device (3 available)
[✓] Network resources

await $.pumpWidgetAndSettle(app.main() as Widget); this doesn't work, but really there were some problem in app,
and it starts only by app.main()

I kept getting this exception at the end of a test, somehow after running a different test and then running the first test worked for me


Demoname formatting

This adds custom formatting of the demo filename:
The following vars are available:
{TIME} : Current DateTime in yyyy-MM-dd HH-mm-ss format
{MATCH_ID}: The liveMatchId
{MAP}: Map name
{TEAM1}: Team 1 name
{TEAM2}: Team 2 name

Hey!
Thanks for the PR, I'll add it in the next release! :D


Tests failing because of android images are based on JDK slim images

Since the docker image is based on openjdk:11-jdk-slim we have many test cases failing. Our current workaround is to use another image just to run these tests.
The regular image openjdk:11 is just around 200M bigger, it could be used instead

The current Android Convenience Image won't change. I'd advice to find an alternative image or just install the packages that are missing.
I am curious however. We're working on our next-gen Android Convenience Image. What packages/tools that are missing in OpenJDK slim upstream would you need? This information can help us while we create the next-gen image.

The current Android Convenience Image won't change. I'd advice to find an alternative image or just install the packages that are missing.
I am curious however. We're working on our next-gen Android Convenience Image. What packages/tools that are missing in OpenJDK slim upstream would you need? This information can help us while we create the next-gen image.

I don't know for sure what packages are missing, just that image is useless to run CashApp/Paparazzi screenshot tests. More info here https://github.com/cashapp/paparazzi/issues/124#issuecomment-754240269

I don't know for sure what packages are missing, just that image is useless to run CashApp/Paparazzi screenshot tests. More info here https://github.com/cashapp/paparazzi/issues/124#issuecomment-754240269

I've hit the same issue, for me sudo apt-get install fontconfig fixed the problem


Error: Could not resolve './directives/' from build\index.js

When running npm run build I am getting the following
><EMAIL_ADDRESS>build C:\development\angular2\framauthui
> gulp build

[06:59:30] Using gulpfile C:\development\angular2\framauthui\gulpfile.js
[06:59:30] Starting 'clean:dist'...
[06:59:30] Finished 'clean:dist' after 255 μs
[06:59:30] Starting 'clean:tmp'...
[06:59:30] Finished 'clean:tmp' after 19 ms
[06:59:30] Starting 'clean:build'...
[06:59:30] Finished 'clean:build' after 24 ms
[06:59:30] Starting 'clean'...
[06:59:30] Finished 'clean' after 49 μs
[06:59:30] Starting 'compile'...
[06:59:30] Starting 'clean:dist'...
[06:59:30] Finished 'clean:dist' after 96 μs
[06:59:30] Starting 'copy:source'...
[06:59:30] Finished 'compile' after 11 ms
[06:59:30] Starting 'build'...
[06:59:30] Finished 'build' after 6.04 μs
[06:59:30] Finished 'copy:source' after 200 ms
[06:59:30] Starting 'inline-resources'...
[06:59:30] Finished 'inline-resources' after 140 ms
[06:59:30] Starting 'ngc'...
[06:59:33] Finished 'ngc' after 2.95 s
[06:59:33] Starting 'rollup:fesm'...
The following options have been renamed — please update your config: format -> output.format
'@angular/common/http' is imported by build\index.js, but could not be resolved – treating it as an external dependency

events.js:137
      throw er; // Unhandled 'error' event
      ^
Error: Could not resolve './directives/' from build\index.js
    at error (C:\development\angular2\framauthui\node_modules\gulp-rollup\node_modules\rollup\dist\rollup.js:170:15)
    at C:\development\angular2\framauthui\node_modules\gulp-rollup\node_modules\rollup\dist\rollup.js:18849:25
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:160:7)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>build: `gulp build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!      C:\Users\NIrving\AppData\Roaming\npm-cache\_logs\2018-02-07T19_59_34_046Z-debug.log

It would seem it only likes flat file structures and not those build with directories.
In my src directory I have
total 26
drwxr-xr-x 1 NIrving 197121    0 Feb  7 17:04 components/
drwxr-xr-x 1 NIrving 197121    0 Feb  7 17:04 containers/
drwxr-xr-x 1 NIrving 197121    0 Feb  7 17:04 directives/
-rw-r--r-- 1 NIrving<PHONE_NUMBER> Feb  7 16:49 index.ts
drwxr-xr-x 1 NIrving 197121    0 Feb  7 17:04 interceptors/
drwxr-xr-x 1 NIrving 197121    0 Feb  7 17:04 models/
-rw-r--r-- 1 NIrving 197121  595 Feb  7 17:03 package.json
drwxr-xr-x 1 NIrving 197121    0 Feb  7 17:04 services/
-rw-r--r-- 1 NIrving 197121  637 Feb  7 17:03 tsconfig.es5.json
-rw-r--r-- 1 NIrving 197121  322 Feb  7 17:03 tsconfig.spec.json

and in src\directives
total 1
drwxr-xr-x 1 NIrving 197121   0 Feb  7 17:04 dynamic-field/
drwxr-xr-x 1 NIrving 197121   0 Feb  7 17:04 form-host/
-rw-r--r-- 1 NIrving 197121 198 Nov  5 05:54 index.ts
drwxr-xr-x 1 NIrving 197121   0 Feb  7 17:04 programmatic-input-fire-event/

Do I need the rollup-plugin-commonjs or rollup-plugin-node-resolve to resolve this?
Any ideas?
Thanks
Nicholas Irving

If i do the following
npm install rollup-plugin-node-resolve
npm install rollup-plugin-commonjs

add the following to the var
  resolve = require('rollup-plugin-node-resolve'),
  commonjs = require('rollup-plugin-commonjs');

and add
 plugins: [
        resolve(),
        commonjs()
      ],

to rollup:fesm and rollup:umd
it returns
[19:37:35] Starting 'clean:dist'...
[19:37:35] Finished 'clean:dist' after 18 ms
[19:37:35] Starting 'clean:tmp'...
[19:37:35] Finished 'clean:tmp' after 147 μs
[19:37:35] Starting 'clean:build'...
[19:37:35] Finished 'clean:build' after 308 μs
[19:37:35] Starting 'clean'...
[19:37:35] Finished 'clean' after 21 μs
[19:37:35] Starting 'compile'...
[19:37:35] Starting 'clean:dist'...
[19:37:35] Finished 'clean:dist' after 155 μs
[19:37:35] Starting 'copy:source'...
[19:37:35] Finished 'compile' after 12 ms
[19:37:35] Starting 'build'...
[19:37:35] Finished 'build' after 4.53 μs
[19:37:35] Finished 'copy:source' after 138 ms
[19:37:35] Starting 'inline-resources'...
[19:37:35] Finished 'inline-resources' after 41 ms
[19:37:35] Starting 'ngc'...
[19:37:38] Finished 'ngc' after 2.68 s
[19:37:38] Starting 'rollup:fesm'...
The following options have been renamed — please update your config: sourceMap -> output.sourcemap, format -> output.format
'buffer' is imported by node_modules\jszip\node_modules\readable-stream\lib\_stream_readable.js, but could not be resolved – treating it as an external dependency
'events' is imported by node_modules\jszip\node_modules\readable-stream\lib\_stream_readable.js, but could not be resolved – treating it as an external dependency
'util' is imported by node_modules\inherits\inherits.js, but could not be resolved – treating it as an external dependency
'util' is imported by  commonjs-external:util, but could not be resolved – treating it as an external dependency
'util' is imported by node_modules\jszip\node_modules\readable-stream\lib\_stream_readable.js, but could not be resolved – treating it as an external dependency
'buffer' is imported by node_modules\jszip\node_modules\readable-stream\lib\_stream_writable.js, but could not be resolved – treating it as an external dependency
'util' is imported by node_modules\util-deprecate\node.js, but could not be resolved – treating it as an external dependency
'events' is imported by node_modules\jszip\node_modules\readable-stream\lib\_stream_writable.js, but could not be resolved – treating it as an external dependency
'buffer' is imported by  commonjs-external:buffer, but could not be resolved – treating it as an external dependency
'events' is imported by  commonjs-external:events, but could not be resolved – treating it as an external dependency
'buffer' is imported by node_modules\jszip\node_modules\string_decoder\index.js, but could not be resolved – treating it as an external dependency
'LOCALE_ID', 'APP_ID', 'ApplicationInitStatus', 'ApplicationModule', 'ErrorHandler', 'RendererFactory2', 'Sanitizer' and 'Testability' are imported from external module '@angular/core' but never used
'FormGroup' is imported from external module '@angular/forms' but never used
[19:37:46] Finished 'rollup:fesm' after 8.38 s
[19:37:46] Starting 'rollup:umd'...
The following options have been renamed — please update your config: name -> output.name, globals -> output.globals, format -> output.format, exports -> output.exports
'buffer' is imported by node_modules\jszip\node_modules\readable-stream\lib\_stream_readable.js, but could not be resolved – treating it as an external dependency
'events' is imported by node_modules\jszip\node_modules\readable-stream\lib\_stream_readable.js, but could not be resolved – treating it as an external dependency
'util' is imported by node_modules\inherits\inherits.js, but could not be resolved – treating it as an external dependency
'util' is imported by  commonjs-external:util, but could not be resolved – treating it as an external dependency
'util' is imported by node_modules\jszip\node_modules\readable-stream\lib\_stream_readable.js, but could not be resolved – treating it as an external dependency
'buffer' is imported by node_modules\jszip\node_modules\readable-stream\lib\_stream_writable.js, but could not be resolved – treating it as an external dependency
'util' is imported by node_modules\util-deprecate\node.js, but could not be resolved – treating it as an external dependency
'events' is imported by node_modules\jszip\node_modules\readable-stream\lib\_stream_writable.js, but could not be resolved – treating it as an external dependency
'buffer' is imported by  commonjs-external:buffer, but could not be resolved – treating it as an external dependency
'events' is imported by  commonjs-external:events, but could not be resolved – treating it as an external dependency
'buffer' is imported by node_modules\jszip\node_modules\string_decoder\index.js, but could not be resolved – treating it as an external dependency
'LOCALE_ID', 'APP_ID', 'ApplicationInitStatus', 'ApplicationModule', 'ErrorHandler', 'RendererFactory2', 'Sanitizer' and 'Testability' are imported from external module '@angular/core' but never used
'FormGroup' is imported from external module '@angular/forms' but never used
Creating a browser bundle that depends on Node.js built-in modules ('buffer', 'events' and 'util'). You might need to include https://www.npmjs.com/package/rollup-plugin-node-builtins
No name was provided for external module '@angular/core' in options.globals – guessing 'core'
No name was provided for external module '@angular/common' in options.globals – guessing 'common'
No name was provided for external module '@angular/forms' in options.globals – guessing 'forms'
No name was provided for external module 'buffer' in options.globals – guessing 'require$$0'
No name was provided for external module 'events' in options.globals – guessing 'events'
No name was provided for external module 'util' in options.globals – guessing 'debugUtil'
No name was provided for external module '@angular/animations' in options.globals – guessing 'animations'
[19:37:53] Finished 'rollup:umd' after 7.1 s
[19:37:53] Starting 'copy:build'...
[19:37:53] Finished 'copy:build' after 97 ms
[19:37:53] Starting 'copy:manifest'...
[19:37:53] Finished 'copy:manifest' after 4.6 ms
[19:37:53] Starting 'copy:readme'...
[19:37:53] Finished 'copy:readme' after 4.19 ms
[19:37:53] Starting 'clean:build'...
[19:37:53] Finished 'clean:build' after 27 ms
[19:37:53] Starting 'clean:tmp'...
[19:37:53] Finished 'clean:tmp' after 19 ms
Compilation finished succesfully

will test and see if it works.

Hi @nirving can you please share the source code of events.js?

@izifortune — Thank you for your follow-up, much appreciated! 🏆

For those stumbling across this one.  After spending way too long on the problem I realised it was an issue with the export.  I had:
export * from './directory';

changed it to:
export * from './directory/index';

and the gulp tasks completed.

@gary-holland — Thank you for the update, much appreciated!


Add influxdb-matlab to the list of client libraries

Hi, I made a MATLAB client library for interacting with InfluxDB.
You can find it here: influxdb-matlab

Thanks @EnricSala. The PR looks good and once you sign the InfluxData CLA, I'll approve and merge it.

done! thanks @sanderson

Great! Thanks @EnricSala.


cr: fetch ref and unref blocks in parallel

If conflict resolution has to fetch a lot of blocks to do block accounting, it's best to fetch them in parallel to make it as fast as possible.
Note that once #579 goes in, this won't be as big an issue when journaling is enabled since all of referenced blocks should be locally available on disk.  However, the unref'd blocks still may be getting fetched from the remote server.
+@jzila as a reviewer since it involves block fetching.

Implemented @jzila's feedback, thanks!


[Code health] Automate License Addition to new file

Step 1: Create a File Template for the License Header
Open Android Studio.
Go to File > Settings (or Android Studio > Preferences on macOS).
Navigate to Editor > File and Code Templates.
Select Includes from the left-hand side.
Click on the + button to create a new template.
Name your template, for example, License Header.
Add your license text to the template.
/*
 * Copyright ${YEAR} Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

Step 3: Share the Configuration with Team via GitHub
Add the following files to your version control system (Git):
.idea/fileTemplates
.idea/fileTemplates/includes
.idea/fileTemplates/code
These directories contain the file and code templates you configured.
git add .idea/fileTemplates
git commit -m "Add license header templates"
git push origin main
@shobhitagarwal1612 @sufyanAbbasi WDYT?

I tried the above steps and it didn't auto-insert a license to new kotlin files. @anandwana001 Does it work for you?


WebGLMap not showing osm tiles

Describe the bug
I recently upgraded to angular 7.2.4 and ol 5.3.0, discovered the problem described by #8815 and #8962, and found the workaround to that in #9019 (though, I was only able to get it to work by manually adding proj.js to the sideEffects section of ol's package.js). Right now, my osm base map isn't rendering at all, but it will render the point layer I add to it.
What I know so far:

This happens in both dev mode (using ng serve --ssl) and prod mode (ng build -- prod).
This occurs in both Firefox and Chrome.
The console reports no errors.
The request log shows the osm tiles being requested and loaded.
Using inspect element, I can see that the map div has been attached to.

To Reproduce
I've simplified the code all the way down to:
sandbox.component.ts
import { Component, OnInit, isDevMode } from '@angular/core';

import OlWebGLMap from 'ol/WebGLMap';
import OlOSM from 'ol/source/OSM';
import OlTileLayer from 'ol/layer/Tile';
import OlView from 'ol/View';

@Component({
  selector: 'app-sandbox',
  templateUrl: './sandbox.component.html',
  styleUrls: ['./sandbox.component.scss']
})
export class SandboxComponent implements OnInit {
  devSandBoxMessage = isDevMode() ? 'Development Sandbox' : 'YOU SHOULD NOT BE HERE!';

  _map: OlWebGLMap;
  _view: OlView = new OlView({
    center: [-89.600223, 37.378633],
    zoom: 13,
    projection: 'EPSG:4326'
  });

  constructor() {  }

  ngOnInit() {
    this._map = new OlWebGLMap({
      view: this._view,
      layers: [
        // this._baseMapLayer
        new OlTileLayer({
          source: new OlOSM()
        })
      ],
      target: 'map'
    });
  }
}

{{devSandBoxMessage}}

Expected behavior
Load the tiles from the osm cdn and render the tiles.

On further testing, it looks like it works as expected when you use ol/Map instead of ol/WebGLMap. I see that ol/WebGLMap and its related components are being torn out of version 6 of open layers and I'm going to have to reimplement my maps anyway.
I'm not sure how performant ol/Map will be; I've had to use WebGL to be able to get any decent performance in the past. I'll need to do further testing to see if I can't get it to work well enough for us. How hard would it be to change to web gl rendering in 6.0.0?

There was a shift in how webgl is used in OL starting from v6: the generic webgl renderer is gone and all layers are now by default rendered using canvas.
On top of that, a specific webgl renderer for point geometries was added: this renderer is able to render a high amount of points but does not currently support the OL style functions.
Assuming you used the webgl renderer for performance on vector layers containing points, you may be able to get the best of both worlds: reliability and cleanliness of the canvas renderer, performance of the webgl point renderer.
As an example the heatmap layer has been rewritten to use this, and an example of a map with 80k points was added as well:
https://831-4723248-gh.circle-artifacts.com/0/examples/heatmap-earthquakes.html
https://831-4723248-gh.circle-artifacts.com/0/examples/icon-sprite-webgl.html


PlexAutoSkip doesn't seem to be able to reach/control my players at all

Hello,
I've just installed PlexAutoSkip using your docker container but I can't seem to get it to skip anything. I've tried it on both my Apple TV and iPhone and nothing happens.
Here are the logs:
2022-09-08 18:58:58 - __main__ - INFO - /usr/local/pas/venv/bin/python3
2022-09-08 18:58:58 - __main__ - DEBUG - Loading default config file.
2022-09-08 18:58:58 - __main__ - INFO - Loading config file /usr/local/pas/config/config.ini.
2022-09-08 18:58:58 - __main__ - INFO - Loading custom JSON file /usr/local/pas/config/custom.json
2022-09-08 18:58:58 - __main__ - INFO - Connecting to Plex server...
2022-09-08 18:58:59 - __main__ - INFO - Connected to Plex server PLEX Home using plex.tv account
2022-09-08 18:58:59 - __main__ - DEBUG - IntroSeeker init with leftOffset 1000 rightOffset 1000
2022-09-08 18:58:59 - __main__ - DEBUG - Operating in MODE_TYPES.SKIP mode
2022-09-08 18:58:59 - __main__ - DEBUG - Skip tags ['intro', 'commercial', 'advertisement']
2022-09-08 18:58:59 - __main__ - DEBUG - Skip S01E01 SKIP_TYPES.WATCHED
2022-09-08 18:58:59 - __main__ - DEBUG - Skip S**E01 SKIP_TYPES.ALWAYS
2022-09-08 18:58:59 - __main__ - DEBUG - Skip last chapter 0.0
2022-09-08 18:58:59 - __main__ - INFO - Skipper initiated and ready
2022-09-08 18:58:59 - __main__ - DEBUG - Starting listener
2022-09-08 18:58:59 - websocket - WARNING - websocket connected

As you can see there are no messages indicating that it's finding sessions/detecting intros. GDM is enabled on the server and my Apple TV's Plex app has "Advertise as player" set to on. My Plex server is running in a container too for what it's worth (hotio's image), but both containers are on the same subnet.
Do you have any idea of what could be the problem?
Thanks!

Hm looks like its connecting fine, appreciate the debug logs
I would play something on your Apple TV and look at the "Now Playing" section on Plex web and see how and if it's being reported
Based on the logs the script isn't seeing the playback session at all. The logs won't bother listing the session unless it's a LAN session so make sure that Plex is reporting it as such and that it sees it
But in order for the script to work the playback session needs to show up on "Now Playing" and be recognized as LAN

Thanks for the answer! That’s exactly right. Plex says it’s a remote connection but it’s my local IP, I guess it’s thrown off by the subnet of the docker network.

Can fix that in the network settings of plex by including your local network subnet

That works for PlexAutoSkip to detect sessions, though now the connection is refused when it tries to skip the intro. The issue is that Plex shows the IP of the client that's currently playing as <IP_ADDRESS> (IP of the router) when it's actually <IP_ADDRESS>. Using your solution from https://github.com/mdhiggins/PlexAutoSkip/issues/3#issuecomment-1013543649 I was able to hard-code the clients' IPs in custom.json which works although not ideal. Not sure why Plex can't find the correct IP of my clients.

Are you using unbound by chance?

Could try running your Plex container in host networking mode if you aren't already

The issue was that I hadn't set up the custom server access URLs in the UI (ADVERTISE_IP variable from hotio's image: https://hotio.dev/containers/plex/#environment-variables-advertise_ip-and-allowed_networks) so clients couldn't discover the server and were likely going external. I guess the router was doing some hairpinning which resulted in Plex seeing every client as the router's IP. It's all fixed now. Thanks!


CEXL  / CEL improvements

Describe the feature request
We tried to create an additional dimension for response.code to bucket it by family (e.g. 1xx, 2xx, 3xx etc) as per https://discuss.istio.io/t/expanding-cexl/1355 but found it impossible to do in 1.0.X. It should be possible in 1.1 but is less than ideal. We aren't running 1.1 yet but I suspect this will work:
condition(response.code >= 100 && response.code < 200, "1XX", condition(response.code >= 200 && response.code < 300, "2XX", condition(response.code >= 300 && response.code < 400, "3XX", condition(response.code >= 400 && response.code < 500, "4XX, condition(response.code >= 500 && response.code < 600, "5XX", "unknown)))))

This seems overly verbose and could be shorted with some fairly easy to implement features (I think).
If the third argument to conditional were optional (and default to an empty value) then we could use the pipe operator rather than nested calls:
If condition could make the 3rd argument optional such that it could be used with |
Example
conditional(response.code >= 200 && response.code < 300, "2XX") | conditional(response.code >= 300 && response.code < 400, "3XX")
Shortening / aliasing conditional to if would also make it a bit more familiar (and terse):
Example
if(response.code >= 200 && response.code < 300, "2XX")
Ranges would also make similar use cases nicer (although they'd require a new data type to be efficient).
Example
if(response.code in range(200, 299), "2XX") | if(response.code in range(300, 399), "3XX")

I was trying to set the requestcount metric label 'response_code'  to:
 conditional((api.protocol | context.protocol | "unknown") == "grpc", response.grpc_status, (response.code | 200) )
so I could have both gRPC and HTTP response codes in the same label.
The problem is that response.grpc_status is an String and response.code is int64, so mixer validation fails due to type checking.
It would be good to have kind of a converter function or so to avoid these kind of issues. Example:
 conditional((api.protocol | context.protocol | "unknown") == "grpc", strconv.ParseInt(response.grpc_status, 10, 64), (response.code | 200))

@dsanchor thanks for the feedback! Both int(_) and string(_) are obvious candidates to help with response codes. I'm not sure why the gRPC status is even a string TBH, an enum is more appropriate.

Ability to parse URL to split path/host was requested here https://discuss.istio.io/t/how-to-split-value-in-telemetry/3107

As above, it would be really useful to be able to do regex replace, e.g., extract portions of a URL into new atttributes, or even reorder path segments.

Hello. Reopening as I've run into a situation where my team needs the ability to replace parts of an istio attribute for our logging. More specifically, we'd like to only use everything after a slash, for example foobar/whatever should be logged as whatever, but a regex-based replace seems like a more generic way to solve it.
I see that @JacksChoco had a PR for this that was closed without a merge. I've recreated the PR from my own fork (https://github.com/istio/istio/pull/22110) in the hopes of getting this included.

Built-in runtime in proxy supports a subset of CEL implemented in C++. Reference: https://github.com/istio/istio/wiki/Configurable-V2-Metrics. We'd be happy to extend CEL C++ with the missing functions as well.


Update forever-monitor dependency version

To resolve exploit in minimatch in forever-monitor 1.6.0 please update package dep

Resolved.


Add Google's IP public ranges, keyed by region into the checker

Google describe they how list their public IP ranges for their various regions here
https://support.google.com/a/answer/10026322?hl=en
And you can see the json payload here, for the honking great IP ranges, keyed by region
https://www.gstatic.com/ipranges/cloud.json
Each region has a corresponding key in the JSON
So presumably, if you know the IP range, then you can map it to the corresponding region
https://github.com/GoogleCloudPlatform/region-carbon-info/blob/main/data/yearly/2020.csv
So asia-south1, otherwise known as Mumbai, might have an annualised grid carbon footprint of 721g

Google Cloud Region
Location
Google CFE
Grid carbon intensity (gCO2eq / kWh)
Google Cloud net carbon emissions

asia-south1
Mumbai
0.12
721
0

asia-south2
Delhi
657
0

https://github.com/GoogleCloudPlatform/region-carbon-info/blob/main/data/yearly/2020.csv#L7
And I think you would be able to identify the region based on the IP ranges shared in the cloud.json file linked above.
[
{
    "ipv4Prefix": "<IP_ADDRESS>/16",
    "service": "Google Cloud",
    "scope": "asia-south1"
  }, {
    "ipv4Prefix": "<IP_ADDRESS>/17",
    "service": "Google Cloud",
    "scope": "asia-south1"
  }, {
    "ipv4Prefix": "<IP_ADDRESS>/23",
    "service": "Google Cloud",
    "scope": "asia-south1"
  }, {
    "ipv4Prefix": "<IP_ADDRESS>/23",
    "service": "Google Cloud",
    "scope": "asia-south1"
  }, {
    "ipv4Prefix": "<IP_ADDRESS>/17",
    "service": "Google Cloud",
    "scope": "asia-south1"
  }, {
    "ipv4Prefix": "<IP_ADDRESS>/24",
    "service": "Google Cloud",
    "scope": "asia-south1"
  }, {
    "ipv4Prefix": "<IP_ADDRESS>/18",
    "service": "Google Cloud",
    "scope": "asia-south1"
  }, {
    "ipv4Prefix": "<IP_ADDRESS>/24",
    "service": "Google Cloud",
    "scope": "asia-south1"
  }, {
    "ipv4Prefix": "<IP_ADDRESS>/20",
    "service": "Google Cloud",
    "scope": "asia-south1"
  }, {
    "ipv4Prefix": "<IP_ADDRESS>/24",
    "service": "Google Cloud",
    "scope": "asia-south1"
  }, {
    "ipv4Prefix": "<IP_ADDRESS>/18",
    "service": "Google Cloud",
    "scope": "asia-south1"
  },
]

This assumes you're working with ipv4, not ipv6. I'm not sure how you'd tell afterwards.
TODO - we know we can do (not entirely reliable GeoIP lookups). Can you use this approach for region look-ups with most cloud providers? We ask for the city, so that might be enough in most cases.

Linking to the original AWS pull request
https://github.com/thegreenwebfoundation/admin-portal/pull/64

Maybe (this library)[https://ipinfo.io/] might help finding information like the location based on the IPv4.

Hi @roald-teunissen
The ipinfo library is useful, but I think there's a cost per API call, and given we do more than 5 million requests a day on most days, I think the cost of doing this would be greater than the cost of running the entire infrastructur stack so far 😱
There is support for free, local geolocation inside the django framework, that should give data at a city level, and do so with local IP lookups, which would also be faster.
https://docs.djangoproject.com/en/4.0/ref/contrib/gis/geoip2/#django.contrib.gis.geoip2.GeoIP2
For the purposes of importing the google IP info, I don't think it's necessary, but it is a feature that I think is valuable.
I've created issue #245, which is tied to some earlier research work we were doing.
https://github.com/thegreenwebfoundation/admin-portal/issues/245

 List Google's IP ranges


Prioritization for Sprint #1, May 2019

CalTRACK Prioritization
This is the official thread for voting on Round 1 of the 2019 CalTRACK Prioritization slate. First, here are the relevant issues:
#117: Monthly Fixed Effects - Use monthly fixed effects to control for seasonal variation instead of monthly WLS regressions.
#118: Interpolation of integral therms for daily data
#120: Calculate Degree Days using Degree Hours when available
#121: Heating balance point temperatures abnormally low? - Investigate methods for determining building balance point besides grid search/R^2.
#122: Enhance Testing Methods - Develop a CalTRACK testing methodology and public data repository for benchmarking versions.
#123: Improved handling of "Bad Buildings" - Use successive disaggregation and model both pre and post period energy use
#124: Improve handling of buildings with weather-energy misalignments - Incorporate lagged weather variables into daily models
#125: Ensure that AEU includes all days in reporting period - Change handling of missing weather data to include more days in the reporting period.
#126: Baseline data procedure for billing data - Tighten specification of baseline period.
#127: Improve stability of incremental savings via rolling 12 month reporting periods
#128: Non-res vs. res models - Use an alternative specification or specifications for non-residential hourly models.
#129: Vote on/agree to a uniform testing approach -Initiate a process to determine a uniform test methodology for CalTRACK.
#130: "Month type" or "week type" control to address intercept-only model issues with more frequent payments
How to Vote
First, write out your name and the organization you are representing. Then, please rank each issue with a value from 1 (most important) to 5 (least important), according to its urgency and potential impact. Leave your votes as comments on this issue (not the linked issues), with all votes listed in the order the issues are presented above. If you do not feel qualified to vote on a given issue in the list, please include its number but place a dash (-) next to it, so we know that you didn't skip over it accidentally. Once voting is closed, issues will be arranged in prioritization by average rank (excluding opt-outs).
Member organizations receive one vote per organization, per issue. Please ensure that only one person from your organization comments. If multiple comments come from the same organization, we will take only the votes from the first comment.
Voting will remain open until 11:59 PM Pacific, on Tuesday, June 4th.
Example
This is an example of how to present your votes in your comment (these are not my actual votes).
Jon Koliner, Apex Analytics
#117: 3
#118: 3
#120: -
#121: 1
#122: 5
#123: -
#124: -
#125: 5
#126: 4
#127: 3
#128: 2
#129: 1
#130: 1

David Jump, kW Engineering
#117: 1
#118: 4
#120: -
#121: 3
#122: -
#123: -
#124: -
#125: 5
#126: -
#127: -
#128: 2
#129: 1
#130: -

Hassan Shaban, Recurve
#117: 2
#118: 1
#120: 1
#121: 4
#122: 3
#123: 5
#124: 3
#125: 5
#126: 1
#127: 3
#128: 4
#129: 3
#130: 2

James Russell, CLEAResult
#117: 1
#118: 1
#120: 2
#121: 4
#122: 3
#123: 4
#124: 3
#125: -
#126: 2
#127: 3
#128: 1
#129: -
#130: 5

Mindy Guilfoyle, Franklin Energy
#117: 3
#118: 4
#120: 1
#121: 4
#122: 5
#123: 2
#124: 3
#125: 1
#126: 5
#127: 1
#128: 2
#129: 3
#130: 2

Craig Sinnamon, Power TakeOff
#117: 3
#118: 3
#120: 1
#121: 1
#122: 3
#123: 1
#124: 1
#125: 5
#126: 5
#127: 1
#128: 3
#129: 5
#130: 5

Kyle Monsees, NYSERDA
#117: 2
#118: 2
#120: 1
#121: 4
#122: 3
#123: 4
#124: 3
#125: 5
#126: 2
#127: 1
#128: 4
#129: 3
#130: 1

Andrew Royal, Res-Intel
#117: 1
#118: -
#120: -
#121: 2
#122: 3
#123: 4
#124: 5
#125: 1
#126: 2
#127: -
#128: 1
#129: 1
#130: 2

Lia Webster, Facility Energy Solutions on behalf of EVO
#117: | 1
#118: | -
#120: | 3
#121: | 2
#122: | 2
#123: | -
#124: | -
#125: | -
#126: | 2
#127:   - | -
#128: | 1
#129: | 1
#130: | -

Yassen Roussev, Frontier Energy
#117: 1
#118: 2
#120: 2
#121: 3
#122: 2
#123: 3
#124: 3
#125: 3
#126: 1
#127: 3
#128: 1
#129: -
#130: 2

Jon Koliner, Apex Analytics
#117: 1
#118: 2
#120: 2
#121: 2
#122: 3
#123: 2
#124: 4
#125: 2
#126: 1
#127: 5
#128: 1
#129: 1
#130: 2

Caroline Massad Francis, PG&E
#117: 1
#118: 2
#120: 3
#121: -
#122: -
#123: 5
#124: -
#125: -
#126: 1
#127: 5
#128: 1
#129: 1
#130: 3

Quashaun Vallery, MCE
#117: 1
#118: 3
#120: 3
#121: 2
#122: 4
#123: 4
#124: -
#125: 5
#126: 2
#127: 4
#128: 2
#129: 4
#130: 1

Steve Schmidt, Home Energy Analytics:
#117: 2
#118: 1
#120: 1
#121: 1
#122: 1
#123: 1
#124: 1
#125: 1
#126: 5
#127: 1
#128: 5
#129: 1
#130: 4

Hi Jon-
I posted my priorities but did not receive an email.
Thank you,
Lia Webster
720.470.9297
Please excuse any typos.

Reply to this email directly, view it on GitHubhttps://github.com/energy-market-methods/caltrack/issues/131?email_source=notifications&email_token=ALT4BC6ISF242KWCYCGC6VLPY34YFA5CNFSM4HQGIQTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODW6FWYY#issuecomment-498883427, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALT4BC2F6J67N2JUVMUBBULPY34YFANCNFSM4HQGIQTA.

Here are the tallied results:
#117: 1.54
#120: 1.82
#128: 2.15
#129: 2.18
#118: 2.27
#126: 2.42
#130: 2.64
#121: 2.67
#127: 2.70
#124: 2.89
#122: 2.91
#123: 3.18
#125: 3.30
The averaging spreadsheet can be found here: Prioritization for Sprint #1


echoprint-inverted-index gives error with piping  large dump file to it

actually i wanted to test echoprint by its database : http://echoprint-data.s3.amazonaws.com/echoprint-dump-1.json
and i try to do this :
cat echoprint-dump-1.json|jq -r '.[].code' | echoprint-inverted-index index.bin
and it gives this error :
Traceback (most recent call last):   File "/usr/local/bin/echoprint-inverted-index", line 19, in <module>     create_inverted_index(streamer(sys.stdin), args.indexfile)   File "/usr/local/lib/python2.7/dist-packages/echoprint_server/lib.py", line 57, in create_inverted_index     for batch_index, batch in enumerate(split_seq(songs, 65535)):   File "/usr/local/lib/python2.7/dist-packages/echoprint_server/lib.py", line 30, in split_seq     item = list(itertools.islice(it, size))   File "/usr/local/lib/python2.7/dist-packages/echoprint_server/lib.py", line 78, in parsing_code_streamer     yield decode_echoprint(line.strip())[1]   File "/usr/local/lib/python2.7/dist-packages/echoprint_server/lib.py", line 42, in decode_echoprint     unzipped = zlib.decompress(zipped) zlib.error: Error -5 while decompressing data: incomplete or truncated stream
i think it  happens just when file is being larger , i tested it with small json files and it  works.
any one encounter with this error ?
is this a bug or the problem is just mine ?

This is likely happening because there is a null or a "" in the "code" field of one of the objects.

Hi,
stumbled into this as well. Just put one egrep to avoid the nulls. This is what I did:
$ cat fingerprint.json | jq -r '.[].code' | egrep -v null$ | echoprint-inverted-index index.bin


Update github-advanced-security-dependency-scanning.md

Improve docs to fix 403s in Dependency Scanning.

@juliakm

Can you review this PR?
IMPORTANT: When this content is ready to merge, you must add #sign-off in a comment or the approval may get overlooked.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#sign-off
@grvillic Thank you! Merging now. You can also contribute in our private repo as a member of MicrosoftDocs (add -pr to the repo name).

I'll merge shortly.


DropWhile doesn't need Predicate generic constraint on class

Does DropWhile need to have Predicate in the _DropWhile generic specialization?  It isn't referenced anywhere in the body of the class and when I removed it everything continued to pass tests.

I used some reverse engineering when implemented DropWhile and saw that Apple's Combine used Predicate as a generic parameter for some reason. As of Xcode 11.0 beta 2 AFAICT this is no longer the case.
Addressed in #14.


Live server does not open in browser

Hi!
The live server extension does not open what I code in the browser. I tried a lot of things after looking for solutions on the internet. The last thing I tried was entering the address of the page manually in the URL (http://<IP_ADDRESS>:5500/index.html) but it gives me this: Cannot GET /index.html.
I downloaded the extension on VS Studio and on Chrome. I restarted my computer several times and uninstalled/reinstalled VS Studio and the extension several times as well, it's still not working.
What's strange is that it used to work last week and nothing changed on my side (same computer and everything).
Does anyone have an idea on how I can make it work again?
Also, I am very new to coding so if someone answers please explain like I am 4 years old :)
Thanks!

Soo old... but were you able to get this working?


Does no install with npm command

When I do: "npm install grunt-regenerator --save-dev"
Returns this error:
npm ERR! git clone git://github.com/ariya/esprima.git Cloning into bare repository '/Users/jorgegarridooval/.npm/_git-remotes/git-github-com-ariya-esprima-git-9077e517'...
npm ERR! git clone git://github.com/ariya/esprima.git
npm ERR! git clone git://github.com/ariya/esprima.git fatal: unable to connect to github.com:
npm ERR! git clone git://github.com/ariya/esprima.git github.com[0: <IP_ADDRESS>]: errno=Operation timed out
npm ERR! Error: Command failed: fatal: unable to connect to github.com:
npm ERR! github.com[0: <IP_ADDRESS>]: errno=Operation timed out
npm ERR!
npm ERR!
npm ERR!     at ChildProcess.exithandler (child_process.js:637:15)
npm ERR!     at ChildProcess.EventEmitter.emit (events.js:98:17)
npm ERR!     at maybeClose (child_process.js:735:16)
npm ERR!     at Socket.<anonymous> (child_process.js:948:11)
npm ERR!     at Socket.EventEmitter.emit (events.js:95:17)
npm ERR!     at Pipe.close (net.js:466:12)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/isaacs/npm/issues>

File "build/demo/modules/plugins/responsive-table.html" prettified.
File "build/demo/modules/plugins/shade.html" prettified.
File "build/demo/modules/plugins/tabs.html" prettified.
File "build/demo/modules/plugins/tooltip.html" prettified.
File "build/demo/modules/ruby-helpers/index.html" prettified.
File "build/demo/modules/scss-helpers/animations.html" prettified.
File "build/demo/modules/scss-helpers/css-triangle.html" prettified.
File "build/demo/modules/scss-helpers/index.html" prettified.
File "build/demo/modules/scss-helpers/peicon.html" prettified.
File "build/demo/modules/scss-helpers/svgicons.html" prettified.
File "build/demo/modules/scss-helpers/yml-to-json.html" prettified.
File "build/demo/templates/index.html" prettified.
File "build/demo/templates/layouts/f01-t01-one-column.html" prettified.
File "build/demo/templates/layouts/f01-t02-two-column-right.html" prettified.

File "build/demo/templates/layouts/f01-t03-two-column-left.html" prettified.
File "build/demo/templates/layouts/f01-t04-three-column.html" prettified.
File "build/demo/templates/layouts/index.html" prettified.
File "build/demo/templates/modules/cm01-rich-text.html" prettified.
File "build/demo/templates/modules/cm02-content-tile.html" prettified.
File "build/demo/templates/modules/cm03-downloads.html" prettified.
File "build/demo/templates/modules/cm04-related-links.html" prettified.
File "build/demo/templates/modules/cm05-image.html" prettified.
File "build/demo/templates/modules/cm06-most-popular.html" prettified.
File "build/demo/templates/modules/cm07-hero-banner.html" prettified.
File "build/demo/templates/modules/cm08-child-listing.html" prettified.
File "build/demo/templates/modules/cm10-hero-links.html" prettified.
File "build/demo/templates/modules/cm11-twitter-feed.html" prettified.
File "build/demo/templates/modules/hm01-hero-carousel.html" prettified.
File "build/demo/templates/modules/index.html" prettified.
File "build/demo/templates/modules/qm04-feature-listing.html" prettified.
File "build/demo/templates/modules/sl01-02-sublayouts.html" prettified.
File "build/demo/templates/page-templates/f01-t05-landing.html" prettified.
File "build/demo/templates/page-templates/f01-t06-site-map.html" prettified.
File "build/demo/templates/page-templates/f01-t07-server-error.html" prettifi
ed.
File "build/demo/templates/page-templates/f01-t08-404-page-not-found.html" pr
ettified.
File "build/demo/templates/page-templates/f01-t09a-search-results.html" prett
ified.
File "build/demo/templates/page-templates/f01-t09b-search-results-no-results.
html" prettified.
File "build/demo/templates/page-templates/f01-t10-home.html" prettified.
File "build/demo/templates/page-templates/f02-t01a-collections-list.html" pre
ttified.
File "build/demo/templates/page-templates/f02-t01b-collections-list-no-result
s.html" prettified.
File "build/demo/templates/page-templates/f02-t02-simple-collections-list.htm
l" prettified.
File "build/demo/templates/page-templates/f02-t03-collection-landing.html" pr
ettified.
File "build/demo/templates/page-templates/index.html" prettified.
File "build/demo/useful-classes.html" prettified.
File "build/demo_md/index.html" prettified.
File "build/demo_md/modules/badges.html" prettified.
File "build/demo_md/modules/buttons.html" prettified.
File "build/demo_md/modules/card.html" prettified.
File "build/demo_md/modules/collections.html" prettified.
File "build/demo_md/modules/forms.html" prettified.
File "build/demo_md/modules/icons.html" prettified.
File "build/demo_md/modules/listTable.html" prettified.
File "build/demo_md/modules/modals.html" prettified.
File "build/demo_md/modules/table.html" prettified.
File "build/demo_md/modules/tooltip.html" prettified.
File "build/index.html" prettified.

Done, but with warnings.

C:\Users\gadiki\Documents\middleman\CR>cd C:\Users\gadiki\Documents\middleman\CR
\CR-July-1
C:\Users\gadiki\Documents\middleman\CR\CR-July-1>npm install
npm WARN deprecated<EMAIL_ADDRESS><EMAIL_ADDRESS>is no longer maintained. Upgrade
to<EMAIL_ADDRESS>npm WARN deprecated<EMAIL_ADDRESS>this package has been reintegrated into npm a
nd is now out of date with respect to npm
npm WARN deprecated<EMAIL_ADDRESS>graceful-fs v3.0.0 and before will fail o
n node releases >= v7.0. Please update to<EMAIL_ADDRESS>as soon as possible
. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher
to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher
to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>graceful-fs v3.0.0 and before will fail o
n node releases >= v7.0. Please update to<EMAIL_ADDRESS>as soon as possible
. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated<EMAIL_ADDRESS><EMAIL_ADDRESS>is no longer maintained. Upgrade
to<EMAIL_ADDRESS>npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher
to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher
to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>wrench.js is deprecated! You should check out
fs-extra (https://github.com/jprichardson/node-fs-extra) for any operations you
were using wrench for. Thanks for all the usage over the years.
npm WARN deprecated<EMAIL_ADDRESS>use [cross-spawn](https://github.com/Indigo
United/node-cross-spawn) or [cross-spawn-async](https://github.com/IndigoUnited/
node-cross-spawn-async) instead.
npm ERR! git fetch -a origin (git://github.com/bessdsv/bower-installer.git) fata
l: read error: Invalid argument
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\
node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v5.10.1
npm ERR! npm  v3.8.3
npm ERR! code 128
npm ERR! Command failed: git -c core.longpaths=true fetch -a origin
npm ERR! fatal: read error: Invalid argument
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\gadiki\Documents\middleman\CR\CR-July-1\npm-debug.log
C:\Users\gadiki\Documents\middleman\CR\CR-July-1>bundle install
Fetching https://github.com/middleman/middleman.git
Fetching gem metadata from http://rubygems.org/..............
Fetching version metadata from http://rubygems.org/...
Fetching dependency metadata from http://rubygems.org/..
Resolving dependencies....
Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.9.0
Using thread_safe 0.3.5
Using bundler 1.11.2
Using mime-types-data 3.2016.0521
Using mini_portile2 2.1.0
Using pkg-config 1.1.7
Using rack 1.6.4
Using chunky_png 1.3.6
Using coffee-script-source 1.10.0
Using execjs 2.7.0
Using multi_json 1.12.1
Using sass 3.4.22
Using rb-fsevent 0.9.7
Using ffi 1.9.10
Using eventmachine <IP_ADDRESS>
Using http_parser.rb 0.6.0
Using erubis 2.7.0
Using tilt 1.4.1
Using hike 1.2.3
Using uber 0.0.15
Using kramdown 1.11.1
Using thor 0.19.1
Using tzinfo 1.2.2
Using mime-types 3.1
Using nokogiri 1.6.8
Using rack-test 0.6.3
Using rack-livereload 0.3.16
Using coffee-script 2.4.1
Using uglifier 2.7.2
Using compass-core 1.0.3
Using compass-import-once 1.0.5
Using rb-inotify 0.9.7
Using em-websocket 0.5.1
Using haml 4.0.7
Using sprockets 2.12.4
Using hooks 0.4.1
Using activesupport 4.2.6
Using xpath 2.0.0
Using compass 1.0.3
Using listen 3.0.8
Using sprockets-helpers 1.1.0
Using sprockets-sass 1.3.1
Using padrino-support 0.12.8
Using capybara 2.4.4
Using padrino-helpers 0.12.8
Using middleman-core 3.4.1 from https://github.com/middleman/middleman.git (at v
3-stable@37845e8)
Using middleman-sprockets 3.4.2
Using middleman-livereload 3.3.4
Using middleman 3.4.1 from https://github.com/middleman/middleman.git (at v3-sta
ble@37845e8)
Bundle complete! 2 Gemfile dependencies, 51 gems now installed.
Use bundle show [gemname] to see where a bundled gem is installed.
C:\Users\gadiki\Documents\middleman\CR\CR-July-1>grunt serve
Loading "Gruntfile.js" tasks...ERROR

Error: Cannot find module 'time-grunt'
Warning: Task "serve" not found. Use --force to continue.

Aborted due to warnings.
C:\Users\gadiki\Documents\middleman\CR\CR-July-1>npm install
npm WARN deprecated<EMAIL_ADDRESS><EMAIL_ADDRESS>is no longer maintained. Upgrade
to<EMAIL_ADDRESS>npm WARN deprecated<EMAIL_ADDRESS>this package has been reintegrated into npm a
nd is now out of date with respect to npm
npm WARN deprecated<EMAIL_ADDRESS>graceful-fs v3.0.0 and before will fail o
n node releases >= v7.0. Please update to<EMAIL_ADDRESS>as soon as possible
. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher
to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher
to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>graceful-fs v3.0.0 and before will fail o
n node releases >= v7.0. Please update to<EMAIL_ADDRESS>as soon as possible
. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated<EMAIL_ADDRESS><EMAIL_ADDRESS>is no longer maintained. Upgrade
to<EMAIL_ADDRESS>npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher
to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher
to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>wrench.js is deprecated! You should check out
fs-extra (https://github.com/jprichardson/node-fs-extra) for any operations you
were using wrench for. Thanks for all the usage over the years.
npm WARN deprecated<EMAIL_ADDRESS>use [cross-spawn](https://github.com/Indigo
United/node-cross-spawn) or [cross-spawn-async](https://github.com/IndigoUnited/
node-cross-spawn-async) instead.
npm ERR! git fetch -a origin (git://github.com/bessdsv/bower-installer.git) fata
l: read error: Invalid argument
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\
node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v5.10.1
npm ERR! npm  v3.8.3
npm ERR! code 128
npm ERR! Command failed: git -c core.longpaths=true fetch -a origin
npm ERR! fatal: read error: Invalid argument
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\gadiki\Documents\middleman\CR\CR-July-1\npm-debug.log
C:\Users\gadiki\Documents\middleman\CR\CR-July-1>git fetch
fatal: unable to access<EMAIL_ADDRESS>deloitte-solutions-fed-md.git/': SSL certificate problem: unable to get local is
suer certificate
C:\Users\gadiki\Documents\middleman\CR\CR-July-1>npm install
npm WARN deprecated<EMAIL_ADDRESS><EMAIL_ADDRESS>is no longer maintained. Upgrade
to<EMAIL_ADDRESS>npm WARN deprecated<EMAIL_ADDRESS>this package has been reintegrated into npm a
nd is now out of date with respect to npm
npm WARN deprecated<EMAIL_ADDRESS>graceful-fs v3.0.0 and before will fail o
n node releases >= v7.0. Please update to<EMAIL_ADDRESS>as soon as possible
. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher
to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher
to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>graceful-fs v3.0.0 and before will fail o
n node releases >= v7.0. Please update to<EMAIL_ADDRESS>as soon as possible
. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated<EMAIL_ADDRESS><EMAIL_ADDRESS>is no longer maintained. Upgrade
to<EMAIL_ADDRESS>npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher
to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher
to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>wrench.js is deprecated! You should check out
fs-extra (https://github.com/jprichardson/node-fs-extra) for any operations you
were using wrench for. Thanks for all the usage over the years.
npm WARN deprecated<EMAIL_ADDRESS>use [cross-spawn](https://github.com/Indigo
United/node-cross-spawn) or [cross-spawn-async](https://github.com/IndigoUnited/
node-cross-spawn-async) instead.
npm ERR! git fetch -a origin (git://github.com/bessdsv/bower-installer.git) fata
l: read error: Invalid argument
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\
node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v5.10.1
npm ERR! npm  v3.8.3
npm ERR! code 128
npm ERR! Command failed: git -c core.longpaths=true fetch -a origin
npm ERR! fatal: read error: Invalid argument
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\gadiki\Documents\middleman\CR\CR-July-1\npm-debug.log


Support for rules and events in Models

Support for passing rules and events in the sling model
Description
We are passing rules and events from jcr to sling model
Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] I have signed the Adobe Open Source CLA.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes and the overall coverage did not decrease.
[ ] All unit tests pass on CircleCi.
[ ] I ran all tests locally and they pass.

@vdua There are conflicts, could you resolve it and re-create the PR.


Unused import EmbedMigrations from embed_migrations!()

Setup
Versions

Rust: 1.28.0
Diesel: 1.3.2
Database: SQLite
Operating System macOS

Feature Flags

diesel: chrono, sqlite

Problem Description
What are you trying to accomplish?
Run migrations in an automated integration test.
What is the expected output?
No compiler warnings.
What is the actual output?
   Compiling trackpay v0.1.0 (file:///Users/djc/src/trackpay)
warning: unused import: `EmbedMigrations`
   --> tests/simple.rs:203:1
    |
203 | embed_migrations!();
    | ^^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(unused_imports)] on by default
    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

I cannot reproduce this on the nightly compiler, though.
Are you seeing any additional errors?
No.
Steps to reproduce
Diesel-relevant changes that triggered this:
diff --git a/tests/simple.rs b/tests/simple.rs
index c409070..e175794 100644
--- a/tests/simple.rs
+++ b/tests/simple.rs
@@ -1,6 +1,9 @@
+extern crate diesel_migrations;
@@ -13,13 +16,29 @@
+    embedded_migrations::run(&*ctx.connection()).unwrap();
@@ -183,3 +202,5 @@
+embed_migrations!();

Checklist

[x] I have already looked over the issue tracker for similar issues.
[x] This issue can be reproduced on Rust's stable channel. (Your issue will be
closed if this is not the case)

Duplicate of #1739.
(Rustc uses the derive be in the error message, so this does not point to the actual unused important l

Can we leave this open until this fix is brought into the 1.3 branch?

We will not be backporting this to 1.3

@sgrif -- with all due respect, without any rationale given, your response to the backporting request comes off as rather curt.
Is there some policy against backporting? Is backporting excessively hard/expensive for this project? It seems like low-hanging fruit for users who get a false positive compiler warning, to me.


[Question]: ReACT agent talking to itself and hallucinating

Question Validation

[X] I have searched both the documentation and discord for an answer.

Question
I'm new to creating a custom ReACT agent to query my data using the RAG technique.
It turns out that my locally running LLama2 7B model(Using Ollama) does fine with questions about my data(I added the retriever as a Queryengine tool) but for casual conversations, it ends up calling the tool nevertheless and hallucinates.
To overcome I created a separate index for casual conversations and added the retriever as another query engine tool. As expected when I start the casual conversation it does end up calling the specified tool but later hallucinates by talking to itself(at least that's what I think).
Is it because I'm using a lightweight local model or do I have to change how I approach it?
Here is my code. Since the ReACT used to call tools if I started a casual convo, I had to add another index of casual conversations in the pinecone db. The data I used,is also attached.
I want the model to use its already pre-built-in knowledge like casual convo and reply based on that instead of relying on a tool, even if it does rely on the tool it doesn't use the information I provided. Its like the agent is using the information it retrieves as part of its internal thinking process and mistakenly treating it as a new input rather than forming a final response.You can view the attached image for more clarity.Agent is able to respod to a "hi" using the tool but it hallucinates when I ask "how are you doing?"

index_name = "custom-data"
pinecone_index = pc.Index(index_name)
pinecone_index_2 = pc.Index("casualconversation")

vector_store = PineconeVectorStore(pinecone_index=pinecone_index)
vector_store_2 = PineconeVectorStore(pinecone_index=pinecone_index_2)

vector_index = VectorStoreIndex.from_vector_store(vector_store=vector_store)
vector_index_2 = VectorStoreIndex.from_vector_store(vector_store=vector_store_2)

llm = Ollama(model="llama3", request_timeout=1000000)
retriever = VectorIndexRetriever(index=vector_index, similarity_top_k=5)
retriever_2 = VectorIndexRetriever(index=vector_index_2, similarity_top_k=5)

tools = [
    QueryEngineTool(
        query_engine=RetrieverQueryEngine(retriever=retriever),
        metadata=ToolMetadata(
            name="phc_data",
            description="this has data for the company XYZ ",
        ),
    ),
    QueryEngineTool(
        query_engine=RetrieverQueryEngine(retriever=retriever_2),
        metadata=ToolMetadata(
            name="casualconversation",
            description="Use this whenever the user asks a casual question or for casual conversations",
        ),
    ),
]
agent = ReActAgent.from_tools(
    tools=tools,
    llm=llm,
    verbose=True,
    # context=context
)

response = agent.chat("Hi")
print(str(response))
response=agent.chat("How are you doing?")
print(str(response))

1 on this. I had to talk to the raw llm and add my previous messages to the raw query string, instead of using ReactAgent since it kept doing the weirdest/most unnecessary looping to a simple "Hi"

any fix for this, In my case, the Agent is posing a question but attempts to process the response on its own instead of directing it to the user for input?


Refactor/reengineer ExtDataGridComp

Some requirements I have

Format for config will be redone from scratch

Allow for optional or default arguments. Current space separated format does not allow for this at all and must go.
Should be YAML and not something like the CSV used by old auto-code generator.

Prefetching to actually make use of the asynchronous IO ability of server.
Refactor code, beyond the config the handling of the logic to find the correct file to read has gotten so convoluted it is almost impossible to follow and would be my next priority.
Probably want fine grain unit testing, is what I have too high level?

Current situation with the config file:
The ExtData currently consists of single line, space separated entries in  Primary entry blocks plus the ability to have what Arlindo and Anton first termed "derived entries"
PrimaryExports%%
IMPORT_NAME 'kg C m-2 s-1'      N Y 0 none     none     file_var_name file_template <optional file reference time and frequency>
%%

In some sense this is like a dictionary in that the first entry is a key but the parsing of this just a pain in the ass now with ESMF config. The rest of the entries have specific fixed meanings.
What is wrong with this now.

This is inextensible with new options, there is all ready an optional entry after the file template, but I can't add any new ones as the need arises or restructure the existing ones to make logical sense.
Some of these aren't even used, the units were added at the start when Anton/Arlindo coded this but we never use them so why does every have them.
A lot of these could just have defaults and no need to even have an entry unless you want to override, for example, the scaling/shifting, most of the time that is not used. But going back to 1, there is no flexibility for you can put so even if 99% of the entries take the same no-opt value it has to be there.
Because of 1 and 3 too much functionality was added to the existing entries. For example, there was in the beginning the refresh template that controls when the pointer is updated, i.e. every timestep or some other interval, but whenever it is updated it time interpolates to the current time. Then someone asked for the ability to interpolate to a shifted time, then someone asked for the ability to not time interpolate at all, just fix the value until the next time in the files, so now 0, F0, and 0;3000 are valid entries, among others, because there is no format that allows for clear and new keywords to expand functionality as needed.

Each entry could be single yaml key/dictionary like so with the keywords I decide are needed for a clearer expression of provided capabilities.
T:
   file_var: T
   file_template: file_path
   regrid_method: bilinear
   scaling: none
   shift: none
   refresh_frequency: 0
   time_interpolation: True
   allow_extrapolation: False
BIOMASS:
   file_var: biomass
   file_template: file_path
   regrid_method: conservative
   scaling: none
   shift: none
   refresh_frequency: 0
   time_interpolation: True
   allow_extrapolation: False

this could get quite long and verbose, but in reality many entries could still be on a single line because most people will be using the defaults
T: {file_var: T, file_template: file_path}
BIOMASS: {file_var: biomass, file_template: file_path}
What about some other grouping?
Group by file template if you have a bunch of entries using a common file template.
To me this seams unnatural because I'm getting a list of names coming into ExtData so these seem like the most natural "keys"
If yaml parser supported anchors for example that would be a way to avoid repeatedly typing log file paths.

Note for myself, the keys I would use for each entry:
file_var (variable name on the file)
file_template (file template)
file_reference_time (file reference time, needed if file frequency can't be guessed from template)
file_frequency (file frequency, needed if the file frequency can't be guessed from template)
regrid_method (obvious)
climatology (treat dataset a climatology, some thought needed this could be a logical or a year)
allow_extrapolation (currently a global option added by harvard, should really be on per entry basis)
scaling (obvious)
shifting (obvious)
time_interpolation (time interpolate or persist)
refresh_frequency (frequency of pointer update)
refresh_reference_date (reference date for pointer update if applicable)
time_offset (offset time used for time interpolation)
vector_partner (do I have a vector pair)
vector_component (which component am I)

For climatology, there is also option D for day-of-week scale factors used in GCHP. So logical or year won't quite work unless we add another key for that option.

One thing we could do, though probably not necessary right now, is keep/add things like units, standard_name, long_name, etc., the "basic" bits used for CF compliance.
I guess standard_name should eventually be what the template is based on, but I just have this feeling in the back of my head that Arlindo, or someone, will want units back...

In theory we will be obtaining units from the NUOPC field dictionary.   They are looked up with the standard name.

What about some other grouping?
Group by file template if you have a bunch of entries using a common file template and other common parameters, ala History?
To me this seams unnatural because I'm getting a list of names from the incoming fields into ExtData so these seem like the most natural "keys"
If yaml parser supported anchors for example that would be a way to avoid repeatedly typing long file paths.

Maybe two sections.  The first is a set of templates with the appropriate key-value pairs for that template.   The second is a list of variables that specifies which template they use?

@mathomp4 if the file contains units, then my expectation would be that the system would do unit conversions if the units did not agree with what the model provides.   Or at the very least that it would fail if the units don't agree.   Is that the current behavior?

From a GCHP-perspective, I support excluding the units. HEMCO has automatic unit conversions and it has been a continual source of confusion to users. Do the units reflect what is coming in or what the target is? If units are to be included then it needs to be very clear what they mean and what the resulting behavior will be. If they are simply the units in the file then it seems redundant and extra work for proper configuration.

@mathomp4 if the file contains units, then my expectation would be that the system would do unit conversions if the units did not agree with what the model provides. Or at the very least that it would fail if the units don't agree. Is that the current behavior?

Right now there is no checking of the units between the field and the file.

Seb, Lizzie, good discussion today.
I think the biggest thing I got out of it is that if we do the extrapolation right and have the notion a user specified valid range for the file it greatly simplifies the extrapolation algorithm and makes the need for a separate notion of a climatology redundant.
This is what I am thinking for the input format that captures the existing functionality, we can expand from this once I take a look at what you do in HEMCO for the extra extrapolation options.  In addition we do have this notion of a derived entry in the existing structure. One possibility is those could be handled as any other rule, but the key difference is they do not point to a dataset but have the expression used to evaluate the field instead.
First we have a data_set section where the file streams are specified. Then we have the rules for the fields that reference a particular data_set entry
A few things to note.

Tom suggested keeping the U;V notation for vectors. I can split these up as two entries when I parse the file.
For specifying any time interval or time I want to try to stick to the ISO time format: https://en.wikipedia.org/wiki/ISO_8601
For the data_sets, I can think of these 3 keywords:
file_reference_time:
file_frequency:
valid_years:
The first two are needed for describing the file structure on disk in the case it is not obvious from the template (i.e. files with a minute token in the template) that is currently contained in the one optional entry in the current RC file format.
The valid_years or some other name would encompass what we talked about today for specify a file range to assist with extrapolation as well as eliminate the climatology.

For the rules
file_var: file on disk (no default *)
file_template_key: key for dataset (no default *)
allow_extrapolation: whether to allow extrapolation outside of specified range in dataset (default ?)
regrid_method: regridding method (default bilinear)
refresh_reference_date: a reference date used in conjunction with the refresh frequency (default application start date)
refresh_frequency: frequency to update the pointer from reference date (default update every time)
time_offset: offset to time used when computing target time (default no offset)
time_interpolation: either linear between brackets or piece constant from left (default linear)
scaling: scale factor for field (default none)
shift: shift applied to field (default none)
* expression: expression used to evaluate field instead of a data set (derived entry in old parlance, needs thought)
As an example
data_sets:
   fstream1: {file_template: path1}
   fstream2: {file_template: path2, file_reference_time: "2000-04-14T21:00", file_frequency: PT3H}
   qfed_v2.5: {file_tempalte: path3, valid_years: "2000-2005"}
   arctas:  {file_tempalte: path4}

rules:
   T: {file_var: T, file_template_key: fstream1}
   Q: {file_var: QV, file_template_key: fstream2, interpolation_method: linear}
   U;V:
      file_var: U;V
      file_template_key: fstream2
      allow_extrapolation: False
      regrid_method: REGRID_METHOD_CONSERVATIVE
      refresh_reference_date: "1990-01-01Y00:00"
      refresh_frequency: P1D
      time_offset: PT12H
      time_interpolation: piecewise
      scaling: 2.0
      shift: 1.0
   CO_RegionMask: {file_var: REGION_MASK, file_template_key: arctas, regrid_method: REGRID_METHOD_VOTING, refresh_frequency "once" }
   CO_BIOMASS: {file_var: biomass, file_template_key: qved_v2.5}
   CO_BIOMASSbbae: { expression: regionmask(CO_BIOMASS,CO_regionMask;3,9,10) }


Downloading related images produces incorrect directory syntax

When downloading with the --related-images parameter, the downloader tries to create a directory with an invalid name and crashes.
For example (Windows 10, Python 3.6):
python google_images_download.py -k "disc brake" -l 10 -ri
...produces:
Item no.: 1 --> Item name = disc brake
Evaluating...
Starting Download...
Completed Image ====> 1. 1200px-disk_brake_dsc03682.jpg
Completed Image ====> 2. 1175-front.jpg
...
Completed Image ====> 10. car-disc-brake-cluster.jpg
Getting list of related keywords...this may take a few moments
Now Downloading - disc brake - disc+brake,g_1:motorcycle:SsiXX7r2me8%3D&usg=AI4_-kQTz_e6pgr8yN7IAZTX6buWsweNYg&sa=X&ved=0ahUKEwjC-_Hw0f_gAhWRonEKHYzLB1kQ4lYIKCgB
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'downloads\\disc brake - disc+brake,g_1:motorcycle:SsiXX7r2me8%3D&usg=AI4_-kQTz_e6pgr8yN7IAZTX6buWsweNYg&sa=X&ved=0ahUKEwjC-_Hw0f_gAhWRonEKHYzLB1kQ4lYIKCgB'
The create_directories() function is trying to create a directory that contains invalid characters, or sometimes the directory path is too long.
I think the problem arises because at the end of the download() function, it calls get_all_tabs() and extracts item_name which becomes appended to the path. I can probably fix this and submit a pull request, although am a bit unsure what the desired behaviour should be, so any suggestions welcome.

I second this finding. Would it make sense to implement the function, so that it creates a forthrunning directory structure? ie. 1,2,3,4 etc for each related image? I have not checked the output that it supposed to generate. The error also happening for a single word, ie: googleimagesdownload -k "paris" -l 5 -ri

@4OH4 @captainantilles this was recently fixed in #177 . Can you confirm if new version of this lib resolves the issue for you?

googleimagesdownload -k "paris" -l 5 -ri produces "ValueError: stat: path too long for Windows" as an error still. I tried to update via pip, not sure if that gives me the correct version with the fix included. Is there a command to verify the build/version?

@captainantilles
you can upgrade the library with the command
pip install google-images-download --upgrade
then you can use the following command to verify the version
pip freeze | grep google-images-download
let me know if version 2.6.1 still gives you this issue...

@hardikvasa I still have the problem. the package is up to date. Please see the log og the commands below.
`C:\Temp>pip install google-images-download --upgrade
Requirement already up-to-date: google-images-download in c:\users\milterm\appdata\local\programs\python\python37-32\lib\site-packages (2.6.1)
Requirement already satisfied, skipping upgrade: selenium in c:\users\milterm\appdata\local\programs\python\python37-32\lib\site-packages (from google-images-download) (3.141.0)
Requirement already satisfied, skipping upgrade: urllib3 in c:\users\milterm\appdata\local\programs\python\python37-32\lib\site-packages (from selenium->google-images-download) (1.24.1)
C:\Temp>pip freeze
asn1crypto==0.24.0
beautifulsoup4==4.7.1
certifi==2019.3.9
cffi==1.12.2
chardet==3.0.4
cryptography==2.6.1
ffmpeg==1.4
google-images-download==2.6.1
idna==2.8
lxml==4.3.3
pycparser==2.19
pyOpenSSL==19.0.0
requests==2.21.0
selenium==3.141.0
six==1.12.0
soupsieve==1.9.1
urllib3==1.24.1
youtube-dl==2019.4.24
C:\Temp>googleimagesdownload -k "paris" -l 5 -ri
Item no.: 1 --> Item name = paris
Evaluating...
Starting Download...
Completed Image ====> 1. paris-2017-home?wid=2880&hei=1280&fmt=jpeg&crop=9,336,2699,1200&anchor=1358,936&qlt=75,0&fit=wrap&op_sharpen=0&resMode=sharp2&op_usm=0,0,0,0&iccEmbed=0&printRes=72.jpg
Completed Image ====> 2. paris-cityscape-overview-guide.jpg
Completed Image ====> 3. a330628091ede7eb1548d6cda58e0357.jpg
Completed Image ====> 4. @david_fossa-2.jpg
Completed Image ====> 5. 15_HI_Paris_Eiffeltaarnet_6.jpg
Getting list of related keywords...this may take a few moments
Now Downloading - paris - paris places&sa=X&ved=0ahUKEwiyquTduYbiAhWNaVAKHSxHB2MQ4lYIKSgD">
Traceback (most recent call last):
File "C:\Users\milterm\AppData\Local\Programs\Python\Python37-32\Scripts\googleimagesdownload-script.py", line 11, in
load_entry_point('google-images-download==2.6.1', 'console_scripts', 'googleimagesdownload')()
File "c:\users\milterm\appdata\local\programs\python\python37-32\lib\site-packages\google_images_download\google_images_download.py", line 922, in main
paths = response.download(arguments)  #wrapping response in a variable just for consistency
File "c:\users\milterm\appdata\local\programs\python\python37-32\lib\site-packages\google_images_download\google_images_download.py", line 902, in download
self.create_directories(main_directory, final_search_term,arguments['thumbnail'])
File "c:\users\milterm\appdata\local\programs\python\python37-32\lib\site-packages\google_images_download\google_images_download.py", line 487, in create_directories
if not os.path.exists(sub_directory):
File "c:\users\milterm\appdata\local\programs\python\python37-32\lib\genericpath.py", line 19, in exists
os.stat(path)
ValueError: stat: path too long for Windows
C:\Temp>`

@hardikvasa See the full log here: https://www.dropbox.com/s/agfovamiw0s42f3/output.log?dl=0

@captainantilles the original issue was fixed in #177 . What you are referring to is a new bug that was caused due to some changes in the source pages retrieved. Tracking it in #234 . Closing out this one.


Revert "Junit 4.13 and juptier 5.7.0"

Reverts vespa-engine/vespa#15043
Build fails with:
[INFO] Building cloud-tenant-base-dependencies-enforcer 7-SNAPSHOT
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (default-cli) @ cloud-tenant-base-dependencies-enforcer ---
[WARNING] Rule 0: org.apache.maven.plugins.enforcer.BannedDependencies failed with message:
Found Banned Dependency: org.junit.jupiter:junit-jupiter-api:jar:5.6.2
Found Banned Dependency: org.junit.platform:junit-platform-commons:jar:1.6.2

PRs were merged together, but ended up in different builds. Should be fine.

Urgh, still fails ...

Ah, there are more ...

Should be fixed by https://git.vzbuilders.com/vespa/vespa-yahoo/pull/5352 and https://github.com/vespa-engine/vespa/pull/15045


Adding CORS support and updating Sails Integration

This fixes a bug in path concatenation, improved the CORS support and update the README file to correctly integrate with Sails 0.12.3 version.

Adding route exclude feature. User can pass an Array of routes to exclude from APIDoc.


[config] Provide a mechanism to save config to disk

If you start cloudprober with flag --probes_config_save_path, it will automatically save new probes config to the provided path on any dynamic programming through gRPC.

Fixes https://github.com/cloudprober/cloudprober/issues/645.


[Add] <Top 100+ Machine Learning Projects for 2023 [with Source Code]>

Site URL
https://www.geeksforgeeks.org/machine-learning-projects/
Description of the above provided site
In this article, you’ll find the top 100+ latest projects and Ideas on Machine Learning which are beneficial for both beginners as well experienced professionals. These projects are specially made for the students that start their journey in Machine Learning and Data Science.
Category
Artificial Intelligence
Sub Category
Machine learning
Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I am willing to work on this issue (optional)

Go ahead @digpatel123! :)


Strings of dashes in code blocks are removed

Related to #4 long strings of dashes in code blocks seem to become a single dash
→ node -e 'console.log(require("render-readme")("\`\`\`\n------------------------------\n\`\`\`"))'

-

they come through fine from markdown-it
→ node -e 'console.log(require("markdown-it")().render("\`\`\`\n------------------------------\n\`\`\`"))'

------------------------------

Fixed in https://github.com/rlidwka/render-readme/commit/8d40f8935ac77d3ea8b6da80c53e260663cf7189, thanks.


New Section: Treatment of SSI

Treatment of SSI new section, move these questions here from post-op risk factors:

Post Op Antibiotic Used (Yes/No)
Antibiotics used (List of antibiotics)
Duration of antibiotics (No. of Days)
Indication ()

@bushramustafa please update doc

also @bushramustafa  to confirm placement of the this section


rosgraph_msgs/Log

I have added rosgraph_msgs/Log type in order to be able to test /rosout for example. A converter was needed to use it with hypothesis. The only thing missing is the tests for this new type which I will implement soon enough.
PS. I have tested it under a real usage scenario and it just works fine :)

@XabierPB Btw: Pls try to add functionality inclusive tests + static Analysis and squash as much as possible commits before creating a PR. (I squashed the commits for you.) Pls consider that all explicit message strategies will be obsolete as soon as #59 is implemented. Thx.


Default listener listens to wrong interface

Hi,
when running a wnameless/docker-oracle-xe-11g container using docker-compose with a configured link to another container, you got more than one interface.
The listener listens to the docker interface of the host, but I expected that it listens to the docker-compose interface.
Example:
docker interface: eth1
IP: <IP_ADDRESS>
docker-compose interface: eth2
IP: <IP_ADDRESS>
/etc/hosts is also configured to use the eth2 IP:
<IP_ADDRESS>        f4c4a3638c11
hostname resolves into eth2 IP. The linked docker-compose container reaches the wnameless/docker-oracle-xe-11g container through the eth2 IP address as well.
Default listener:
SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = /u01/app/oracle/product/11.2.0/xe)
      (PROGRAM = extproc)
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
      (ADDRESS = (PROTOCOL = TCP)(HOST = f4c4a3638c11)(PORT = 1521))
    )
  )

DEFAULT_SERVICE_LISTENER = (XE)

A fix could be an environment variable that sets a specific interface or using the configured IP address in /etc/hosts instead of the hostname.
If you need more information please have a look at this link or just ask:
https://stackoverflow.com/questions/46254132/jdbc-connection-between-docker-containers-docker-compose

@KaiNahrgang I am having the same issue atm.   Is there a work aroudn for this?  Is the idea here that the HOST = <IP_ADDRESS> ?

@cmosguy Yes thats the idea. My workaround was to change the startup.sh to use the IP from the host file instead of the hostname. You can get the correct IP from /etc/hosts


Add date stamp to blog yaml front matter

i.e.:
date: 2010-09-15 14:40:45
so that carebot knows what published time is since jekyll sets everything to midnight.

[ ] existing posts
[ ] new post drafts


modeld: eliminate the memory copy to GPU

Continuation of https://github.com/commaai/openpilot/pull/2197

Doesn't pass the model replay test. Need to check why the model outputs change.

Doesn't pass the model replay test. Need to check why the model outputs change.

The reason the model output change I believe is because the test is broken.
If using the ION implementation for visionbuf_allocate_cl, the memcpy is okay since that's allocated with the UNCACHED flag. But it doesn't work for the CL implementation.
So I believe we've been testing with 0s the whole time.

I made another PR to add the sync: https://github.com/commaai/openpilot/pull/2675. Let's see if that also breaks the tests.


Fix download badge not appearing

File:
https://github.com/Abdur-rahmaanJ/hooman/blob/master/README.md

expected

How to fix?
Copy the badge at
https://www.pepy.tech/projects/shopyo

I'll take it

Issue solved by #52


[18.09 backport] Skip kernel-memory tests on RHEL/CentOS daemons

backport of https://github.com/moby/moby/pull/38493 for 18.09; cherry-pick was clean
RHEL/CentOS 3.10 kernels report that kernel-memory accounting is supported,
but it actually does not work.
Runc (when compiled for those kernels) will be compiled without kernel-memory
support, so even though the daemon may be reporting that it's supported,
it actually is not.
This cause tests to fail when testing against a daemon that's using a runc
version without kmem support.
For now, skip these tests based on the kernel version reported by the daemon.
This should fix failures such as:
FAIL: /go/src/github.com/docker/docker/integration-cli/docker_cli_run_unix_test.go:499: DockerSuite.TestRunWithKernelMemory

assertion failed:
Command:  /usr/bin/docker run --kernel-memory 50M --name test1 busybox cat /sys/fs/cgroup/memory/memory.kmem.limit_in_bytes
ExitCode: 0
Error:    <nil>
Stdout:<PHONE_NUMBER>854771712

Stderr:   WARNING: You specified a kernel memory limit on a kernel older than 4.0. Kernel memory limits are experimental on older kernels, it won't work as expected and can cause your system to be unstable.

Failures:
Expected stdout to contain "52428800"

FAIL: /go/src/github.com/docker/docker/integration-cli/docker_cli_update_unix_test.go:125: DockerSuite.TestUpdateKernelMemory

/go/src/github.com/docker/docker/integration-cli/docker_cli_update_unix_test.go:136:
    ...open /go/src/github.com/docker/docker/integration-cli/docker_cli_update_unix_test.go: no such file or directory
... obtained string = "9223372036854771712"
... expected string = "104857600"

----------------------------------------------------------------------
FAIL: /go/src/github.com/docker/docker/integration-cli/docker_cli_update_unix_test.go:139: DockerSuite.TestUpdateKernelMemoryUninitialized

/go/src/github.com/docker/docker/integration-cli/docker_cli_update_unix_test.go:149:
    ...open /go/src/github.com/docker/docker/integration-cli/docker_cli_update_unix_test.go: no such file or directory
... value = nil

Signed-off-by: Sebastiaan van Stijn<EMAIL_ADDRESS>(cherry picked from commit 1e1156cf67233cf8eaee2da9c17465ff0d9c2aa0)
Signed-off-by: Sebastiaan van Stijn<EMAIL_ADDRESS>
- What I did
- How I did it
- How to verify it
- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

ping @vdemeester @seemethere @andrewhsu @kolyshkin PTAL