Removing text does not work properly

I remove some sections of my cards by using the remove shortcut but when the cards show up again the removed section was not removed, it just there.
Also, sometimes I extract some sections to other IR Cards, then when they show up again they are not highlighted by 'extracted' color.

Hi,
Thanks for the report. I will look into this over the next few days.

I tried removing all other addons to check if any conflict issue could be the reason. However, the problem persist even after removing all addons but this one.
I hope it will be useful somehow.

This problem is the same of issue [#4]. Highlight is not permanent and is broken at step 2.

Thanks for the information. Did you mean to close this issue?
A few other questions:

Does your IR3 front template contain
{{Text}}
?
Have you reinstalled the incremental reading add-on?
Are you using a Mac? (From memory, I think similar problems have only been reported by Mac users)
Are you able to confirm if this occurs with the Anki 2.1 beta and the 2.1-compatible add-on? (Be careful if you try this, because Anki 2.1 moves all your data - which you might need to move back)

This kind of problem is the most difficult to investigate, because I'm not able to reproduce it locally. So I can't promise there'll be a solution for this, unless we can pin down the cause.

Before trying the steps above, I just removed anki (2.0.32) from my ubuntu and install the version 2.0.45 from anki web site. It did fix the problem according to my tests which allowed me to highlight and remove sections and they did not go away when reviewing the cards.
I appreciate your attention on this issue,
Thanks!


autoComplete='off' does not disables the autocomplete in Android

Description
According to doc it says

Specifies autocomplete hints for the system, so it can provide autofill. On Android, the system will always attempt to offer autofill by using heuristics to identify the type of content. To disable autocomplete, set autoComplete to off.

However with following code snippet, in Android we still get the autocomplete Hint.
<TextInput autoComplete='off' />

Output

Steps to reproduce

Open Snack
Run it in Android
Start typing
You can see autocomplete suggestion

React Native Version
0.75.3
Affected Platforms
Runtime - Android
Output of npx react-native info
info Fetching system and libraries information...
System:
  OS: macOS 15.0
  CPU: (12) arm64 Apple M2 Pro
  Memory: 158.14 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 18.17.0
    path: ~/.nvm/versions/node/v18.17.0/bin/node
  Yarn:
    version: 3.6.4
    path: /opt/local/bin/yarn
  npm:
    version: 9.6.7
    path: ~/.nvm/versions/node/v18.17.0/bin/npm
  Watchman:
    version: 2<IP_ADDRESS>
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.13.0
    path: /usr/local/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.0
      - iOS 18.0
      - macOS 15.0
      - tvOS 18.0
      - visionOS 2.0
      - watchOS 11.0
  Android SDK:
    API Levels:
      - "31"
      - "33"
      - "34"
    Build Tools:
      - 30.0.3
      - 33.0.0
      - 33.0.1
      - 34.0.0
    System Images:
      - android-22 | Google APIs ARM 64 v8a
      - android-34 | Google APIs ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2024.1 AI-241.18034.62.2411.12071903
  Xcode:
    version: 16.0/16A242d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.11
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.75.3
    wanted: 0.75.3
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: false

Stacktrace or Logs
-

Reproducer
https://snack.expo.dev/@endo-ngima/reproducer-rn-textinput-autocomplete-off
Screenshots and Videos
No response

Currently I am using keyboardType={'visible-password'} as workaround.
But one limitation with this is I can't have multiline with enter key.


error

gap = tflearn.global_avg_pool(net)
The input should be  fea_U，right？

I have other two questions.
why do you use add() in att_vec = tf.add(att_vec, fcs)？
And you fuse different branchs before softmax?

Thanks, now 'gap = tflearn.global_avg_pool(fea_U)'
The operation which i did is follow the origin paper, pls refer to original paper~ thx!


Joins don't work like the doc says

I want to express this query efficiently with diesel:
select count(*) from likes inner join posts on posts.id = likes.post_id where posts.user_id = $1;

I tried:
likes::table.inner_join(posts::table).filter(user_id.eq(uid)).count().get_result(conn)

But I get:

error: no method named filter found for type diesel::query_source::InnerJoinSource<models::schema::__diesel_infer_schema::infer_likes::likes::table, models::schema::__diesel_infer_schema::infer_posts::posts::table> in the current scope

Then I tried this:
let data: Vec<(Like, Post)> = likes::table.inner_join(posts::table).load(conn)?;

But I get:

error: no method named load found for type diesel::query_source::InnerJoinSource<models::schema::__diesel_infer_schema::infer_likes::likes::table, models::schema::__diesel_infer_schema::infer_posts::posts::table> in the current scope

Even though the doc has this example:
let data: Vec<(User, Post)> = users::table.inner_join(posts::table).load(&connection);

What is the correct way to express the above SQL query in diesel?

You have to derive the trait Associations for the structs corresponding to the joined tables. You have to also annotate the structs using belongs_to and has_many attributes. Without those annotations the tables won't implement the JoinSource traits.

@golddranks I have:
#[derive(Queryable, new, Debug, Associations)]
#[belongs_to(User)]
#[belongs_to(Post)]
#[derive(Insertable)]
#[table_name="likes"]
pub struct Like {
	pub user_id: i64,
	pub post_id: i64,
}
...
#[derive(Queryable, Identifiable, Clone, Associations, Debug)]
#[belongs_to(User)]
// #[belongs_to(Post, foreign_key="parent")]
pub struct Post {
	pub id: i64,
	pub user_id: i64,
	pub parent: Option<i64>,
	...
}

If I add #[has_many(Like)] to Post, I get:
error[E0223]: ambiguous associated type
    |
130 | #[derive(Queryable, Identifiable, Clone, Associations, Debug)]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ambiguous associated type
    |
    = note: specify the type using the syntax `<models::like::Like as Trait>::table`
    = note: this error originates in a macro outside of the current crate

I'm not 100% sure about the problem because the error message isn't too descriptive, but at least has_many annotation should have the name of the DB table, not the name of the struct. (belongs_to has the name of the struct, as you currently have.) I don't know why, and I know it's annoying that they are asymmetric in that way, but try fixing that. (@sgrif and @killercup: is there any intuitive reason that helps us to be convinced like "of course it should be that way"?)

@golddranks Thanks, but now I get:
error[E0308]: mismatched types
    |
194 | 		likes::table.inner_join(posts::table).filter(user_id.eq(uid)).count()
    | 		                        ^^^^^^^^^^^^ expected struct `models::schema::__diesel_infer_schema::infer_users::users::table`, found struct `models::schema::__diesel_infer_schema::infer_posts::posts::table`
    |
    = note: expected type `models::schema::__diesel_infer_schema::infer_users::users::table`
               found type `models::schema::__diesel_infer_schema::infer_posts::posts::table`

You might want to add foreign_key annotations too. The table likes having no own id field may cause it to be confused about which fields to use.
Also, the error message sounds like it's infering the types wrong. Is there anything external that might make it expect users instead of posts? What is the type of user_id in the filter clause?

Ah, nevermind, I had changed this:
#[belongs_to(User)]
#[belongs_to(Post)]

to this:
#[belongs_to(User, Post)]

because I assumed it would work, just like:
#[derive(Queryable, Insertable, new, Debug, Associations)]

Now that I changed it back to the former version, it compiles, yay!
Thanks!

I'm only reading this via email. The problem was adding the belongs_to attribute twice?
Does the documentation mention this? (If not, PR welcome!)

Am 07.02.2017 um 12:21 schrieb Boscop<EMAIL_ADDRESS>Ah, nevermind, I had changed this:
#[belongs_to(User)]
#[belongs_to(Post)]
to this:
#[belongs_to(User, Post)]
because I assumed it would work, just like:
#[derive(Queryable, Insertable, new, Debug, Associations)]
Now that I changed it back to the former version, it compiles, yay!
Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@killercup The issue (at the end) was that I thought one could specify multiple structs that a struct belongs to in one #[belongs_to()] attribute, because it works with #[derive()]..
Btw, now this works:
pub fn get_likes_count(&self) -> Result<i64, error::MyError> {
	use diesel::prelude::*;
	use models::schema::likes;
	use models::schema::posts;
	use models::schema::posts::dsl::*;

	likes::table.inner_join(posts::table).filter(user_id.eq(self.id)).count()
		.get_result(&*database::connection().get().unwrap()).map_err(|e| e.into())
}

But this doesn't:
pub fn get_liked_posts(&self) -> Result<Vec<models::post::Post>, error::MyError> {
	use diesel::prelude::*;
	use models::schema::likes;
	use models::schema::posts;
	use models::schema::posts::dsl::*;

	likes::table.inner_join(posts::table).filter(user_id.eq(self.id))
		.get_results(&*database::connection().get().unwrap()).map_err(|e| e.into())
}

the trait diesel::types::FromSqlRow<((diesel::types::BigInt, diesel::types::BigInt), (diesel::types::BigInt, diesel::types::BigInt, diesel::types::Timestamp, diesel::types::Timestamp, diesel::types::Nullable<diesel::types::BigInt>, diesel::types::Text, diesel::types::Text, diesel::types::Nullable<diesel::types::Timestamp>, diesel::types::Integer, diesel::types::Nullable<diesel::types::BigInt>, diesel::types::Nullable<diesel::types::BigInt>, diesel::types::Nullable<diesel::types::BigInt>)), diesel::pg::Pg> is not implemented for (i64, i64, chrono::NaiveDateTime, chrono::NaiveDateTime, std::option::Option<i64>, std::string::String, std::string::String, std::option::Option<chrono::NaiveDateTime>, i32, std::option::Option<i64>, std::option::Option<i64>, std::option::Option<i64>)

Because the output has the columns of likes and posts, but it should only have the columns of posts.
What's the correct way to do this?

I also tried splitting it up into two queries like this:
pub fn get_liked_posts(&self) -> Result<Vec<models::post::Post>, error::MyError> {
	use diesel::prelude::*;
	use models::schema::likes;
	use models::schema::posts;
	use models::schema::posts::dsl::*;

	let conn = &*database::connection().get().unwrap();
	let likes = models::like::Like::belonging_to(self).load(conn)?;
	models::post::Post::belonging_to(&likes).order(created_at.desc()).load(conn)?
}

But I get:

error: no associated item named belonging_to found for type models::like::Like in the current scope
note: the method belonging_to exists but the following trait bounds were not satisfied: models::like::Like : diesel::associations::HasTable, models::like::Like : diesel::associations::HasTable, models::like::Like : diesel::associations::HasTable, models::like::Like : diesel::associations::HasTable, models::like::Like : diesel::BelongingToDsl<&[_]>, ......

But I have:
#[derive(Queryable, Insertable, Associations, new, Debug)]
#[belongs_to(User)]
#[belongs_to(Post)]
#[table_name="likes"]
pub struct Like {
	pub user_id: i64,
	pub post_id: i64,
}

#[derive(Queryable, Identifiable, Associations, Debug, Clone)]
#[has_many(likes)]
pub struct User {
	pub id: i64,
	...
}

So why doesn't Like have the method belonging_to()?

You need to add #[derive(Identifiable)] to Like, which will also require adding #[primary_key(user_id, post_id)]

@sgrif Thanks!
I did that now:
#[derive(Queryable, Identifiable, Insertable, Associations, new, Debug)]
#[belongs_to(User)]
#[belongs_to(Post)]
#[primary_key(user_id, post_id)]
#[table_name="likes"]
pub struct Like {
    ....
}

#[derive(Queryable, Identifiable, Associations, Clone, Debug)]
#[belongs_to(User)]
#[has_many(likes)]
pub struct Post {
     ...
}

but I still get errors:
pub fn get_liked_posts(&self) -> Result<Vec<models::post::Post>, error::MyError> {
	use diesel::prelude::*;
	use models::schema::likes;
	use models::schema::posts;
	use models::schema::posts::dsl::*;
	use models::like::Like;
	use models::post::Post;

	let conn = &*database::connection().get().unwrap();
	let likes: Vec<Like> = Like::belonging_to(self).load(conn).map_err(|e| e.into())?;
	Post::belonging_to(&likes).order(created_at.desc()).load(conn).map_err(|e| e.into())
}

error[E0277]: the trait bound models::post::Post: diesel::BelongingToDsl<&std::vec::Vec<models::like::Like>> is not satisfied

This version also doesn't work; how can I get rid of the columns of likes in the join result?
pub fn get_liked_posts(&self) -> Result<Vec<models::post::Post>, error::MyError> {
	use diesel::prelude::*;
	use models::schema::likes;
	use models::schema::posts;
	use models::schema::posts::dsl::*;
	use models::like::Like;
	use models::post::Post;

	let conn = &*database::connection().get().unwrap();
	likes::table.inner_join(posts::table).filter(user_id.eq(self.id))
		.get_results(conn).map_err(|e| e.into())
}

error[E0277]: the trait bound (i64, i64, chrono::NaiveDateTime, chrono::NaiveDateTime, std::option::Option<i64>, std::string::String, std::string::String, std::option::Option<chrono::NaiveDateTime>, i32, std::option::Option<i64>, std::option::Option<i64>, std::option::Option<i64>): diesel::types::FromSqlRow<((diesel::types::BigInt, diesel::types::BigInt), (diesel::types::BigInt, diesel::types::BigInt, diesel::types::Timestamp, diesel::types::Timestamp, diesel::types::Nullable<diesel::types::BigInt>, diesel::types::Text, diesel::types::Text, diesel::types::Nullable<diesel::types::Timestamp>, diesel::types::Integer, diesel::types::Nullable<diesel::types::BigInt>, diesel::types::Nullable<diesel::types::BigInt>, diesel::types::Nullable<diesel::types::BigInt>)), diesel::pg::Pg> is not satisfied

This seems to work:
pub fn get_liked_posts(&self) -> Result<Vec<models::post::Post>, error::MyError> {
	use diesel::prelude::*;
	use models::schema::likes;
	use models::schema::likes::dsl::user_id;
	use models::schema::posts;
	use models::schema::posts::dsl::created_at;
	use models::like::Like;

	let conn = &*database::connection().get().unwrap();
	Ok(posts::table.inner_join(likes::table).filter(user_id.eq(self.id)).order(created_at.desc()).get_results(conn)?.into_iter().unzip::<_, _, _, Vec<Like>>().0)
}

But with get_results() I'm getting a Vec<(Post, Like)>, but I only need the Vec so I unzip it and throw away the Vec, which is wasteful..
Is there a better way to get all the posts that this user likes?

Ah, I found a way that works:
pub fn get_liked_posts(&self) -> Result<Vec<models::post::Post>, error::MyError> {
	use diesel::prelude::*;
	use models::schema::likes;
	use models::schema::likes::dsl::user_id;
	use models::schema::posts;
	use models::schema::posts::dsl::created_at;

	let conn = &*database::connection().get().unwrap();
	Ok(posts::table.inner_join(likes::table).filter(user_id.eq(self.id))
		.select(posts::all_columns).order(created_at.desc()).get_results(conn)?)
}

Yes, that looks fine to me.

Thanks!

I ran into the issue in the first post, where diesel::query_source::InnerJoinSource has no method named load
My issue was that I had not specified the #[belongs_to] annotation with the name of the column referenced in the foreign key; I had only done this in the #[has_many] annotation.
On closer read of the documentation, it does mention the ability to specify this on #[has_many] as well as #[belongs_to]; in my oversight, I hadn't realized both were required, as the example in the documentation is only on the #[has_many]


What exactly is shapley value in SHAP method?

Hi @slundberg
I see that in the SHAP method there is a Shapley value calculated for every feature in every row. What exactly is this Shapley value? When I have say 0.03 as Shapley value for one feature and -0.07 for other what exactly this 0.03 and -0.07 signify and how is it calculated?
Can these Shapley values be used to calculate percentage contribution of feature towards final prediction?
Please help me out!

@slundberg
Can you give me some clarity on this?

It depends on expleiner and arguments. Post snippet of code that produce this output. If you want to you can also read:

A Guide for Making Black Box Models Explainable by Molnar

Documentation

Explainable AI for Trees: From Local Explanations to Global
Understanding by Lundberg et al.

@thatlittleboy Candidate for closing I think.

@detrin agreed. This is not an issue and should be closed.


Add membership.md and members.yaml

What this PR does / why we need it:
Plan to set up a membership mechanism to attract more contributions.
Does this PR introduce a user-facing change?
NONE

lgtm


Is it possible to use constants in Swagger XML documentation?

Is it possible for me to avoid code duplication like this by using the constant right in the Swagger doc?
/// <response code="422">Logical conditions are not satisfied. The following error codes can be returned.
///

///
5555 - Failed to ....

///

/// </response>

I also have this error description stored in a variable:
string error5555 = "Failed to ...."
https://stackoverflow.com/questions/71515577/code-duplication-in-swagger-xml-doc-and-actual-c-sharp-code

This may be a tool specific question, and in that case you should open the ticket on the tool you're using. Generally speaking, OpenAPI does not have an XML representation.


Changing form field's input tag to textarea makes contents disappear (unless children__text is set explicitly)

Example to reproduce:
def example_textarea_bug(request):
    album = Album.objects.get(id=1)

    return Form.edit(
        auto__instance=album,
        # fields__name__input__tag="textarea",             # uncomment this line to expose the bug
        # fields__name__input__children__text=album.name,  # uncomment this line to display things correctly again
    )

If you uncomment the line fields__name__input__tag="textarea", the album name disappears and only an empty textarea is displayed. If you uncomment both lines then everything works as expected again.
The reason for this is that the default <input> tag takes its contents from the value attribute. While this attribute is retained if we modify the tag to be textarea, it is silently ignored by the browser:
<textarea
    class="form-control"
    data-iommi-path="fields__name__input"
    data-iommi-type="Fragment"
    id="id_name"
    name="name"
    type="text"
    value="The Great Artistry Of Django Reinhardt"
></textarea>

@boxed @jlubcke Do you have any thoughts on how to support a "smarter" / "more semantic" transformation of the field from input to textarea? Is this within scope for iommi?

Yea, this is an annoying detail where the details of html leak through. We do handle tags that should not have children according to the html spec, so I think this probably is in scope.


Fix README.md

Hello! Thank you for good Gem :+1:
I found a little bit of mistake in the README document below.
Scriptster::log :info, "Checking branches"

git_cmd = Scriptster::cmd "git branch",
  :show_out = true,
  :show_err = true

branch_exists = git_cmd.out.split("\n").grep(/#{branch}/).length > 0
Scriptster::log(:warn, "Branch '#{branch}' not found") unless branch_exists

I guessed :show_out = true is typo of :show_out => true, so I corrected these mistakes.
And then, I thought the snippet had better work just by copy and paste, but it didn't because there's not a local variable branch. So I added it.

Hi @quanon, thanks so much for fixing these!
I'll merge it right away :-).

:smile:


doc: Add example to toggle autopairs

Although useful, under some certain edit situation, a user may wish to
turn on/off autopairs.  This example demonstrate how to enable such.
This is taken from doom-nvim PR I made.

thank for your PR.
I am not prefer to add some specify user setting on readme like that
maybe if you want you can add a detail about
autopairs.state.disabled after 'function disable()'


Adopt relevant changes from pulumi/docs#4006

Ported from @andreujuanc's changes.

@andreujuanc updated your original PR and made it here. Thanks for the help!

♥ Sorry for the trouble @leezen . I'll try to do it myself next time. Been really busy (Thankfully)


MemSet incorrect copy for native float array with -1

We used to check if the memset value is -1 to determine if we can do a byte level memset.
This was valid ints but not for floats.
Changed the check to really see if the bytes are all the same.

This change is

@LouisLaf @rajatd @pleath Please review

I realized that there were other occurrences of this bug.
I made a function to gather gather them.
For the double type, I only check for 0 to do a memset as it is unlikely that all byte on a double be the same.
For Var, I don't even bother checking as it will most likely be a pointer or tagged value.
For Integer, I check if the byte are the same aka 0xabababab is valid to do a memset.

        }

remove this?

Refers to: lib/Runtime/Library/JavascriptArray.inl:1086 in 4faa24a. [](commit_id = 4faa24af1b57058d78e618687705d2d15d59c24c, deletion_comment = False)

:shipit:


Update main ReadMe of the repository

Update and add new styling options, gifs, images, extra information and all the stuff that can show your creativity and help making this repository look nicer.

heyy @Pradyuman7 , could you assign me this issue?

Yes, please feel free to work on the issue, I shall make sure to review and merge your PR asap. I am not assigning the issue to anyone since many people can work on improving it and we can all share the issue number in the PRs.


Update en messages based on UX designer's comments

Update en messages based on UX designer's comments

Updated messages.
Updated the messages. The commented ones changed to the following:
"CONFIRM_SUMMARY": "Values have changed, confirm to leave?",
"FORM_CHANGE_CONFIRMATION": "Values have changed, confirm to discard?"
All ‘ldap’ changed to ‘LDAP’.

@lweitzman
This issue is created to track the message changes you mentioned in your mail. So, still need you to verify this issue.


Suggestion/request: Make Angular CLI a NX plugin - to help minimise the code maintained by Angular itself

From my understanding, Google doesn't use Angular CLI. This means they are maintaining this for the good of the Angular community. With Nrwl NX starting to become standard in a lot of Angular applications. Would it now make sense to slimline Angular CLI to become a plugin built to NX/ a wrapper to NX CLI?
This could help community engagement, and you can focus on creating the generators and builders.
If not drop would it be a worth pointing to a "community" alternative for people inside the documentation?

Hey @Jordan-Hall, currently, the layering is a little different. Angular CLI provides the base functionality with its core modules - builders, schematics, etc. Nx has initially been an extension of the CLI, and it still provides a superset of the features that Angular CLI has.
Many developers extract value from the more minimalistic feature set of the CLI and other users enjoy the more complete experience Nx provides.
Given the layering and the different goals of the two tools, making an Angular CLI a plugin for Nx would be infeasible.
Additionally, Google uses the Angular CLI internally. The difference is in the build system and some custom schematics functionality to assist in the build file generation for Bazel.


ts: Migrate popover_menus to typescript.

This commit migrates popover_menus module to TypeScript. Also adds a placeholder types declaration file for css_variables module since this module was dependent on it.

Self-review checklist

[x] Self-reviewed the changes for clarity and maintainability
(variable names, code reuse, readability, etc.).

Communicate decisions, questions, and potential concerns.

[x] Explains differences from previous plans (e.g., issue description).
[x] Highlights technical choices and bugs encountered.
[x] Calls out remaining decisions and concerns.
[x] Automated tests verify logic where appropriate.

Individual commits are ready for review (see commit discipline).

[x] Each commit is a coherent idea.
[x] Commit message(s) explain reasoning and motivation for changes.

Completed manual review and testing of the following:

[x] Visual appearance of the changes.
[x] Responsiveness and internationalization.
[x] Strings and tooltips.
[x] End-to-end functionality of buttons, interactions and flows.
[x] Corner cases, error conditions, and easily imagined bugs.

@zulipbot add "area: typescript migration"

@amanagr can you help review this one? It's not an 8.0 priority but might be quick.

@Lalit3716 looks great! Pushed to resolve conflicts.

I tweaked https://github.com/zulip/zulip/pull/27782#discussion_r1429284796 before merging this, thanks @Lalit3716 and @amanagr!


Document optimization.chunkIds

Feature to document
optimization.chunkIds was introduced in webpack/webpack#7686 and released in<EMAIL_ADDRESS>Author(s)
@sokra
Additional information
optimization.moduleIds is already documented, so the documentation for optimization.chunkIds will probably be fairly similar.

Hi @nwoltman
Thank you for reporting, PR is up and it should be live soon.


Remove manual serialization of payload.

Remove manual serialization of payload using JSON.stringify since it is default serializer. In the sample code of the WebSocket operator.

Description:
Related issue (if exists):

Good find, @aerojeyenth, just a couple of small tweaks and this is good to go.

@benlesh Appveyor build failed. It appears its specific to the environment. Is there any action item on my side to pass the build ?


How to fine-tune instruct mpt-7b model?

I see in the train.py under scripts/train, it gets a model when given a model configuration. I took a look at this yaml 7b_dolly_sft.yaml and do you think I could further tune the instruct model somehow?
What name do I specify in the yaml for the instruct model? Or can I give it a custom path to that instruct model if I have saved it locally? Looking to freeze weights for all the layers other than the last one and then fine-tuning.
Please guide me. Thanks a bunch!

A solution was found here: https://github.com/mosaicml/llm-foundry/issues/94#issuecomment-1543394147

To set your starting model to our MPT-7B-Instruct model on the Hugging Face hub, you'd use this model config in your YAML
  # Model
  model:
    name: hf_causal_lm
    pretrained_model_name_or_path: mosaicml/mpt-7b-instruct
    device: cpu
    pretrained: true
    # Comment the attn_config block to use default "torch" attention
    attn_config:
      attn_impl: triton

Note that pretrained_model_name_or_path determines what value is passed to Hugging Face's AutoModelForCausalLM.from_pretrained(pretrained_model_name_or_path=...) when building the model. from_pretrained supports local paths.
For freezing all the weights except the last layer, you can add some custom logic to scripts/train/train.py. The guy in this video does that freezing with our model inside a notebook. Might be a useful reference.

@baptistejamin is it possible to make a jupyter notebook , that way we could use that to fine-tune MPT-7B using cloud GPUs (paid ofc) , but in a notebook format it will be easy for others to pick up as well.

@alextrott16 so I managed to successfully run the train.py. Two questions however:

I froze all the weights except the last one and it took maybe 10 seconds to fine-tune on a dataset of just 6 samples. Is that normal? Using an A100-40GB
Where is the updated model saved? I see in the yaml there's a prop called save_folder and having specified that I get a file called "latest-rank0.pt". Is this the updated model? How do I use it? Sorry if I'm not asking the right questions.

Thank you!

To set your starting model to our MPT-7B-Instruct model on the Hugging Face hub, you'd use this model config in your YAML

  # Model

  model:

    name: hf_causal_lm

    pretrained_model_name_or_path: mosaicml/mpt-7b-instruct

    device: cpu

    pretrained: true

    # Comment the attn_config block to use default "torch" attention

    attn_config:

      attn_impl: triton

Note that pretrained_model_name_or_path determines what value is passed to Hugging Face's AutoModelForCausalLM.from_pretrained(pretrained_model_name_or_path=...) when building the model. from_pretrained supports local paths.

Hi, we fine tuned an instruction model without freezing any weights. The resulting checkpoint is 77GB ! How do we convert it back to the hf-format and use it ?
Also, when trying to fine-tune the training loss profile is  way better with
name: mpt_causal_lm than with hf_causal_lm. What is the difference?
Thank you.

Hi, we fine tuned an instruction model without freezing any weights. The resulting checkpoint is 77GB ! How do we convert it back to the hf-format and use it ?

Hi @SoumitriKolavennu , the 77GB is expected given that it is a 7B model and the Composer checkpoint holds both model and optimizer state. To convert to a HF checkpoint folder, you can use the instructions in the scripts/inference folder: https://github.com/mosaicml/llm-foundry/tree/main/scripts/inference#converting-a-composer-checkpoint-to-an-hf-checkpoint-folder

Also, when trying to fine-tune the training loss profile is way better with
name: mpt_causal_lm than with hf_causal_lm. What is the difference?

Could you clarify exactly what you see different between the training loss profiles (with screenshots). In one case (mpt_causal_lm) , you are probably initializing a from-scratch MPT and finetuning it. In the other case (hf_causal_lm pointed at the HF model mosaicml/mpt-7b-instruct) you are starting from the pretrained weights of our MPT-7B-Instruct model on the HF Hub. I would expect the latter to have much lower initial loss and result in a higher quality model

Hi @SoumitriKolavennu , I'm closing this issue for now but feel free to reopen if you need further assistance.

Hi @SoumitriKolavennu , I'm closing this issue for now but feel free to reopen if you need further assistance.

Hi @abhi-mosaic, Thank you for the help in converting to huggingface. Following your instructions worked great. One minor suggestion would be to include the converter in training folder instead of the inference folder. My other question about name is still relevant but perhaps it deserves a thread of its own. Please close this issue and thank you for the help.

Hey guys, I just made a video on how to do this in google collab: https://youtu.be/3de0Utr9XnI Hope it helps!

@VRSEN can you make a Colab or video by generalizing the input data preprocessing a bit more. For example, if we want to fine-tune for a news summarization task, how would I preprocess the dataset (e.g., HF dataset multi_news) which has two columns only "document" and "summary"?


Add trained ssd

Frozen graph would not upload due to size, temp link is here (https://drive.google.com/open?id=1iMaM6063kGMPp9fTTKN3OKA4_e8hgxWx). Download this and put into perception dir to run

Looks like accidental push of your team's code; closing.


[FEATURE] allow to use array in RegisteringNibs

Hi! I am using this in my company's project!
This is very very comfortable and I love it!
Today, I would like to recommend this function to make this much better.
I think this would make coding faster and nicer.
(I think if this could be okay to merge,  there would be more couple of place to fix.
ex, not only the case with registerNib but register or not only UITableView but UICollectionView and more)
I hope this would make any help. Thanks.

Is it work correctly? Looks this Array lock in 1 type. Can't pass multiple types this way.🤔
I will check it lator.

Thanks for your reply.
For this code,  I mean to do it only for registerNib(only when calling Reusable & NibType).
https://github.com/tarunon/Instantiate/blob/9848dd1fbdb00310cc8eae115f2b00c04e485119/Sources/Instantiate/iOS/Reusable%2BUITableView.swift#L45
public func registerNib<C: UITableViewCell>(type: C.Type) where C: Reusable, C: NibType {
            register(C.nib, forCellReuseIdentifier: C.reusableIdentifier)
        }

if you liked my propose to add this function, I would like to add other function related to this which would pass multiple types.

Hmm, Could you please add test cases for that?
I think I can understand correctly your hope from test cases.

I try to use it, looks not work correctly 🤔

So, If my understanding is correct, it's really difficult to register them onetime using Array.

Thanks. I got what you meant to say.
Swift Type does not allow us to take more than one.
If I could find the way it works, I will throw another PR again.
Thanks for the conversation.


Got the project confused – again

I tried to be smart and set the 'Debug' property of the RazorPagesMovie project to use "https://localhost:44345/Movies". After just that small change, saving the properties and the "/Movies" stopped working. It starts with the correct URL but only shows the home page. Removing and saving the properties did not help. I also noticed that in the 'Debug' property page, the port number in the "App URL" field and in the "Enable SSL" field was different. It was actually using the one in the "Enable SSL" field.
Why is it that this change affects so unexpectedly and how can I get it back to work the original way? Is this a bug in the VS how it handles properties or have I completely misunderstood the purpose of the Properties page in this case?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 6719f08e-3bd7-dc1a-71df-f2ef9fbca9d8
Version Independent ID: 7096fdb3-612e-9e00-bd0b-8ea4886a09ce
Content: Add a model to a Razor Pages app in ASP.NET Core
Content Source: aspnetcore/tutorials/razor-pages/model.md
Service: unspecified
Product: aspnet-core
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

@jurva  I'm not sure what you did to break the app. You'll probably get quicker help if you ask on stack overflow.

I didn't touch any other parts of the Properties. To investigate, I just tested with a fresh project and verified that only saving the Properties (with updated Package/Authors info) does not break it. So, I guess it must be something in the Debug tab. At the moment, the App URL shows "http://localhost:65303" while the Enable SSL (checked) shows "https://localhost:44391/". The latter is actually used when running the app.
Maybe I should just leave it "as is" for time being and do the rest of the steps. Or, go to sleep (it is past midnight here).


implement a CookieHandler to manually set and validate cookies

By setting a CookieHandler, the user can provide an opaque byte-slice that is used as a cookie in the HRR, and validate the cookie when the client echos it in the CH. Mint passes a pointer to the Conn to the methods that generate and validate the cookie. It's the responsibility of the cookie handler implementation to decide if a cookie should be sent for this specific connection..
If Config.RequireCookie is set to true, but no Config.CookieHandler is defined, a default cookie handler is used (the one that was already implemented). The default handler uses 32 random bytes as a cookie.
I'm not sure where the appropriate place would be to test a failed cookie validation. I guess state-machine_test.go would be the right place, but the tests there only cover successful handshakes.
@ekr: It would be great if you could review this PR as well.

Hey, that's great. This was coming up soon on my list. I'm on travel today, but I'll take a look as soon as I can.

@marten-seemann, @rbarnes: I think there's an underlying problem in Mint, which is that it generates HRR when RequireCookie is set but not when it is missing the appropriate client key share. So, that's going to cause problems later. You might look at MT's code in NSS for handling this that lets you cover the cases.

This PR is ready for review now.
I updated the description to explain the changes.
@ekr: I think the HRR generation is a general mint problem, and unrelated to this PR. Can you create a new issue for this?

@bifurcation: Can you please review and merge this PR?

@ekr: Please have another look.

I added another fix here. If the CookieHandler doesn't return a cookie, mint shouldn't send one.
This should be ready for merging now. @ekr, @bifurcation, what do you think?


Update ReflectiveTuple to work with nested objects

Currently you can only select fields from the wrapped object. It would be useful to be able to select nested fields like: "field.nestedField.anotherNestedField"

Merged into develop.


Repo Serves Clients + Client App Redone

This Pull accomplishes two tasks:

sort out how a repo node replies to interests
redo the client application

This Pull DOES NOT accomplish client file fetching. This is in the process of being done, and only sets up how the repo will respond.
New Client Functionality:
All functions (dump, insert, delete, fetch) are done by doing:

python3 main.py fetch
python3 main.py delete
python3 main.py dump
python3 main.py insert

Some of these (in fact all of them) have their own arguments (indicated by a -letter) that you need to fulfill for example:

python3 main.py insert -f "/file1" -p "./examples/t.txt"

If you run the client application, it will tell you this entire process. The application will correct you.
New Repo Functionality:
The repo will respond with either a NACK, BLOB, or LINK data packet. The first two self-explanatory, the latter being the correct prefix to go to (does not include segmenting). For example if the client wants /drepo/main/file1/seg=0, then the link will provide /drepo/id/node5/file1 for example. The Client is responsible getting what packets it needs.
While the Repo can not be tested yet. The New Client should be tested before pushing it to main.

you should use global_view_2 instead of global_view everywhere. Plz change that in ndn_distributed_repo/handle_protocol/read_handle.py, thx!

I sorted out the database problems. Currently, I am just having trouble connecting nodes together. For some reason, it sometimes prints EXPIRE messages for two of the nodes on all three nodes. This makes it so that when a client sends an insert command, it doesnt have enough nodes within the repo to replicate it, failing.
Maybe this is an issue with the Expire message?


Done enhancements and also added some new sections

I have enhanced the document and also added some new sections
Done the following changes :-

Enhanced the project structure
Added code of conduct section
Added star our repository section
Added need help with the basics section
Added first pull request steps section
Added additional method of contributing through GitHub desktop section
Added good coding practices section
Added the pull request rules section
Added the thank you section

Fixes:[#80 ]
Closes:[#80 ]

I have done enhancements in the documentation. Please kindly check once if all things are fine please merge the PR. Also please attach the gssoc extend and level label.

Please kindly check the changes once if everything is fine please kindly merge the PR.

@milansamuel609 why the auto label.yml fields at every pr, can you please help?

I have done enhancements in the documentation. Please kindly check once if all things are fine please merge the PR. Also please attach the gssoc extend and level label.

Thanks 👍

@milansamuel609 why the auto label.yml fields at every pr, can you please help?

Actually I also don't know about this. This is mainly done by admins that's why. 🥲

If the changes are fine please kindly merge the PR

If all the changes are fine please kindly merge the PR. Also please add the gssoc extend and level label.

@Devanik21  Please kindly merge the PR and attach the gssoc extend and level label.

This PR has been merged by the GSSoC team
here - https://github.com/sanjay-kv/Open-source-Practice/pull/1348
@Devanik21  Don't add labels to it now.
@milansamuel609 You'll get the points in the leaderboard update.

This PR has been merged by the GSSoC team here - sanjay-kv/Open-source-Practice#1348
@Devanik21 Don't add labels to it now. @milansamuel609 You'll get the points in the leaderboard update.

@aslams2020 Thank you 🙂


Markdown is without background colour with 0.22 version

Search terms
markdown background

Expected Behavior
Before my markdown looked like this:

Actual Behavior
Now, after 0.22, like this:

The difference is in the background of the markown.

Steps to reproduce the bug
You can just run npm run docs in my project https://github.com/euberdeveloper/dree, with the versions 0.21 and 0.22 and look at the differences
Environment

Typedoc version: 0.22.10
TypeScript version: 4.5.4
Node.js version: 16.3.0
OS: Ubuntu 20

This is because, in 0.22, TypeDoc takes the background color from the code, and the default theme, light-plus has a background of #FFFFFF. I don't like the fix...


<EMAIL_ADDRESS>Fix for changed extract_dir

Closes #6563

Looks great 👍 This will solve the current blender installation after the upgrade.


Running FHIR server locally for development and testing

Description
Linking the README.md with Docker and Kubernetes samples.
Testing
The FHIR server was run locally using docker with the below instructions and verified through postman.
FHIR Team Checklist

Update the title of the PR to be succinct and less than 65 characters
Add a milestone to the PR for the sprint that it is merged (i.e. add S47)
Tag the PR with the type of update: Bug, Build, Dependencies, Enhancement, New-Feature or Documentation
Tag the PR with Open source, Azure API for FHIR (CosmosDB or common code) or Azure Healthcare APIs (SQL or common code) to specify where this change is intended to be released.
Tag the PR with Schema Version backward compatible or Schema Version backward incompatible or Schema Version unchanged if this adds or updates Sql script which is/is not backward compatible with the code.
[ ] CI is green before merge
Review squash-merge requirements

Semver Change (docs)
Patch|Skip|Feature|Breaking (reason)

/azp run

/azp run


Upgrades netlify-cli to latest v16.9.2

Fixes https://github.com/MobilityData/gbfs-validator/issues/134
Steps taken:

Set netlify-cli dependency to ^13.0.0 (first major version that does not include static-server) in devDependencies in package.json
Run yarn install locally
Test that the website builds locally with yarn dev ✅
Commit and push the changes made to package.json and yarn.lock ❌

The website builds locally but this error occurs when validating a feed:

I was able to pin the error in the install step down to the upgrade from v13 to v14, but can't really understand why.

The website builds locally but this error occurs when validating a feed:

This happens even in master. I think the problem is that you have to authenticate with netlify for this to work.

🥶

In my previous local tests, the argument -- filter website was causing the feed validation error.
Here are the next steps I took:

Used @testower tests in https://github.com/MobilityData/gbfs-validator/pull/146 to see that ^13.0.0 is the first major version that does not include static-server.
Set netlify-cli dependency to ^13.0.0 in devDependencies in package.json
Run yarn install locally
Test that the website builds locally with yarn dev ✅
Commit and push the changes made to package.json and yarn.lock
The automated unit tests fail ❌

The unit tests seem to fail when trying to install esbuild https://github.com/MobilityData/gbfs-validator/actions/runs/6695935881/job/18195967695#step:4:48.
Due to the low priority of this issue (https://github.com/MobilityData/gbfs-validator/issues/134#issuecomment-1751315193), I will close this draft PR for now.


Been banned for like 6 years

my friend got me and another one of our friends banned falsely years ago. we are still banned to this day for no reason. is there a process to us being unbanned
my IGN is currently Yershii

I'm not gonna have logs or anything.
But me and 2 of my friends used to play on the server years ago.
My friend shadowed_demon (I think is/was his username) got upset with me and izen_vol one day and falsely reported us for survival flight hacks which we didn't have. All we had was pokeradar which at the time was allowed(idk if it still is or not) I estimated 6 years because I was still in school when this happened however I can't give exact dates as the discord server we were in has since been deleted

Pokeradar was never allowed. I can see that the only hack you were banned for was fly hacks however, but usually, that requires proof. Obviously, after all this time, I too have no records of your ban. What server did you play on?

Back when we played it was just the one server named oblique as far as my memory serves. I say pokeradar was allowed because the players at the time told us it was and it was mentioned in the discord by people. I don't remember more than that. We just remembered the server when we started playing pixelmon again and forgot we had been banned until we tried to log in.

Considering you have been banned for that long, I am willing to unban you. I feel it's been long enough of a ban. Please make sure to read the /rules, and enjoy the server. Welcome back!


[Issue 216] Ingest delivery metrics data into a relational database

Summary
This PR solves for https://github.com/HHS/grants-product-and-delivery/issues/216 and https://github.com/HHS/grants-product-and-delivery/issues/293.
It includes the following:

[x] Portable SQL script to initialize a local denormalized SQLite Database
[x] DB schema represents dimensional data (SCD Type 1) for issue, epic, sprint, deliverable, and quad entities
[x] DB schema represents fact data (SCD Type 3) for issue and sprint entities
[x] Portable python scripts to read and parse json files generated by issue 216
[x] Portable python scripts to insert dimensional data for all entities
[x] Portable python scripts to insert fact data for issue, sprint, epic, and deliverable SCD
[x] ERD

Possible Future TODOs:

replace auto increment row ids with UUID
adopt Mermaid ERD syntax to enable easier tracking of ERD changes over time
accept optional arg on command line to specify path of db instance

Davids-MacBook-Pro:delivery-metrics david$ ./src/load_json.py -e 20241008 ./json/example-01.json
running data loader with effective date 2024-10-08
opening file './json/example-01.json'
parsing json
persisting data
connecting to database 'file:/Users/david/Code/simpler-grants-sandbox/delivery-metrics/db/delivery_metrics.db?mode=rw'
quad row(s) inserted: 1
quad row(s) updated: 0
deliverable row(s) inserted: 2
deliverable row(s) updated: 0
sprint row(s) inserted: 5
sprint row(s) updated: 0
epic row(s) inserted: 4
epic row(s) updated: 0
issue row(s) inserted: 22
issue row(s) updated: 0
closing db connection
data loader is done
Davids-MacBook-Pro:delivery-metrics david$
Davids-MacBook-Pro:delivery-metrics david$ ./src/load_json.py -e 20241009 ./json/example-01.json
running data loader with effective date 2024-10-09
opening file './json/example-01.json'
parsing json
persisting data
connecting to database 'file:/Users/david/Code/simpler-grants-sandbox/delivery-metrics/db/delivery_metrics.db?mode=rw'
quad row(s) inserted: 0
quad row(s) updated: 0
deliverable row(s) inserted: 0
deliverable row(s) updated: 0
sprint row(s) inserted: 0
sprint row(s) updated: 0
epic row(s) inserted: 0
epic row(s) updated: 0
issue row(s) inserted: 0
issue row(s) updated: 0
closing db connection
data loader is done

Davids-MacBook-Pro:delivery-metrics david$ ./src/load_json.py -e 20241010 ./json/example-02.json
running data loader with effective date 2024-10-10
opening file './json/example-02.json'
parsing json
persisting data
connecting to database 'file:/Users/david/Code/simpler-grants-sandbox/delivery-metrics/db/delivery_metrics.db?mode=rw'
quad row(s) inserted: 1
quad row(s) updated: 1
deliverable row(s) inserted: 0
deliverable row(s) updated: 1
sprint row(s) inserted: 0
sprint row(s) updated: 2
epic row(s) inserted: 0
epic row(s) updated: 1
issue row(s) inserted: 0
issue row(s) updated: 1
closing db connection
data loader is done

@widal001 I think I've addressed all your concerns, PTAL


Add option to get full documents from queries

closes #137

Should I be adding myself to the list of editors at the top of the page?

Should I be adding myself to the list of editors at the top of the page?

only if you intend to regularly attend WG calls, create and merge PRs based on WG consensus and generally be active, and even then the chairs / editors will have to approve the decision to add another editor, and I don't know DIFs process for this.
If there is an authors section, I think that may be safer... ping @tplooker @msporny @csuwildcat @dmitrizagidulin

We should discuss what problem this is trying to solve and whether or not simpler mechanisms (HTTP keep-alive, HTTP/2) solve it more elegantly. We may want to discuss some kind of cursor/query-continuation mechanism as well, if that's desired.
I'm not necessarily opposed to additional interfaces, but I'd rather us not put cart before horse. The fewer primitives we require the better, provided the use cases are appropriately covered (including high performance use cases).

@dlongley you are not requesting changes on this PR, but appear to be advocating for us to do some other work, its hard for me to know what to do with a PR like this without more critical feedback :)

@OR13 @dlongley Thanks for reviewing my PR!

only if you intend to regularly attend WG calls, create and merge PRs based on WG consensus and generally be active, and even then the chairs / editors will have to approve the decision to add another editor, and I don't know DIFs process for this.
If there is an authors section, I think that may be safer...

It sound like an "Authors" section would be a better fit for me, then.

I suppose the only concern here is that you can't use returnFullDocuments if your result set will be large than some reasonable threshold.... not sure how this would or would not interact with streams. I generally like the idea of a single query response interface for getting documents though.... most developers will expect something like this.

We definitely need some sort of pagination syntax... but note that the existing query endpoint already has this potential problem, as it could potentially return a huge list of document locations. I would like to work on some sort of pagination feature in the near future (unless someone else is already looking into this!)

We should discuss what problem this is trying to solve and whether or not simpler mechanisms (HTTP keep-alive, HTTP/2) solve it more elegantly. We may want to discuss some kind of cursor/query-continuation mechanism as well, if that's desired.
I'm not necessarily opposed to additional interfaces, but I'd rather us not put cart before horse. The fewer primitives we require the better, provided the use cases are appropriately covered (including high performance use cases).

Basically the problem is one of performance. By returning only document locations, clients are forced to do separate requests for each document, which can be painfully slow. This is a problem for us in Aries-Framework-Go, where we have an EDV storage provider that conforms to a general storage interface, and certain types of operations become very expensive. By returning full documents, we prevent having to make extra calls. It also ends up being useful for "bulk get" types of operations.
The exact way I implemented this could also be discussed... perhaps it should be a separate endpoint? The way I have it in this PR just matches the way I did it in our TrustBloc implementation, but I'm not sure if this is really the best way.

@OR13,

...its hard for me to know what to do with a PR like this without more critical feedback

We should discuss this in the group before merging.
@DRK3,

We definitely need some sort of pagination syntax... but note that the existing query endpoint already has this potential problem, as it could potentially return a huge list of document locations. I would like to work on some sort of pagination feature in the near future (unless someone else is already looking into this!)

Yes, we should discuss this in the group. It's true that it's already possible to have too many values come back from a query than should be acceptable -- and we need to figure out what we want to do about it (i.e., how do we want to do pagination, etc.).

Basically the problem is one of performance. By returning only document locations, clients are forced to do separate requests for each document, which can be painfully slow. This is a problem for us in Aries-Framework-Go, where we have an EDV storage provider that conforms to a general storage interface, and certain types of operations become very expensive. By returning full documents, we prevent having to make extra calls. It also ends up being useful for "bulk get" types of operations.

Yeah, we should discuss in the group how we want to handle this. There may also be some impacts/differences in the abstract API vs the HTTP one here.

The exact way I implemented this could also be discussed... perhaps it should be a separate endpoint? The way I have it in this PR just matches the way I did it in our TrustBloc implementation, but I'm not sure if this is really the best way.

Right -- I think it's a good subject for discussion in the group before heading in a particular direction in the spec.

ping @tplooker @dmitrizagidulin can we get a special topic call on scalable API design and pagination on the books?

Hi @OR13 , @tplooker , and @dmitrizagidulin!
I wanted to check in and see if we've had a change to discuss scalable API design and pagination? I see in @OR13's last message you requested a special topic call. Is that still upcoming, or has it already happened (and perhaps I missed it)? Thanks!

@DRK3 yes, we are working with chairs to setup a special topic call, sorry this is taking so long.

(moved to https://github.com/decentralized-identity/edv-spec/pull/2)


Upgrade stratio parent to 0.7.1

Upgrade str-parent to 0.7.1
Set failsafe config reuseForks to false
Avoid duplicated scala properties in pom

+1


Dart allow declare a typedef with the type parameter which is not well bounded.

Dart SDK Version: 2.3.0-dev.0.5
OS: Windows 10 64 bit
The following source code example declares a typedef with type parameter:
class A<T extends A<T>> {}
typedef AAlias = Function<Y extends A> ();
main() {}

It passes with dart without any errors or warning and throws a compile error with the analyzer.
Sample output is:

$> dart test.dart
$> Analyzing test.dart...
error - Type parameter bound types must be instantiated at test.dart:2:37 - strong_mode_not_instantiated_bound
1 error found.
$>

Seems like according to the Dart language Spec dart should throw a compile error here too:

A generic type alias is a declaration D of one of the following forms:

m typedef id<X1 extends B1, . . . , Xs extends Bs> = T;
m typedef S? id<X1 extends B1, . . . , Xs extends Bs>(T1 p1, . . . , Tn pn, [Tn+1 pn+1, . . . , Tn+k pn+k]);
m typedef S? id<X1 extends B1, . . . , Xs extends Bs>(T1 p1, . . . , Tn pn, {Tn+1 pn+1, . . . , Tn+k pn+k});
where m is derived from metadata, T is a type, and S? is a type or the empty string. Let S0 be S? if it is a type, otherwise let S0 be dynamic. The associated type of D, call it F, is, respectively:
T
S0 Function(T1, . . . , Tn, [Tn+1, . . . , Tn+k])
S0 Function(T1, . . . , Tn, {Tn+1 xn+1, . . . , Tn+k xn+k})
D introduces a mapping from actual type argument lists to types. Under
the assumption that X1, . . . , Xs are types such that Xj <: Bj , for all j ∈ 1..s,
it is a compile-time error if T is not regular-bounded, and it is a compile-time
error if any type occurring in T is not well-bounded.

I agree: The raw type A is used as a bound in the body of AAlias, but A does not have simple bounds (T has a bound A<T>, and that bound contains a type parameter declared by A), so it's a compile-time error to use a raw A as a bound of any type parameter, cf. this location in the spec.
The error is actually that we're using a raw type with non-simple bounds as a bound, not that any type in Function<Y extends A> () is not well-bounded. However, the error message from the analyzer is misleading: It sounds like every raw type used as a bound is an error, but the error only exists when the bound is/contains a type which is raw and which has non-simple bounds.
The common front end does not detect the error. I believe this amounts to a special case of #33184, and it makes sense to create this new issue for that special case. I've adjusted the labels accordingly.


update readme to include license and contributing details

https://github.com/learntocloud/learn-to-cloud/commit/dcaa987c5429e90fcfd12647cf74e8285d947d14

Done


A small request

Hi, writer. First of all, thank you for your good questions and good answers. Secondly, I hope to quote some of your title in my article, but I will rewrite the answer with my own understanding, and will indicate the source of the title, such as this article: https://juejin.im/post/5edd051051882543306824a3#heading-3 Is this ok? If you feel offended, I will correct it immediately. Thank you.😊

Hey sorry for this mega late reply! Thanks for linking to the source, the article looks great!


Inconsistent fetchplan behaviour in binary protocol

Hi,
This query select from #9:0 fetchplan out_*:-2 in the studio returns the vertex and ignores the out edges.
In the binary protocol it doesn't work, always returns all edges.
Using node.js, when the vertex have lot of edges the serialization slows down a lot.

I forgot the version: OrientDb Community 2.0.12

@tglman I assigned it to you, but I don't know if it's actually a matter of binary protocol, in case just redirect it to me ;-)

this is a known bug, due to the binary serialization that doesn't support optional field, this will be solved in 3.0

Are there any workarounds while this is not fixed?
Now I'm doing this expand(@this.exclude('out_Edges1', 'out_Edges2')) in every query that have a lot of edges.

@dehbmarques You found the workaround ;-) The problem with fetchplan is that the same syntax is used for 2 different things:

HTTP/JSON protocol
Binary protocol

In binary protocol the fetch-plan pre-loads records in the client's cache, but there is no the concept of changing documents. So using include/exclude today remains the best solution.

@lvca thanks for the reply. I will also try using the HTTP protocol for some queries.

This was closed without a comment. Was it fixed, or closed because there's a workaround?


PowerShell script better use of set-executionpolicy

Hello. You include a PowerShell script in this document to obtain the hardware hash of computers so they can be loaded into Intune for Autopilot. One line of the script uses Set-ExecutionPolicy Unrestricted. This command doesn't only set execution policy for the script, but for all PowerShell scripts used on the computer. This lowers scripting security on computers unnecessarily.
A better option would be this command.
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Unrestricted
That will only change Execution Policy for this PowerShell session. It won't leave the computer in a more vulnerable state after the script is finished.
Thank you for your consideration and attention.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 3243b015-5b5f-7a62-0d9d-767d729dc475
Version Independent ID: ff8c0509-c075-8528-823f-c195ff4d2382
Content: Adding devices
Content Source: windows/deployment/windows-autopilot/add-devices.md
Product: w10
GitHub Login: @greg-lindsay
Microsoft Alias: greg-lindsay

@AndreaBarr - please assign this issue to me. Thanks.

@gaknigge - Thank you for submitting feedback.
I will get this issue over to the Win10 ITPro writing team for investigation.
Thank you for reporting and making the docs better. Much appreciated.
I made a note to request the team to update this when the work is complete.

@mypil : would you like a PR submitted for the change, or do you prefer to wait for feedback from the team regarding what should be changed?

@illfated I have already created the PR for the change

Thanks, good job. I need to go to bed soon anyway. ;-)

@greg-lindsay Please review the PR when you have a moment, it relates to the unrestricted mode for the powershell command to be per session instead of changing the entire policy to run that one powershell command to get the hashID information

Hi, I agree this is a best practice so we should accept the change.  Just understand that the device here is getting prepped to have the OS overwritten anyway so it's not a huge risk to leave it in this state. Thanks though for the comment, I think that in general we overuse the unrestricted setting and leave a lot of computers like this.

The merge is complete. You should see the content updated in the next day.


Remove some extra string allocations in std.datetime.date.datetime

A micro optimization. No reason to allocate the string twice.

Do you have any performance numbers? A part from that obviously looks good to me.

Results
$ ldc2 -O -release test.d && ./test
old	5 secs, 902 ms, 131 μs, and 6 hnsecs
new	4 secs, 949 ms, 288 μs, and 6 hnsecs

Code
import std.stdio;
import std.algorithm;
import std.conv;
import std.format;
import std.ascii;
import std.range;
import std.traits;
import std.string;
import std.datetime;
import std.utf;

enum testCount = 5_000_000;

string func1(S, R)(S date, R time)
{
    return format("%sT%s", date.toISOExtString(), time.toISOExtString());
}

string func2(S, R)(S date, R time)
{
    return format(
        "%sT%02d:%02d:%02d",
        date.toISOExtString(),
        time.hour,
        time.minute,
        time.second
    );
}

void main()
{
    immutable a = Date(2017, 1, 1);
    immutable b = TimeOfDay(12, 0, 0);

    auto result = to!Duration(benchmark!(() => func1(a, b))(testCount)[0]);
    auto result2 = to!Duration(benchmark!(() => func2(a, b))(testCount)[0]);

    writeln("old", "\t", result);
    writeln("new", "\t", result2);
}

Thanks, try this one:
string func3(S, R)(S date, R time)
{
    static void write02d(ref char[2] s, ubyte num)
    {
        assert (s == "00" && num < 100);
        if (num < 10)
            s[1] += num;
        else
        {
            s[0] += num / 10;
            s[1] += num % 10;
        }
    }

    void formatMDHMS(char[] start)
    {
        write02d(start[0 .. 2], date.month);
        start = start[3 .. $];
        write02d(start[0 .. 2], date.day);
        start = start[3 .. $];
        write02d(start[0 .. 2], time.hour);
        start = start[3 .. $];
        write02d(start[0 .. 2], time.minute);
        start = start[3 .. $];
        write02d(start[0 .. 2], time.second);
    }

    if (date.year < 0 || date.year >= 10_000)
    {
        char[15] result = "-00-00T00:00:00";
        formatMDHMS(result[1 .. $]);
        // too lazy to optimize this further :P
        return "%+d".format(date.year) ~ result;
    }
    else
    {
        char[19] result = "0000-00-00T00:00:00";
        auto y = date.year;
        auto p = &result[3];
        while (y)
        {
            *p-- += y % 10;
            y /= 10;
        }

        formatMDHMS(result[5 .. $]);
        return result.dup;
    }
}

:P

Do you have any performance numbers?

@JackStouffer how about starting to collect all these benchmarks to a /benchmark folder like druntime does, s.t.

people in the future have an easier time improving the performance
we can start adding a CI for performance regressions

Well, they're kind of different in scope. My benchmarks are about specific functions rather than measuring whole systems or storage types.

@ZombineDev unfortunately, that's unsafe.

@JackStouffer while it's not @safe, I don't think it is unsafe. Care to explain in more detail? Is there some case that I have missed in my solution?

The problem is the current function is @safe, so making it @system would be breaking.

@jmdavis Fixed
Also changed to the new compile time format strings.


TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/23975

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/25142

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/43785


Adds EoD Priority Strike to the /daily command

This adds the EoD Priority Strike to the /daily command. It follows the same pattern as IBS daily strikes, and adds the list of strikes to the JSON data and then uses an index based on today's date.
We could probably update this to use the GW2 API, as there is now an achievement category endpoint that returns the IDs of the current strikes. Doing so would be future-proof to other strike additions. I didn't have the time at the moment, but I may do another PR in the future to make that update 😄

Thank you for the PR!
Yes, I agree, it'd be a good idea to futureproof using the APi. I might work on that at some point, but you'd be more than welcome to make a PR!
I think one could add it to the cache_dailies function, just need to add a strikes category, and make sure to account for filling out "tomorrow" too.
https://github.com/Maselkov/GW2Bot/blob/9998f3d84147670ab54d56a8d35643ed103645b9/guildwars2/database.py#L183


Crash on [ARSCNView _removeAnchors] - C3DNodeRemoveFromParentNode BAD_ACCESS

The app crashes if you move some distance away from your starting location.
It seems to happen when ARKit removes a plane anchor, and removing this line configuration.planeDetection = .horizontal resolves the issue.
Full crash attached
crash.txt

I haven't personally experienced this but have heard numerous reports about it. I'd be open to removing the planeDetection setting, so long as there won't be any adverse side effects.. but then that wouldn't resolve it for those who require that for their projects. This does sound like an Apple bug though - the library itself never actually attempts to remove anchors.


Replace CellAssign ridgeplots with density plots

Closes #518
This PR updates the CellAssign plot and text. I know I was supposed to bulletify the text, but it didn't seem like there was much to bullet, so I look forward to overhauling my text during review 😄
I don't have anything specific to say here other than, let me know what you think all around and we'll keep chipping away at plot styling!
Screenshot of updated section:

Next round! I've updated the text based on reviews and tried to achieve a good middle ground here. I liked @allyhawkins's suggestion to mirror the the structure of how we present SingleR and to provide more context about where the probabilities come from, so I bulleted it accordingly, but some rephrasing may still be called for - let know what we think now!
For the plot itself, I ended up using a slightly different set of expand arguments to get the rug below the density plot. It looks fine for me for the N<3 rows that just have the rug, too.
I played around with different alpha approaches as well, and include one here as a first stab. It certainly helps for times when there are a lot of cells, but only in spots where  the rug is really overlapping. I'm not sure how I feel about it yet!
Screenshots:
text

plot

The rug suggestions using n directly in aesthetics unfortunately don't seem to work. For example, with aes(alpha = ifelse(n < 100, 0.5, 1)), you end up with really transparent much less what is specified. For example here the two alphas are set as 0.99 and 1 but clearly the output is lower than 0.99 - see rows 2-4!

So, instead, I went with adding alpha as actual values in celltype_df and using scale_alpha_manual() which I think is a reasonable spot to land and seems to work as expected!
Meanwhile there might actually be a bug in ggplot2 since when i place length() inside of aes() I am told it's not an aesthetic (Narrator: It is, indeed, an aesthetic.) -  Ignoring unknown aesthetics: length. Dynamically controlling rug size with geom_segment() is also tricky for mapping reasons, so instead I have "hacked" it with another geom_segment() layer just for the n<=2 (which indeed should be 2 not 3!) points.
final.final plot

@jashapiro I respect the hustle to make the alpha argument happen, but ggplot2 sadly does not want this inside of aws()... Good for geom_segment() though!!

I respect the hustle to make the alpha argument happen, but ggplot2 sadly does not want this inside of aws()... Good for geom_segment() though!!

It looks like it is working there?
Here is a touch of test code where it is working for me locally:
my_data <- data.frame(x = rnorm(1000), y = sample(c("a", "b", "c"), 1000, replace = TRUE, prob = c(100,10,1))) |>
 dplyr::add_count(y)

ggplot(my_data) +
  aes(x = x)+
  geom_density() +
  geom_segment(
    aes(
      xend = x,
      y = -.1,
      yend = ifelse(n > 50, 0, 0.5),
      alpha = pmax(0.1, 1-n/100)
    )
  ) +
  facet_grid(row = vars(y)) +
  scale_alpha_identity()

(I was wrong about getting to put xend, etc in the opening aes; geom_density() didn't like that.

Ah, I had accidentally deleted scale_alpha_identity()!

Wait, no something is indeed wrong with the alpha. See you on Slack.

Updated version:

Use more interestingly dynamic alpha as suggested
Set the segment (rug) heights more intelligently by using density() to first find the maximum plot height and then using that to set geom_segment's yend aesthetic

final.actually_final


[SPARK-36020][SQL][3.1] Check logical link in remove redundant projects

backport #33222

What changes were proposed in this pull request?

The RemoveRedundantProjects feature can conflict with the AQE broadcast threshold (PR) sometimes. After removing the project, the physical plan to logical plan link can be changed and we may have a Project above LogicalQueryStage. This breaks AQE broadcast threshold, because the stats of Project does not have the isRuntime = true flag, and thus still use the normal broadcast threshold.
This PR updates RemoveRedundantProjects to not remove ProjectExec that has a different logical plan link than its child.
Why are the changes needed?

Make AQE broadcast threshold work in more cases.
Does this PR introduce any user-facing change?

no
How was this patch tested?

new tests

Test build #140724 has started for PR 33238 at commit 4fdb921.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/45236/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/45236/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/45236/

Test build #140738 has started for PR 33238 at commit d6faccb.

Test build #140724 has finished for PR 33238 at commit 4fdb921.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/140724/

Test build #140741 has started for PR 33238 at commit b8ef9a8.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/45248/

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/45251/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/45248/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/45248/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/45251/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/45251/

Test build #140738 has finished for PR 33238 at commit d6faccb.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/140738/

Test build #140741 has finished for PR 33238 at commit b8ef9a8.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/140741/

thanks, merging to 3.1!


Using bifrost with a digitizer

Is it relatively straightforward to plug in data from a digitizer with this package?
Let's assume I can get this stuff off the card and into CPU RAM.
The digitizer is connected over PCI-e. Not ethernet.
I am thinking the answer is "Yes," just making sure i understand the purpose of this program.

If you can get the address of the memory then, yes, you should be able to convert that to a bifrost.ndarray instance in the Python API or a BFarray in the C++ API.

OK. I have been using cupy for a lot of things and after getting nsight to work and tagging all of my stuff... it's just doing some stuff that I'm not so sure about.
for example:
If I do cp.ndarray = cupy.array(np.array)
I take that to mean that I already have an allocated cupy array, and I want to update it with the contents of another allocated numpy array, it should just point to the first element of the numpy array and do a memcpy using the pointer of the cupy array (making sure to check that the cupy and numpy array are C-contiguous and row major).
so I should see pci-e activity when I call cupy.array()
That's not what happens. So it's incentivizing me to go down a layer and do a little bit more memory management.


MNT: rerender

Hi! This is the friendly automated conda-forge-webservice.
I've rerendered the recipe as instructed in #35.
Here's a checklist to do before merging.

[ ] Bump the build number if needed.

Fixes #35

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.


[DE DateTimeV2] "12 Uhr abends/nachts" recognized as midday time

Describe the bug
"12 Uhr abends/nachts" recognized as midday time
To Reproduce
Steps to reproduce the behavior:

Create a LUIS app with "datetimeV2" prebuilt entity
Type one of the followint sentences:
Erinnere mich um 12 Uhr abends aufzustehen --> considered 12 o'clock midday
Erinnere mich um 12 Uhr nachts aufzustehen --> considered 12 o'clock midday
See error: "12 Uhr abends/nachts" is recognized as midday 12 o'clock

Expected behavior
"12 Uhr abends/nachts" should be recognized as midnight at the end of the considered day.
Sample input/output
for the sentence " Erinnere mich um 12 Uhr abends aufzustehen", we get the wrong date entity (CET zone):
"entities": {
                "date": [
                  {
                    "value": "T11:00:00Z",
                    "literal": "12 Uhr abends"
                  }
                ]
              }

Platform (please complete the following information):

Platform: [e.g. .NET, JavaScript, Python, Java]
Environment: LUIS
Version of package [e.g. v<IP_ADDRESS>]

"Erinnere mich um 12 Uhr nachts" works correctly. But "abends" is indeed incorrect.
@LionbridgeCSII could you look into it?


AttributeError: module 'tensorflow.python.framework.op_def_registry' has no attribute 'register_op_list'

Please go to Stack Overflow for help and support:
https://stackoverflow.com/questions/tagged/tensorflow
If you open a GitHub issue, here is our policy:

It must be a bug, a feature request, or a significant problem with documentation (for small docs fixes please send a PR instead).
The form below must be filled out.
It shouldn't be a TensorBoard issue. Those go here.

Here's why we have that policy: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 18.04
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary): source
TensorFlow version (use command below): 2.0.0
Python version: 3.6
Bazel version (if compiling from source): 0.27.1
GCC/Compiler version (if compiling from source): 7.4.0
CUDA/cuDNN version: 10.2
GPU model and memory: NVIDIA 970
Exact command to reproduce: python3 legacy/train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/ssd_mobilenet_v1_pets.config

You can collect some of this information using our environment capture script:
https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh
You can obtain the TensorFlow version with:
python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"

Describe the problem
Trying tensorflow's trainning appears an error message about a non existed attribute (register_op_list') . I checked in the file that is supposed to have it and it really doesn't have it.
I looked for that attribute in every single path I thought it could be but I didn't get anything at all.
I have no clue of how I can resolve this.
To resolve the contrib issue of tf2.0 i used tf-slim but if you have a way to resolve it completely that doesn't trigger this error please let me know because I'm quite sure that everything comes because of the "contrib" problem.
Thanks
Source code / logs
### python3 legacy/train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/ssd_mobilenet_v1_pets.config
2019-12-02 13:59:36.908351: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.2
Traceback (most recent call last):
File "legacy/train.py", line 48, in
from tensorflow.contrib import framework as contrib_framework
File "/home/adele/.local/lib/python3.6/site-packages/tensorflow/contrib/init.py", line 31, in
from tensorflow.contrib import cloud
File "/home/adele/.local/lib/python3.6/site-packages/tensorflow/contrib/cloud/init.py", line 24, in
from tensorflow.contrib.cloud.python.ops.bigquery_reader_ops import *
File "/home/adele/.local/lib/python3.6/site-packages/tensorflow/contrib/cloud/python/ops/bigquery_reader_ops.py", line 21, in
from tensorflow.contrib.cloud.python.ops import gen_bigquery_reader_ops
File "/home/adele/.local/lib/python3.6/site-packages/tensorflow/contrib/cloud/python/ops/gen_bigquery_reader_ops.py", line 369, in
_op_def_lib = _InitOpDefLibrary(b"\n\355\001\n\016BigQueryReader\032\024\n\rreader_handle\030\007\200\001\001"\027\n\tcontainer\022\006string\032\002\022\000"\031\n\013shared_name\022\006string\032\002\022\000"\024\n\nproject_id\022\006string"\024\n\ndataset_id\022\006string"\022\n\010table_id\022\006string"\027\n\007columns\022\014list(string)"\027\n\020timestamp_millis\022\003int"\034\n\016test_end_point\022\006string\032\002\022\000\210\001\001\n\331\001\n GenerateBigQueryReaderPartitions\032\016\n\npartitions\030\007"\024\n\nproject_id\022\006string"\024\n\ndataset_id\022\006string"\022\n\010table_id\022\006string"\027\n\007columns\022\014list(string)"\027\n\020timestamp_millis\022\003int"\025\n\016num_partitions\022\003int"\034\n\016test_end_point\022\006string\032\002\022\000")
File "/home/adele/.local/lib/python3.6/site-packages/tensorflow/contrib/cloud/python/ops/gen_bigquery_reader_ops.py", line 277, in _InitOpDefLibrary
_op_def_registry.register_op_list(op_list)
AttributeError: module 'tensorflow.python.framework.op_def_registry' has no attribute 'register_op_list'

@rmbadl, Provide the complete standalone code to replicate the issue. Thanks!

I have no standalone code, the "train.py" code that I use is the tensorflow's one. I was just following this page  .
I downloaded tensorflow and bazel and followed each ones guides to install them.. (from their own pages)

@rmbadl, Please find the link for Tensorflow Object detection tutorial. Thanks!

It has been 14 days with no activity and the awaiting response label was assigned. Is this still an issue?

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!

@gadagashwini I have the same problem.. I'm using Tensorflow 1.14.0 and python 3.7

@bjente,
Can you please post a new issue by providing the information asked by the template?
The reason for this is we can focus on your specific configuration and problem since the root cause can be unrelated even though the error messages are similar. Thanks!

Is anybody working on this? Getting the same error.

Is anybody working on this? Getting the same error.

restart the kernel ...maybe that help

Restart the kernel if you recently changed tensorflow versions

@gadagashwini I have the same problem.. I'm using Tensorflow 1.14.0 and python 3.7

restart kernel it worked for me.

I changed the version of python to 3.7 from 3.6 it worked

Use Tensorflow 1.11 or greater. However, don't go on to use Tensorflow 2.*.
Also, for the current latest version of tensorflow-hub 0.10.0, you need tf >= 1.15.0.
Thus, best to use 1.15.0 <= tf < 2.* along with tf-hub latest(0.10.0).

Use Tensorflow 1.11 or greater. However, don't go on to use Tensorflow 2.*.
Also, for the current latest version of tensorflow-hub 0.10.0, you need tf >= 1.15.0.
Thus, best to use 1.15.0 <= tf < 2.* along with tf-hub latest(0.10.0).

same error on macOS : 12.+ TensorFlow : 2.9.2 tensorboard : 2.9.1 python : 3.9
Traceback (most recent call last):   File "/Users/Smiril/Documents/deep/SimSwap/m1_tf_test_one_image.py", line 12, in <module>     import tensorflow.contrib.eager as tfe   File "/Users/Smiril/opt/miniconda3/envs/tensorflow/lib/python3.9/site-packages/tensorflow/contrib/__init__.py", line 38, in <module>     from tensorflow.contrib import cloud   File "/Users/Smiril/opt/miniconda3/envs/tensorflow/lib/python3.9/site-packages/tensorflow/contrib/cloud/__init__.py", line 24, in <module>     from tensorflow.contrib.cloud.python.ops.bigquery_reader_ops import *   File "/Users/Smiril/opt/miniconda3/envs/tensorflow/lib/python3.9/site-packages/tensorflow/contrib/cloud/python/ops/bigquery_reader_ops.py", line 21, in <module>     from tensorflow.contrib.cloud.python.ops import gen_bigquery_reader_ops   File "/Users/Smiril/opt/miniconda3/envs/tensorflow/lib/python3.9/site-packages/tensorflow/contrib/cloud/python/ops/gen_bigquery_reader_ops.py", line 307, in <module>     _op_def_lib = _InitOpDefLibrary(b"\n\355\001\n\016BigQueryReader\032\024\n\rreader_handle\030\007\200\001\001\"\027\n\tcontainer\022\006string\032\002\022\000\"\031\n\013shared_name\022\006string\032\002\022\000\"\024\n\nproject_id\022\006string\"\024\n\ndataset_id\022\006string\"\022\n\010table_id\022\006string\"\027\n\007columns\022\014list(string)\"\027\n\020timestamp_millis\022\003int\"\034\n\016test_end_point\022\006string\032\002\022\000\210\001\001\n\331\001\n GenerateBigQueryReaderPartitions\032\016\n\npartitions\030\007\"\024\n\nproject_id\022\006string\"\024\n\ndataset_id\022\006string\"\022\n\010table_id\022\006string\"\027\n\007columns\022\014list(string)\"\027\n\020timestamp_millis\022\003int\"\025\n\016num_partitions\022\003int\"\034\n\016test_end_point\022\006string\032\002\022\000")   File "/Users/Smiril/opt/miniconda3/envs/tensorflow/lib/python3.9/site-packages/tensorflow/contrib/cloud/python/ops/gen_bigquery_reader_ops.py", line 215, in _InitOpDefLibrary     _op_def_registry.register_op_list(op_list) AttributeError: module 'tensorflow.python.framework.op_def_registry' has no attribute 'register_op_list'


height calculation broken

hi, i tried to write an userscript embedding a codemirror editor into reddit for stylesheet editing.
it breaks horribly: the userscript
you can try it with the account csstestacc (same password) here

That may be related to any number of things. I do not have time to debug specific integration issues.

eh, and how can i help to debug it?

You could start by describing what 'breaks horribly' actually means. And then set up a stand-alone demo that shows the issue.


#32 should have an option for creating readable output

Closes #32
✨  Features

Option to render to HTML

New argument: b:  Browser view. You can specify a file name where the html output should go. HTML rendering only happens, if this argument is set.
New argument: p: Only has effect, if rendering to HTML. It provides a "printer friendly"  output. It's basically a light theme with less "involved" graphics.
New argument: n: Don't open the HTML file when the program has run. By default, the HTML file opens with the system default application.

🐛 Bug fixes

The loading spinner will no longer be the last message printed to the console. The app will display a simple "Done" message after it finished. - #41

Tested the terminal functionality on Windows and Ubuntu.
Tested the browser functionality on Windows and Ubuntu with Chrome, Edge and Firefox. Everything seems to work properly.


Sourcekit-LSP crashes when file doesn't end in a newline

Sourcekit-LSP crashes when file doesn't end in a newline. Although this only seems to occur when editing files inside an SwiftPM project.
Steps to reproduce:

Open any SwiftPM project in VSCode
Open a source file from this project
Go to end of file and delete newlines
Wait. SourceKit-LSP crashes
Add newline back in, and restart the server and everything is ok

Swift version : Swift version 5.8-dev (LLVM 08f7fecaf6cedb8, Swift 7632e9a645bcb05)
Using swiftlang/swift:nightly-5.8-jammy docker image tagged swift-5.8-DEVELOPMENT-SNAPSHOT-2023-01-13-a

Hey Adam,
Are you only seeing the crashes on Linux? I just tried reproducing this on macOS and am not seeing any crashes – neither of SourceKit-LSP nor of sourcekitd. I’m using swift-5.8-DEVELOPMENT-SNAPSHOT-2023-02-23-a See that attached screen recording for what I did
Screen Recording

I saw this in a swift-5.8-DEVELOPMENT-SNAPSHOT-2023-01-13-a docker image but cannot replicate in
swift-5.8-DEVELOPMENT-SNAPSHOT-2023-02-23-a. I'll close this just now, and re-open if I see it again


CSS Format support

CSS Language Server is consumed inside Eclipse with https://github.com/mickaelistria/eclipse-bluesky It works well but CSS format is not available.
VSCode provides an extension at https://github.com/aeschli/vscode-css-formatter which uses jsbeautify. I understand that you don't want have dependencies to jsbeautify, but it should be fanatstic if you could provide a settings to choose the CSS formatter.
You could provide a CSS formatter interface that a project could implement with jsbeautify, and the CSS client will have the capability to register the CSS formatter to use. In this case any Editor, IDE which supports language server could benefit with CSS format.
Thanks!

For us, adding a css formatter to the css-language-server is not really attractive. We rather have some other VSCode extension or language server provide and maintain such a formatter.
What if you invoke jsbeautify out your Eclipse bundle? You must have already have the node runtime.

For us, adding a css formatter to the css-language-server is not really attractive.

I don't say to provide a formatter but provide a kind of extension point to choose an existing formatter.

We rather have some other VSCode extension or language server provide and maintain such a formatter.

In other words, I would like to configure CSS Language Server to use an implemention of CSS formatter. So any language client (VSCode, Eclipse, Sublime, Vim, etc) could benefit with CSS format without developping extra code. Language Server provides an API to consume 'format' like JSON language server, so why CSS Language Server could not provide this feature?

What if you invoke jsbeautify out your Eclipse bundle? You must have already have the node runtime.

It's means that I will have 2 nodes process (one for CSS Language Server and one for CSS formatter) and I must develop a client side which communicates with CSS format.

| provide a kind of extension point to choose an existing formatter.
Do you any suggestions how this would look like?

Do you any suggestions how this would look like?

Here my idea:
LanguageService API will add format method:
export interface LanguageService {
	configure(raw: LanguageSettings): void;
        ...
	format(document: TextDocument, range: Range, options: FormattingOptions): TextEdit[];
}

And LanguageSettings will add cssFormatter settings which is a path (or name) of the CSS formatter contribution:
export interface LanguageSettings {
	validate?: boolean;
	lint?: any;
        cssFormatter?: string
}

A CSS Formatter should implement a given interface that CSS Language Service should provide:
export interface CSSFormatter {
  format(document: TextDocument, range: Range, options: FormattingOptions): TextEdit[];
}

When CSS language service is called by CSS Language Server with this settings:
{
   cssFormatter: "jsbeautifyFormatter"
}

It will search with node.require the jsbeautifyFormatter node module:
let cssFormatter:= require('jsbeautifyFormatter')
The jsbeautifyFormatter is a node module which exports and implements CSSFormatter
jsbeautifyFormatter.ts will looks like this (as your code https://github.com/aeschli/vscode-css-formatter/blob/master/src/extension.ts):
export function format(document: TextDocument, range: Range, options: FormattingOptions): TextEdit[] {
 import jsbeautify = require('js-beautify');

export function format(document: vscode.TextDocument, range: vscode.Range, options:vscode.FormattingOptions) {

	if (range === null) {
		var start = new vscode.Position(0, 0);
		var end = new vscode.Position(document.lineCount - 1, document.lineAt(document.lineCount - 1).text.length);
		range = new vscode.Range(start, end);
	}

	var result: vscode.TextEdit[] = [];

	var content = document.getText(range);

	if (!options) {
		options = { insertSpaces: true, tabSize: 4 };
	}

	var beutifyOptions : jsbeautify.IBeautifyCSSOptions = {
		indent_char: options.insertSpaces ? ' ' : '\t',
		indent_size: options.insertSpaces ? options.tabSize : 1,
		selector_separator_newline: false
	}

	var formatted = jsbeautify.css_beautify(content, beutifyOptions);
	if (formatted) {
		result.push(new vscode.TextEdit(range, formatted));
	}

	return result;
};
}

If you wish consume other CSS formatter library, you must just implement a new CSSFormatter and any language server client could benefit with this feature.

The idea of vscode-css-languageservice is to be a library that is used by both the css language server and the Monaco editor (in a browser environment). Dynamic loading doesn't fit there.
Maybe you should look into having your own css language server implementation. Like the one we have in the VSCode base, it mostly forwards requests to vscode-css-languageservice library. But it adds the formatting,

The idea of vscode-css-languageservice is to be a library that is used by both the css language server and the Monaco editor (in a browser environment). Dynamic loading doesn't fit there.

We could consider that cssFormatter works only in node context. All language client editor uses node.js. I think it's really shame not to provide this feature just because you wish to support browser/node context.

Maybe you should look into having your own css language server implementation.

Like the one we have in the VSCode base, it mostly forwards requests to vscode-css-languageservice library. But it adds the formatting

I think you mean https://github.com/aeschli/vscode-css-formatter which is not language server.
I would like to really avoid having my language server. In one hour, I have implemented my idea by using your code https://github.com/aeschli/vscode-css-formatter and by updating quicly your language server and it works well.
I'm sorry to insist, but it should really great to provide this CSS formatter contribution settings in order to any client of language server could benefit with CSS formatter. More with VSCode you could choose your CSS formatter just with settings and by doing just an npm install .
You could have a project which contains the one-css-formatter in your node_modules and another project which contains the second-css-formatter.  You could switch to CSS formatter just by doing an npm install. It follows the same idea than TypeScript Plugins for tsserver.
If you wish I could try to create a PR, but if you are not interested, I will stop to insist, but as I said you I have tested quicly my idea and it works great.

IMO adding the extension mechanism to the service library is not the right approach. I'd rather look into a way of extending the server. It's something we could use with servers as well, for other language server features. There it would be fitting to use the node module.
I don't have any solution ready, but maybe we can iterate on that, and a PR in that area would be very welcome.
We wouldn't use a user setting to add an extension, but rather an entry in the [LS initialization options].(https://github.com/Microsoft/vscode/blob/master/extensions/css/server/src/cssServerMain.ts#L47). Could be the name of a node module, as you suggested.
The extension should be initialized with the IConnection as well as the TextDocuments and Stylesheets managers.
That way the extension can hook/refine any kind of request and also use the language ASTs.

I'd rather look into a way of extending the server.

Sure! It's an another solution that I love it too:)

We wouldn't use a user setting to add an extension, but rather an entry in the LS initialization options. Could be a list of node modules, as you suggested.

Many thanks to take care of this feature!

I don't have any solution ready, but maybe we can iterate on that, and a PR in that area would be very welcome.

If I find time, I will try it. Anyway thanks again not to ignore this CSS formatter feature that Eclipse needs really. Thanks!

@angelozerr You can just use prettier which now uses stylefmt and works pretty well with css/scss/less. I've already ported it over to Vetur as the embedded formatter for css/scss/less.

@octref your suggestion is about using prettier  instead of using jsbeautify ? if it that thanks for the hint, but I'm waiting for that LS CSS server provides the capability to provide the CSS formatter customization.

One reason is integrating prettier or stylefmt is pretty straightforward, so you don't have to wait for this feature to land. Another reason is I've bundled js-beautify in Vetur before and it has caused many issues, and upstream bugs are never addressed.

@octref in my case I'm in Java word with Eclipse, I would liek to avoid developping some extra nodejs process and just use LSP format which is implemented with lsp4e (LSP for Eclipse).

As discussed, the extension doesn't go in the css-language-service, but the CSS language server which is in the vscode repo. I created https://github.com/Microsoft/vscode/issues/39088. PR are welcome!

For us, adding a css formatter to the css-language-server is not really attractive. We rather have some other VSCode extension or language server provide and maintain such a formatter.

Can you please elaborate what makes is not really attractive? Wouldn't it just be a matter of adding a formatter like prettier as dependency and making the format LSP query delegate to it?
How would a separate LS/extension be better from the CSS Language Server POV?

@mickaelistria It's still am lot of work to maintain as users blame our LS if the formatter doesn't behave as expected or is missing a feature. In VSCode we have a marketplace and we try to outsource some work to other extensions. Also it gives users a choice. There's already a prettier extension, that many user prefer.
For historical reasons, the vscode-html-languageservice includes a formatter (jsbeautify). Over the years I've spend considerable time reading and analysing incoming issues related to formatting, forward them to jsbeautify, adopt options, even make workarounds. jsbeautify is a good piece of software, but formatters are not trivial with strong opinions from users.
If you are willing to commit to that work long term, please make a PR.
Note we need a solution that works in the monaco-editor as well, and also a formatter for scss and less. Ideally the footprint added to the  vscode-css-languageservice is not too big as well.

Thanks for your insights, much appreciated.

If you are willing to commit to that work long term, please make a PR.

I think we'll just not ship a formatter in Wild Web Developer then and use the same policy as yours about expecting users to install another extension if they want it. If at some point we find another LS that does formatting, we'll try to either replace the VSCode one or use both in parallel in Wild Web Developer.
I don't really buy the argument of giving users a choice. My experience with Eclipse IDE over the last years has been that people always like to claim the want choice and lots of extensions, but at some point, they just complain because they have to many options and too many setup tasks to take care of before feeling productive. People like to say they want choice, but they actually value much more things that work OK out-of-the-box.


Add Toast UI component

Add toast component, from Android
example from KitKat: http://i.imgur.com/vYK4wwrl.png
Options:

region: top or middle or bottom or a number percent (default bottom)
tap to close: true / false (default true)
close callback (optional)
duration (default somewhere between 2-3s)

I was been searching for a toast notification plugin for my project. I have created a bower component for toast. Please have a look at the bower component i have created. I think it might help you.


Define RACI

Wiki explanation
For example:

Who's giving permissions to GitHub?
Who's approving budgets to projects?

I started a RChain RACI matrix in google sheets but need help fleshing it out