Weird behaviour of "Evaluate" feature

🐞 bug report
Describe the bug
When looking up some items using the Evaluate feature (Ctrl/Alt + D) it seems to behave in a way that appears to be malfunctioning. Specifically when looking up "Mortal Hope" it shows the right value on the top half of the window but weird 0-0.3c listings on the bottom. When clicking on the currency icon it shows that the evaluated item was not "Mortal Hope" but map fragments in general.
After pressing the reset button (or clicking the name filter) in the "Evaluate" window, it shows the correct listings with the correct prices. (I am not sure if this is an error on my part and it's supposed to show map fragments as a whole, but that seems unliekly.)
Similarly when looking up "Atziri's Promise", it shows the correct value for the poe.ninja part but says there are no results on the bottom part. Pressing reset (or manually disabling all mod filters) - again - fixes the issue but looking up the item again yields the same result.
After testing a bit more it seems that most - if not all - map fragments show this behaviour so it might be intended (and if so, sorry for wasting your time).
/edit: The faulty mod for the Atziri's Promise seems to be the "Total to Chaos Resistance". Disabling that filter fixes the issue temporarily.
To Reproduce
Steps to reproduce the behavior:

Press Ctrl+D while hovering over Mortal Hope / Atziri's Promise

Expected behavior
It should be showing the poe.ninja price in the top half (working correctly) and the current trade listings on the bottom part (not working until you press the reset button).
Screenshots
https://i.imgur.com/FtbT7SU.png    -  Result when evaluating Mortal Hope
https://i.imgur.com/uU3LZ6u.png -   Result after pressing the "reset" button
https://i.imgur.com/QN1BUnH.png - Result when evaluating Atziri's Promise
https://i.imgur.com/QcII6ti.png  - Result after pressing the "reset"
🌍  Your Environment

OS: Windows 10 (64bit) Pro
Version: 0.6.10 (Setup)
PoE: Steam (current version)

0.6.11 (2020-03-24)

fix remove typeId only on weapon, armour and accessory


Open grafana in new browser tab if possible.

I find the current behavior of opening grafana in a new window annoying and prefer when the dashboard opens in a separate tab. But I understand that this is a matter of tastes. So feel free to disregard.

I find the current behavior of opening grafana in a new window annoying and prefer when the dashboard opens in a separate tab. But I understand that this is a matter of tastes. So feel free to disregard.

FF is my default browser and for me there's no difference in behavior between open_new and open_new_tab. I like the "open in a new browser tab" behavior so I'm happy to merge.


[homework: asking, writing, thinking, doing, 🔴 red-teaming 😈] Critique what you have built; Real-World Data; Historiography of Data, Incentives, & AI

Reading
Pro tip: try using an app on your phone or computer to read aloud to you at 1.5x speed! This can save time and make it easier to absorb information while not being tied down to a computer or device visually.

[x] Review the bug report we submitted: https://github.com/duckdb/duckdb/issues/7015 and the fix to avoid the bug we ran into for analyzing Zulip data: https://github.com/onefact/datathinking.org-codespace/blob/main/notebooks/in-class-notebooks/230420-zulip-chat-duckdb-loading.ipynb
[x] Review several editions of Style, Clarity and Grace (https://bookshop.org/p/books/style-lessons-in-clarity-and-grace-joseph-williams/8980182 - Libgen)
[x] [climate harms] Read https://arxiv.org/ftp/arxiv/papers/2104/2104.10350.pdf
[x] [global context thanks to @indrekromet] Read https://www.palladiummag.com/2023/02/23/the-west-lives-on-in-the-talibans-afghanistan/
Preparation for guest lecture

[x] Read https://arxiv.org/abs/2302.10329
[x] https://www.economist.com/science-and-technology/2023/04/05/it-doesnt-take-much-to-make-machine-learning-algorithms-go-awry (https://archive.ph/5l1k3#selection-1038.0-1038.1)

[x] [David Foster Wallace on Consumption] https://harpers.org/wp-content/uploads/2008/09/HarpersMagazine-1996-01-0007859.pdf
[x] [Cross-Cultural Research and Ethnography] Read excerpt from https://www.thefieldstudyhandbook.com/ - https://drive.google.com/file/d/1F9zr1pHesGPSOTtXLQu4hTxOGu7zoIRx/view?usp=sharing
[ ] [Status games, social engineering] Read the chapter on status games in Impro (https://bookshop.org/p/books/impro-improvisation-and-the-theatre-keith-johnstone/11721204 or Libgen)
[ ] [Closure on the data journey begun in the first class on COVID] https://www.wsj.com/articles/covid-origin-china-lab-leak-807b7b0a
[ ] [History of Computing and Data Thinking] Read the Epilogue of Computer Age Statistical Inference by Hastie et al., https://hastie.su.domains/CASI_files/PDF/casi.pdf
[ ] [Basics of GitHub] https://github.com/onefact/github-starter-course
Systems Thinking and Incentives:

[ ] [Context on how big 4 consulting firms may/may not be replaced by AI] https://www.lrb.co.uk/the-paper/v44/n24/laleh-khalili/in-clover (https://archive.ph/yC1YQ)
[ ] [High finance & geopolitics] https://www.theguardian.com/world/2016/jul/28/1mdb-inside-story-worlds-biggest-financial-scandal-malaysia
[ ] [High finance & geopolitics] https://www.bloomberg.com/news/articles/2014-08-21/mugabes-bailout-och-ziff-investment-linked-to-zimbabwe-despot#xj4y7vzkg?leadSource=uverify wall
[ ] [Predatory Investing] https://www.newyorker.com/magazine/2018/08/27/paul-singer-doomsday-investor
[ ] [Global Geopolitics of AI] Chapter 1 - China's Sputnik Moment - and Chapter 4 - A Tale of Two Countries - of Kai-Fu Lee's AI Superpowers (https://bookshop.org/p/books/ai-superpowers-china-silicon-valley-and-the-new-world-order-kai-fu-lee/6960836 or Libgen)

Doing

[ ] Edit https://en.wikipedia.org/wiki/Data_thinking using the learner definitions of data thinking
[x] Try playing one round of https://lost-at-sql.therobinlord.com/
[x] Install https://marketplace.visualstudio.com/items?itemName=charliermarsh.ruff and read the documentation, and activate the extension for python files opened in Visual Studio Code: https://beta.ruff.rs/docs/tutorial/
[x] Red-teaming Previous Homework:

[x] [Set timer: 10 minutes maximum] Before asking GPT (to avoid biasing yourself!), write your own critique of your homework. Questions to consider could be: what could be improved? What doesn’t make sense in the visualization? What doesn’t make sense in the writing?
[x] [Set timer: 10 minutes maximum] Ask GPT-4 to critique the homework or the visual using your favorite data thinking definition we have so far.
[x] [Set timer: 10 minutes maximum] Add this critique as a comment on the homework’s github issue, and link to the critique in Zulip.
[x] [Set timer: 10 minutes maximum] Repeat this exercise for the previous homework of one other person in the class

Creating

[x] Generate art or diagrams or logos using https://beta.dreamstudio.ai/generate and post on Zulip chat
[x] Use https://poly.cam/ to scan an object or location of your choosing; share the link on Zulip (bonus: feel free to try BlenderGPT: https://github.com/gd3kr/BlenderGPT to modify the 3D scan)
[ ] Use duckdb to load the Zulip data into a SQL database, and use altair to visualize the data, following https://github.com/onefact/datathinking.org-codespace/blob/main/notebooks/in-class-notebooks/230420-debugging-duckdb-altair-falcon-3-1-1-service-requests.ipynb (run this notebook with this data: https://data.cityofnewyork.us/Social-Services/311-Service-Requests-from-2010-to-Present/erm2-nwe9 - and try changing the data source to be the Zulip data and post a visualization of the chat data on Zulip)

Thinking

[ ] In a comment on this issue, propose a research question that you will aim to answer the upcoming final homework (and cross-post it on Zulip for feedback); include a rationale for why this topic matters to you, and decisions you need to make, and a clear articulation of the stakes. This can be a paragraph or several. Perhaps start with your experience report from the first homework.

Listening

[ ] Listen to this podcast with Emily Bender: https://open.spotify.com/episode/2ILGlkAXAt4xfuKHwIV2on

Large Language Model Access Checklist

[x] Try GPT-4 at https://chat.openai.com/chat (ask on Zulip if you need access)
[ ] Try https://serge.chat/
[ ] Try https://bard.google.com
[ ] Try https://console.anthropic.com/claude (ask on Zulip if you have not received an invite)
[x] Try https://www.phind.com/
[x] Try Copilot (https://github.com/features/copilot; free with GitHub Education Pack)
[x] Try Bing Chat (https://bing.com/chat)
[x] Try Huggingface Chat (hf.co/chat)

My Analysis on my report:
After analyzing my report, I understood that I’ve needed to spend more time on data research rather than just trying to predict anything from that data. Using logistic regressions just to predict the sender id might not be a good approach. Rather than that I’d better use RNN model that would be trained on this data to predict the style of the writings of every specific user and then that model would be more accurate in predicting which user wrote those messages.
Also I needed to be more scientifically correct when writing my report, add more categories and data plotting.
But, overall it’s a pretty good try of using ML methods on the raw chat data.
Chat gpt answer:
This research conducted an analysis of Zulip chat data with the aim of predicting the sender ID based on text content. The approach included preprocessing the text data, converting it into numerical format using Word2Vec embeddings, and training logistic regression and linear regression models.
While this research is quite comprehensive, there are areas where it could be potentially improved:

Text Preprocessing: The text preprocessing step only includes tokenization. It could be improved by including other techniques such as lemmatization (converting words to their base form), removing punctuation, converting all text to lower case, and possibly handling emoticons and other special characters which are common in chats.
Feature Engineering: It appears that the features used for prediction are solely based on Word2Vec embeddings. More features could be extracted from the text that may be helpful in predicting the sender ID. These could include message length, use of specific words or phrases, use of punctuation, time of message, etc.
Model Selection: The use of logistic and linear regression is a good starting point, but there are many other models that might give better performance. For text classification tasks, models like Support Vector Machines (SVM), Random Forests, Naive Bayes, or even deep learning architectures like Convolutional Neural Networks (CNN) or Recurrent Neural Networks (RNN) could potentially yield better results.
Hyperparameter Tuning: The research does not mention if any hyperparameter tuning was performed. Tuning the model parameters can often lead to improved performance.
Evaluation Metrics: The evaluation of the models seems to be based on accuracy (for logistic regression) and mean squared error (for linear regression).  Other metrics such as Precision, Recall, F1 score or AUC-ROC (for classification tasks) could provide a more comprehensive view of model performance.
Cross Validation: Using a single train-test split has the risk of overfitting to the test set. It would be better to use a technique like k-fold cross validation to ensure that the model generalizes well to unseen data.
Interpretability: While t-SNE visualizations provide some insights, it might be helpful to include an analysis of feature importances (which features are most predictive) to better understand why the models are making certain predictions.
Multi-word Embeddings: The research only creates embeddings for the first word of each message. Using techniques to create embeddings for entire sentences or documents, like Doc2Vec or sentence transformers, might improve performance and provide better representation of the text data.
By addressing these points, the research could potentially improve its methodology and results.

Proposed Research Question: How can we leverage data science techniques to identify and protect against social engineering threats posed by chatbots?
Rationale: In the era of digital communication, chatbots have become a pervasive part of online interactions. They have been used for a variety of purposes, ranging from customer service to user engagement. However, alongside their beneficial uses, chatbots also pose a significant risk in terms of social engineering attacks. Social engineering is a method of tricking individuals into disclosing confidential information, and chatbots provide an effective and scalable way for malicious actors to carry out such attacks. Therefore, understanding how to identify and mitigate these threats is crucial for personal and collective digital security.
Decisions to be Made: This research will require a variety of decisions to be made. First, we need to decide on the dataset to be used - this could either be an existing dataset of chatbot interactions or a dataset we collect ourselves. Next, we need to decide on the techniques to be used to analyze the data. This could involve machine learning to identify patterns typical of chatbots, natural language processing to understand the linguistic nuances of chatbot interactions, or a combination of both. We also need to consider ethical implications, such as privacy concerns when collecting and analyzing chat data.
Stakes: The stakes for this research are high. As chatbots become more sophisticated and indistinguishable from human interaction, the potential for their misuse in social engineering attacks also rises. By identifying the characteristics of these chatbots, we can help inform individuals and organizations about the risks and provide strategies for protection. Additionally, our findings could be used to improve the design and regulation of chatbots to prevent their misuse. Ultimately, this research could contribute to safer online spaces for everyone.


scheme -> schema in sync.sh, updated swagger definition and types with SeenAt, husky fix

https://github.com/orgs/fingerprintjs/projects/7/views/5?pane=issue&itemId=18020837
https://github.com/orgs/fingerprintjs/projects/7/views/5?pane=issue&itemId=18020761
Fix husky commit message pre-commit hook https://fingerprintjs.slack.com/archives/C02P7D7TCS3/p1673968059919079

Already implemented in a different branch, closing


fix #32: the generator code example now works as described

It should fix #32 without changing so much the spirit and complexity of the example

Thank you for providing this change. Upon reflecting on your suggestion, I’ve realized that we can change the narrative to match the behavior and still provide the learning objective from the section, while maintaining the clearest possible example.
I decided to use log messages to make the flow more clear. I must confess, the mistake you’re fixing stems from my incorrectly visualizing the flow.
For your review: https://github.com/kriskowal/gtor/pull/44

Great work, I'm glad that the error got fixed and we still have a good narrative about it, that was the hardest part =).


Updating content and structure of start page

Updating all required content of start page to match latest prototype
Restructuring page layout
Updating JSON language files - Will need Welsh translations from WLU when available

CI: No security warnings found

CI: No security warnings found

CI: No security warnings found


Support independent jobs across sessions

It's certain that we will see more and more datasets like MyConnectome and Midnight Scan Club. To efficiently process such dataset we need to support submitting independent jobs across sessions. In practice this would mean:

addition of session analysis level and --session_label flag for selecting sessions (more details at https://groups.google.com/forum/#!topic/bids-apps-dev/Vnx5HHudqq4)
addition of participant_anat analysis level to be run before any session levels

I think one of the relevant problems to consider here is separate working directories, which will attempt to re-run anatomical. I think we need to ensure that all necessary anatomical inputs to the BOLD workflow are in the anatomical derivatives, and use those, rather than reaching into the working directory.
I think at one point I had an open issue about a DataGrabber for fmriprep derivatives. That could be a useful component here.

I think we need to ensure that all necessary anatomical inputs to the BOLD workflow are in the anatomical derivatives, and use those, rather than reaching into the working directory.

This is the key point here. +1

just wanted to upvote this one again (just trying to analyze myconnectome data again).

Also bumping this much needed feature, so +1.

This will be possible when poldracklab/smriprep#107 is merged in. Can't provide an ETA, but I'd like to see this fixed within 2 months.


Bugfix/essentials logo pixelated

I noticed that the current Essentials logo was quite pixelated even though it's a SVG File. I made a new file with the same font and size.
Description
Essentials logo is not properly sharp. The current SVG image doesn't seem to be using vectors but pixels.
Type of change
Made a new image file with the same content but rendering vectors to avoid a blurry effect on the image and smaller filesize.
How Has This Been Tested?
Cheked the display imaged on the dashboard.
http://<IP_ADDRESS>:3000/diaper_bank/dashboard
Cheked the display imaged on the register page.
http://<IP_ADDRESS>:3000/account_requests/new
Screenshots

It seems I had some issues with the branches I had locally. I'll fix that and make a new PR just for this.


[tool_crash] ProcessException: The command failedStdout:building file list ... doneVersions/Versions/Current...

Command
flutter --no-color --no-version-check precache

Steps to Reproduce

flutter upgrade

 Logs

ProcessException: The command failed
Stdout:
building file list ... done
Versions/
Versions/Current -> A
Versions/A/
Versions/A/FlutterMacOS
Versions/A/Headers/
Versions/A/Headers/FlutterAppDelegate.h
Versions/A/Headers/FlutterBinaryMessenger.h
Versions/A/Headers/FlutterChannels.h
Versions/A/Headers/FlutterCodecs.h
Versions/A/Headers/FlutterDartProject.h
Versions/A/Headers/FlutterEngine.h
Versions/A/Headers/FlutterMacOS.h
Versions/A/Headers/FlutterMacros.h
Versions/A/Headers/FlutterPluginMacOS.h
Versions/A/Headers/FlutterPluginRegistrarMacOS.h
Versions/A/Headers/FlutterTexture.h
Versions/A/Headers/FlutterViewController.h
Versions/A/Modules/
Versions/A/Modules/module.modulemap
Versions/A/Resources/
Versions/A/Resources/Info.plist
Versions/A/Resources/icudtl.dat
Versions/A/_CodeSignature/
Versions/A/_CodeSignature/CodeResources

sent 41681679 bytes  received 436 bytes  83364230.00 bytes/sec
total size is 41675172  speedup is 1.00

Stderr:
rsync: stat "/Users/tijncoertjens/Developer/flutter/bin/cache/artifacts/engine/darwin-x64/FlutterMacOS.framework/Versions/A/.FlutterMacOS.LvAZGP" failed: No such file or directory (2)
rsync: rename "/Users/tijncoertjens/Developer/flutter/bin/cache/artifacts/engine/darwin-x64/FlutterMacOS.framework/Versions/A/.FlutterMacOS.LvAZGP" -> "Versions/A/FlutterMacOS": No such file or directory (2)
rsync error: some files could not be transferred (code 23) at /System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/rsync/rsync-55/rsync/main.c(996) [sender=2.6.9]
 Command: rsync, OS error code: 23

%230      RunResult.throwException (package:flutter_tools/src/base/process.dart:124:5)
%231      _DefaultProcessUtils.runSync (package:flutter_tools/src/base/process.dart:411:17)
%232      _MacOSUtils.unzip (package:flutter_tools/src/base/os.dart:454:25)
%233      EngineCachedArtifact.updateInner (package:flutter_tools/src/cache.dart:919:30)
<asynchronous suspension>
%234      CachedArtifact.update (package:flutter_tools/src/cache.dart:812:5)
<asynchronous suspension>
%235      Cache.updateAll (package:flutter_tools/src/cache.dart:681:9)
<asynchronous suspension>
%236      PrecacheCommand.runCommand (package:flutter_tools/src/commands/precache.dart:174:7)
<asynchronous suspension>
%237      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1161:27)
<asynchronous suspension>
%238      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
%239      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
<asynchronous suspension>
%2310     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
<asynchronous suspension>
%2311     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
%2312     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
<asynchronous suspension>
%2313     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
<asynchronous suspension>

[✓] Flutter (Channel stable, 2.10.4, on macOS 12.0.1 21A559 darwin-arm, locale nl-NL)
    • Flutter version 2.10.4 at /Users/tijncoertjens/Developer/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c860cba910 (11 days ago), 2022-03-25 00:23:12 -0500
    • Engine revision 57d3bac3dd
    • Dart version 2.16.2
    • DevTools version 2.9.2

[!] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at /Users/tijncoertjens/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools

Closing this as duplicate of https://github.com/flutter/flutter/issues/99785


Convert CategoryPillInner into functional component

Functions not dependent on state or props have been moved outside of the component declaration so they are not continually re-created on every render. Additionally, some functions and variables have been renamed to avoid shadowing.

This one was a bit more complex, so I might have made some errors in converting. Let me know if something doesn't make sense.
I did test updating the category of a question and it is working (I used that to fix a bug before my commit)

Update: I moved the extraction of the function from outside back to inside because I think it's clearer in this PR. I will move it outside in a follow-up change.


use pow instead of std::powf

std::powf is not widely supported

https://en.cppreference.com/w/cpp/numeric/math/pow claims it's supported since C++11. What compiler are you using?

I'm using gcc 9.3 on Ubuntu 20.04

Ok, yeah, it appears gcc doesn't like this. I would recommend changing to std::pow then.

Yes std::pow would be a better choice, thanks!

Mergin this, along with the PR I raised, will fix compilation issues with GCC (gcc has not yet addressed the bug with regards to powf and others related functions in cmath)

@celoron If you don't mind, please update to std::pow and then we can merge.

Retriggering CI by closing and reopening.


Implement Prometheus metrics reader constructor

Signed-off-by: albertteoh<EMAIL_ADDRESS>Which problem is this PR solving?

Relates to #2954.

Short description of the changes

Adds the Prometheus metrics reader constructor implementation and tests.

PR updated to use prom client and OpenMetrics.
Did an initial e2e test with a POC version and the prom client looks okay so far. Still a bit of work involved to convert from the prom client's data model to OpenMetrics, and couldn't find a library that does this conversion, which was a little surprising. It wasn't too difficult in any case.


macOS 12 Slow

Description
I've noticed that macOS 12 unit tests end up taking 2 to 3x longer than their Ubuntu / Windows counterpart, for example see here. Wondering if this is a common issue and how it can be addressed!
Cheers
Platforms affected

[ ] Azure DevOps
[X] GitHub Actions

Virtual environments affected

[ ] Ubuntu 18.04
[ ] Ubuntu 20.04
[ ] Ubuntu 22.04
[ ] macOS 10.15
[ ] macOS 11
[X] macOS 12
[ ] Windows Server 2019
[ ] Windows Server 2022

Image version and build link
https://github.com/deepmind/mujoco/runs/8031510179?check_suite_focus=true
Is it regression?
No
Expected behavior
Roughly same speed as ubuntu / windows images.
Actual behavior
2 to 3x slower.
Repro steps
See above.

@kevinzakka Hello!
This is the hardware limitation, we are working on improving it but have no any ETA at the moment.


Prevent double posts

Maybe the GH API lags?

https://github.com/dlang/dmd/pull/5855

I think due to the way sharding is implemented, sometimes the request to create a resource go to one server, and an immediately following request to enumerate said resource goes to another which hasn't yet received the resource from the first server.
Now that we're adding persistence anyway, we can start transitioning to doing our own bookkeeping instead of asking GitHub every time for what we have to do (though being stateless has its advantages).


Add hasParent and hasChild queries

Codecov Report

Merging #100 (3b5c2af) into master (0a2e7f8) will decrease coverage by 16.66%.
The diff coverage is 85.29%.

@@             Coverage Diff             @@
##           master     #100       +/-   ##
===========================================
- Coverage   84.09%   67.44%   -16.66%
===========================================
  Files          62       64        +2
  Lines        6591     6626       +35
  Branches      703      706        +3
===========================================
- Hits         5543     4469     -1074
- Misses        800     1938     +1138
+ Partials      248      219       -29

Impacted Files
Coverage Δ

...Main/kotlin/dev/evo/elasticmagic/query/HasChild.kt
84.21% <84.21%> (ø)

...ain/kotlin/dev/evo/elasticmagic/query/HasParent.kt
86.66% <86.66%> (ø)

... and 38 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Prevent confusion between Huginn services and strings

agent.service was returning an unexpected string when traversing
all agents.
helps with issue #968 which deals with import/export

Appreciated! This looks good except for the spec failures.

Thanks! Fixed.

Thanks @TildeWill!


readme: Add badge for docker hub

Signed-off-by: Si Beaumont<EMAIL_ADDRESS>

badgers! :shipit:


Node Explorer

closes: #53

Codecov Report

Merging #54 (ce92060) into main (2de14cc) will decrease coverage by 4.21%.
The diff coverage is 33.56%.

@@            Coverage Diff             @@
##             main      #54      +/-   ##
==========================================
- Coverage   59.34%   55.12%   -4.22%
==========================================
  Files          18       22       +4
  Lines        1493     1785     +292
==========================================
+ Hits          886      984      +98
- Misses        469      652     +183
- Partials      138      149      +11

Impacted Files
Coverage Δ

cmd/server.go
51.72% <0.00%> (-3.16%)
:arrow_down:

server/crawl/node_crawler.go
0.00% <0.00%> (ø)

server/crawl/util.go
0.00% <0.00%> (ø)

server/models/node.go
70.83% <70.83%> (ø)

server/crawl/pool.go
100.00% <100.00%> (ø)

Codecov Report

Merging #54 (ce92060) into main (2de14cc) will decrease coverage by 4.21%.
The diff coverage is 33.56%.

@@            Coverage Diff             @@
##             main      #54      +/-   ##
==========================================
- Coverage   59.34%   55.12%   -4.22%
==========================================
  Files          18       22       +4
  Lines        1493     1785     +292
==========================================
+ Hits          886      984      +98
- Misses        469      652     +183
- Partials      138      149      +11

Impacted Files
Coverage Δ

cmd/server.go
51.72% <0.00%> (-3.16%)
:arrow_down:

server/crawl/node_crawler.go
0.00% <0.00%> (ø)

server/crawl/util.go
0.00% <0.00%> (ø)

server/models/node.go
70.83% <70.83%> (ø)

server/crawl/pool.go
100.00% <100.00%> (ø)

Codecov Report

Merging #54 (82e6016) into main (2de14cc) will decrease coverage by 3.57%.
The diff coverage is 42.15%.

@@            Coverage Diff             @@
##             main      #54      +/-   ##
==========================================
- Coverage   59.34%   55.76%   -3.58%
==========================================
  Files          18       22       +4
  Lines        1493     1881     +388
==========================================
+ Hits          886     1049     +163
- Misses        469      677     +208
- Partials      138      155      +17

Impacted Files
Coverage Δ

cmd/server.go
51.72% <0.00%> (-3.16%)
:arrow_down:

server/crawl/node_crawler.go
0.00% <0.00%> (ø)

server/crawl/util.go
0.00% <0.00%> (ø)

server/models/module.go
57.08% <ø> (ø)

server/router/v1/router.go
56.55% <45.45%> (-0.66%)
:arrow_down:

server/models/node.go
74.66% <74.66%> (ø)

server/crawl/pool.go
97.36% <97.36%> (ø)

... and 1 more

Codecov Report

Merging #54 (82e6016) into main (2de14cc) will decrease coverage by 3.57%.
The diff coverage is 42.15%.

@@            Coverage Diff             @@
##             main      #54      +/-   ##
==========================================
- Coverage   59.34%   55.76%   -3.58%
==========================================
  Files          18       22       +4
  Lines        1493     1881     +388
==========================================
+ Hits          886     1049     +163
- Misses        469      677     +208
- Partials      138      155      +17

Impacted Files
Coverage Δ

cmd/server.go
51.72% <0.00%> (-3.16%)
:arrow_down:

server/crawl/node_crawler.go
0.00% <0.00%> (ø)

server/crawl/util.go
0.00% <0.00%> (ø)

server/models/module.go
57.08% <ø> (ø)

server/router/v1/router.go
56.55% <45.45%> (-0.66%)
:arrow_down:

server/models/node.go
74.66% <74.66%> (ø)

server/crawl/pool.go
97.36% <97.36%> (ø)

... and 1 more


Year 5 Season 3 Operator - Zero

Update operator nuget package https://github.com/marcopixel/r6operators
Add any counter relationships for the new operator
Open a new issue for further relationship refinement after the operator has been released for a few days

#205 fixed this


Kalecto.Model macro usage

Hi,
First off, thanks very much for your work on these datetime packages. Super, super useful.
I'm still relatively new to Elixir but I am confused by the instructions in the README:

In your Ecto models, where you have a schema definition with a timestamps line, add use Kalecto.Model at the top of the module, below the line that says use Ecto.Model

When using both use lines in an Ecto model definition, compilation seems to raise this warning:

model.ex:1: warning: this clause cannot match because a previous clause at line 1 always matches

...and looking at the macro code itself, it seems to declare use Ecto.Model for you.
So I guess the question is, am I missing a reason for asking users to specify both lines?
cheers,
Darian

Hi Darian. I'm glad you find it useful.
You are right, it should work if you only use this line: use Kalecto.Model
As far as I remember I thought it would be less confusing with both lines. But I guess it isn't. And it's redundant. So the answer is that there is no good reason that the readme says that :) I'll fix it.
Thanks for the feedback. The documentation for Kalecto is lacking because the other packages (kalends and tzdata) have had a higher priority, but eventually it should improve.

Awesome, thanks for clearing that up.

@djm FYI for the newest version (0.3.1) I have gone back to having both lines (use Ecto.Model and use Kalecto.Model). The line that caused the compilation error was redundant as is no longer there.
I think it makes more sense this way with both lines

@lau cool, thanks for the headup.


Warning: Homepage URL matches documentation URL

Hi,
When reviewing your template, we noticed that the homepage URL and the documentation URL are the same. Please either remove the documentation URL or set it to a different page.
Thanks.

Hi, @lanzone1
We have add the documentation last week (#e015181), please reveiw the template again. Looking forward to your feedback.
Thanks.

Looks good. Expect your template to be approved shortly. Thanks!


why no windows support ?

comon bro. we need windows/powershell support.

I don't have a Windows machine. There's a lot of POSIX specific stuff and I don't want to learn how Windows differs.
If you want Windows support (and can't accept WSL), make a PR adding it, but I suspect it's not easy.


Add support for nullable attribute

Great, thanks @raphaeloliveira!
Could you:

add a changelog entry
add required and non-required nullable properties to a schema in the test spec https://github.com/yonaskolb/SwagGen/blob/master/Specs/TestSpec/spec.yml and then run swift run and check in the results. (Checking in the generated fixtures is required for tests to pass on CI)

Hey @yonaskolb, I added an entry on changelo, updated the spec with a new scheme that contains nullable properties and regenerated the fixtures. Let me know if something is missing.
One thing which is not clear for me yet is how to run the tests per see, and what is being verified against what.
Thanks!

As a side note, I pasted https://github.com/yonaskolb/SwagGen/blob/master/Specs/TestSpec/spec.yml on Swagger Editor and the following errors were raised:
Semantic error at paths./multiple-path-params{petID}
Declared path parameter "petID" needs to be defined as a path parameter at either the path or operation level
Jump to line 55
Structural error at components.schemas.Zoo.properties.schemaAnimals.items
should be object
Jump to line 301
Semantic error at components.schemas.Zoo.properties.schemaAnimals.items
`items` must be an object
Jump to line 301

Not sure how relevant they are.

Thanks! I meant to say run swift test above which generates all the fixtures. It fails if something has changed and will tell you so, but if you rerun it it will pass. The generated files are used on CI to see if after generation there is a diff. You can see that in https://github.com/yonaskolb/SwagGen/blob/master/.circleci/config.yml and the actual build itself on CircleCI https://circleci.com/gh/yonaskolb/SwagGen/351?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link

Ah cool, would be probably nice to add some documentation about the tests, unless there is some and I missed it.


stm32f7 serial fix PM_CONFIG build

Summary
Impact
Testing

Hi @dagar please include the Summary/Impact/Testing in the PR

The current state in master doesn't even compile, I've only begun experimenting with CONFIG_PM on stm32f7.

The current state in master doesn't even compile, I've only begun experimenting with CONFIG_PM on stm32f7.

@acassis is pointing that PR description is empty and this is not ok.


Issue 1436 - improved datetime feature handling

Issue #, if available:
1436
Description of changes:
Add multiple additional features for datetimes : year, month, day, hour, minute, second, dayofweek, dayofyear, quarter, is_month_end.  There are others in the pandas datetime.dt object, but they can all be inferred from the above.  Holiday logic is not attempted because working out what is a public holiday in a location is highly non-trivial (lunar calendars such as Eid, working weekends as replacement for Chinese New Year, the list is endless)
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Job PR-1446-1 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-1446/1/index.html

Job PR-1446-3 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-1446/3/index.html


feat: add logger to show badges

Example of log:
badge-poser-phpfpm | [2021-05-18T11:02:56.155152+00:00] badges.INFO: /phpunit/phpunit/v {"badgeData":{"subject":"stable","status":"9.5.4","color":"#28a3df","format":"svg"},"requestHeaders":{"cookie":["_ga=GA1.2.1221247998.1617793280; _gid=GA1.2.1449274797.1621268707"],"accept-language":["it-IT,it;q=0.9,en-US;q=0.8,en;q=0.7,de;q=0.6,es;q=0.5,fr;q=0.4,ru;q=0.3,da;q=0.2,pt;q=0.1"],"accept-encoding":["gzip, deflate"],"accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"],"user-agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"],"upgrade-insecure-requests":["1"],"cache-control":["no-cache"],"pragma":["no-cache"],"connection":["keep-alive"],"host":["poser.local:8001"],"content-length":[""],"content-type":[""],"x-php-ob-level":["1"]},"responseHeaders":{"cache-control":["max-age=3600, public, s-maxage=3600"],"date":["Tue, 18 May 2021 11:02:56 GMT"],"content-type":["image/svg+xml;charset=utf-8"],"content-disposition":["inline; filename=stable-954-28a3dfsvg.svg"]}} []

Content of json:
{
   "badgeData":{
      "subject":"stable",
      "status":"9.5.4",
      "color":"#28a3df",
      "format":"svg"
   },
   "requestHeaders":{
      "cookie":[
         "_ga=GA1.2.1221247998.1617793280; _gid=GA1.2.1449274797.1621268707"
      ],
      "accept-language":[
         "it-IT,it;q=0.9,en-US;q=0.8,en;q=0.7,de;q=0.6,es;q=0.5,fr;q=0.4,ru;q=0.3,da;q=0.2,pt;q=0.1"
      ],
      "accept-encoding":[
         "gzip, deflate"
      ],
      "accept":[
         "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"
      ],
      "user-agent":[
         "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
      ],
      "upgrade-insecure-requests":[
         "1"
      ],
      "cache-control":[
         "no-cache"
      ],
      "pragma":[
         "no-cache"
      ],
      "connection":[
         "keep-alive"
      ],
      "host":[
         "poser.local:8001"
      ],
      "content-length":[
         ""
      ],
      "content-type":[
         ""
      ],
      "x-php-ob-level":[
         "1"
      ]
   },
   "responseHeaders":{
      "cache-control":[
         "max-age=3600, public, s-maxage=3600"
      ],
      "date":[
         "Tue, 18 May 2021 11:02:56 GMT"
      ],
      "content-type":[
         "image/svg+xml;charset=utf-8"
      ],
      "content-disposition":[
         "inline; filename=stable-954-28a3dfsvg.svg"
      ]
   }
}

Do you think it might be useful? Is there anything useless to take off?

What do you think about adding some tests?

Obviously, I wanted to wait for the output to be as requested and then proceed with adding them!

LGTM :+1:

I add some tests! ;)


Client::Contact.update IGNT-3572

Intent (What)

Motivation (Why)
When pi client contact updated, update xpm client contact
Implementation (How)
Also nested under Client for consistency
Consequence
I realised whilst building this endpoint that the update contact endpoint doesn't care about a client id only a contact id (e.g. it is unique) and therefore the nesting feels a bit awkward. You can also see this via the url in the screenshot above. I think it might be worth spiking a flattening of the structure now that we have gained that insight?

Probably not Tony will address feedback separately as a few spec files need to change to remain consistent.


Added tests for common/blobstore/retryableClient.go

What changed?
Added tests for the common/blobstore/retryableClient.go

Why?
code coverage

How did you test it?

Potential risks

Release notes

Documentation Changes

Pull Request Test Coverage Report for Build 018fea1b-bc74-46bc-9a77-44b66204fb65
Details

0 of 0   changed or added relevant lines in 0 files are covered.
23 unchanged lines in 8 files lost coverage.
Overall coverage increased (+0.04%) to 70.84%

Files with Coverage Reduction
New Missed Lines
%

service/history/task/transfer_standby_task_executor.go
2
87.14%

common/task/weighted_round_robin_task_scheduler.go
2
88.56%

service/history/task/transfer_active_task_executor.go
2
72.77%

service/history/execution/mutable_state_util.go
2
78.52%

service/matching/tasklist/matcher.go
2
89.35%

service/matching/tasklist/task_reader.go
2
75.33%

common/task/fifo_task_scheduler.go
4
83.51%

service/matching/tasklist/task_list_manager.go
7
76.05%

Totals

Change from base Build 018fea0f-14e3-4984-94e0-5d6d068277b1:
0.04%

Covered Lines:
105511

Relevant Lines:
148942

💛  - Coveralls

Pull Request Test Coverage Report for Build 018fea42-4f79-4e0c-8d5e-77958ecfaeb2
Details

0 of 0   changed or added relevant lines in 0 files are covered.
24 unchanged lines in 9 files lost coverage.
Overall coverage increased (+0.06%) to 70.866%

Files with Coverage Reduction
New Missed Lines
%

tools/cli/admin_db_decode_thrift.go
1
71.79%

service/history/queue/timer_queue_processor_base.go
1
77.66%

common/task/weighted_round_robin_task_scheduler.go
2
88.56%

common/task/parallel_task_processor.go
2
93.06%

service/matching/tasklist/task_reader.go
2
77.72%

service/history/handler/handler.go
3
96.2%

common/persistence/statsComputer.go
3
98.21%

service/history/task/fetcher.go
4
86.08%

service/history/task/transfer_standby_task_executor.go
6
86.33%

Totals

Change from base Build 018fea0f-14e3-4984-94e0-5d6d068277b1:
0.06%

Covered Lines:
105549

Relevant Lines:
148942

💛  - Coveralls


[SMALLFIX] Fix docker entrypoint property population

Updated docker entrypoint script to

populate properties not starting with alluxio.
correctly handle = in property values.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/17500/
Test FAILed.

Merged build finished. Test FAILed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/17674/
Test PASSed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/17685/
Test PASSed.

@aaudiber Do you want to take a look?

Thanks @bf8086. Left a few minor comments. Otherwise looks good.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/17699/
Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/17777/
Test PASSed.

Merged build finished. Test PASSed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/17781/
Test PASSed.

@aaudiber Thanks for the comments. I updated the tests. PTAL.

It would be good to add the unit test I mentioned above so that we know the mapping works for all properties

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/17787/
Test PASSed.

@aaudiber It's added as getConfKeyWithAllPropertyNames. I used Configuration.toMap().keySet() to get all property keys. Would that be sufficient?

Configuration.toMap().keySet() only gets keys that have default values, which is around 80% of our keys. You can test 100% with
    for (Field field : PropertyKey.class.getDeclaredFields()) {
      if (field.getType().equals(PropertyKey.class)) {
        String key = ((PropertyKey) field.get(PropertyKey.class)).toString();
        assertConfKey(key.toUpperCase().replace(".", "_"), key, 0);
      }
    }

@aaudiber @madanadit Thanks for the suggestions. I updated the PR. PTAL.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/17796/
Test PASSed.

Merged build finished. Test PASSed.


external/public ip of eks node is written to wireguard allowed ips

In aws eks, where calico is used to manage wireguard and enable encryption in transit.
In an eks clusters, there are private nodes with private ip/internal ip, and public nodes with public ip/external ip(eip).
As far as I am concerned, these eips are not supposed to be included In allowed ips, however, they are indeed included.
Thus, when other private nodes access the eip of the public nodes, the traffic actually goes through the encryption tunnel and the target public node have no idea how to response and the connection is broken.
k8s version:1.25  calico version: 3.26.1
I think there are 2 ways to settle this

Offer an option wether to include external ip or not
Exclude eip by default, cause the implementation of eip determines that any traffic with dst of this eip should not be directly delivered to the node but through a nat gateway instead(and the dst of the packet is transformed to the private ip of this node), the node itself has no idea how to handle a packet(directly delivered through the encryption tunnel) with dst of this eip

Hi, have you installed with operator or manifest?
For clarity, are the private IPs also added for nodes with an EIP, or is only the EIP added?
Thanks

Thanks @MageekChiu. One more question that came to mind is - when you say a private node sends traffic to a public node, do you mean pods on each node communicating, or host-network processes? Trying to nail down if this is an issue of routing and network topology, or a misconfiguration of wireguard itself.
In isolation, I don't believe it's a bug that we are adding the public IP to the trusted IP's list, though there may be another issue cropping up as a result. Im curious why nodes in the same cluster would use a public IP rather than the private IP to communicate? Is there a service-IP / load balancer at play?

@MageekChiu any update?

closing this issue. Feel free to reopen.


⚠ Hartman Foundation has degraded performance

In 6d261c3, Hartman Foundation (https://gordonhartman.com/) experienced degraded performance:

HTTP code: 200
Response time: 3922 ms

Resolved: Hartman Foundation performance has improved in 8091a3e.


blade format issue

Template
Please write your blade template that occurs issues.
Context (Environment)

write your environment

Description

Any other informations

Closed by #372


Creating a fork of symposion and replacing all old instance of render_to_response to render

Since we are currently pulling from the base symposion repo, we are stuck with their implementation which includes some old implementation for render_to_response. We would need to create a fork and fix all this issue and any issue that might arise.

@gbozee I've created a fork here https://github.com/pyung/symposion that we can use.

Great @danidee10 hope u know that the central branch now is cfp and not develop when merging PRS?

@gbozee Yes, I know.

Please also update the requirements link to point to this fork instead of the default. and submit a pr on this.

@gbozeeI've done that. is there any need to create a development branch in the symposion repo and open PR's or We should just push changes to master directly?

no need. Let all the work be done directly on master


Edk2 UEFI for Motorola One Action

Hello i have a Motorola One Action and I want Port edk2 UEFI to my Motorola One Action

Is it sdm845?

Not

this repo only accepts sdm845


fixes CAMEL-21492 - lists a component usable for payload security

fixes https://issues.apache.org/jira/browse/CAMEL-21492
Description

Target

[ ] I checked that the commit is targeting the correct branch (note that Camel 3 uses camel-3.x, whereas Camel 4 uses the main branch)

Tracking

[ ] If this is a large change, bug fix, or code improvement, I checked there is a JIRA issue filed for the change (usually before you start working on it).

Apache Camel coding standards and style

[ ] I checked that each commit in the pull request has a meaningful subject line and body.

[ ] I have run mvn clean install -DskipTests locally from root folder and I have committed all auto-generated changes.

I changed the links to refer to dataformats (crypto and crypto-pgp)


Check data against official DOE numbers

It's good to do a sanity check against "official" numbers. In my Stanford research, I always cross-checked numbers calculated based on district data against those calculated by the State based on official accountability data --- it helped me catch data discrepancies / issues (especially when you're not intimately familiar with "Oh, the ELL population at School X should be around Y%" to think "Hmmm that look strange".)
For example: do our numbers for Healey school attendance rates fall in line with the Mass DOE numbers?
This is also why it's important to have principals, teachers, etc look at their own data since they are the ones who know their schools / classrooms the best.
Related to #106 for aggregate school-level stats.

@marimuraki — This is fantastic. We should write these checks together in Ruby and incorporate them into the app. I'm thinking the sanity check could live as a rake task that would run periodically against the data. Agreed that this is related to #106 — the results could certainly be public.

@Noah-T: Thanks for offering to help with this issue!
We are interested in school-level numbers on (here is Healey example to start with):

Indicators

grade 9-12 dropout rate
attendance rate
average # of days absent
absent 10 or more days
chronically absent (10% or more)
unexcused absences > 9
retention rate

Selected Population

first language not English
English Language Learner
Students with Disabilities
High Needs
Economically Disadvantaged

Student Discipline

All students: disciplined, suspension, out-of-school suspension, expulsion

Assessment

school-level
grade-level

Priorities bolded for running comparison tests but might as well pull in all DOE data while you're at it.

@Noah-T: For district-level comparisons, we have some Excel files (YAY!). Here are the files for enrollment numbers by district.

http://profiles.doe.mass.edu/state_report/indicators.aspx

http://profiles.doe.mass.edu/profiles/student.aspx?orgcode=02740075&orgtypecode=6&leftNavId=303

Exportable table of indicators by school. YAY!

@alexsoble are you still around? I have some questions.

@Noah-T — Sorry I didn't get to get back to you on this way back when!
Latest thinking with @kevinrobinson — this would be most useful if it could be automated on both ends. i.e., Student Insights outputs aggregates and checks them against figures that have been automatically scraped or downloaded from the MA DOE site. That way the app could constantly be checking for major discrepancies rather than this being a one-time check.
This automated route could be a really good Code for Boston project!

Moved to https://github.com/studentinsights/studentinsights/issues/19.


v0.0.22-alpha

TBD

Need to investigate why new Janitor update calls cleanup functions on new threads. This could cause some problems.


Does not allow the drawing of controls.

When clicking on any option to draw on the map, this message appears in the console

The problem is, that the global object L.PM is not found. Please check if you overwrite somewhere the global L variable or importing a another leaflet instance


Open AI Discord ChatBot

This use the Open AI API by answer the question of the user in the discord by the python

Hi!
I want to work on this issue as a part of GSSoC'23. I am using the Open AI API. Could you please assign me and I am giving you my best and 100%.

@Shubhanshu156 He is the only person who assign the issue. @BabarRasheed

thank you I am sharing with you the code and steps that can help you.

@BabarRasheed No bro its not worth it untill this issue assign to me

To build a Discord chatbot using the OpenAI API in Python, you can follow
these steps:

Set up a Discord bot:

. Create a new Discord application at the Discord Developer Portal:
https://discord.com/developers/applications.
. Under the "Bot" tab, click on "Add Bot" to create a new bot user for your
application.
. Copy the bot token, as you'll need it to authenticate your bot with
Discord.
2. Set up a Python environment:
. Install Python if you haven't already (version 3.6 or higher is
recommended).
. Create a new directory for your bot project and navigate to it in your
command-line interface.
. Create a virtual environment (optional but recommended) using a tool like
virtualenv or conda.
3. Install the necessary packages:
. Run pip install discord.py to install the Discord.py library, which
provides the interface to the Discord API.
. Install the OpenAI package by running pip install openai.
4. Write the bot code:
. Create a new Python file (e.g., discord_bot.py) in your project directory.
. Import the necessary modules:
code you it
import discord
import openai
openai.api_key = 'YOUR_API_KEY'
client = discord.Client()
@client.event
async def on_ready():
print(f'Logged in as {client.user.name} ({client.user.id})')
@client.event
async def on_message(message):
if message.author == client.user:
return
if message.content.startswith('!ask'):
    query = message.content[5:]  # Extract the user's question from the

message content
response = openai.Completion.create(
engine='davinci',
prompt=query,
max_tokens=50,
n=1,
stop=None,
temperature=0.7,
)
answer = response.choices[0].text.strip()
    await message.channel.send(f'Answer: {answer}')

#end
Replace 'YOUR_API_KEY' with your actual OpenAI API key.
Run the bot:
Add your bot to a Discord server by generating an invite link for your bot
in the "OAuth2" tab of your Discord application settings.
Copy the invite link and paste it into your browser. Follow the prompts to
add the bot to a server where you have the necessary permissions.
In your command-line interface, run the bot script using python
discord_bot.py.
Now your Discord bot should be up and running. When a user sends a message
starting with !ask, the bot will extract the question and use the OpenAI
API to generate a response. The response will be sent back to the Discord
channel where the message originated.
Note: It's important to be mindful of the OpenAI API usage and any
associated costs. Make sure to review the OpenAI documentation for details
on pricing, usage limits, and best practices.
Remember to handle any errors gracefully, implement error checking, and
consider adding additional features or customization as desired.
On Fri, May 26, 2023 at 5:15 PM Ayush varshney @.***>
wrote:

@Shubhanshu156 https://github.com/Shubhanshu156 He is the only person
who assign the issue. @BabarRasheed https://github.com/BabarRasheed
—
Reply to this email directly, view it on GitHub
https://github.com/neelshah2409/Bot-Collection/issues/140#issuecomment-1564303306,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A5LQSI547YEWZQLM6T7LZWTXICNE3ANCNFSM6AAAAAAYNFNGWE
.
You are receiving this because you were mentioned.Message ID:
@.***>

@Shubhanshu156 Please review this issue.
I am an active participant of the GirlScript Summer of Code (GSSoC) program and I would like to contribute to this issue. I believe it aligns well with my skills and interests.


Default Presets are not taken into account when creating function

Expected behaviour
When creating a simple "hello world" function w/o runtime or build-time resource configuration
apiVersion: serverless.kyma-project.io/v1alpha2
kind: Function
metadata:
    creationTimestamp: null
    labels:
        app.kubernetes.io/name: function
    name: function
    namespace: default
spec:
    runtime: nodejs18
    source:
        inline:
            dependencies: |-
                {
                  "name": "function-eloquent-maciej8",
                  "version": "0.0.1",
                  "dependencies": {}
                }
            source: |-
                module.exports = {
                    main: function (event, context) {
                        return 'Hello Serverless'
                    }
                }

and the serverless is configured to apply a given default presets:
kubectl get cm -n kyma-system serverless-webhook-envs -oyaml | grep WEBHOOK_DEFAULTING_FUNCTION_RESOURCES_DEFAULT_PRESET
  WEBHOOK_DEFAULTING_FUNCTION_RESOURCES_DEFAULT_PRESET: S

Then defaulting webhook logic should apply resource configuration according to configured default preset ("S")
Actual behaviour
In the scenario described the defaulting logic sets the runtime resources that correspond to "L" preset and doesnt fill in the profile field:
Have:
spec:
  resourceConfiguration:
    function:
      resources:
        limits:
          cpu: 800m
          memory: 1Gi
        requests:
          cpu: 400m
          memory: 512Mi

Want:
spec:
  resourceConfiguration:
    function:
      profile: S
      resources:
        limits:
          cpu: 200m
          memory: 256Mi
        requests:
          cpu: 100m
          memory: 128Mi

The bug evolved. Right now the default preset configuration is completely ignored even after controller, webhook and even operator pods are restarted.
The value reaches the config map but looks like its not picked up from there by any code and the function is always defaulted with default profile L regardless what is the configured default.


debug mode for rule learning

As a rule-learning user I want to be able to enable/disable the path-keeping in the match, so that I can use it for rule-learning when I need it, but can turn it off for efficiency when I don't.
I think the path-remembering code is in the path branch, so once this is in place we need to merge that into master.  This will allow rule-learning from the master branch.

this is now being tracked in #152


[BUG] Metadata, ExposureTime and DigitalGain - are they correctly reported/set?

Testing a RP4/HQ sensor configuration with the latest picamer2-lib, I noticed strange behaviours of metadata, specifically the reported DigitalGain and ExposureTime, with respect to a newly requested exposure value.
Here's my test program:
import time

from picamera2 import Picamera2

# different raw modes to test
rawModes   = [{"size":(1332,  990),"format":"SRGGB10"},
              {"size":(2028, 1080),"format":"SRGGB12"},
              {"size":(2028, 1520),"format":"SRGGB12"},
              {"size":(4056, 3040),"format":"SRGGB12"}]

# default resolution and noise mode
mode       = 3
noiseMode  = 0

# creating the camera
picam2 = Picamera2()

# we start with a blank still_configuration
config = picam2.create_still_configuration()

# increase the amount of buffers
config['buffer_count'] = 4

# make sure the queue is used
config['queue']        = True

# select the appropriate raw mode (make sure .sensor always stays empty!
config['raw']          = rawModes[mode]

# this is what we want for preview/LDR capture
config['main']         = {"size":rawModes[mode]['size'],'format':'RGB888'}

# config the noise processing
config['controls']['NoiseReductionMode']  = noiseMode

# enlarge the possible exposure range
config['controls']['FrameDurationLimits'] =  (100, 32_000_000)

picam2.configure(config)
picam2.set_controls({'AnalogueGain':1.0})

for xTime in range(4000, 100_000,+200):

    picam2.start(show_preview=False)
    picam2.set_controls({'ExposureTime':xTime})

    data = []
    for it in range(0,5):
        time.sleep(0.1)
        metadata     = picam2.capture_metadata()
        data.append(metadata['DigitalGain'])

    ExposureTime = metadata['ExposureTime']

    print(f'R:{xTime:>8} S:{ExposureTime:>8} Delta:{xTime-ExposureTime:>6}     {data}')

    picam2.stop()

It sets up the camera and than loops over some exposure values for testing. Mainly it reports DigitalGain for every capture.
Now, the ExposureTime returned in the metadata is not identical to the value requested. Here's an output listing:
R:    4000 S:   66657 Delta:-62657     [1.0001329183578491, 1.0001329183578491, 1.0001329183578491, 1.0001329183578491, 1.0001329183578491, 1.0001329183578491]
R:    4200 S:    4000 Delta:   200     [1.0, 1.0, 1.0, 1.0, 1.0, 1.0]
R:    4400 S:    4200 Delta:   200     [1.0, 1.0, 1.0, 1.0, 1.0, 1.0]
R:    4600 S:    4400 Delta:   200     [1.0, 1.0, 1.0, 1.0, 1.0, 1.0]

"R:" is the requested ExposureTime, "S:" the reported one, "Delta:" the difference, following by a list of DigitalGains during that capture period.
After a while, the DigitalGain seems to set to a value of  1.0 - for every exposure time requested. That seems supicious to me. Sensors are not able to realize arbitrary exposure times in hardware; the approach taken by libcamera used to be to select a slightly shorter exposure time which the hardware supports and apply an appropriate DigitalGain factor to simulate the requested one.
Obviously, while we can see some remanence of this approach in the first data line, after a while DigitalGain is always reported as 1.0, no matter what exposure time is requested. That seems to be impossible, hardware-wise.
So, what's going on here? For some applications, you want to have control over the raw image data, especially specifying AnalogueGain,DigitalGain and ExposureTime. Only if these values are correct and/or are correctly applied, the sensors the picamera2-lib is supporting can be used as measurement devices.
EDIT: Digging a little bit deeper into this issue. With the following (slightly modified) program
import time

from picamera2 import Picamera2

# different raw modes to test
rawModes   = [{"size":(1332,  990),"format":"SRGGB10"},
              {"size":(2028, 1080),"format":"SRGGB12"},
              {"size":(2028, 1520),"format":"SRGGB12"},
              {"size":(4056, 3040),"format":"SRGGB12"}]

# default resolution and noise mode
mode       = 3
noiseMode  = 0

# creating the camera
picam2 = Picamera2()

# we start with a blank still_configuration
config = picam2.create_still_configuration()

# increase the amount of buffers
config['buffer_count'] = 4

# make sure the queue is *not* used
config['queue']        = True

# select the appropriate raw mode (make sure .sensor always stays empty!
config['raw']          = rawModes[mode]

# this is what we want for preview/LDR capture
config['main']         = {"size":rawModes[mode]['size'],'format':'RGB888'}

# config the noise processing
config['controls']['NoiseReductionMode']  = noiseMode

# enlarge the possible exposure range
config['controls']['FrameDurationLimits'] =  (100, 32_000_000)

picam2.configure(config)
picam2.set_controls({'AnalogueGain':1.0})

for xTime in range(3000, 100_000,+1):

    picam2.start(show_preview=False)
    picam2.set_controls({'ExposureTime':xTime})

    for it in range(0,10):
        time.sleep(0.1)

        request  = picam2.capture_request()
        dummy    = request.make_buffer("raw")
        metadata = request.get_metadata()
        request.release()

        ExposureTime = metadata['ExposureTime']
        AnalogueGain = metadata['AnalogueGain']
        DigitalGain  = metadata['DigitalGain']

    print(f'R:{xTime:>8} S:{ExposureTime:>8} Delta:{xTime-ExposureTime:>6}     A:{AnalogueGain:1.5f} D:{DigitalGain:1.6f}')

    picam2.stop()

I get the following output
....
R:    3026 S:    3000 Delta:    26     A:1.00000 D:1.008667
R:    3027 S:    3000 Delta:    27     A:1.00000 D:1.009000
R:    3028 S:    3000 Delta:    28     A:1.00000 D:1.009333
R:    3029 S:    3028 Delta:     1     A:1.00000 D:1.000142
R:    3030 S:    3028 Delta:     2     A:1.00000 D:1.000472
R:    3031 S:    3028 Delta:     3     A:1.00000 D:1.000802
....

Again, "R:" is the requested ExposureTime, "S:" the reported one, "Delta:" the difference of both. "A:" is the AnalogueGain and "D:" the DigitalGain.
It seems that one has to wait at least 10 frames until libcamera settles for a  ExposureTime/DigitalGain-setting. But if 3028 is an exposure value realizable by the hardware (that seems to indicate the above log), why is that exposure value realized by DigitalGain = 1.009333 and ExposureTime = 3000? Of course, the product yields: exposure value = 3027,99. Close, but not exactly the value requested.
The overall behaviour is like this

The user seems to never get the requested  ExposureTime.
The ideal situation would be that DigitalGain is setable by user. This was the case in the old picamera-lib.
Obviously, within the libcamera context, this is no longer possible, as an automatic process adjusts the DigitalGain to simulate any exposure value not entertained directly by the hardware. Probably fine for the average user, but why can't we have something similar to the color gains in picamera2? That is, the automatic is active once the camera has started; but if the user sets DigitalGain, this value is used for capturing from now on. Setting DigitalGain to zero switches on the automatic again. I think something along these lines would facilitate a lot of more serious applications of the RP-hardware than the current situation.
In the current situation, there even seems to be no way for the user, even if he knows the hardware values, to set this value. Contrary, as described above, the user gets a nearby value with one of the largest DigitalGain applied. Why is this bad? Because DigitalGain not equal to one leads to additional quantization noise, for starters.

Hi, thanks for the report and for the script to reproduce it.
Yes, there is something unfortunate happening here. When the AGC/AEC is running in auto mode, it has a notion of a "stable region", which defaults to a value of 2%. What this means, then, is that if the algorithm wants to make a change that is less than 2% of the effective total exposure, it actually doesn't bother.
Unhappily, this bit of code is getting triggered even when you've set a fixed exposure and gain. Only when you've made a change of 2% from what it was previously, does it update properly.
I'll post a fix for this, though these things always take a little while. In the meantime, you can work around the problem as follows. Find the tuning file that you're using and edit it. Find the first occurrence of "metering_modes", and just above it add the line:
                      "stable_region": 0.0,

This should cause it to update correctly when there is any change at all, though note that it would affect the "auto" mode as well (though I don't think this particularly matters).

thanks for looking into this. I tried your suggestion, but it seems to have no effect. I even tried to select a very different exposure time before I request the exposure time to actually force the AGC to "move", but again, no effect. Here's this program:
import time

from picamera2 import Picamera2

# different raw modes to test
rawModes   = [{"size":(1332,  990),"format":"SRGGB10"},
              {"size":(2028, 1080),"format":"SRGGB12"},
              {"size":(2028, 1520),"format":"SRGGB12"},
              {"size":(4056, 3040),"format":"SRGGB12"}]

# default resolution and noise mode
mode       = 3
noiseMode  = 0

tuning = Picamera2.load_tuning_file('/home/rdh/cineRaw/imx477_mod.json')

# creating the camera
picam2 = Picamera2(tuning=tuning)

# we start with a blank still_configuration
config = picam2.create_still_configuration()

# increase the amount of buffers
config['buffer_count'] = 4

# make sure the queue is *not* used
config['queue']        = True

# select the appropriate raw mode (make sure .sensor always stays empty!
config['raw']          = rawModes[mode]

# this is what we want for preview/LDR capture
config['main']         = {"size":rawModes[mode]['size'],'format':'RGB888'}

# config the noise processing
config['controls']['NoiseReductionMode']  = noiseMode

# enlarge the possible exposure range
config['controls']['FrameDurationLimits'] =  (100, 32_000_000)

picam2.configure(config)
picam2.set_controls({'AnalogueGain':1.0})

for xTime in range(3026, 100_000,+1):

    picam2.start(show_preview=False)

    # preconditioning
    picam2.set_controls({'ExposureTime':10000})

    for it in range(0,10):
        time.sleep(0.1)

        request  = picam2.capture_request()
        dummy    = request.make_buffer("raw")
        metadata = request.get_metadata()
        request.release()

    # actually setting my exposure time
    picam2.set_controls({'ExposureTime':xTime})

    for it in range(0,10):
        time.sleep(0.1)

        request  = picam2.capture_request()
        dummy    = request.make_buffer("raw")
        metadata = request.get_metadata()
        request.release()

    ExposureTime = metadata['ExposureTime']
    AnalogueGain = metadata['AnalogueGain']
    DigitalGain  = metadata['DigitalGain']

    print(f'R:{xTime:>8} S:{ExposureTime:>8} Delta:{xTime-ExposureTime:>6}     A:{AnalogueGain:1.5f} D:{DigitalGain:1.6f}')

    picam2.stop()

So it seems that the user never can achieve a setting with DigitalGain = 1.0.  I attach the according to the above suggestion modified tuning file as well.
imx477_mod.json

I had another look here, and yes, there is still some stuff to talk about. When looking at it yesterday I ran into this whole stable region issue, which was genuinely stopping me from seeing what was really going on. Anyway, with the "stable_region" modification, perhaps you could try running this scipt. It's a mangled version of your original one, and takes a few minutes to run.
from picamera2 import Picamera2

picam2 = Picamera2()

raw = {'size': (4056, 3040)}
main = {'size': raw['size'], 'format': 'RGB888'}
controls = {'AnalogueGain': 1.0, 'FrameRate': 10, 'NoiseReductionMode': 0}
config = picam2.create_still_configuration(main=main, raw=raw, controls=controls, buffer_count=4)
picam2.configure(config)

picam2.start(show_preview=False)
last_exp = 0

for xTime in range(4200, 5000, 1):
    picam2.set_controls({'ExposureTime':xTime})

    for it in range(10):
        metadata = picam2.capture_metadata()

    exp = metadata['ExposureTime']
    if exp != last_exp:
        print(xTime, ":", exp, metadata['AnalogueGain'], metadata['DigitalGain'])
    last_exp = exp

It tries out every exposure time from 4200 up to 5000ms, and looks when the exposure delivered by the sensor changes. We expect this to change every time the exposure goes up by the time it takes to scan one more row of pixels.  So the exposure jumps are every 28 or 29us, though I also notice that some of them (such as 4284) are missing. We read back from the sensor what exposure time it used, so I'm not sure why it seemed not to like those values (another minor mystery).
There isn't really a way in libcamera to find out exactly what exposure values are precisely achievable. I suppose you would set an exposure value, and look at the digital gain that comes back when the exposure has taken effect, and then divide what you asked for by the digital gain. But you'll of course end up with a fractional number of microseconds, which the API doesn't let you request. So there is a microsecond or so of uncertainty in what's going on.
Maybe the API should accept and report floating point exposure times, or maybe use units of nanoseconds, I'm not quite sure what the solution there would be. In this particular case, it's a bit of a coincidence that every 200us does give us an exposure time that works exactly, but obviously this will vary between sensors.

Just to clarify here, the aim is to get a fully processed (not raw) output image from the ISP, but where the user has requested a specific exposure time, and an analogue gain of 1.0, and a digital gain of 1.0. Is that correct? I'm just starting to wonder if I've understood things properly...!

Well, in scientific applications (think astronomy) as well as in other more funny stuff (think telecine), people would rather get a raw image where no analog and digital multipliers are applied.
Analog gain raises the noise floor, and digital gain leads to quantization errors. That's why someone occationally wants to have control of both of these multiplicators. As the raw image is the basis of any derived format, say jpg, I think such a control is also of value for these derived image formats.
Now, ss far as I understand the imaging pipeline, both of these multipliers are already applied at the linear raw data level.
I am rather sure that the analog gain is applied in-sensor, before the ADC is sampling the pixel intensities. I guess that the digital gain is also applied in-sensor, but of course only possibly after the ADC. Digital gain could however be applied somewhere else in the imaging pipeline. It would be an important information if, for example, the digital multiplier would not be applied to the raw image, only afterwards at some later stage.
Your program above yields exactly the same values on my RP4 - provided I include my modded tuning file. With the standard tuning file, all DigitalGain-values are = 1.0.
In fact, your program already solved my little personal problem: namely finding exposure times where I can be sure that a digital multiplier is not applied to the footage (that is: DigitalGain = 1.0). The formula 4000 + n*200 seems to do the trick for the HQ sensor. Thanks!
Generally speaking, some things are still irritating for me:

without the tuning file trick, the DigitalGain-value returned stays at 1.0 in your test program. Is that this gain value used when requesting an exposure of 4029, or is it rather the 1.000106 needed to approximate the requested exposure value from the one chosen by the sensor (4028)? Can I trust the metadata?
Looking deeper into this: if I would request an exposure value of 4028 - which the sensor can choose, instead the sensor (or libcamera?) chooses instead 4000 plus a DigitalGain = 1.006667. That is slightly suboptimal in terms of image quality.
At what point is the DigitalGain applied to the sensor data? I always thought that both analog and digital gain are applied before the raw data is output. I am wrong here?

It would be helpful if you can shed some light into this. Anyway, thanks so much for the clarification so far!

The digital gain is not applied in the sensor. You only get it in the fully processed ISP output. No digital gain at all is applied to the raw image. Though ironically, I'm thinking that you can get a better estimate of the real exposure time by taking the the exposure you asked for and dividing it by the digital gain - this might get you round the problem where the reported exposure time is rounded down to microseconds!
Analogue gain is applied to the raw image because the sensor does it. Nearly all sensors allow an analogue gain of exactly 1.0, so far as I know. (The imx708 is weird in that some of its modes have a minimum analogue gain of 1.12, no idea why!)
I've posted a fix to libcamera for the stable region problem, so that will appear "in due course".

The digital gain is not applied in the sensor. You only get it in the fully processed ISP output.

Uh, that is great information!

Though ironically, I'm thinking that you can get a better estimate of the real exposure time by taking the the exposure you asked for and dividing it by the digital gain...

Ok, I see your point.
Anyway, that clarified most of the points I was worrying about. Thanks a lot for your help!

Yes, that's all correct. The reported exposure time (and analogue gain) is what's been applied to the raw image, though as noted, the exposure time is rounded down to a whole microsecond (which in retrospect I don't particularly love, but that's how it is). The reported digital gain is what the ISP applied during its processing to produce the final output image.
Sorry if that all took such a long time, but hopefully things are clearer now!!


Number pad "Enter" key

Adds the num pad enter key. Pretty useful for fast typing. The code is an exact copy of the "return" key

Made it with a smarter way, clone the return key dynamically.

Your patch is not working. It crash when launching.

Fixed it, oh you pullrequested a fix :P.


Big : Bug in the footer section

Description
By clicking on logo in the footer section user is redirecting to a blank screen.
I will fix this and also improve the footer by a button which will redirect to to your github
Screenshots
No response
Additional information
No response
What browser are you seeing the problem on?
No response
Checklist

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

@Yash636261 I have solved issue and created pull request , please review it and merge it


How drag from one RecyclerView to another RecyclerView?

There are two RecyclerViews on the activity, and the item in the first RecyclerView can be dragged to the second RecyclerView.

@isMeiying this is nothing regarding this library, or which an adapter would have to specifically support.
there are tutorials in the web how to achieve this.
basically you will need to remove the item from one recyclerView's adapter and add it to the adapter of the other

@isMeiying this is nothing regarding this library, or which an adapter would have to specifically support.
there are tutorials in the web how to achieve this.
basically you will need to remove the item from one recyclerView's adapter and add it to the adapter of the other

Will FastAdapter join this feature in the future?

There are many ways of doing this, and I think what Mike is saying is that it isn't dependent on FastAdapter implementations. You are dealing with just one viewholder at a time, so the solution would be applicable beyond just FastAdapter users. It wouldn't make sense to include that in this library

There are many ways of doing this, and I think what Mike is saying is that it isn't dependent on FastAdapter implementations. You are dealing with just one viewholder at a time, so the solution would be applicable beyond just FastAdapter users. It wouldn't make sense to include that in this library

I think it can be an enhanced extension that will help me quickly create such an adapter.
like this

You can find some help regarding this topic in the internet :) https://stackoverflow.com/questions/29690522/drag-and-drop-between-two-recyclerview
As noted it is not a thing the library is supposed to support


Append work on windows

Hi everybody,
I have try to make an append on windows and it's working.
package main
import (
	"fmt"
	"github.com/GeertJohan/go.rice"
)

func main() {
	assetsBox, err := rice.FindBox("assets/")
	if err != nil {
		panic("oups")
	}
	content, _ := assetsBox.String("plop.txt")
	fmt.Println(content)
}

The directory structure
- /
   - main.go
   - Assets/
      - plop.txt

And I have try with that command
go build
rice append /exec app.exe

#### WARNING ! ####
rice append` is known not to work under windows because the `zip` command is not available. Please let me know if you got this to work (and how).

When I execute the binary (in place, in a different folder, in different computer) it show the content of plop.txt file like expected.
So it's seems to work
PS: I'm under windows 10 without zip available in command line

I have also try to add files in windows executable from a linux docker image and it's working.
But it's working if you didn't have zip in PATH.
Step to reproduce
docker run -ti --rm -v "%CD%:/usr/src/app" -w "/usr/src/app" golang:wheezy bash
> cp MyApp.exe MyApp.exe.bak
> go get github.com/GeertJohan/go.rice/rice
> rice append /exec MyApp.exe
Error setting zip offset: exec: "zip": executable file not found in $PATH
> echo $?
1
> mv MyApp.exe MyApp.withoutZip.exe
> cp MyApp.exe.bak MyApp.exe
> apt-get update && apt-get install -y  zip
> rice append /exec MyApp.exe // This command destroy the binary and generate some broken file
Error setting zip offset: exit status 15
> echo $?
1

So I that example MyApp.withoutZip.exe work as expected on windows host
Note: in the current directory I put:

The windows executable
The go file which have call to rice API
The folder with my static files

Using zip as a program has been dropped by #87, we're now using the SetOffset feature introduced in go1.5


feat: Better API docs

Feature Request
Describe the Feature Request
We need better API docs. Folks might actually want to use this, and it'd be nice to have auto-generated API docs that leverage the types correctly. Maybe typedoc would work? I'd like to just create some really simple markdown API docs...
Describe Preferred Solution
Some really simple, lightweight docs solution. Something like auto-generated markdown docs, or a really simple docs deploy setup if we need to.
Describe Alternatives
I don't really wanna do a full blown docs site. There's only like two functions here. Let's keep it simple!

https://github.com/jsdoc2md/jsdoc-to-markdown maybe?


Problem when value set on rowType: .MultipleSelector, value can't be unset

if you set a value for a .MultipleSelector and want to uncheck this value, this isn't possible. the checkmark remains every.

this happens only when
AllowsMultipleSelection = true

@daisylassie I'm also getting this bug too, have you found a solution at all?


syntax error when importing

Hi,
when I do from swmmio import swmmio I get a syntax error coming from the definitions package:
In [1]: from swmmio import swmmio
  File "C:\Users\jeff\Anaconda2\lib\site-packages\definitions\parser.py", line 83
    yield from cls._flat_tree(element)
             ^
SyntaxError: invalid syntax

I am running python 2.7. From what I can tell, the yield from syntax is only valid in python 3. Have you had this problem or know of a work around?

Hey @jsadler2, FYI this is fixed in v0.2.1. Thanks for pointing this out!

Awesome.


cpu version Installed successfully, but cannot import tensorflow in python.

My env is like this:
Red Hat Enterprise Linux Server release 5.5 (Tikanga)

python 2.7.3

I successfully installed tensorflow, using pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
then I goes into python, then import tensorflow as trf, I got this error:

$ python
Python 2.7.3 (default, Nov  1 2013, 09:47:57)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/users/jackson/pyenvs/tensorflow/lib/python2.7/site-packages/tensorflow/__init__.py", line 4, in <module>
    from tensorflow.python import *
  File "/users/jackson/pyenvs/tensorflow/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 22, in <module>
    from tensorflow.python.client.client_lib import *
  File "/users/jackson/pyenvs/tensorflow/lib/python2.7/site-packages/tensorflow/python/client/client_lib.py", line 35, in <module>
    from tensorflow.python.client.session import InteractiveSession
  File "/users/jackson/pyenvs/tensorflow/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 11, in <module>
    from tensorflow.python import pywrap_tensorflow as tf_session
  File "/users/jackson/pyenvs/tensorflow/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in <module>
    _pywrap_tensorflow = swig_import_helper()
  File "/users/jackson/pyenvs/tensorflow/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description)
ImportError: /users/jackson/pyenvs/tensorflow/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so: ELF file OS ABI invalid

Can I get some help on this pls?

Can you echo me the outputs of:
1.) uname -a
2.) rpm -qa | grep glibc
3.) ldd --version

Tensorflow pip packages were compiled on Ubuntu machines. Can you try building the pip package from source and installing it?

did pip packages from source, worked. thanks

Yes ty
george

hi guys, can you tell me how I can " build the pip package from source and install it" in windows?
So far I did:
pip2.7.exe install https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
and got the following error when I run a program with "import tensorflow":
ImportError: No module named _pywrap_tensorflow
Thanks ahead!


Functions for operating on Maps from C

I found myself wanting to pass structured data from Wren to C, but I didn't want to define a foreign class specifically to do that, so I thought having access to Maps from the C slot API made sense.

@avivbeeri I've accidentally duplicated your effort in #760 🤦
After @ruby0x1 pointed me here I went through your code and figured you might want to add few things:
/* wren.h */

// Returns the number of entries in the map stored in [slot].
int wrenGetMapCount(WrenVM* vm, int slot);

/* wren_vm.c */

int wrenGetMapCount(WrenVM* vm, int slot)
{
  validateApiSlot(vm, slot);
  ASSERT(IS_MAP(vm->apiStack[slot]), "Slot must hold a map.");

  ObjMap* map = AS_MAP(vm->apiStack[slot]);
  return map->count;
}

The reason I'm suggesting it because there is already wrenGetListCount so we keep parity between List and Map API.
Aside from that, kudos for great work 🏆

@avivbeeri I've rebased your work on top of current master and added wrenGetMapCount. I had to regenerate projects to include new test sources. You can see result here: https://github.com/wren-lang/wren/compare/master...vladimyr:mapFFI
It would be awesome if you could take a look and update this PR accordingly.

Am I missing something or is it not possible to iterate keys of a map with the implemented functionality? This would be important e.g. for serialization.
We at least need a another method void wrenGetMapKey(WrenVM* vm, int mapSlot, int index, int keySlot); right?

At the time I wrote this, you were assumed to know which keys you wanted to extract. The side-step solution is to pass map.keys to your foreign method along with the map you want to act upon.

I had some more functions for iteration coming, I just merged the PR with the foundation :)

@ruby0x1 I'm highly interested in this. Can you give me a hint of how the api will look like. My example from above won't work from what I've learned by now.


local variables not showing up correctly

When debugging it seems that variables from the calling function show up, not the variables that are available in the current scope. For example, suppose I have a simple script like this:
my $test1 = 29;
my $test2 = 30;

my $result = Foo::add($test1, $test2);
say "result is $result";

When I am debugging in the main body of the script, Variables -> Local shows nothing. But then when I step into Foo::add, all of a sudden $test1 and $test2 do show up under Variables -> Local. It seems that the call to fetch the variables is using the wrong level, or something along those lines.
I also recorded a 40 second video to illustrate what I mean: https://vimeo.com/282946315
Thanks for your efforts by the way, it is handy to debug under VS Code.

do you have padwalker installed? What OS + perl version and distribution + padwalker version? (I've added a test matrix to cover most of the platfor/perl versions - but padwalker is a yet a version)


[Blog] Featuring IronHacks Fall 2022 Winners

A blog post on the winners: introduce the challenge, their background & thoughts about IronHacks Challenge.

Title: IronHacks Fall 2022 Challenge: 10 Winners Revelation!
Tags: IronHacks, Data Science.
Another IronHacks Challenge has come to an end where we have successfully found our top 10 winners. We have held an award ceremony in mid February to celebrate the amazing hard work of these winners.
About the Challenge
The Fall 2022 Challenge focused on Indiana’s Unemployment Rate and building prediction model for future weeks to inform decision-makers of the state about the impact of unemployment claims.
During these 6 weeks, participants have got numerous opportunities to improve the submissions after getting immediate scores and feedback. As new data came in each week, IronHackers tuned their models and became adventurous with new techniques.

Our Winners
At the end, our 10 winners have revealed themselves for being persistent with incredible work on prediction models. As this challenge was divided into two groups, each has 5 winners.
Fifth Places: Dayoon Suh, Raghu Raman
Fourth Places: Juan Carlos Verduzco, Memoria Hu
Third Places: Kai Tang, Matthew Schnell
Second Places: Doug Crabill, Lionel D’silva.
And our First Places are: Kitthithat Krongchon, Link Lin.
Congratulations to our winners! We are impressed by your amazing jobs in the challenge.
Moving forward, we are excited to host more data science learning challenges and hope to see more participants try their best solving these societal matters.

@sbrunswi @jialincheoh Hello, can you review this please? Thank you!

Closing issue, as the event as passed.


question routing

hi, i have a question,
why this works?
website.com/1000/photo/1
but this not:
website.com/user/photo/1
the first one use numbers and the second letters , in the second dont parse the var, i have :
$route['(:any)'] = 'profile/view/$1';
$route['(:any)/photo/(:num)'] = 'profile/photo/$1';

i think changing the order will work?
$route['(:any)/photo/(:num)'] = 'profile/photo/$1';
$route['(:any)'] = 'profile/view/$1';

hi  @hebrew878  thanks, i try it but dont works

This is a bug tracker; please ask your questions on our forums instead.


cannot compile

Thanks for pointing this out. It seems to be a problem with GCC. Should be fixed now.
https://stackoverflow.com/questions/2282349/specialization-of-templateclass-tp-struct-stdless-in-different-namespace


Frustrating Experience with Next.js: Endless Errors and Unmet Expectations

Describe the bug
mutiple language translate error
Link to the Bolt URL that caused the error
https://bolt.new/~/sb1-k8hdyb
Steps to reproduce
mutiple language translate error
Expected behavior
mutiple language translate error
Screen Recording / Screenshot

Platform
web
Additional context
I’ve encountered a continuous stream of errors while using the product, trying to fix them one after another, but the issues just won’t go away. I built a simple landing page using Next.js, and it’s been nothing but trouble—missing packages, unrecognized module names, and more. Despite all this, the performance that should be 100/100 barely reaches 50. I just topped up my account, but I’m already thinking about asking for a refund.

I've stumbled upon some errors myself - not exactly related to translations, but made by the AI itself. The reason was obvious, as the generated code wasn't perfect. It really depends on the prompts, as it sometimes tries to do very fancy stuff without being able to follow all the modifications required in all files. It seems to me it sometimes does what it needs to do in a file, then moves on and at because of the next "goal" - modifies the first file in a way that breaks the first feature.
I might be wrong. I'm just saying - it seems to me it's too early to rely on it coping with very complex tasks. Doing very small iterations like was working wonders in my case. Things like "setup translations using X library, preparing services and hooks without actually using them" is a good first step. Then "integrate into component Y" should not get you into trouble.
It requires patience and it's surely not perfect, and yet I think it's incredibly powerful and an excellent time saver if used carefully.

yeah, i agree, now help me a lot , hope it better along with time


Hangs on loading screen.

Describe the bug
A clear and concise description of what the bug is.
On fresh install of windows 11 pro system using arc a770 16GB gpu, all drivers good and newly installed, hangs on loading screen. No indication as to why this is happening, but during installation process a lot of python packages are showing up as detected and uninstalled. Not sure if installer is breaking python libraries.

Same issue here. Just downloaded it today for first time and it just plays pong for hours!

This thread helped me fix the issue: https://github.com/intel/AI-Playground/issues/26

Just reinstall Microsoft Visual C++ Redistributable, https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170

For unknown reason, issue #26 was gone :-(
You can see the actual error with following steps:

Open a cmd under <InstallationDirectory>\resources\service
Execute ..\env\python.exe .\web_api.py and post the log here

@glee920 could you please take a screenshot to show where you are stuck?

For unknown reason, issue #26 was gone :-(
You can see the actual error with following steps:

Open a cmd under <InstallationDirectory>\resources\service
Execute ..\env\python.exe .\web_api.py and post the log here

my log "OSError: [WinError 1114] A dynamic link library (DLL) initialization routine failed. Error loading "C:\Users\ASUS\AppData\Local\Programs\AI Playground\resources\env\Lib\site-packages\torch\lib\backend_with_compiler.dll" or one of its dependencies."

For unknown reason, issue #26 was gone :-(
You can see the actual error with following steps:

Open a cmd under <InstallationDirectory>\resources\service
Execute ..\env\python.exe .\web_api.py and post the log here

my log "OSError: [WinError 1114] A dynamic link library (DLL) initialization routine failed. Error loading "C:\Users\ASUS\AppData\Local\Programs\AI Playground\resources\env\Lib\site-packages\torch\lib\backend_with_compiler.dll" or one of its dependencies."

install Microsoft Visual C++ Redistributable, https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170

I still got the same error after installing Microsoft Visual C++ Redistributable.
C:\Windows\System32>cd C:\Program Files\AI Playground\resources\service
C:\Program Files\AI Playground\resources\service>..\env\python.exe .\web_api.py
Traceback (most recent call last):
File "C:\Program Files\AI Playground\resources\service\web_api.py", line 5, in
from llm_adapter import LLM_SSE_Adapter
File "C:\Program Files\AI Playground\resources\service\llm_adapter.py", line 5, in
import llm_biz
File "C:\Program Files\AI Playground\resources\service\llm_biz.py", line 6, in
import torch
File "C:\Program Files\AI Playground\resources\env\Lib\site-packages\torch_init_.py", line 128, in
raise err
OSError: [WinError 1114] A dynamic link library (DLL) initialization routine failed. Error loading "C:\Program Files\AI Playground\resources\env\Lib\site-packages\torch\lib\backend_with_compiler.dll" or one of its dependencies.

Hello! I have a similar issue stuck loading with a different log error. I have installed Microsoft Visual C++ Redistributable and  updated everything I can think of.
PS C:\Users\james\AppData\Local\Programs\AI Playground\resources\service> ..\env\python.exe .\web_api.py
C:\Users\james\AppData\Local\Programs\AI Playground\resources\env\Lib\site-packages\torchvision\io\image.py:13: UserWarning: Failed to load image Python extension: 'Could not find module 'C:\Users\james\AppData\Local\Programs\AI Playground\resources\env\Lib\site-packages\torchvision\image.pyd' (or one of its dependencies). Try using the full path with constructor syntax.'If you don't plan on using image functionality from torchvision.io, you can ignore this warning. Otherwise, there might be something wrong with your environment. Did you have libjpeg or libpng installed before building torchvision from source?
warn(
ZE_LOADER_DEBUG_TRACE:Using Loader Library Path:
ZE_LOADER_DEBUG_TRACE:Tracing Layer Library Path: ze_tracing_layer.dll

Fixed by v1.22


New maj datamine

Hi Pixel hope you are doing well, I just reported that since adding content from the last update, the new cards are in the game but do not appear in the cardlist after manip, check it out for the next update ;) - thank you so much for all, have good day sir!

https://github.com/pixeltris/YgoMaster/issues/130 for notifying me of updates.


libdnf: 0.70.2 -> 0.71.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/rpm-software-management/libdnf/releases.
meta.description for libdnf is: Package management library
meta.homepage for libdnf is: https://github.com/rpm-software-management/libdnf
meta.changelog for libdnf is: https://github.com/rpm-software-management/libdnf/releases/tag/0.71.0
Updates performed

Version update

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.71.0 with grep in /nix/store/n822a21b7l1q6xcz6qs3iyrcmh1kwmc2-libdnf-0.71.0
found 0.71.0 in filename of file in /nix/store/n822a21b7l1q6xcz6qs3iyrcmh1kwmc2-libdnf-0.71.0

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath
libdnf
microdnf

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/n822a21b7l1q6xcz6qs3iyrcmh1kwmc2-libdnf-0.71.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A libdnf https://github.com/r-ryantm/nixpkgs/archive/257db31c822233dae5e5d051abc93d0ee4b18985.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/257db31c822233dae5e5d051abc93d0ee4b18985#libdnf

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/n822a21b7l1q6xcz6qs3iyrcmh1kwmc2-libdnf-0.71.0
ls -la /nix/store/n822a21b7l1q6xcz6qs3iyrcmh1kwmc2-libdnf-0.71.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

2 packages built:

libdnf
microdnf

Maintainer pings
cc @rb2k for testing.

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

2 packages built:

libdnf
microdnf